aboutsummaryrefslogtreecommitdiff
path: root/libltdl/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libltdl/configure')
-rwxr-xr-xlibltdl/configure23702
1 files changed, 23702 insertions, 0 deletions
diff --git a/libltdl/configure b/libltdl/configure
new file mode 100755
index 00000000..03678466
--- /dev/null
+++ b/libltdl/configure
@@ -0,0 +1,23702 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libltdl 1.2.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276$*
277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='libltdl'
425PACKAGE_TARNAME='libltdl'
426PACKAGE_VERSION='1.2'
427PACKAGE_STRING='libltdl 1.2'
428PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429
430ac_unique_file="ltdl.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957\`configure' configures libltdl 1.2 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of libltdl 1.2:";;
1024 esac
1025 cat <<\_ACEOF
1026
1027Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing) to the casual installer
1032 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-ltdl-install install libltdl
1042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
1051
1052Some influential environment variables:
1053 CC C compiler command
1054 CFLAGS C compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
1059 CPP C preprocessor
1060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
1062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
1065
1066Use these variables to override the choices made by `configure' or to help
1067it to find libraries and programs with nonstandard names/locations.
1068
1069Report bugs to <bug-libtool@gnu.org>.
1070_ACEOF
1071fi
1072
1073if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1075 ac_popdir=`pwd`
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1078 ac_builddir=.
1079
1080if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084else
1085 ac_dir_suffix= ac_top_builddir=
1086fi
1087
1088case $srcdir in
1089 .) # No --srcdir option. We are building in place.
1090 ac_srcdir=.
1091 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=.
1093 else
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 fi ;;
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1099 *) # Relative path.
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102esac
1103
1104# Do not use `cd foo && pwd` to compute absolute paths, because
1105# the directories may not exist.
1106case `pwd` in
1107.) ac_abs_builddir="$ac_dir";;
1108*)
1109 case "$ac_dir" in
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113 esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_top_builddir=${ac_top_builddir}.;;
1117*)
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122 esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_srcdir=$ac_srcdir;;
1126*)
1127 case $ac_srcdir in
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131 esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_top_srcdir=$ac_top_srcdir;;
1135*)
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 esac;;
1141esac
1142
1143 cd $ac_dir
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1146 echo
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1149 echo
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1153 echo
1154 $ac_configure --help
1155 else
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157 fi
1158 cd "$ac_popdir"
1159 done
1160fi
1161
1162test -n "$ac_init_help" && exit 0
1163if $ac_init_version; then
1164 cat <<\_ACEOF
1165libltdl configure 1.2
1166generated by GNU Autoconf 2.59
1167
1168Copyright (C) 2003 Free Software Foundation, Inc.
1169This configure script is free software; the Free Software Foundation
1170gives unlimited permission to copy, distribute and modify it.
1171_ACEOF
1172 exit 0
1173fi
1174exec 5>config.log
1175cat >&5 <<_ACEOF
1176This file contains any messages produced by compilers while
1177running configure, to aid debugging if configure makes a mistake.
1178
1179It was created by libltdl $as_me 1.2, which was
1180generated by GNU Autoconf 2.59. Invocation command line was
1181
1182 $ $0 $@
1183
1184_ACEOF
1185{
1186cat <<_ASUNAME
1187## --------- ##
1188## Platform. ##
1189## --------- ##
1190
1191hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196
1197/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1199
1200/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1201/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1202/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1204/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1205/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1206/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1207
1208_ASUNAME
1209
1210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211for as_dir in $PATH
1212do
1213 IFS=$as_save_IFS
1214 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir"
1216done
1217
1218} >&5
1219
1220cat >&5 <<_ACEOF
1221
1222
1223## ----------- ##
1224## Core tests. ##
1225## ----------- ##
1226
1227_ACEOF
1228
1229
1230# Keep a trace of the command line.
1231# Strip out --no-create and --no-recursion so they do not pile up.
1232# Strip out --silent because we don't want to record it for future runs.
1233# Also quote any args containing shell meta-characters.
1234# Make two passes to allow for proper duplicate-argument suppression.
1235ac_configure_args=
1236ac_configure_args0=
1237ac_configure_args1=
1238ac_sep=
1239ac_must_keep_next=false
1240for ac_pass in 1 2
1241do
1242 for ac_arg
1243 do
1244 case $ac_arg in
1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 continue ;;
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 esac
1252 case $ac_pass in
1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254 2)
1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256 if test $ac_must_keep_next = true; then
1257 ac_must_keep_next=false # Got value, back to normal.
1258 else
1259 case $ac_arg in
1260 *=* | --config-cache | -C | -disable-* | --disable-* \
1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263 | -with-* | --with-* | -without-* | --without-* | --x)
1264 case "$ac_configure_args0 " in
1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266 esac
1267 ;;
1268 -* ) ac_must_keep_next=true ;;
1269 esac
1270 fi
1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272 # Get rid of the leading space.
1273 ac_sep=" "
1274 ;;
1275 esac
1276 done
1277done
1278$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280
1281# When interrupted or exit'd, cleanup temporary files, and complete
1282# config.log. We remove comments because anyway the quotes in there
1283# would cause problems or look ugly.
1284# WARNING: Be sure not to use single quotes in there, as some shells,
1285# such as our DU 5.0 friend, will then `close' the trap.
1286trap 'exit_status=$?
1287 # Save into config.log some information that might help in debugging.
1288 {
1289 echo
1290
1291 cat <<\_ASBOX
1292## ---------------- ##
1293## Cache variables. ##
1294## ---------------- ##
1295_ASBOX
1296 echo
1297 # The following way of writing the cache mishandles newlines in values,
1298{
1299 (set) 2>&1 |
1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301 *ac_space=\ *)
1302 sed -n \
1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305 ;;
1306 *)
1307 sed -n \
1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ;;
1310 esac;
1311}
1312 echo
1313
1314 cat <<\_ASBOX
1315## ----------------- ##
1316## Output variables. ##
1317## ----------------- ##
1318_ASBOX
1319 echo
1320 for ac_var in $ac_subst_vars
1321 do
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1324 done | sort
1325 echo
1326
1327 if test -n "$ac_subst_files"; then
1328 cat <<\_ASBOX
1329## ------------- ##
1330## Output files. ##
1331## ------------- ##
1332_ASBOX
1333 echo
1334 for ac_var in $ac_subst_files
1335 do
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1338 done | sort
1339 echo
1340 fi
1341
1342 if test -s confdefs.h; then
1343 cat <<\_ASBOX
1344## ----------- ##
1345## confdefs.h. ##
1346## ----------- ##
1347_ASBOX
1348 echo
1349 sed "/^$/d" confdefs.h | sort
1350 echo
1351 fi
1352 test "$ac_signal" != 0 &&
1353 echo "$as_me: caught signal $ac_signal"
1354 echo "$as_me: exit $exit_status"
1355 } >&5
1356 rm -f core *.core &&
1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358 exit $exit_status
1359 ' 0
1360for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362done
1363ac_signal=0
1364
1365# confdefs.h avoids OS command line length limits that DEFS can exceed.
1366rm -rf conftest* confdefs.h
1367# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368echo >confdefs.h
1369
1370# Predefined preprocessor variables.
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_NAME "$PACKAGE_NAME"
1374_ACEOF
1375
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_VERSION "$PACKAGE_VERSION"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_STRING "$PACKAGE_STRING"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394_ACEOF
1395
1396
1397# Let the site file select an alternate cache file if it wants to.
1398# Prefer explicitly selected file to automatically selected ones.
1399if test -z "$CONFIG_SITE"; then
1400 if test "x$prefix" != xNONE; then
1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402 else
1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404 fi
1405fi
1406for ac_site_file in $CONFIG_SITE; do
1407 if test -r "$ac_site_file"; then
1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409echo "$as_me: loading site script $ac_site_file" >&6;}
1410 sed 's/^/| /' "$ac_site_file" >&5
1411 . "$ac_site_file"
1412 fi
1413done
1414
1415if test -r "$cache_file"; then
1416 # Some versions of bash will fail to source /dev/null (special
1417 # files actually), so we avoid doing that.
1418 if test -f "$cache_file"; then
1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420echo "$as_me: loading cache $cache_file" >&6;}
1421 case $cache_file in
1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
1423 *) . ./$cache_file;;
1424 esac
1425 fi
1426else
1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428echo "$as_me: creating cache $cache_file" >&6;}
1429 >$cache_file
1430fi
1431
1432# Check that the precious variables saved in the cache have kept the same
1433# value.
1434ac_cache_corrupted=false
1435for ac_var in `(set) 2>&1 |
1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438 eval ac_new_set=\$ac_env_${ac_var}_set
1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440 eval ac_new_val="\$ac_env_${ac_var}_value"
1441 case $ac_old_set,$ac_new_set in
1442 set,)
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1446 ,set)
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1450 ,);;
1451 *)
1452 if test "x$ac_old_val" != "x$ac_new_val"; then
1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1456echo "$as_me: former value: $ac_old_val" >&2;}
1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1458echo "$as_me: current value: $ac_new_val" >&2;}
1459 ac_cache_corrupted=:
1460 fi;;
1461 esac
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1464 case $ac_new_val in
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1468 esac
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 esac
1473 fi
1474done
1475if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480 { (exit 1); exit 1; }; }
1481fi
1482
1483ac_ext=c
1484ac_cpp='$CPP $CPPFLAGS'
1485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518## ------------------------------- ##
1519## Libltdl specific configuration. ##
1520## ------------------------------- ##
1521
1522ac_aux_dir=
1523for ac_dir in . $srcdir/.; do
1524 if test -f $ac_dir/install-sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install-sh -c"
1527 break
1528 elif test -f $ac_dir/install.sh; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install.sh -c"
1531 break
1532 elif test -f $ac_dir/shtool; then
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 break
1536 fi
1537done
1538if test -z "$ac_aux_dir"; then
1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1540echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1541 { (exit 1); exit 1; }; }
1542fi
1543ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546
1547
1548if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1549 if test -f ${srcdir}/ltmain.sh; then
1550 # if libltdl is libtoolized, it is assumed to be stand-alone and
1551 # installed unless the command line overrides it (tested above)
1552 enable_ltdl_install=yes
1553 else
1554 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1555echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1556 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1557echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1558 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1559echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1560 { (exit 1); exit 1; }; }
1561 fi
1562fi
1563
1564
1565## ------------------------ ##
1566## Automake Initialisation. ##
1567## ------------------------ ##
1568am__api_version="1.9"
1569# Find a good install program. We prefer a C program (faster),
1570# so one script is as good as another. But avoid the broken or
1571# incompatible versions:
1572# SysV /etc/install, /usr/sbin/install
1573# SunOS /usr/etc/install
1574# IRIX /sbin/install
1575# AIX /bin/install
1576# AmigaOS /C/install, which installs bootblocks on floppy discs
1577# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1578# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1579# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1580# OS/2's system install, which has a completely different semantic
1581# ./install, which can be erroneously created by make from ./install.sh.
1582echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1583echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1584if test -z "$INSTALL"; then
1585if test "${ac_cv_path_install+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1587else
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589for as_dir in $PATH
1590do
1591 IFS=$as_save_IFS
1592 test -z "$as_dir" && as_dir=.
1593 # Account for people who put trailing slashes in PATH elements.
1594case $as_dir/ in
1595 ./ | .// | /cC/* | \
1596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1597 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1598 /usr/ucb/* ) ;;
1599 *)
1600 # OSF1 and SCO ODT 3.0 have their own names for install.
1601 # Don't use installbsd from OSF since it installs stuff as root
1602 # by default.
1603 for ac_prog in ginstall scoinst install; do
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1606 if test $ac_prog = install &&
1607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608 # AIX install. It has an incompatible calling convention.
1609 :
1610 elif test $ac_prog = install &&
1611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1612 # program-specific install script used by HP pwplus--don't use.
1613 :
1614 else
1615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1616 break 3
1617 fi
1618 fi
1619 done
1620 done
1621 ;;
1622esac
1623done
1624
1625
1626fi
1627 if test "${ac_cv_path_install+set}" = set; then
1628 INSTALL=$ac_cv_path_install
1629 else
1630 # As a last resort, use the slow shell script. We don't cache a
1631 # path for INSTALL within a source directory, because that will
1632 # break other packages using the cache if that directory is
1633 # removed, or if the path is relative.
1634 INSTALL=$ac_install_sh
1635 fi
1636fi
1637echo "$as_me:$LINENO: result: $INSTALL" >&5
1638echo "${ECHO_T}$INSTALL" >&6
1639
1640# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1641# It thinks the first close brace ends the variable substitution.
1642test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1643
1644test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1645
1646test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1647
1648echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1649echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1650# Just in case
1651sleep 1
1652echo timestamp > conftest.file
1653# Do `set' in a subshell so we don't clobber the current shell's
1654# arguments. Must try -L first in case configure is actually a
1655# symlink; some systems play weird games with the mod time of symlinks
1656# (eg FreeBSD returns the mod time of the symlink's containing
1657# directory).
1658if (
1659 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1660 if test "$*" = "X"; then
1661 # -L didn't work.
1662 set X `ls -t $srcdir/configure conftest.file`
1663 fi
1664 rm -f conftest.file
1665 if test "$*" != "X $srcdir/configure conftest.file" \
1666 && test "$*" != "X conftest.file $srcdir/configure"; then
1667
1668 # If neither matched, then we have a broken ls. This can happen
1669 # if, for instance, CONFIG_SHELL is bash and it inherits a
1670 # broken ls alias from the environment. This has actually
1671 # happened. Such a system could not be considered "sane".
1672 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1673alias in your environment" >&5
1674echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1675alias in your environment" >&2;}
1676 { (exit 1); exit 1; }; }
1677 fi
1678
1679 test "$2" = conftest.file
1680 )
1681then
1682 # Ok.
1683 :
1684else
1685 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1686Check your system clock" >&5
1687echo "$as_me: error: newly created file is older than distributed files!
1688Check your system clock" >&2;}
1689 { (exit 1); exit 1; }; }
1690fi
1691echo "$as_me:$LINENO: result: yes" >&5
1692echo "${ECHO_T}yes" >&6
1693test "$program_prefix" != NONE &&
1694 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1695# Use a double $ so make ignores it.
1696test "$program_suffix" != NONE &&
1697 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1698# Double any \ or $. echo might interpret backslashes.
1699# By default was `s,x,x', remove it if useless.
1700cat <<\_ACEOF >conftest.sed
1701s/[\\$]/&&/g;s/;s,x,x,$//
1702_ACEOF
1703program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1704rm conftest.sed
1705
1706# expand $ac_aux_dir to an absolute path
1707am_aux_dir=`cd $ac_aux_dir && pwd`
1708
1709test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1710# Use eval to expand $SHELL
1711if eval "$MISSING --run true"; then
1712 am_missing_run="$MISSING --run "
1713else
1714 am_missing_run=
1715 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1716echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1717fi
1718
1719if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1720 # We used to keeping the `.' as first argument, in order to
1721 # allow $(mkdir_p) to be used without argument. As in
1722 # $(mkdir_p) $(somedir)
1723 # where $(somedir) is conditionally defined. However this is wrong
1724 # for two reasons:
1725 # 1. if the package is installed by a user who cannot write `.'
1726 # make install will fail,
1727 # 2. the above comment should most certainly read
1728 # $(mkdir_p) $(DESTDIR)$(somedir)
1729 # so it does not work when $(somedir) is undefined and
1730 # $(DESTDIR) is not.
1731 # To support the latter case, we have to write
1732 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1733 # so the `.' trick is pointless.
1734 mkdir_p='mkdir -p --'
1735else
1736 # On NextStep and OpenStep, the `mkdir' command does not
1737 # recognize any option. It will interpret all options as
1738 # directories to create, and then abort because `.' already
1739 # exists.
1740 for d in ./-p ./--version;
1741 do
1742 test -d $d && rmdir $d
1743 done
1744 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1745 if test -f "$ac_aux_dir/mkinstalldirs"; then
1746 mkdir_p='$(mkinstalldirs)'
1747 else
1748 mkdir_p='$(install_sh) -d'
1749 fi
1750fi
1751
1752for ac_prog in gawk mawk nawk awk
1753do
1754 # Extract the first word of "$ac_prog", so it can be a program name with args.
1755set dummy $ac_prog; ac_word=$2
1756echo "$as_me:$LINENO: checking for $ac_word" >&5
1757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758if test "${ac_cv_prog_AWK+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761 if test -n "$AWK"; then
1762 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1763else
1764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765for as_dir in $PATH
1766do
1767 IFS=$as_save_IFS
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771 ac_cv_prog_AWK="$ac_prog"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 break 2
1774 fi
1775done
1776done
1777
1778fi
1779fi
1780AWK=$ac_cv_prog_AWK
1781if test -n "$AWK"; then
1782 echo "$as_me:$LINENO: result: $AWK" >&5
1783echo "${ECHO_T}$AWK" >&6
1784else
1785 echo "$as_me:$LINENO: result: no" >&5
1786echo "${ECHO_T}no" >&6
1787fi
1788
1789 test -n "$AWK" && break
1790done
1791
1792echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1793echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1794set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1795if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1797else
1798 cat >conftest.make <<\_ACEOF
1799all:
1800 @echo 'ac_maketemp="$(MAKE)"'
1801_ACEOF
1802# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1803eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1804if test -n "$ac_maketemp"; then
1805 eval ac_cv_prog_make_${ac_make}_set=yes
1806else
1807 eval ac_cv_prog_make_${ac_make}_set=no
1808fi
1809rm -f conftest.make
1810fi
1811if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1812 echo "$as_me:$LINENO: result: yes" >&5
1813echo "${ECHO_T}yes" >&6
1814 SET_MAKE=
1815else
1816 echo "$as_me:$LINENO: result: no" >&5
1817echo "${ECHO_T}no" >&6
1818 SET_MAKE="MAKE=${MAKE-make}"
1819fi
1820
1821rm -rf .tst 2>/dev/null
1822mkdir .tst 2>/dev/null
1823if test -d .tst; then
1824 am__leading_dot=.
1825else
1826 am__leading_dot=_
1827fi
1828rmdir .tst 2>/dev/null
1829
1830# test to see if srcdir already configured
1831if test "`cd $srcdir && pwd`" != "`pwd`" &&
1832 test -f $srcdir/config.status; then
1833 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1834echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1835 { (exit 1); exit 1; }; }
1836fi
1837
1838# test whether we have cygpath
1839if test -z "$CYGPATH_W"; then
1840 if (cygpath --version) >/dev/null 2>/dev/null; then
1841 CYGPATH_W='cygpath -w'
1842 else
1843 CYGPATH_W=echo
1844 fi
1845fi
1846
1847
1848# Define the identity of the package.
1849 PACKAGE=libltdl
1850 VERSION=1.2
1851
1852
1853# Some tools Automake needs.
1854
1855ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1856
1857
1858AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1859
1860
1861AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1862
1863
1864AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1865
1866
1867MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1868
1869install_sh=${install_sh-"$am_aux_dir/install-sh"}
1870
1871# Installed binaries are usually stripped using `strip' when the user
1872# run `make install-strip'. However `strip' might not be the right
1873# tool to use in cross-compilation environments, therefore Automake
1874# will honor the `STRIP' environment variable to overrule this program.
1875if test "$cross_compiling" != no; then
1876 if test -n "$ac_tool_prefix"; then
1877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1878set dummy ${ac_tool_prefix}strip; ac_word=$2
1879echo "$as_me:$LINENO: checking for $ac_word" >&5
1880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881if test "${ac_cv_prog_STRIP+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1883else
1884 if test -n "$STRIP"; then
1885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1886else
1887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888for as_dir in $PATH
1889do
1890 IFS=$as_save_IFS
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896 break 2
1897 fi
1898done
1899done
1900
1901fi
1902fi
1903STRIP=$ac_cv_prog_STRIP
1904if test -n "$STRIP"; then
1905 echo "$as_me:$LINENO: result: $STRIP" >&5
1906echo "${ECHO_T}$STRIP" >&6
1907else
1908 echo "$as_me:$LINENO: result: no" >&5
1909echo "${ECHO_T}no" >&6
1910fi
1911
1912fi
1913if test -z "$ac_cv_prog_STRIP"; then
1914 ac_ct_STRIP=$STRIP
1915 # Extract the first word of "strip", so it can be a program name with args.
1916set dummy strip; ac_word=$2
1917echo "$as_me:$LINENO: checking for $ac_word" >&5
1918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921else
1922 if test -n "$ac_ct_STRIP"; then
1923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1924else
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_ac_ct_STRIP="strip"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 break 2
1935 fi
1936done
1937done
1938
1939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1940fi
1941fi
1942ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1943if test -n "$ac_ct_STRIP"; then
1944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1945echo "${ECHO_T}$ac_ct_STRIP" >&6
1946else
1947 echo "$as_me:$LINENO: result: no" >&5
1948echo "${ECHO_T}no" >&6
1949fi
1950
1951 STRIP=$ac_ct_STRIP
1952else
1953 STRIP="$ac_cv_prog_STRIP"
1954fi
1955
1956fi
1957INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1958
1959# We need awk for the "check" target. The system "awk" is bad on
1960# some platforms.
1961# Always define AMTAR for backward compatibility.
1962
1963AMTAR=${AMTAR-"${am_missing_run}tar"}
1964
1965am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1966
1967
1968
1969
1970
1971 ac_config_headers="$ac_config_headers config.h:config-h.in"
1972
1973echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1974echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1975 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1976if test "${enable_maintainer_mode+set}" = set; then
1977 enableval="$enable_maintainer_mode"
1978 USE_MAINTAINER_MODE=$enableval
1979else
1980 USE_MAINTAINER_MODE=no
1981fi;
1982 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1983echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1984
1985
1986if test $USE_MAINTAINER_MODE = yes; then
1987 MAINTAINER_MODE_TRUE=
1988 MAINTAINER_MODE_FALSE='#'
1989else
1990 MAINTAINER_MODE_TRUE='#'
1991 MAINTAINER_MODE_FALSE=
1992fi
1993
1994 MAINT=$MAINTAINER_MODE_TRUE
1995
1996
1997
1998
1999## ------------------ ##
2000## C compiler checks. ##
2001## ------------------ ##
2002ac_ext=c
2003ac_cpp='$CPP $CPPFLAGS'
2004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2009set dummy ${ac_tool_prefix}gcc; ac_word=$2
2010echo "$as_me:$LINENO: checking for $ac_word" >&5
2011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2017else
2018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019for as_dir in $PATH
2020do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 break 2
2028 fi
2029done
2030done
2031
2032fi
2033fi
2034CC=$ac_cv_prog_CC
2035if test -n "$CC"; then
2036 echo "$as_me:$LINENO: result: $CC" >&5
2037echo "${ECHO_T}$CC" >&6
2038else
2039 echo "$as_me:$LINENO: result: no" >&5
2040echo "${ECHO_T}no" >&6
2041fi
2042
2043fi
2044if test -z "$ac_cv_prog_CC"; then
2045 ac_ct_CC=$CC
2046 # Extract the first word of "gcc", so it can be a program name with args.
2047set dummy gcc; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_CC="gcc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2
2066 fi
2067done
2068done
2069
2070fi
2071fi
2072ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073if test -n "$ac_ct_CC"; then
2074 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075echo "${ECHO_T}$ac_ct_CC" >&6
2076else
2077 echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
2079fi
2080
2081 CC=$ac_ct_CC
2082else
2083 CC="$ac_cv_prog_CC"
2084fi
2085
2086if test -z "$CC"; then
2087 if test -n "$ac_tool_prefix"; then
2088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2089set dummy ${ac_tool_prefix}cc; ac_word=$2
2090echo "$as_me:$LINENO: checking for $ac_word" >&5
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092if test "${ac_cv_prog_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095 if test -n "$CC"; then
2096 ac_cv_prog_CC="$CC" # Let the user override the test.
2097else
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_CC="${ac_tool_prefix}cc"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 break 2
2108 fi
2109done
2110done
2111
2112fi
2113fi
2114CC=$ac_cv_prog_CC
2115if test -n "$CC"; then
2116 echo "$as_me:$LINENO: result: $CC" >&5
2117echo "${ECHO_T}$CC" >&6
2118else
2119 echo "$as_me:$LINENO: result: no" >&5
2120echo "${ECHO_T}no" >&6
2121fi
2122
2123fi
2124if test -z "$ac_cv_prog_CC"; then
2125 ac_ct_CC=$CC
2126 # Extract the first word of "cc", so it can be a program name with args.
2127set dummy cc; ac_word=$2
2128echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133 if test -n "$ac_ct_CC"; then
2134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2135else
2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143 ac_cv_prog_ac_ct_CC="cc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2146 fi
2147done
2148done
2149
2150fi
2151fi
2152ac_ct_CC=$ac_cv_prog_ac_ct_CC
2153if test -n "$ac_ct_CC"; then
2154 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2155echo "${ECHO_T}$ac_ct_CC" >&6
2156else
2157 echo "$as_me:$LINENO: result: no" >&5
2158echo "${ECHO_T}no" >&6
2159fi
2160
2161 CC=$ac_ct_CC
2162else
2163 CC="$ac_cv_prog_CC"
2164fi
2165
2166fi
2167if test -z "$CC"; then
2168 # Extract the first word of "cc", so it can be a program name with args.
2169set dummy cc; ac_word=$2
2170echo "$as_me:$LINENO: checking for $ac_word" >&5
2171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172if test "${ac_cv_prog_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2174else
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
2177else
2178 ac_prog_rejected=no
2179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180for as_dir in $PATH
2181do
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2187 ac_prog_rejected=yes
2188 continue
2189 fi
2190 ac_cv_prog_CC="cc"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2193 fi
2194done
2195done
2196
2197if test $ac_prog_rejected = yes; then
2198 # We found a bogon in the path, so make sure we never use it.
2199 set dummy $ac_cv_prog_CC
2200 shift
2201 if test $# != 0; then
2202 # We chose a different compiler from the bogus one.
2203 # However, it has the same basename, so the bogon will be chosen
2204 # first if we set CC to just the basename; use the full file name.
2205 shift
2206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2207 fi
2208fi
2209fi
2210fi
2211CC=$ac_cv_prog_CC
2212if test -n "$CC"; then
2213 echo "$as_me:$LINENO: result: $CC" >&5
2214echo "${ECHO_T}$CC" >&6
2215else
2216 echo "$as_me:$LINENO: result: no" >&5
2217echo "${ECHO_T}no" >&6
2218fi
2219
2220fi
2221if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
2223 for ac_prog in cl
2224 do
2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2227echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234else
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2245 fi
2246done
2247done
2248
2249fi
2250fi
2251CC=$ac_cv_prog_CC
2252if test -n "$CC"; then
2253 echo "$as_me:$LINENO: result: $CC" >&5
2254echo "${ECHO_T}$CC" >&6
2255else
2256 echo "$as_me:$LINENO: result: no" >&5
2257echo "${ECHO_T}no" >&6
2258fi
2259
2260 test -n "$CC" && break
2261 done
2262fi
2263if test -z "$CC"; then
2264 ac_ct_CC=$CC
2265 for ac_prog in cl
2266do
2267 # Extract the first word of "$ac_prog", so it can be a program name with args.
2268set dummy $ac_prog; ac_word=$2
2269echo "$as_me:$LINENO: checking for $ac_word" >&5
2270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273else
2274 if test -n "$ac_ct_CC"; then
2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2276else
2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_ac_ct_CC="$ac_prog"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2287 fi
2288done
2289done
2290
2291fi
2292fi
2293ac_ct_CC=$ac_cv_prog_ac_ct_CC
2294if test -n "$ac_ct_CC"; then
2295 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2296echo "${ECHO_T}$ac_ct_CC" >&6
2297else
2298 echo "$as_me:$LINENO: result: no" >&5
2299echo "${ECHO_T}no" >&6
2300fi
2301
2302 test -n "$ac_ct_CC" && break
2303done
2304
2305 CC=$ac_ct_CC
2306fi
2307
2308fi
2309
2310
2311test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2312See \`config.log' for more details." >&5
2313echo "$as_me: error: no acceptable C compiler found in \$PATH
2314See \`config.log' for more details." >&2;}
2315 { (exit 1); exit 1; }; }
2316
2317# Provide some information about the compiler.
2318echo "$as_me:$LINENO:" \
2319 "checking for C compiler version" >&5
2320ac_compiler=`set X $ac_compile; echo $2`
2321{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2322 (eval $ac_compiler --version </dev/null >&5) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2326{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2327 (eval $ac_compiler -v </dev/null >&5) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2332 (eval $ac_compiler -V </dev/null >&5) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2336
2337cat >conftest.$ac_ext <<_ACEOF
2338/* confdefs.h. */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h. */
2343
2344int
2345main ()
2346{
2347
2348 ;
2349 return 0;
2350}
2351_ACEOF
2352ac_clean_files_save=$ac_clean_files
2353ac_clean_files="$ac_clean_files a.out a.exe b.out"
2354# Try to create an executable without -o first, disregard a.out.
2355# It will help us diagnose broken compilers, and finding out an intuition
2356# of exeext.
2357echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2358echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2359ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2360if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2361 (eval $ac_link_default) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; then
2365 # Find the output, starting from the most likely. This scheme is
2366# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2367# resort.
2368
2369# Be careful to initialize this variable, since it used to be cached.
2370# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2371ac_cv_exeext=
2372# b.out is created by i960 compilers.
2373for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2374do
2375 test -f "$ac_file" || continue
2376 case $ac_file in
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2378 ;;
2379 conftest.$ac_ext )
2380 # This is the source file.
2381 ;;
2382 [ab].out )
2383 # We found the default executable, but exeext='' is most
2384 # certainly right.
2385 break;;
2386 *.* )
2387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2388 # FIXME: I believe we export ac_cv_exeext for Libtool,
2389 # but it would be cool to find out if it's true. Does anybody
2390 # maintain Libtool? --akim.
2391 export ac_cv_exeext
2392 break;;
2393 * )
2394 break;;
2395 esac
2396done
2397else
2398 echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2402See \`config.log' for more details." >&5
2403echo "$as_me: error: C compiler cannot create executables
2404See \`config.log' for more details." >&2;}
2405 { (exit 77); exit 77; }; }
2406fi
2407
2408ac_exeext=$ac_cv_exeext
2409echo "$as_me:$LINENO: result: $ac_file" >&5
2410echo "${ECHO_T}$ac_file" >&6
2411
2412# Check the compiler produces executables we can run. If not, either
2413# the compiler is broken, or we cross compile.
2414echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2415echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2416# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2417# If not cross compiling, check that we can run a simple program.
2418if test "$cross_compiling" != yes; then
2419 if { ac_try='./$ac_file'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2425 cross_compiling=no
2426 else
2427 if test "$cross_compiling" = maybe; then
2428 cross_compiling=yes
2429 else
2430 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2431If you meant to cross compile, use \`--host'.
2432See \`config.log' for more details." >&5
2433echo "$as_me: error: cannot run C compiled programs.
2434If you meant to cross compile, use \`--host'.
2435See \`config.log' for more details." >&2;}
2436 { (exit 1); exit 1; }; }
2437 fi
2438 fi
2439fi
2440echo "$as_me:$LINENO: result: yes" >&5
2441echo "${ECHO_T}yes" >&6
2442
2443rm -f a.out a.exe conftest$ac_cv_exeext b.out
2444ac_clean_files=$ac_clean_files_save
2445# Check the compiler produces executables we can run. If not, either
2446# the compiler is broken, or we cross compile.
2447echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2448echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2449echo "$as_me:$LINENO: result: $cross_compiling" >&5
2450echo "${ECHO_T}$cross_compiling" >&6
2451
2452echo "$as_me:$LINENO: checking for suffix of executables" >&5
2453echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2455 (eval $ac_link) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2460# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2461# work properly (i.e., refer to `conftest.exe'), while it won't with
2462# `rm'.
2463for ac_file in conftest.exe conftest conftest.*; do
2464 test -f "$ac_file" || continue
2465 case $ac_file in
2466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2468 export ac_cv_exeext
2469 break;;
2470 * ) break;;
2471 esac
2472done
2473else
2474 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2475See \`config.log' for more details." >&5
2476echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2477See \`config.log' for more details." >&2;}
2478 { (exit 1); exit 1; }; }
2479fi
2480
2481rm -f conftest$ac_cv_exeext
2482echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2483echo "${ECHO_T}$ac_cv_exeext" >&6
2484
2485rm -f conftest.$ac_ext
2486EXEEXT=$ac_cv_exeext
2487ac_exeext=$EXEEXT
2488echo "$as_me:$LINENO: checking for suffix of object files" >&5
2489echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2490if test "${ac_cv_objext+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493 cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h. */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h. */
2499
2500int
2501main ()
2502{
2503
2504 ;
2505 return 0;
2506}
2507_ACEOF
2508rm -f conftest.o conftest.obj
2509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510 (eval $ac_compile) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; then
2514 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2515 case $ac_file in
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2518 break;;
2519 esac
2520done
2521else
2522 echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526See \`config.log' for more details." >&5
2527echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528See \`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }
2530fi
2531
2532rm -f conftest.$ac_cv_objext conftest.$ac_ext
2533fi
2534echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535echo "${ECHO_T}$ac_cv_objext" >&6
2536OBJEXT=$ac_cv_objext
2537ac_objext=$OBJEXT
2538echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2540if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543 cat >conftest.$ac_ext <<_ACEOF
2544/* confdefs.h. */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
2548/* end confdefs.h. */
2549
2550int
2551main ()
2552{
2553#ifndef __GNUC__
2554 choke me
2555#endif
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 ac_compiler_gnu=yes
2583else
2584 echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587ac_compiler_gnu=no
2588fi
2589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590ac_cv_c_compiler_gnu=$ac_compiler_gnu
2591
2592fi
2593echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2594echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2595GCC=`test $ac_compiler_gnu = yes && echo yes`
2596ac_test_CFLAGS=${CFLAGS+set}
2597ac_save_CFLAGS=$CFLAGS
2598CFLAGS="-g"
2599echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2600echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2601if test "${ac_cv_prog_cc_g+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603else
2604 cat >conftest.$ac_ext <<_ACEOF
2605/* confdefs.h. */
2606_ACEOF
2607cat confdefs.h >>conftest.$ac_ext
2608cat >>conftest.$ac_ext <<_ACEOF
2609/* end confdefs.h. */
2610
2611int
2612main ()
2613{
2614
2615 ;
2616 return 0;
2617}
2618_ACEOF
2619rm -f conftest.$ac_objext
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2640 ac_cv_prog_cc_g=yes
2641else
2642 echo "$as_me: failed program was:" >&5
2643sed 's/^/| /' conftest.$ac_ext >&5
2644
2645ac_cv_prog_cc_g=no
2646fi
2647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648fi
2649echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2650echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2651if test "$ac_test_CFLAGS" = set; then
2652 CFLAGS=$ac_save_CFLAGS
2653elif test $ac_cv_prog_cc_g = yes; then
2654 if test "$GCC" = yes; then
2655 CFLAGS="-g -O2"
2656 else
2657 CFLAGS="-g"
2658 fi
2659else
2660 if test "$GCC" = yes; then
2661 CFLAGS="-O2"
2662 else
2663 CFLAGS=
2664 fi
2665fi
2666echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2667echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2668if test "${ac_cv_prog_cc_stdc+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670else
2671 ac_cv_prog_cc_stdc=no
2672ac_save_CC=$CC
2673cat >conftest.$ac_ext <<_ACEOF
2674/* confdefs.h. */
2675_ACEOF
2676cat confdefs.h >>conftest.$ac_ext
2677cat >>conftest.$ac_ext <<_ACEOF
2678/* end confdefs.h. */
2679#include <stdarg.h>
2680#include <stdio.h>
2681#include <sys/types.h>
2682#include <sys/stat.h>
2683/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2684struct buf { int x; };
2685FILE * (*rcsopen) (struct buf *, struct stat *, int);
2686static char *e (p, i)
2687 char **p;
2688 int i;
2689{
2690 return p[i];
2691}
2692static char *f (char * (*g) (char **, int), char **p, ...)
2693{
2694 char *s;
2695 va_list v;
2696 va_start (v,p);
2697 s = g (p, va_arg (v,int));
2698 va_end (v);
2699 return s;
2700}
2701
2702/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2703 function prototypes and stuff, but not '\xHH' hex character constants.
2704 These don't provoke an error unfortunately, instead are silently treated
2705 as 'x'. The following induces an error, until -std1 is added to get
2706 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2707 array size at least. It's necessary to write '\x00'==0 to get something
2708 that's true only with -std1. */
2709int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2710
2711int test (int i, double x);
2712struct s1 {int (*f) (int a);};
2713struct s2 {int (*f) (double a);};
2714int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2715int argc;
2716char **argv;
2717int
2718main ()
2719{
2720return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2721 ;
2722 return 0;
2723}
2724_ACEOF
2725# Don't try gcc -ansi; that turns off useful extensions and
2726# breaks some systems' header files.
2727# AIX -qlanglvl=ansi
2728# Ultrix and OSF/1 -std1
2729# HP-UX 10.20 and later -Ae
2730# HP-UX older versions -Aa -D_HPUX_SOURCE
2731# SVR4 -Xc -D__EXTENSIONS__
2732for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2733do
2734 CC="$ac_save_CC $ac_arg"
2735 rm -f conftest.$ac_objext
2736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>conftest.er1
2738 ac_status=$?
2739 grep -v '^ *+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 ac_cv_prog_cc_stdc=$ac_arg
2757break
2758else
2759 echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762fi
2763rm -f conftest.err conftest.$ac_objext
2764done
2765rm -f conftest.$ac_ext conftest.$ac_objext
2766CC=$ac_save_CC
2767
2768fi
2769
2770case "x$ac_cv_prog_cc_stdc" in
2771 x|xno)
2772 echo "$as_me:$LINENO: result: none needed" >&5
2773echo "${ECHO_T}none needed" >&6 ;;
2774 *)
2775 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2776echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2777 CC="$CC $ac_cv_prog_cc_stdc" ;;
2778esac
2779
2780# Some people use a C++ compiler to compile C. Since we use `exit',
2781# in C++ we need to declare it. In case someone uses the same compiler
2782# for both compiling C and C++ we need to have the C++ compiler decide
2783# the declaration of exit, since it's the most demanding environment.
2784cat >conftest.$ac_ext <<_ACEOF
2785#ifndef __cplusplus
2786 choke me
2787#endif
2788_ACEOF
2789rm -f conftest.$ac_objext
2790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2792 ac_status=$?
2793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 (eval $ac_try) 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 for ac_declaration in \
2811 '' \
2812 'extern "C" void std::exit (int) throw (); using std::exit;' \
2813 'extern "C" void std::exit (int); using std::exit;' \
2814 'extern "C" void exit (int) throw ();' \
2815 'extern "C" void exit (int);' \
2816 'void exit (int);'
2817do
2818 cat >conftest.$ac_ext <<_ACEOF
2819/* confdefs.h. */
2820_ACEOF
2821cat confdefs.h >>conftest.$ac_ext
2822cat >>conftest.$ac_ext <<_ACEOF
2823/* end confdefs.h. */
2824$ac_declaration
2825#include <stdlib.h>
2826int
2827main ()
2828{
2829exit (42);
2830 ;
2831 return 0;
2832}
2833_ACEOF
2834rm -f conftest.$ac_objext
2835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836 (eval $ac_compile) 2>conftest.er1
2837 ac_status=$?
2838 grep -v '^ *+' conftest.er1 >conftest.err
2839 rm -f conftest.er1
2840 cat conftest.err >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 :
2856else
2857 echo "$as_me: failed program was:" >&5
2858sed 's/^/| /' conftest.$ac_ext >&5
2859
2860continue
2861fi
2862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2863 cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h. */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h. */
2869$ac_declaration
2870int
2871main ()
2872{
2873exit (42);
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext
2879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 (eval $ac_try) 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 break
2900else
2901 echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904fi
2905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906done
2907rm -f conftest*
2908if test -n "$ac_declaration"; then
2909 echo '#ifdef __cplusplus' >>confdefs.h
2910 echo $ac_declaration >>confdefs.h
2911 echo '#endif' >>confdefs.h
2912fi
2913
2914else
2915 echo "$as_me: failed program was:" >&5
2916sed 's/^/| /' conftest.$ac_ext >&5
2917
2918fi
2919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2920ac_ext=c
2921ac_cpp='$CPP $CPPFLAGS'
2922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925DEPDIR="${am__leading_dot}deps"
2926
2927 ac_config_commands="$ac_config_commands depfiles"
2928
2929
2930am_make=${MAKE-make}
2931cat > confinc << 'END'
2932am__doit:
2933 @echo done
2934.PHONY: am__doit
2935END
2936# If we don't find an include directive, just comment out the code.
2937echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2938echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2939am__include="#"
2940am__quote=
2941_am_result=none
2942# First try GNU make style include.
2943echo "include confinc" > confmf
2944# We grep out `Entering directory' and `Leaving directory'
2945# messages which can occur if `w' ends up in MAKEFLAGS.
2946# In particular we don't look at `^make:' because GNU make might
2947# be invoked under some other name (usually "gmake"), in which
2948# case it prints its new name instead of `make'.
2949if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2950 am__include=include
2951 am__quote=
2952 _am_result=GNU
2953fi
2954# Now try BSD make style include.
2955if test "$am__include" = "#"; then
2956 echo '.include "confinc"' > confmf
2957 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2958 am__include=.include
2959 am__quote="\""
2960 _am_result=BSD
2961 fi
2962fi
2963
2964
2965echo "$as_me:$LINENO: result: $_am_result" >&5
2966echo "${ECHO_T}$_am_result" >&6
2967rm -f confinc confmf
2968
2969# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2970if test "${enable_dependency_tracking+set}" = set; then
2971 enableval="$enable_dependency_tracking"
2972
2973fi;
2974if test "x$enable_dependency_tracking" != xno; then
2975 am_depcomp="$ac_aux_dir/depcomp"
2976 AMDEPBACKSLASH='\'
2977fi
2978
2979
2980if test "x$enable_dependency_tracking" != xno; then
2981 AMDEP_TRUE=
2982 AMDEP_FALSE='#'
2983else
2984 AMDEP_TRUE='#'
2985 AMDEP_FALSE=
2986fi
2987
2988
2989
2990
2991depcc="$CC" am_compiler_list=
2992
2993echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2994echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2995if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997else
2998 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2999 # We make a subdir and do the tests there. Otherwise we can end up
3000 # making bogus files that we don't know about and never remove. For
3001 # instance it was reported that on HP-UX the gcc test will end up
3002 # making a dummy file named `D' -- because `-MD' means `put the output
3003 # in D'.
3004 mkdir conftest.dir
3005 # Copy depcomp to subdir because otherwise we won't find it if we're
3006 # using a relative directory.
3007 cp "$am_depcomp" conftest.dir
3008 cd conftest.dir
3009 # We will build objects and dependencies in a subdirectory because
3010 # it helps to detect inapplicable dependency modes. For instance
3011 # both Tru64's cc and ICC support -MD to output dependencies as a
3012 # side effect of compilation, but ICC will put the dependencies in
3013 # the current directory while Tru64 will put them in the object
3014 # directory.
3015 mkdir sub
3016
3017 am_cv_CC_dependencies_compiler_type=none
3018 if test "$am_compiler_list" = ""; then
3019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3020 fi
3021 for depmode in $am_compiler_list; do
3022 # Setup a source with many dependencies, because some compilers
3023 # like to wrap large dependency lists on column 80 (with \), and
3024 # we should not choose a depcomp mode which is confused by this.
3025 #
3026 # We need to recreate these files for each test, as the compiler may
3027 # overwrite some of them when testing with obscure command lines.
3028 # This happens at least with the AIX C compiler.
3029 : > sub/conftest.c
3030 for i in 1 2 3 4 5 6; do
3031 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3032 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3033 # Solaris 8's {/usr,}/bin/sh.
3034 touch sub/conftst$i.h
3035 done
3036 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3037
3038 case $depmode in
3039 nosideeffect)
3040 # after this tag, mechanisms are not by side-effect, so they'll
3041 # only be used when explicitly requested
3042 if test "x$enable_dependency_tracking" = xyes; then
3043 continue
3044 else
3045 break
3046 fi
3047 ;;
3048 none) break ;;
3049 esac
3050 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3051 # mode. It turns out that the SunPro C++ compiler does not properly
3052 # handle `-M -o', and we need to detect this.
3053 if depmode=$depmode \
3054 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3056 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3057 >/dev/null 2>conftest.err &&
3058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3059 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3061 # icc doesn't choke on unknown options, it will just issue warnings
3062 # or remarks (even with -Werror). So we grep stderr for any message
3063 # that says an option was ignored or not supported.
3064 # When given -MP, icc 7.0 and 7.1 complain thusly:
3065 # icc: Command line warning: ignoring option '-M'; no argument required
3066 # The diagnosis changed in icc 8.0:
3067 # icc: Command line remark: option '-MP' not supported
3068 if (grep 'ignoring option' conftest.err ||
3069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3070 am_cv_CC_dependencies_compiler_type=$depmode
3071 break
3072 fi
3073 fi
3074 done
3075
3076 cd ..
3077 rm -rf conftest.dir
3078else
3079 am_cv_CC_dependencies_compiler_type=none
3080fi
3081
3082fi
3083echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3084echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3085CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3086
3087
3088
3089if
3090 test "x$enable_dependency_tracking" != xno \
3091 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3092 am__fastdepCC_TRUE=
3093 am__fastdepCC_FALSE='#'
3094else
3095 am__fastdepCC_TRUE='#'
3096 am__fastdepCC_FALSE=
3097fi
3098
3099
3100
3101echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3102echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3103if test "${ac_cv_c_const+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105else
3106 cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h. */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h. */
3112
3113int
3114main ()
3115{
3116/* FIXME: Include the comments suggested by Paul. */
3117#ifndef __cplusplus
3118 /* Ultrix mips cc rejects this. */
3119 typedef int charset[2];
3120 const charset x;
3121 /* SunOS 4.1.1 cc rejects this. */
3122 char const *const *ccp;
3123 char **p;
3124 /* NEC SVR4.0.2 mips cc rejects this. */
3125 struct point {int x, y;};
3126 static struct point const zero = {0,0};
3127 /* AIX XL C 1.02.0.0 rejects this.
3128 It does not let you subtract one const X* pointer from another in
3129 an arm of an if-expression whose if-part is not a constant
3130 expression */
3131 const char *g = "string";
3132 ccp = &g + (g ? g-g : 0);
3133 /* HPUX 7.0 cc rejects these. */
3134 ++ccp;
3135 p = (char**) ccp;
3136 ccp = (char const *const *) p;
3137 { /* SCO 3.2v4 cc rejects this. */
3138 char *t;
3139 char const *s = 0 ? (char *) 0 : (char const *) 0;
3140
3141 *t++ = 0;
3142 }
3143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3144 int x[] = {25, 17};
3145 const int *foo = &x[0];
3146 ++foo;
3147 }
3148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3149 typedef const int *iptr;
3150 iptr p = 0;
3151 ++p;
3152 }
3153 { /* AIX XL C 1.02.0.0 rejects this saying
3154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3155 struct s { int j; const int *ap[3]; };
3156 struct s *b; b->j = 5;
3157 }
3158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3159 const int foo = 10;
3160 }
3161#endif
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext
3168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169 (eval $ac_compile) 2>conftest.er1
3170 ac_status=$?
3171 grep -v '^ *+' conftest.er1 >conftest.err
3172 rm -f conftest.er1
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; } &&
3182 { ac_try='test -s conftest.$ac_objext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 ac_cv_c_const=yes
3189else
3190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193ac_cv_c_const=no
3194fi
3195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3196fi
3197echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3198echo "${ECHO_T}$ac_cv_c_const" >&6
3199if test $ac_cv_c_const = no; then
3200
3201cat >>confdefs.h <<\_ACEOF
3202#define const
3203_ACEOF
3204
3205fi
3206
3207echo "$as_me:$LINENO: checking for inline" >&5
3208echo $ECHO_N "checking for inline... $ECHO_C" >&6
3209if test "${ac_cv_c_inline+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211else
3212 ac_cv_c_inline=no
3213for ac_kw in inline __inline__ __inline; do
3214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220#ifndef __cplusplus
3221typedef int foo_t;
3222static $ac_kw foo_t static_foo () {return 0; }
3223$ac_kw foo_t foo () {return 0; }
3224#endif
3225
3226_ACEOF
3227rm -f conftest.$ac_objext
3228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 (eval $ac_try) 2>&5
3239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; } &&
3242 { ac_try='test -s conftest.$ac_objext'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 ac_cv_c_inline=$ac_kw; break
3249else
3250 echo "$as_me: failed program was:" >&5
3251sed 's/^/| /' conftest.$ac_ext >&5
3252
3253fi
3254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3255done
3256
3257fi
3258echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3259echo "${ECHO_T}$ac_cv_c_inline" >&6
3260
3261
3262case $ac_cv_c_inline in
3263 inline | yes) ;;
3264 *)
3265 case $ac_cv_c_inline in
3266 no) ac_val=;;
3267 *) ac_val=$ac_cv_c_inline;;
3268 esac
3269 cat >>confdefs.h <<_ACEOF
3270#ifndef __cplusplus
3271#define inline $ac_val
3272#endif
3273_ACEOF
3274 ;;
3275esac
3276
3277
3278
3279## ----------------------- ##
3280## Libtool initialisation. ##
3281## ----------------------- ##
3282
3283
3284# Check whether --enable-shared or --disable-shared was given.
3285if test "${enable_shared+set}" = set; then
3286 enableval="$enable_shared"
3287 p=${PACKAGE-default}
3288 case $enableval in
3289 yes) enable_shared=yes ;;
3290 no) enable_shared=no ;;
3291 *)
3292 enable_shared=no
3293 # Look at the argument we got. We use all the common list separators.
3294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3295 for pkg in $enableval; do
3296 IFS="$lt_save_ifs"
3297 if test "X$pkg" = "X$p"; then
3298 enable_shared=yes
3299 fi
3300 done
3301 IFS="$lt_save_ifs"
3302 ;;
3303 esac
3304else
3305 enable_shared=yes
3306fi;
3307
3308# Check whether --enable-static or --disable-static was given.
3309if test "${enable_static+set}" = set; then
3310 enableval="$enable_static"
3311 p=${PACKAGE-default}
3312 case $enableval in
3313 yes) enable_static=yes ;;
3314 no) enable_static=no ;;
3315 *)
3316 enable_static=no
3317 # Look at the argument we got. We use all the common list separators.
3318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3319 for pkg in $enableval; do
3320 IFS="$lt_save_ifs"
3321 if test "X$pkg" = "X$p"; then
3322 enable_static=yes
3323 fi
3324 done
3325 IFS="$lt_save_ifs"
3326 ;;
3327 esac
3328else
3329 enable_static=yes
3330fi;
3331
3332# Check whether --enable-fast-install or --disable-fast-install was given.
3333if test "${enable_fast_install+set}" = set; then
3334 enableval="$enable_fast_install"
3335 p=${PACKAGE-default}
3336 case $enableval in
3337 yes) enable_fast_install=yes ;;
3338 no) enable_fast_install=no ;;
3339 *)
3340 enable_fast_install=no
3341 # Look at the argument we got. We use all the common list separators.
3342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3343 for pkg in $enableval; do
3344 IFS="$lt_save_ifs"
3345 if test "X$pkg" = "X$p"; then
3346 enable_fast_install=yes
3347 fi
3348 done
3349 IFS="$lt_save_ifs"
3350 ;;
3351 esac
3352else
3353 enable_fast_install=yes
3354fi;
3355
3356# Make sure we can run config.sub.
3357$ac_config_sub sun4 >/dev/null 2>&1 ||
3358 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3359echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3360 { (exit 1); exit 1; }; }
3361
3362echo "$as_me:$LINENO: checking build system type" >&5
3363echo $ECHO_N "checking build system type... $ECHO_C" >&6
3364if test "${ac_cv_build+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366else
3367 ac_cv_build_alias=$build_alias
3368test -z "$ac_cv_build_alias" &&
3369 ac_cv_build_alias=`$ac_config_guess`
3370test -z "$ac_cv_build_alias" &&
3371 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3372echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3373 { (exit 1); exit 1; }; }
3374ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3375 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3376echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3377 { (exit 1); exit 1; }; }
3378
3379fi
3380echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3381echo "${ECHO_T}$ac_cv_build" >&6
3382build=$ac_cv_build
3383build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3384build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3385build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3386
3387
3388echo "$as_me:$LINENO: checking host system type" >&5
3389echo $ECHO_N "checking host system type... $ECHO_C" >&6
3390if test "${ac_cv_host+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392else
3393 ac_cv_host_alias=$host_alias
3394test -z "$ac_cv_host_alias" &&
3395 ac_cv_host_alias=$ac_cv_build_alias
3396ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3397 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3398echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3399 { (exit 1); exit 1; }; }
3400
3401fi
3402echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3403echo "${ECHO_T}$ac_cv_host" >&6
3404host=$ac_cv_host
3405host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3406host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3407host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3408
3409
3410echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3411echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3412if test "${lt_cv_path_SED+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 # Loop through the user's path and test for sed and gsed.
3416# Then use that list of sed's as ones to test for truncation.
3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418for as_dir in $PATH
3419do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for lt_ac_prog in sed gsed; do
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3425 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3426 fi
3427 done
3428 done
3429done
3430lt_ac_max=0
3431lt_ac_count=0
3432# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3433# along with /bin/sed that truncates output.
3434for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3435 test ! -f $lt_ac_sed && break
3436 cat /dev/null > conftest.in
3437 lt_ac_count=0
3438 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3439 # Check for GNU sed and select it if it is found.
3440 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3441 lt_cv_path_SED=$lt_ac_sed
3442 break
3443 fi
3444 while true; do
3445 cat conftest.in conftest.in >conftest.tmp
3446 mv conftest.tmp conftest.in
3447 cp conftest.in conftest.nl
3448 echo >>conftest.nl
3449 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3450 cmp -s conftest.out conftest.nl || break
3451 # 10000 chars as input seems more than enough
3452 test $lt_ac_count -gt 10 && break
3453 lt_ac_count=`expr $lt_ac_count + 1`
3454 if test $lt_ac_count -gt $lt_ac_max; then
3455 lt_ac_max=$lt_ac_count
3456 lt_cv_path_SED=$lt_ac_sed
3457 fi
3458 done
3459done
3460SED=$lt_cv_path_SED
3461
3462fi
3463
3464echo "$as_me:$LINENO: result: $SED" >&5
3465echo "${ECHO_T}$SED" >&6
3466
3467echo "$as_me:$LINENO: checking for egrep" >&5
3468echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3469if test "${ac_cv_prog_egrep+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3473 then ac_cv_prog_egrep='grep -E'
3474 else ac_cv_prog_egrep='egrep'
3475 fi
3476fi
3477echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3478echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3479 EGREP=$ac_cv_prog_egrep
3480
3481
3482
3483# Check whether --with-gnu-ld or --without-gnu-ld was given.
3484if test "${with_gnu_ld+set}" = set; then
3485 withval="$with_gnu_ld"
3486 test "$withval" = no || with_gnu_ld=yes
3487else
3488 with_gnu_ld=no
3489fi;
3490ac_prog=ld
3491if test "$GCC" = yes; then
3492 # Check if gcc -print-prog-name=ld gives a path.
3493 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3494echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3495 case $host in
3496 *-*-mingw*)
3497 # gcc leaves a trailing carriage return which upsets mingw
3498 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3499 *)
3500 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3501 esac
3502 case $ac_prog in
3503 # Accept absolute paths.
3504 [\\/]* | ?:[\\/]*)
3505 re_direlt='/[^/][^/]*/\.\./'
3506 # Canonicalize the pathname of ld
3507 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3508 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3509 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3510 done
3511 test -z "$LD" && LD="$ac_prog"
3512 ;;
3513 "")
3514 # If it fails, then pretend we aren't using GCC.
3515 ac_prog=ld
3516 ;;
3517 *)
3518 # If it is relative, then search for the first ld in PATH.
3519 with_gnu_ld=unknown
3520 ;;
3521 esac
3522elif test "$with_gnu_ld" = yes; then
3523 echo "$as_me:$LINENO: checking for GNU ld" >&5
3524echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3525else
3526 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3527echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3528fi
3529if test "${lt_cv_path_LD+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531else
3532 if test -z "$LD"; then
3533 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3534 for ac_dir in $PATH; do
3535 IFS="$lt_save_ifs"
3536 test -z "$ac_dir" && ac_dir=.
3537 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3538 lt_cv_path_LD="$ac_dir/$ac_prog"
3539 # Check to see if the program is GNU ld. I'd rather use --version,
3540 # but apparently some GNU ld's only accept -v.
3541 # Break only if it was the GNU/non-GNU ld that we prefer.
3542 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3543 *GNU* | *'with BFD'*)
3544 test "$with_gnu_ld" != no && break
3545 ;;
3546 *)
3547 test "$with_gnu_ld" != yes && break
3548 ;;
3549 esac
3550 fi
3551 done
3552 IFS="$lt_save_ifs"
3553else
3554 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3555fi
3556fi
3557
3558LD="$lt_cv_path_LD"
3559if test -n "$LD"; then
3560 echo "$as_me:$LINENO: result: $LD" >&5
3561echo "${ECHO_T}$LD" >&6
3562else
3563 echo "$as_me:$LINENO: result: no" >&5
3564echo "${ECHO_T}no" >&6
3565fi
3566test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3567echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3568 { (exit 1); exit 1; }; }
3569echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3570echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3571if test "${lt_cv_prog_gnu_ld+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573else
3574 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3575case `$LD -v 2>&1 </dev/null` in
3576*GNU* | *'with BFD'*)
3577 lt_cv_prog_gnu_ld=yes
3578 ;;
3579*)
3580 lt_cv_prog_gnu_ld=no
3581 ;;
3582esac
3583fi
3584echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3585echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3586with_gnu_ld=$lt_cv_prog_gnu_ld
3587
3588
3589echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3590echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3591if test "${lt_cv_ld_reload_flag+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594 lt_cv_ld_reload_flag='-r'
3595fi
3596echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3597echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3598reload_flag=$lt_cv_ld_reload_flag
3599case $reload_flag in
3600"" | " "*) ;;
3601*) reload_flag=" $reload_flag" ;;
3602esac
3603reload_cmds='$LD$reload_flag -o $output$reload_objs'
3604
3605echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3606echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3607if test "${lt_cv_path_NM+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610 if test -n "$NM"; then
3611 # Let the user override the test.
3612 lt_cv_path_NM="$NM"
3613else
3614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3615 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3616 IFS="$lt_save_ifs"
3617 test -z "$ac_dir" && ac_dir=.
3618 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3619 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3620 # Check to see if the nm accepts a BSD-compat flag.
3621 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3622 # nm: unknown option "B" ignored
3623 # Tru64's nm complains that /dev/null is an invalid object file
3624 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3625 */dev/null* | *'Invalid file or object type'*)
3626 lt_cv_path_NM="$tmp_nm -B"
3627 break
3628 ;;
3629 *)
3630 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3631 */dev/null*)
3632 lt_cv_path_NM="$tmp_nm -p"
3633 break
3634 ;;
3635 *)
3636 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3637 continue # so that we can try to find one that supports BSD flags
3638 ;;
3639 esac
3640 esac
3641 fi
3642 done
3643 IFS="$lt_save_ifs"
3644 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3645fi
3646fi
3647echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3648echo "${ECHO_T}$lt_cv_path_NM" >&6
3649NM="$lt_cv_path_NM"
3650
3651echo "$as_me:$LINENO: checking whether ln -s works" >&5
3652echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3653LN_S=$as_ln_s
3654if test "$LN_S" = "ln -s"; then
3655 echo "$as_me:$LINENO: result: yes" >&5
3656echo "${ECHO_T}yes" >&6
3657else
3658 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3659echo "${ECHO_T}no, using $LN_S" >&6
3660fi
3661
3662echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3663echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3664if test "${lt_cv_deplibs_check_method+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667 lt_cv_file_magic_cmd='$MAGIC_CMD'
3668lt_cv_file_magic_test_file=
3669lt_cv_deplibs_check_method='unknown'
3670# Need to set the preceding variable on all platforms that support
3671# interlibrary dependencies.
3672# 'none' -- dependencies not supported.
3673# `unknown' -- same as none, but documents that we really don't know.
3674# 'pass_all' -- all dependencies passed with no checks.
3675# 'test_compile' -- check by making test program.
3676# 'file_magic [[regex]]' -- check by looking for files in library path
3677# which responds to the $file_magic_cmd with a given extended regex.
3678# If you have `file' or equivalent on your system and you're not sure
3679# whether `pass_all' will *always* work, you probably want this one.
3680
3681case $host_os in
3682aix4* | aix5*)
3683 lt_cv_deplibs_check_method=pass_all
3684 ;;
3685
3686beos*)
3687 lt_cv_deplibs_check_method=pass_all
3688 ;;
3689
3690bsdi4*)
3691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3692 lt_cv_file_magic_cmd='/usr/bin/file -L'
3693 lt_cv_file_magic_test_file=/shlib/libc.so
3694 ;;
3695
3696cygwin*)
3697 # func_win32_libid is a shell function defined in ltmain.sh
3698 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3699 lt_cv_file_magic_cmd='func_win32_libid'
3700 ;;
3701
3702mingw* | pw32*)
3703 # Base MSYS/MinGW do not provide the 'file' command needed by
3704 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3705 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3706 lt_cv_file_magic_cmd='$OBJDUMP -f'
3707 ;;
3708
3709darwin* | rhapsody*)
3710 lt_cv_deplibs_check_method=pass_all
3711 ;;
3712
3713freebsd* | kfreebsd*-gnu)
3714 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3715 case $host_cpu in
3716 i*86 )
3717 # Not sure whether the presence of OpenBSD here was a mistake.
3718 # Let's accept both of them until this is cleared up.
3719 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3720 lt_cv_file_magic_cmd=/usr/bin/file
3721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3722 ;;
3723 esac
3724 else
3725 lt_cv_deplibs_check_method=pass_all
3726 fi
3727 ;;
3728
3729gnu*)
3730 lt_cv_deplibs_check_method=pass_all
3731 ;;
3732
3733hpux10.20* | hpux11*)
3734 lt_cv_file_magic_cmd=/usr/bin/file
3735 case "$host_cpu" in
3736 ia64*)
3737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3738 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3739 ;;
3740 hppa*64*)
3741 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]'
3742 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3743 ;;
3744 *)
3745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3746 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3747 ;;
3748 esac
3749 ;;
3750
3751irix5* | irix6* | nonstopux*)
3752 case $LD in
3753 *-32|*"-32 ") libmagic=32-bit;;
3754 *-n32|*"-n32 ") libmagic=N32;;
3755 *-64|*"-64 ") libmagic=64-bit;;
3756 *) libmagic=never-match;;
3757 esac
3758 lt_cv_deplibs_check_method=pass_all
3759 ;;
3760
3761# This must be Linux ELF.
3762linux*)
3763 lt_cv_deplibs_check_method=pass_all
3764 ;;
3765
3766netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3767 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3768 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3769 else
3770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3771 fi
3772 ;;
3773
3774newos6*)
3775 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3776 lt_cv_file_magic_cmd=/usr/bin/file
3777 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3778 ;;
3779
3780nto-qnx*)
3781 lt_cv_deplibs_check_method=unknown
3782 ;;
3783
3784openbsd*)
3785 lt_cv_file_magic_cmd=/usr/bin/file
3786 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3787 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3788 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3789 else
3790 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3791 fi
3792 ;;
3793
3794osf3* | osf4* | osf5*)
3795 lt_cv_deplibs_check_method=pass_all
3796 ;;
3797
3798sco3.2v5*)
3799 lt_cv_deplibs_check_method=pass_all
3800 ;;
3801
3802solaris*)
3803 lt_cv_deplibs_check_method=pass_all
3804 ;;
3805
3806sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3807 case $host_vendor in
3808 motorola)
3809 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]'
3810 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3811 ;;
3812 ncr)
3813 lt_cv_deplibs_check_method=pass_all
3814 ;;
3815 sequent)
3816 lt_cv_file_magic_cmd='/bin/file'
3817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3818 ;;
3819 sni)
3820 lt_cv_file_magic_cmd='/bin/file'
3821 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3822 lt_cv_file_magic_test_file=/lib/libc.so
3823 ;;
3824 siemens)
3825 lt_cv_deplibs_check_method=pass_all
3826 ;;
3827 esac
3828 ;;
3829
3830sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3831 lt_cv_deplibs_check_method=pass_all
3832 ;;
3833esac
3834
3835fi
3836echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3837echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3838file_magic_cmd=$lt_cv_file_magic_cmd
3839deplibs_check_method=$lt_cv_deplibs_check_method
3840test -z "$deplibs_check_method" && deplibs_check_method=unknown
3841
3842
3843
3844
3845# If no C compiler was specified, use CC.
3846LTCC=${LTCC-"$CC"}
3847
3848# Allow CC to be a program name with arguments.
3849compiler=$CC
3850
3851# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3852if test "${enable_libtool_lock+set}" = set; then
3853 enableval="$enable_libtool_lock"
3854
3855fi;
3856test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3857
3858# Some flags need to be propagated to the compiler or linker for good
3859# libtool support.
3860case $host in
3861ia64-*-hpux*)
3862 # Find out which ABI we are using.
3863 echo 'int i;' > conftest.$ac_ext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865 (eval $ac_compile) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; then
3869 case `/usr/bin/file conftest.$ac_objext` in
3870 *ELF-32*)
3871 HPUX_IA64_MODE="32"
3872 ;;
3873 *ELF-64*)
3874 HPUX_IA64_MODE="64"
3875 ;;
3876 esac
3877 fi
3878 rm -rf conftest*
3879 ;;
3880*-*-irix6*)
3881 # Find out which ABI we are using.
3882 echo '#line 3882 "configure"' > conftest.$ac_ext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884 (eval $ac_compile) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; then
3888 if test "$lt_cv_prog_gnu_ld" = yes; then
3889 case `/usr/bin/file conftest.$ac_objext` in
3890 *32-bit*)
3891 LD="${LD-ld} -melf32bsmip"
3892 ;;
3893 *N32*)
3894 LD="${LD-ld} -melf32bmipn32"
3895 ;;
3896 *64-bit*)
3897 LD="${LD-ld} -melf64bmip"
3898 ;;
3899 esac
3900 else
3901 case `/usr/bin/file conftest.$ac_objext` in
3902 *32-bit*)
3903 LD="${LD-ld} -32"
3904 ;;
3905 *N32*)
3906 LD="${LD-ld} -n32"
3907 ;;
3908 *64-bit*)
3909 LD="${LD-ld} -64"
3910 ;;
3911 esac
3912 fi
3913 fi
3914 rm -rf conftest*
3915 ;;
3916
3917x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3918 # Find out which ABI we are using.
3919 echo 'int i;' > conftest.$ac_ext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3921 (eval $ac_compile) 2>&5
3922 ac_status=$?
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; then
3925 case "`/usr/bin/file conftest.o`" in
3926 *32-bit*)
3927 case $host in
3928 x86_64-*linux*)
3929 LD="${LD-ld} -m elf_i386"
3930 ;;
3931 ppc64-*linux*|powerpc64-*linux*)
3932 LD="${LD-ld} -m elf32ppclinux"
3933 ;;
3934 s390x-*linux*)
3935 LD="${LD-ld} -m elf_s390"
3936 ;;
3937 sparc64-*linux*)
3938 LD="${LD-ld} -m elf32_sparc"
3939 ;;
3940 esac
3941 ;;
3942 *64-bit*)
3943 case $host in
3944 x86_64-*linux*)
3945 LD="${LD-ld} -m elf_x86_64"
3946 ;;
3947 ppc*-*linux*|powerpc*-*linux*)
3948 LD="${LD-ld} -m elf64ppc"
3949 ;;
3950 s390*-*linux*)
3951 LD="${LD-ld} -m elf64_s390"
3952 ;;
3953 sparc*-*linux*)
3954 LD="${LD-ld} -m elf64_sparc"
3955 ;;
3956 esac
3957 ;;
3958 esac
3959 fi
3960 rm -rf conftest*
3961 ;;
3962
3963*-*-sco3.2v5*)
3964 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3965 SAVE_CFLAGS="$CFLAGS"
3966 CFLAGS="$CFLAGS -belf"
3967 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3968echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3969if test "${lt_cv_cc_needs_belf+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971else
3972 ac_ext=c
3973ac_cpp='$CPP $CPPFLAGS'
3974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977
3978 cat >conftest.$ac_ext <<_ACEOF
3979/* confdefs.h. */
3980_ACEOF
3981cat confdefs.h >>conftest.$ac_ext
3982cat >>conftest.$ac_ext <<_ACEOF
3983/* end confdefs.h. */
3984
3985int
3986main ()
3987{
3988
3989 ;
3990 return 0;
3991}
3992_ACEOF
3993rm -f conftest.$ac_objext conftest$ac_exeext
3994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3995 (eval $ac_link) 2>conftest.er1
3996 ac_status=$?
3997 grep -v '^ *+' conftest.er1 >conftest.err
3998 rm -f conftest.er1
3999 cat conftest.err >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest$ac_exeext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 lt_cv_cc_needs_belf=yes
4015else
4016 echo "$as_me: failed program was:" >&5
4017sed 's/^/| /' conftest.$ac_ext >&5
4018
4019lt_cv_cc_needs_belf=no
4020fi
4021rm -f conftest.err conftest.$ac_objext \
4022 conftest$ac_exeext conftest.$ac_ext
4023 ac_ext=c
4024ac_cpp='$CPP $CPPFLAGS'
4025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028
4029fi
4030echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4031echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4032 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4034 CFLAGS="$SAVE_CFLAGS"
4035 fi
4036 ;;
4037*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4038 if test -n "$ac_tool_prefix"; then
4039 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4040set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4041echo "$as_me:$LINENO: checking for $ac_word" >&5
4042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 if test -n "$DLLTOOL"; then
4047 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060done
4061done
4062
4063fi
4064fi
4065DLLTOOL=$ac_cv_prog_DLLTOOL
4066if test -n "$DLLTOOL"; then
4067 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4068echo "${ECHO_T}$DLLTOOL" >&6
4069else
4070 echo "$as_me:$LINENO: result: no" >&5
4071echo "${ECHO_T}no" >&6
4072fi
4073
4074fi
4075if test -z "$ac_cv_prog_DLLTOOL"; then
4076 ac_ct_DLLTOOL=$DLLTOOL
4077 # Extract the first word of "dlltool", so it can be a program name with args.
4078set dummy dlltool; ac_word=$2
4079echo "$as_me:$LINENO: checking for $ac_word" >&5
4080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084 if test -n "$ac_ct_DLLTOOL"; then
4085 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4086else
4087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH
4089do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098done
4099done
4100
4101 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4102fi
4103fi
4104ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4105if test -n "$ac_ct_DLLTOOL"; then
4106 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4107echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4108else
4109 echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
4111fi
4112
4113 DLLTOOL=$ac_ct_DLLTOOL
4114else
4115 DLLTOOL="$ac_cv_prog_DLLTOOL"
4116fi
4117
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4120set dummy ${ac_tool_prefix}as; ac_word=$2
4121echo "$as_me:$LINENO: checking for $ac_word" >&5
4122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123if test "${ac_cv_prog_AS+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126 if test -n "$AS"; then
4127 ac_cv_prog_AS="$AS" # Let the user override the test.
4128else
4129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH
4131do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_AS="${ac_tool_prefix}as"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4139 fi
4140done
4141done
4142
4143fi
4144fi
4145AS=$ac_cv_prog_AS
4146if test -n "$AS"; then
4147 echo "$as_me:$LINENO: result: $AS" >&5
4148echo "${ECHO_T}$AS" >&6
4149else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152fi
4153
4154fi
4155if test -z "$ac_cv_prog_AS"; then
4156 ac_ct_AS=$AS
4157 # Extract the first word of "as", so it can be a program name with args.
4158set dummy as; ac_word=$2
4159echo "$as_me:$LINENO: checking for $ac_word" >&5
4160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164 if test -n "$ac_ct_AS"; then
4165 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4166else
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_ac_ct_AS="as"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4177 fi
4178done
4179done
4180
4181 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4182fi
4183fi
4184ac_ct_AS=$ac_cv_prog_ac_ct_AS
4185if test -n "$ac_ct_AS"; then
4186 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4187echo "${ECHO_T}$ac_ct_AS" >&6
4188else
4189 echo "$as_me:$LINENO: result: no" >&5
4190echo "${ECHO_T}no" >&6
4191fi
4192
4193 AS=$ac_ct_AS
4194else
4195 AS="$ac_cv_prog_AS"
4196fi
4197
4198 if test -n "$ac_tool_prefix"; then
4199 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4200set dummy ${ac_tool_prefix}objdump; ac_word=$2
4201echo "$as_me:$LINENO: checking for $ac_word" >&5
4202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4203if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205else
4206 if test -n "$OBJDUMP"; then
4207 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4208else
4209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH
4211do
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4219 fi
4220done
4221done
4222
4223fi
4224fi
4225OBJDUMP=$ac_cv_prog_OBJDUMP
4226if test -n "$OBJDUMP"; then
4227 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4228echo "${ECHO_T}$OBJDUMP" >&6
4229else
4230 echo "$as_me:$LINENO: result: no" >&5
4231echo "${ECHO_T}no" >&6
4232fi
4233
4234fi
4235if test -z "$ac_cv_prog_OBJDUMP"; then
4236 ac_ct_OBJDUMP=$OBJDUMP
4237 # Extract the first word of "objdump", so it can be a program name with args.
4238set dummy objdump; ac_word=$2
4239echo "$as_me:$LINENO: checking for $ac_word" >&5
4240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4241if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244 if test -n "$ac_ct_OBJDUMP"; then
4245 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4246else
4247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248for as_dir in $PATH
4249do
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 break 2
4257 fi
4258done
4259done
4260
4261 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4262fi
4263fi
4264ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4265if test -n "$ac_ct_OBJDUMP"; then
4266 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4267echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4268else
4269 echo "$as_me:$LINENO: result: no" >&5
4270echo "${ECHO_T}no" >&6
4271fi
4272
4273 OBJDUMP=$ac_ct_OBJDUMP
4274else
4275 OBJDUMP="$ac_cv_prog_OBJDUMP"
4276fi
4277
4278 ;;
4279
4280esac
4281
4282need_locks="$enable_libtool_lock"
4283
4284
4285ac_ext=c
4286ac_cpp='$CPP $CPPFLAGS'
4287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4291echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4292# On Suns, sometimes $CPP names a directory.
4293if test -n "$CPP" && test -d "$CPP"; then
4294 CPP=
4295fi
4296if test -z "$CPP"; then
4297 if test "${ac_cv_prog_CPP+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299else
4300 # Double quotes because CPP needs to be expanded
4301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4302 do
4303 ac_preproc_ok=false
4304for ac_c_preproc_warn_flag in '' yes
4305do
4306 # Use a header file that comes with gcc, so configuring glibc
4307 # with a fresh cross-compiler works.
4308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4309 # <limits.h> exists even on freestanding compilers.
4310 # On the NeXT, cc -E runs the code through the compiler's parser,
4311 # not just through cpp. "Syntax error" is here to catch this case.
4312 cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h. */
4318#ifdef __STDC__
4319# include <limits.h>
4320#else
4321# include <assert.h>
4322#endif
4323 Syntax error
4324_ACEOF
4325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } >/dev/null; then
4333 if test -s conftest.err; then
4334 ac_cpp_err=$ac_c_preproc_warn_flag
4335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4336 else
4337 ac_cpp_err=
4338 fi
4339else
4340 ac_cpp_err=yes
4341fi
4342if test -z "$ac_cpp_err"; then
4343 :
4344else
4345 echo "$as_me: failed program was:" >&5
4346sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 # Broken: fails on valid input.
4349continue
4350fi
4351rm -f conftest.err conftest.$ac_ext
4352
4353 # OK, works on sane cases. Now check whether non-existent headers
4354 # can be detected and how.
4355 cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */
4361#include <ac_nonexistent.h>
4362_ACEOF
4363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4365 ac_status=$?
4366 grep -v '^ *+' conftest.er1 >conftest.err
4367 rm -f conftest.er1
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } >/dev/null; then
4371 if test -s conftest.err; then
4372 ac_cpp_err=$ac_c_preproc_warn_flag
4373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4374 else
4375 ac_cpp_err=
4376 fi
4377else
4378 ac_cpp_err=yes
4379fi
4380if test -z "$ac_cpp_err"; then
4381 # Broken: success on invalid input.
4382continue
4383else
4384 echo "$as_me: failed program was:" >&5
4385sed 's/^/| /' conftest.$ac_ext >&5
4386
4387 # Passes both tests.
4388ac_preproc_ok=:
4389break
4390fi
4391rm -f conftest.err conftest.$ac_ext
4392
4393done
4394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4395rm -f conftest.err conftest.$ac_ext
4396if $ac_preproc_ok; then
4397 break
4398fi
4399
4400 done
4401 ac_cv_prog_CPP=$CPP
4402
4403fi
4404 CPP=$ac_cv_prog_CPP
4405else
4406 ac_cv_prog_CPP=$CPP
4407fi
4408echo "$as_me:$LINENO: result: $CPP" >&5
4409echo "${ECHO_T}$CPP" >&6
4410ac_preproc_ok=false
4411for ac_c_preproc_warn_flag in '' yes
4412do
4413 # Use a header file that comes with gcc, so configuring glibc
4414 # with a fresh cross-compiler works.
4415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416 # <limits.h> exists even on freestanding compilers.
4417 # On the NeXT, cc -E runs the code through the compiler's parser,
4418 # not just through cpp. "Syntax error" is here to catch this case.
4419 cat >conftest.$ac_ext <<_ACEOF
4420/* confdefs.h. */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h. */
4425#ifdef __STDC__
4426# include <limits.h>
4427#else
4428# include <assert.h>
4429#endif
4430 Syntax error
4431_ACEOF
4432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } >/dev/null; then
4440 if test -s conftest.err; then
4441 ac_cpp_err=$ac_c_preproc_warn_flag
4442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4443 else
4444 ac_cpp_err=
4445 fi
4446else
4447 ac_cpp_err=yes
4448fi
4449if test -z "$ac_cpp_err"; then
4450 :
4451else
4452 echo "$as_me: failed program was:" >&5
4453sed 's/^/| /' conftest.$ac_ext >&5
4454
4455 # Broken: fails on valid input.
4456continue
4457fi
4458rm -f conftest.err conftest.$ac_ext
4459
4460 # OK, works on sane cases. Now check whether non-existent headers
4461 # can be detected and how.
4462 cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4468#include <ac_nonexistent.h>
4469_ACEOF
4470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } >/dev/null; then
4478 if test -s conftest.err; then
4479 ac_cpp_err=$ac_c_preproc_warn_flag
4480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4481 else
4482 ac_cpp_err=
4483 fi
4484else
4485 ac_cpp_err=yes
4486fi
4487if test -z "$ac_cpp_err"; then
4488 # Broken: success on invalid input.
4489continue
4490else
4491 echo "$as_me: failed program was:" >&5
4492sed 's/^/| /' conftest.$ac_ext >&5
4493
4494 # Passes both tests.
4495ac_preproc_ok=:
4496break
4497fi
4498rm -f conftest.err conftest.$ac_ext
4499
4500done
4501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4502rm -f conftest.err conftest.$ac_ext
4503if $ac_preproc_ok; then
4504 :
4505else
4506 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4507See \`config.log' for more details." >&5
4508echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4509See \`config.log' for more details." >&2;}
4510 { (exit 1); exit 1; }; }
4511fi
4512
4513ac_ext=c
4514ac_cpp='$CPP $CPPFLAGS'
4515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518
4519
4520echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4521echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4522if test "${ac_cv_header_stdc+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525 cat >conftest.$ac_ext <<_ACEOF
4526/* confdefs.h. */
4527_ACEOF
4528cat confdefs.h >>conftest.$ac_ext
4529cat >>conftest.$ac_ext <<_ACEOF
4530/* end confdefs.h. */
4531#include <stdlib.h>
4532#include <stdarg.h>
4533#include <string.h>
4534#include <float.h>
4535
4536int
4537main ()
4538{
4539
4540 ;
4541 return 0;
4542}
4543_ACEOF
4544rm -f conftest.$ac_objext
4545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546 (eval $ac_compile) 2>conftest.er1
4547 ac_status=$?
4548 grep -v '^ *+' conftest.er1 >conftest.err
4549 rm -f conftest.er1
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 ac_cv_header_stdc=yes
4566else
4567 echo "$as_me: failed program was:" >&5
4568sed 's/^/| /' conftest.$ac_ext >&5
4569
4570ac_cv_header_stdc=no
4571fi
4572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573
4574if test $ac_cv_header_stdc = yes; then
4575 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4576 cat >conftest.$ac_ext <<_ACEOF
4577/* confdefs.h. */
4578_ACEOF
4579cat confdefs.h >>conftest.$ac_ext
4580cat >>conftest.$ac_ext <<_ACEOF
4581/* end confdefs.h. */
4582#include <string.h>
4583
4584_ACEOF
4585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4586 $EGREP "memchr" >/dev/null 2>&1; then
4587 :
4588else
4589 ac_cv_header_stdc=no
4590fi
4591rm -f conftest*
4592
4593fi
4594
4595if test $ac_cv_header_stdc = yes; then
4596 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4597 cat >conftest.$ac_ext <<_ACEOF
4598/* confdefs.h. */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
4602/* end confdefs.h. */
4603#include <stdlib.h>
4604
4605_ACEOF
4606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4607 $EGREP "free" >/dev/null 2>&1; then
4608 :
4609else
4610 ac_cv_header_stdc=no
4611fi
4612rm -f conftest*
4613
4614fi
4615
4616if test $ac_cv_header_stdc = yes; then
4617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4618 if test "$cross_compiling" = yes; then
4619 :
4620else
4621 cat >conftest.$ac_ext <<_ACEOF
4622/* confdefs.h. */
4623_ACEOF
4624cat confdefs.h >>conftest.$ac_ext
4625cat >>conftest.$ac_ext <<_ACEOF
4626/* end confdefs.h. */
4627#include <ctype.h>
4628#if ((' ' & 0x0FF) == 0x020)
4629# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4630# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4631#else
4632# define ISLOWER(c) \
4633 (('a' <= (c) && (c) <= 'i') \
4634 || ('j' <= (c) && (c) <= 'r') \
4635 || ('s' <= (c) && (c) <= 'z'))
4636# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4637#endif
4638
4639#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4640int
4641main ()
4642{
4643 int i;
4644 for (i = 0; i < 256; i++)
4645 if (XOR (islower (i), ISLOWER (i))
4646 || toupper (i) != TOUPPER (i))
4647 exit(2);
4648 exit (0);
4649}
4650_ACEOF
4651rm -f conftest$ac_exeext
4652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4653 (eval $ac_link) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 :
4663else
4664 echo "$as_me: program exited with status $ac_status" >&5
4665echo "$as_me: failed program was:" >&5
4666sed 's/^/| /' conftest.$ac_ext >&5
4667
4668( exit $ac_status )
4669ac_cv_header_stdc=no
4670fi
4671rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4672fi
4673fi
4674fi
4675echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4676echo "${ECHO_T}$ac_cv_header_stdc" >&6
4677if test $ac_cv_header_stdc = yes; then
4678
4679cat >>confdefs.h <<\_ACEOF
4680#define STDC_HEADERS 1
4681_ACEOF
4682
4683fi
4684
4685# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4696 inttypes.h stdint.h unistd.h
4697do
4698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4699echo "$as_me:$LINENO: checking for $ac_header" >&5
4700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4701if eval "test \"\${$as_ac_Header+set}\" = set"; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704 cat >conftest.$ac_ext <<_ACEOF
4705/* confdefs.h. */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h. */
4710$ac_includes_default
4711
4712#include <$ac_header>
4713_ACEOF
4714rm -f conftest.$ac_objext
4715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -z "$ac_c_werror_flag" || 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"
4736else
4737 echo "$as_me: failed program was:" >&5
4738sed 's/^/| /' conftest.$ac_ext >&5
4739
4740eval "$as_ac_Header=no"
4741fi
4742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4743fi
4744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4746if 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
4750
4751fi
4752
4753done
4754
4755
4756
4757for ac_header in dlfcn.h
4758do
4759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4760if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo "$as_me:$LINENO: checking for $ac_header" >&5
4762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4763if eval "test \"\${$as_ac_Header+set}\" = set"; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765fi
4766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768else
4769 # Is the header compilable?
4770echo "$as_me:$LINENO: checking $ac_header usability" >&5
4771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4772cat >conftest.$ac_ext <<_ACEOF
4773/* confdefs.h. */
4774_ACEOF
4775cat confdefs.h >>conftest.$ac_ext
4776cat >>conftest.$ac_ext <<_ACEOF
4777/* end confdefs.h. */
4778$ac_includes_default
4779#include <$ac_header>
4780_ACEOF
4781rm -f conftest.$ac_objext
4782if { (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" || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_header_compiler=yes
4803else
4804 echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807ac_header_compiler=no
4808fi
4809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4811echo "${ECHO_T}$ac_header_compiler" >&6
4812
4813# Is the header present?
4814echo "$as_me:$LINENO: checking $ac_header presence" >&5
4815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4816cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h. */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h. */
4822#include <$ac_header>
4823_ACEOF
4824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } >/dev/null; then
4832 if test -s conftest.err; then
4833 ac_cpp_err=$ac_c_preproc_warn_flag
4834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4835 else
4836 ac_cpp_err=
4837 fi
4838else
4839 ac_cpp_err=yes
4840fi
4841if test -z "$ac_cpp_err"; then
4842 ac_header_preproc=yes
4843else
4844 echo "$as_me: failed program was:" >&5
4845sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 ac_header_preproc=no
4848fi
4849rm -f conftest.err conftest.$ac_ext
4850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4851echo "${ECHO_T}$ac_header_preproc" >&6
4852
4853# So? What about this header?
4854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4855 yes:no: )
4856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4860 ac_header_preproc=yes
4861 ;;
4862 no:yes:* )
4863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4866echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4870echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4875 (
4876 cat <<\_ASBOX
4877## ---------------------------------- ##
4878## Report this to bug-libtool@gnu.org ##
4879## ---------------------------------- ##
4880_ASBOX
4881 ) |
4882 sed "s/^/$as_me: WARNING: /" >&2
4883 ;;
4884esac
4885echo "$as_me:$LINENO: checking for $ac_header" >&5
4886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4887if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889else
4890 eval "$as_ac_Header=\$ac_header_preproc"
4891fi
4892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4894
4895fi
4896if test `eval echo '${'$as_ac_Header'}'` = yes; then
4897 cat >>confdefs.h <<_ACEOF
4898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4899_ACEOF
4900
4901fi
4902
4903done
4904
4905ac_ext=cc
4906ac_cpp='$CXXCPP $CPPFLAGS'
4907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4910if test -n "$ac_tool_prefix"; then
4911 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4912 do
4913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4914set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4915echo "$as_me:$LINENO: checking for $ac_word" >&5
4916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4917if test "${ac_cv_prog_CXX+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919else
4920 if test -n "$CXX"; then
4921 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4922else
4923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4933 fi
4934done
4935done
4936
4937fi
4938fi
4939CXX=$ac_cv_prog_CXX
4940if test -n "$CXX"; then
4941 echo "$as_me:$LINENO: result: $CXX" >&5
4942echo "${ECHO_T}$CXX" >&6
4943else
4944 echo "$as_me:$LINENO: result: no" >&5
4945echo "${ECHO_T}no" >&6
4946fi
4947
4948 test -n "$CXX" && break
4949 done
4950fi
4951if test -z "$CXX"; then
4952 ac_ct_CXX=$CXX
4953 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4954do
4955 # Extract the first word of "$ac_prog", so it can be a program name with args.
4956set dummy $ac_prog; ac_word=$2
4957echo "$as_me:$LINENO: checking for $ac_word" >&5
4958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4959if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962 if test -n "$ac_ct_CXX"; then
4963 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4964else
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_ac_ct_CXX="$ac_prog"
4973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4975 fi
4976done
4977done
4978
4979fi
4980fi
4981ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4982if test -n "$ac_ct_CXX"; then
4983 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4984echo "${ECHO_T}$ac_ct_CXX" >&6
4985else
4986 echo "$as_me:$LINENO: result: no" >&5
4987echo "${ECHO_T}no" >&6
4988fi
4989
4990 test -n "$ac_ct_CXX" && break
4991done
4992test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4993
4994 CXX=$ac_ct_CXX
4995fi
4996
4997
4998# Provide some information about the compiler.
4999echo "$as_me:$LINENO:" \
5000 "checking for C++ compiler version" >&5
5001ac_compiler=`set X $ac_compile; echo $2`
5002{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5003 (eval $ac_compiler --version </dev/null >&5) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }
5007{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5008 (eval $ac_compiler -v </dev/null >&5) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }
5012{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5013 (eval $ac_compiler -V </dev/null >&5) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }
5017
5018echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5019echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5020if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022else
5023 cat >conftest.$ac_ext <<_ACEOF
5024/* confdefs.h. */
5025_ACEOF
5026cat confdefs.h >>conftest.$ac_ext
5027cat >>conftest.$ac_ext <<_ACEOF
5028/* end confdefs.h. */
5029
5030int
5031main ()
5032{
5033#ifndef __GNUC__
5034 choke me
5035#endif
5036
5037 ;
5038 return 0;
5039}
5040_ACEOF
5041rm -f conftest.$ac_objext
5042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5043 (eval $ac_compile) 2>conftest.er1
5044 ac_status=$?
5045 grep -v '^ *+' conftest.er1 >conftest.err
5046 rm -f conftest.er1
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } &&
5050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 (eval $ac_try) 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; } &&
5056 { ac_try='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_compiler_gnu=yes
5063else
5064 echo "$as_me: failed program was:" >&5
5065sed 's/^/| /' conftest.$ac_ext >&5
5066
5067ac_compiler_gnu=no
5068fi
5069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5071
5072fi
5073echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5074echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5075GXX=`test $ac_compiler_gnu = yes && echo yes`
5076ac_test_CXXFLAGS=${CXXFLAGS+set}
5077ac_save_CXXFLAGS=$CXXFLAGS
5078CXXFLAGS="-g"
5079echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5080echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5081if test "${ac_cv_prog_cxx_g+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084 cat >conftest.$ac_ext <<_ACEOF
5085/* confdefs.h. */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h. */
5090
5091int
5092main ()
5093{
5094
5095 ;
5096 return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext
5100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101 (eval $ac_compile) 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; } &&
5114 { ac_try='test -s conftest.$ac_objext'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 (eval $ac_try) 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 ac_cv_prog_cxx_g=yes
5121else
5122 echo "$as_me: failed program was:" >&5
5123sed 's/^/| /' conftest.$ac_ext >&5
5124
5125ac_cv_prog_cxx_g=no
5126fi
5127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5128fi
5129echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5130echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5131if test "$ac_test_CXXFLAGS" = set; then
5132 CXXFLAGS=$ac_save_CXXFLAGS
5133elif test $ac_cv_prog_cxx_g = yes; then
5134 if test "$GXX" = yes; then
5135 CXXFLAGS="-g -O2"
5136 else
5137 CXXFLAGS="-g"
5138 fi
5139else
5140 if test "$GXX" = yes; then
5141 CXXFLAGS="-O2"
5142 else
5143 CXXFLAGS=
5144 fi
5145fi
5146for ac_declaration in \
5147 '' \
5148 'extern "C" void std::exit (int) throw (); using std::exit;' \
5149 'extern "C" void std::exit (int); using std::exit;' \
5150 'extern "C" void exit (int) throw ();' \
5151 'extern "C" void exit (int);' \
5152 'void exit (int);'
5153do
5154 cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h. */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h. */
5160$ac_declaration
5161#include <stdlib.h>
5162int
5163main ()
5164{
5165exit (42);
5166 ;
5167 return 0;
5168}
5169_ACEOF
5170rm -f conftest.$ac_objext
5171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172 (eval $ac_compile) 2>conftest.er1
5173 ac_status=$?
5174 grep -v '^ *+' conftest.er1 >conftest.err
5175 rm -f conftest.er1
5176 cat conftest.err >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } &&
5179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 (eval $ac_try) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; } &&
5185 { ac_try='test -s conftest.$ac_objext'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 (eval $ac_try) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
5191 :
5192else
5193 echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196continue
5197fi
5198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5199 cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h. */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h. */
5205$ac_declaration
5206int
5207main ()
5208{
5209exit (42);
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214rm -f conftest.$ac_objext
5215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5216 (eval $ac_compile) 2>conftest.er1
5217 ac_status=$?
5218 grep -v '^ *+' conftest.er1 >conftest.err
5219 rm -f conftest.er1
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } &&
5223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; } &&
5229 { ac_try='test -s conftest.$ac_objext'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 break
5236else
5237 echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
5240fi
5241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5242done
5243rm -f conftest*
5244if test -n "$ac_declaration"; then
5245 echo '#ifdef __cplusplus' >>confdefs.h
5246 echo $ac_declaration >>confdefs.h
5247 echo '#endif' >>confdefs.h
5248fi
5249
5250ac_ext=cc
5251ac_cpp='$CXXCPP $CPPFLAGS'
5252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5255
5256depcc="$CXX" am_compiler_list=
5257
5258echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5259echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5260if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5264 # We make a subdir and do the tests there. Otherwise we can end up
5265 # making bogus files that we don't know about and never remove. For
5266 # instance it was reported that on HP-UX the gcc test will end up
5267 # making a dummy file named `D' -- because `-MD' means `put the output
5268 # in D'.
5269 mkdir conftest.dir
5270 # Copy depcomp to subdir because otherwise we won't find it if we're
5271 # using a relative directory.
5272 cp "$am_depcomp" conftest.dir
5273 cd conftest.dir
5274 # We will build objects and dependencies in a subdirectory because
5275 # it helps to detect inapplicable dependency modes. For instance
5276 # both Tru64's cc and ICC support -MD to output dependencies as a
5277 # side effect of compilation, but ICC will put the dependencies in
5278 # the current directory while Tru64 will put them in the object
5279 # directory.
5280 mkdir sub
5281
5282 am_cv_CXX_dependencies_compiler_type=none
5283 if test "$am_compiler_list" = ""; then
5284 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5285 fi
5286 for depmode in $am_compiler_list; do
5287 # Setup a source with many dependencies, because some compilers
5288 # like to wrap large dependency lists on column 80 (with \), and
5289 # we should not choose a depcomp mode which is confused by this.
5290 #
5291 # We need to recreate these files for each test, as the compiler may
5292 # overwrite some of them when testing with obscure command lines.
5293 # This happens at least with the AIX C compiler.
5294 : > sub/conftest.c
5295 for i in 1 2 3 4 5 6; do
5296 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5297 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5298 # Solaris 8's {/usr,}/bin/sh.
5299 touch sub/conftst$i.h
5300 done
5301 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5302
5303 case $depmode in
5304 nosideeffect)
5305 # after this tag, mechanisms are not by side-effect, so they'll
5306 # only be used when explicitly requested
5307 if test "x$enable_dependency_tracking" = xyes; then
5308 continue
5309 else
5310 break
5311 fi
5312 ;;
5313 none) break ;;
5314 esac
5315 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5316 # mode. It turns out that the SunPro C++ compiler does not properly
5317 # handle `-M -o', and we need to detect this.
5318 if depmode=$depmode \
5319 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5320 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5321 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5322 >/dev/null 2>conftest.err &&
5323 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5324 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5325 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5326 # icc doesn't choke on unknown options, it will just issue warnings
5327 # or remarks (even with -Werror). So we grep stderr for any message
5328 # that says an option was ignored or not supported.
5329 # When given -MP, icc 7.0 and 7.1 complain thusly:
5330 # icc: Command line warning: ignoring option '-M'; no argument required
5331 # The diagnosis changed in icc 8.0:
5332 # icc: Command line remark: option '-MP' not supported
5333 if (grep 'ignoring option' conftest.err ||
5334 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5335 am_cv_CXX_dependencies_compiler_type=$depmode
5336 break
5337 fi
5338 fi
5339 done
5340
5341 cd ..
5342 rm -rf conftest.dir
5343else
5344 am_cv_CXX_dependencies_compiler_type=none
5345fi
5346
5347fi
5348echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5349echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5350CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5351
5352
5353
5354if
5355 test "x$enable_dependency_tracking" != xno \
5356 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5357 am__fastdepCXX_TRUE=
5358 am__fastdepCXX_FALSE='#'
5359else
5360 am__fastdepCXX_TRUE='#'
5361 am__fastdepCXX_FALSE=
5362fi
5363
5364
5365ac_ext=cc
5366ac_cpp='$CXXCPP $CPPFLAGS'
5367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5370echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5371echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5372if test -z "$CXXCPP"; then
5373 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375else
5376 # Double quotes because CXXCPP needs to be expanded
5377 for CXXCPP in "$CXX -E" "/lib/cpp"
5378 do
5379 ac_preproc_ok=false
5380for ac_cxx_preproc_warn_flag in '' yes
5381do
5382 # Use a header file that comes with gcc, so configuring glibc
5383 # with a fresh cross-compiler works.
5384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5385 # <limits.h> exists even on freestanding compilers.
5386 # On the NeXT, cc -E runs the code through the compiler's parser,
5387 # not just through cpp. "Syntax error" is here to catch this case.
5388 cat >conftest.$ac_ext <<_ACEOF
5389/* confdefs.h. */
5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h. */
5394#ifdef __STDC__
5395# include <limits.h>
5396#else
5397# include <assert.h>
5398#endif
5399 Syntax error
5400_ACEOF
5401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } >/dev/null; then
5409 if test -s conftest.err; then
5410 ac_cpp_err=$ac_cxx_preproc_warn_flag
5411 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5412 else
5413 ac_cpp_err=
5414 fi
5415else
5416 ac_cpp_err=yes
5417fi
5418if test -z "$ac_cpp_err"; then
5419 :
5420else
5421 echo "$as_me: failed program was:" >&5
5422sed 's/^/| /' conftest.$ac_ext >&5
5423
5424 # Broken: fails on valid input.
5425continue
5426fi
5427rm -f conftest.err conftest.$ac_ext
5428
5429 # OK, works on sane cases. Now check whether non-existent headers
5430 # can be detected and how.
5431 cat >conftest.$ac_ext <<_ACEOF
5432/* confdefs.h. */
5433_ACEOF
5434cat confdefs.h >>conftest.$ac_ext
5435cat >>conftest.$ac_ext <<_ACEOF
5436/* end confdefs.h. */
5437#include <ac_nonexistent.h>
5438_ACEOF
5439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } >/dev/null; then
5447 if test -s conftest.err; then
5448 ac_cpp_err=$ac_cxx_preproc_warn_flag
5449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5450 else
5451 ac_cpp_err=
5452 fi
5453else
5454 ac_cpp_err=yes
5455fi
5456if test -z "$ac_cpp_err"; then
5457 # Broken: success on invalid input.
5458continue
5459else
5460 echo "$as_me: failed program was:" >&5
5461sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 # Passes both tests.
5464ac_preproc_ok=:
5465break
5466fi
5467rm -f conftest.err conftest.$ac_ext
5468
5469done
5470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5471rm -f conftest.err conftest.$ac_ext
5472if $ac_preproc_ok; then
5473 break
5474fi
5475
5476 done
5477 ac_cv_prog_CXXCPP=$CXXCPP
5478
5479fi
5480 CXXCPP=$ac_cv_prog_CXXCPP
5481else
5482 ac_cv_prog_CXXCPP=$CXXCPP
5483fi
5484echo "$as_me:$LINENO: result: $CXXCPP" >&5
5485echo "${ECHO_T}$CXXCPP" >&6
5486ac_preproc_ok=false
5487for ac_cxx_preproc_warn_flag in '' yes
5488do
5489 # Use a header file that comes with gcc, so configuring glibc
5490 # with a fresh cross-compiler works.
5491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5492 # <limits.h> exists even on freestanding compilers.
5493 # On the NeXT, cc -E runs the code through the compiler's parser,
5494 # not just through cpp. "Syntax error" is here to catch this case.
5495 cat >conftest.$ac_ext <<_ACEOF
5496/* confdefs.h. */
5497_ACEOF
5498cat confdefs.h >>conftest.$ac_ext
5499cat >>conftest.$ac_ext <<_ACEOF
5500/* end confdefs.h. */
5501#ifdef __STDC__
5502# include <limits.h>
5503#else
5504# include <assert.h>
5505#endif
5506 Syntax error
5507_ACEOF
5508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } >/dev/null; then
5516 if test -s conftest.err; then
5517 ac_cpp_err=$ac_cxx_preproc_warn_flag
5518 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5519 else
5520 ac_cpp_err=
5521 fi
5522else
5523 ac_cpp_err=yes
5524fi
5525if test -z "$ac_cpp_err"; then
5526 :
5527else
5528 echo "$as_me: failed program was:" >&5
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
5531 # Broken: fails on valid input.
5532continue
5533fi
5534rm -f conftest.err conftest.$ac_ext
5535
5536 # OK, works on sane cases. Now check whether non-existent headers
5537 # can be detected and how.
5538 cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h. */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h. */
5544#include <ac_nonexistent.h>
5545_ACEOF
5546if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5548 ac_status=$?
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } >/dev/null; then
5554 if test -s conftest.err; then
5555 ac_cpp_err=$ac_cxx_preproc_warn_flag
5556 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5557 else
5558 ac_cpp_err=
5559 fi
5560else
5561 ac_cpp_err=yes
5562fi
5563if test -z "$ac_cpp_err"; then
5564 # Broken: success on invalid input.
5565continue
5566else
5567 echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
5570 # Passes both tests.
5571ac_preproc_ok=:
5572break
5573fi
5574rm -f conftest.err conftest.$ac_ext
5575
5576done
5577# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5578rm -f conftest.err conftest.$ac_ext
5579if $ac_preproc_ok; then
5580 :
5581else
5582 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5583See \`config.log' for more details." >&5
5584echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5585See \`config.log' for more details." >&2;}
5586 { (exit 1); exit 1; }; }
5587fi
5588
5589ac_ext=cc
5590ac_cpp='$CXXCPP $CPPFLAGS'
5591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5594
5595
5596ac_ext=f
5597ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5598ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5600if test -n "$ac_tool_prefix"; then
5601 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5602 do
5603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5604set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5605echo "$as_me:$LINENO: checking for $ac_word" >&5
5606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5607if test "${ac_cv_prog_F77+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609else
5610 if test -n "$F77"; then
5611 ac_cv_prog_F77="$F77" # Let the user override the test.
5612else
5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH
5615do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624done
5625done
5626
5627fi
5628fi
5629F77=$ac_cv_prog_F77
5630if test -n "$F77"; then
5631 echo "$as_me:$LINENO: result: $F77" >&5
5632echo "${ECHO_T}$F77" >&6
5633else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636fi
5637
5638 test -n "$F77" && break
5639 done
5640fi
5641if test -z "$F77"; then
5642 ac_ct_F77=$F77
5643 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5644do
5645 # Extract the first word of "$ac_prog", so it can be a program name with args.
5646set dummy $ac_prog; ac_word=$2
5647echo "$as_me:$LINENO: checking for $ac_word" >&5
5648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5649if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651else
5652 if test -n "$ac_ct_F77"; then
5653 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662 ac_cv_prog_ac_ct_F77="$ac_prog"
5663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666done
5667done
5668
5669fi
5670fi
5671ac_ct_F77=$ac_cv_prog_ac_ct_F77
5672if test -n "$ac_ct_F77"; then
5673 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5674echo "${ECHO_T}$ac_ct_F77" >&6
5675else
5676 echo "$as_me:$LINENO: result: no" >&5
5677echo "${ECHO_T}no" >&6
5678fi
5679
5680 test -n "$ac_ct_F77" && break
5681done
5682
5683 F77=$ac_ct_F77
5684fi
5685
5686
5687# Provide some information about the compiler.
5688echo "$as_me:5688:" \
5689 "checking for Fortran 77 compiler version" >&5
5690ac_compiler=`set X $ac_compile; echo $2`
5691{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5692 (eval $ac_compiler --version </dev/null >&5) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }
5696{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5697 (eval $ac_compiler -v </dev/null >&5) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }
5701{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5702 (eval $ac_compiler -V </dev/null >&5) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }
5706rm -f a.out
5707
5708# If we don't use `.F' as extension, the preprocessor is not run on the
5709# input file. (Note that this only needs to work for GNU compilers.)
5710ac_save_ext=$ac_ext
5711ac_ext=F
5712echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5713echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5714if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 cat >conftest.$ac_ext <<_ACEOF
5718 program main
5719#ifndef __GNUC__
5720 choke me
5721#endif
5722
5723 end
5724_ACEOF
5725rm -f conftest.$ac_objext
5726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727 (eval $ac_compile) 2>conftest.er1
5728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_compiler_gnu=yes
5747else
5748 echo "$as_me: failed program was:" >&5
5749sed 's/^/| /' conftest.$ac_ext >&5
5750
5751ac_compiler_gnu=no
5752fi
5753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5754ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5755
5756fi
5757echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5758echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5759ac_ext=$ac_save_ext
5760ac_test_FFLAGS=${FFLAGS+set}
5761ac_save_FFLAGS=$FFLAGS
5762FFLAGS=
5763echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5764echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5765if test "${ac_cv_prog_f77_g+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767else
5768 FFLAGS=-g
5769cat >conftest.$ac_ext <<_ACEOF
5770 program main
5771
5772 end
5773_ACEOF
5774rm -f conftest.$ac_objext
5775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; } &&
5789 { ac_try='test -s conftest.$ac_objext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_cv_prog_f77_g=yes
5796else
5797 echo "$as_me: failed program was:" >&5
5798sed 's/^/| /' conftest.$ac_ext >&5
5799
5800ac_cv_prog_f77_g=no
5801fi
5802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5803
5804fi
5805echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5806echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5807if test "$ac_test_FFLAGS" = set; then
5808 FFLAGS=$ac_save_FFLAGS
5809elif test $ac_cv_prog_f77_g = yes; then
5810 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5811 FFLAGS="-g -O2"
5812 else
5813 FFLAGS="-g"
5814 fi
5815else
5816 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5817 FFLAGS="-O2"
5818 else
5819 FFLAGS=
5820 fi
5821fi
5822
5823G77=`test $ac_compiler_gnu = yes && echo yes`
5824ac_ext=c
5825ac_cpp='$CPP $CPPFLAGS'
5826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828ac_compiler_gnu=$ac_cv_c_compiler_gnu
5829
5830
5831
5832# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5833
5834# find the maximum length of command line arguments
5835echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5836echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5837if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840 i=0
5841 teststring="ABCD"
5842
5843 case $build_os in
5844 msdosdjgpp*)
5845 # On DJGPP, this test can blow up pretty badly due to problems in libc
5846 # (any single argument exceeding 2000 bytes causes a buffer overrun
5847 # during glob expansion). Even if it were fixed, the result of this
5848 # check would be larger than it should be.
5849 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5850 ;;
5851
5852 gnu*)
5853 # Under GNU Hurd, this test is not required because there is
5854 # no limit to the length of command line arguments.
5855 # Libtool will interpret -1 as no limit whatsoever
5856 lt_cv_sys_max_cmd_len=-1;
5857 ;;
5858
5859 cygwin* | mingw*)
5860 # On Win9x/ME, this test blows up -- it succeeds, but takes
5861 # about 5 minutes as the teststring grows exponentially.
5862 # Worse, since 9x/ME are not pre-emptively multitasking,
5863 # you end up with a "frozen" computer, even though with patience
5864 # the test eventually succeeds (with a max line length of 256k).
5865 # Instead, let's just punt: use the minimum linelength reported by
5866 # all of the supported platforms: 8192 (on NT/2K/XP).
5867 lt_cv_sys_max_cmd_len=8192;
5868 ;;
5869
5870 amigaos*)
5871 # On AmigaOS with pdksh, this test takes hours, literally.
5872 # So we just punt and use a minimum line length of 8192.
5873 lt_cv_sys_max_cmd_len=8192;
5874 ;;
5875
5876 *)
5877 # If test is not a shell built-in, we'll probably end up computing a
5878 # maximum length that is only half of the actual maximum length, but
5879 # we can't tell.
5880 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5881 = "XX$teststring") >/dev/null 2>&1 &&
5882 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5883 lt_cv_sys_max_cmd_len=$new_result &&
5884 test $i != 17 # 1/2 MB should be enough
5885 do
5886 i=`expr $i + 1`
5887 teststring=$teststring$teststring
5888 done
5889 teststring=
5890 # Add a significant safety factor because C++ compilers can tack on massive
5891 # amounts of additional arguments before passing them to the linker.
5892 # It appears as though 1/2 is a usable value.
5893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5894 ;;
5895 esac
5896
5897fi
5898
5899if test -n $lt_cv_sys_max_cmd_len ; then
5900 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5901echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5902else
5903 echo "$as_me:$LINENO: result: none" >&5
5904echo "${ECHO_T}none" >&6
5905fi
5906
5907
5908
5909
5910# Check for command to grab the raw symbol name followed by C symbol from nm.
5911echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5912echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5913if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915else
5916
5917# These are sane defaults that work on at least a few old systems.
5918# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5919
5920# Character class describing NM global symbol codes.
5921symcode='[BCDEGRST]'
5922
5923# Regexp to match symbols that can be accessed directly from C.
5924sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5925
5926# Transform the above into a raw symbol and a C symbol.
5927symxfrm='\1 \2\3 \3'
5928
5929# Transform an extracted symbol line into a proper C declaration
5930lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5931
5932# Transform an extracted symbol line into symbol name and symbol address
5933lt_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'"
5934
5935# Define system-specific variables.
5936case $host_os in
5937aix*)
5938 symcode='[BCDT]'
5939 ;;
5940cygwin* | mingw* | pw32*)
5941 symcode='[ABCDGISTW]'
5942 ;;
5943hpux*) # Its linker distinguishes data from code symbols
5944 if test "$host_cpu" = ia64; then
5945 symcode='[ABCDEGRST]'
5946 fi
5947 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5948 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'"
5949 ;;
5950irix* | nonstopux*)
5951 symcode='[BCDEGRST]'
5952 ;;
5953osf*)
5954 symcode='[BCDEGQRST]'
5955 ;;
5956solaris* | sysv5*)
5957 symcode='[BDRT]'
5958 ;;
5959sysv4)
5960 symcode='[DFNSTU]'
5961 ;;
5962esac
5963
5964# Handle CRLF in mingw tool chain
5965opt_cr=
5966case $build_os in
5967mingw*)
5968 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5969 ;;
5970esac
5971
5972# If we're using GNU nm, then use its standard symbol codes.
5973case `$NM -V 2>&1` in
5974*GNU* | *'with BFD'*)
5975 symcode='[ABCDGIRSTW]' ;;
5976esac
5977
5978# Try without a prefix undercore, then with it.
5979for ac_symprfx in "" "_"; do
5980
5981 # Write the raw and C identifiers.
5982 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5983
5984 # Check to see that the pipe works correctly.
5985 pipe_works=no
5986
5987 rm -f conftest*
5988 cat > conftest.$ac_ext <<EOF
5989#ifdef __cplusplus
5990extern "C" {
5991#endif
5992char nm_test_var;
5993void nm_test_func(){}
5994#ifdef __cplusplus
5995}
5996#endif
5997int main(){nm_test_var='a';nm_test_func();return(0);}
5998EOF
5999
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; then
6005 # Now try to grab the symbols.
6006 nlist=conftest.nm
6007 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6008 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } && test -s "$nlist"; then
6012 # Try sorting and uniquifying the output.
6013 if sort "$nlist" | uniq > "$nlist"T; then
6014 mv -f "$nlist"T "$nlist"
6015 else
6016 rm -f "$nlist"T
6017 fi
6018
6019 # Make sure that we snagged all the symbols we need.
6020 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6021 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6022 cat <<EOF > conftest.$ac_ext
6023#ifdef __cplusplus
6024extern "C" {
6025#endif
6026
6027EOF
6028 # Now generate the symbol file.
6029 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6030
6031 cat <<EOF >> conftest.$ac_ext
6032#if defined (__STDC__) && __STDC__
6033# define lt_ptr_t void *
6034#else
6035# define lt_ptr_t char *
6036# define const
6037#endif
6038
6039/* The mapping between symbol names and symbols. */
6040const struct {
6041 const char *name;
6042 lt_ptr_t address;
6043}
6044lt_preloaded_symbols[] =
6045{
6046EOF
6047 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6048 cat <<\EOF >> conftest.$ac_ext
6049 {0, (lt_ptr_t) 0}
6050};
6051
6052#ifdef __cplusplus
6053}
6054#endif
6055EOF
6056 # Now try linking the two files.
6057 mv conftest.$ac_objext conftstm.$ac_objext
6058 lt_save_LIBS="$LIBS"
6059 lt_save_CFLAGS="$CFLAGS"
6060 LIBS="conftstm.$ac_objext"
6061 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6063 (eval $ac_link) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6067 pipe_works=yes
6068 fi
6069 LIBS="$lt_save_LIBS"
6070 CFLAGS="$lt_save_CFLAGS"
6071 else
6072 echo "cannot find nm_test_func in $nlist" >&5
6073 fi
6074 else
6075 echo "cannot find nm_test_var in $nlist" >&5
6076 fi
6077 else
6078 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6079 fi
6080 else
6081 echo "$progname: failed program was:" >&5
6082 cat conftest.$ac_ext >&5
6083 fi
6084 rm -f conftest* conftst*
6085
6086 # Do not use the global_symbol_pipe unless it works.
6087 if test "$pipe_works" = yes; then
6088 break
6089 else
6090 lt_cv_sys_global_symbol_pipe=
6091 fi
6092done
6093
6094fi
6095
6096if test -z "$lt_cv_sys_global_symbol_pipe"; then
6097 lt_cv_sys_global_symbol_to_cdecl=
6098fi
6099if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6100 echo "$as_me:$LINENO: result: failed" >&5
6101echo "${ECHO_T}failed" >&6
6102else
6103 echo "$as_me:$LINENO: result: ok" >&5
6104echo "${ECHO_T}ok" >&6
6105fi
6106
6107echo "$as_me:$LINENO: checking for objdir" >&5
6108echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6109if test "${lt_cv_objdir+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111else
6112 rm -f .libs 2>/dev/null
6113mkdir .libs 2>/dev/null
6114if test -d .libs; then
6115 lt_cv_objdir=.libs
6116else
6117 # MS-DOS does not allow filenames that begin with a dot.
6118 lt_cv_objdir=_libs
6119fi
6120rmdir .libs 2>/dev/null
6121fi
6122echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6123echo "${ECHO_T}$lt_cv_objdir" >&6
6124objdir=$lt_cv_objdir
6125
6126
6127
6128
6129
6130case $host_os in
6131aix3*)
6132 # AIX sometimes has problems with the GCC collect2 program. For some
6133 # reason, if we set the COLLECT_NAMES environment variable, the problems
6134 # vanish in a puff of smoke.
6135 if test "X${COLLECT_NAMES+set}" != Xset; then
6136 COLLECT_NAMES=
6137 export COLLECT_NAMES
6138 fi
6139 ;;
6140esac
6141
6142# Sed substitution that helps us do robust quoting. It backslashifies
6143# metacharacters that are still active within double-quoted strings.
6144Xsed='sed -e s/^X//'
6145sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6146
6147# Same as above, but do not quote variable references.
6148double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6149
6150# Sed substitution to delay expansion of an escaped shell variable in a
6151# double_quote_subst'ed string.
6152delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6153
6154# Sed substitution to avoid accidental globbing in evaled expressions
6155no_glob_subst='s/\*/\\\*/g'
6156
6157# Constants:
6158rm="rm -f"
6159
6160# Global variables:
6161default_ofile=libtool
6162can_build_shared=yes
6163
6164# All known linkers require a `.a' archive for static linking (except M$VC,
6165# which needs '.lib').
6166libext=a
6167ltmain="$ac_aux_dir/ltmain.sh"
6168ofile="$default_ofile"
6169with_gnu_ld="$lt_cv_prog_gnu_ld"
6170
6171if test -n "$ac_tool_prefix"; then
6172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6173set dummy ${ac_tool_prefix}ar; ac_word=$2
6174echo "$as_me:$LINENO: checking for $ac_word" >&5
6175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6176if test "${ac_cv_prog_AR+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
6179 if test -n "$AR"; then
6180 ac_cv_prog_AR="$AR" # Let the user override the test.
6181else
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189 ac_cv_prog_AR="${ac_tool_prefix}ar"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6192 fi
6193done
6194done
6195
6196fi
6197fi
6198AR=$ac_cv_prog_AR
6199if test -n "$AR"; then
6200 echo "$as_me:$LINENO: result: $AR" >&5
6201echo "${ECHO_T}$AR" >&6
6202else
6203 echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6
6205fi
6206
6207fi
6208if test -z "$ac_cv_prog_AR"; then
6209 ac_ct_AR=$AR
6210 # Extract the first word of "ar", so it can be a program name with args.
6211set dummy ar; ac_word=$2
6212echo "$as_me:$LINENO: checking for $ac_word" >&5
6213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6214if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217 if test -n "$ac_ct_AR"; then
6218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_ac_ct_AR="ar"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231done
6232done
6233
6234 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6235fi
6236fi
6237ac_ct_AR=$ac_cv_prog_ac_ct_AR
6238if test -n "$ac_ct_AR"; then
6239 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6240echo "${ECHO_T}$ac_ct_AR" >&6
6241else
6242 echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6
6244fi
6245
6246 AR=$ac_ct_AR
6247else
6248 AR="$ac_cv_prog_AR"
6249fi
6250
6251if test -n "$ac_tool_prefix"; then
6252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6253set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6254echo "$as_me:$LINENO: checking for $ac_word" >&5
6255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6256if test "${ac_cv_prog_RANLIB+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259 if test -n "$RANLIB"; then
6260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6261else
6262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263for as_dir in $PATH
6264do
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6272 fi
6273done
6274done
6275
6276fi
6277fi
6278RANLIB=$ac_cv_prog_RANLIB
6279if test -n "$RANLIB"; then
6280 echo "$as_me:$LINENO: result: $RANLIB" >&5
6281echo "${ECHO_T}$RANLIB" >&6
6282else
6283 echo "$as_me:$LINENO: result: no" >&5
6284echo "${ECHO_T}no" >&6
6285fi
6286
6287fi
6288if test -z "$ac_cv_prog_RANLIB"; then
6289 ac_ct_RANLIB=$RANLIB
6290 # Extract the first word of "ranlib", so it can be a program name with args.
6291set dummy ranlib; ac_word=$2
6292echo "$as_me:$LINENO: checking for $ac_word" >&5
6293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6294if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296else
6297 if test -n "$ac_ct_RANLIB"; then
6298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6299else
6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301for as_dir in $PATH
6302do
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307 ac_cv_prog_ac_ct_RANLIB="ranlib"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6310 fi
6311done
6312done
6313
6314 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6315fi
6316fi
6317ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6318if test -n "$ac_ct_RANLIB"; then
6319 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6320echo "${ECHO_T}$ac_ct_RANLIB" >&6
6321else
6322 echo "$as_me:$LINENO: result: no" >&5
6323echo "${ECHO_T}no" >&6
6324fi
6325
6326 RANLIB=$ac_ct_RANLIB
6327else
6328 RANLIB="$ac_cv_prog_RANLIB"
6329fi
6330
6331if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6333set dummy ${ac_tool_prefix}strip; ac_word=$2
6334echo "$as_me:$LINENO: checking for $ac_word" >&5
6335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6336if test "${ac_cv_prog_STRIP+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339 if test -n "$STRIP"; then
6340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353done
6354done
6355
6356fi
6357fi
6358STRIP=$ac_cv_prog_STRIP
6359if test -n "$STRIP"; then
6360 echo "$as_me:$LINENO: result: $STRIP" >&5
6361echo "${ECHO_T}$STRIP" >&6
6362else
6363 echo "$as_me:$LINENO: result: no" >&5
6364echo "${ECHO_T}no" >&6
6365fi
6366
6367fi
6368if test -z "$ac_cv_prog_STRIP"; then
6369 ac_ct_STRIP=$STRIP
6370 # Extract the first word of "strip", so it can be a program name with args.
6371set dummy strip; ac_word=$2
6372echo "$as_me:$LINENO: checking for $ac_word" >&5
6373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6374if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377 if test -n "$ac_ct_STRIP"; then
6378 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_ac_ct_STRIP="strip"
6388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391done
6392done
6393
6394 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6395fi
6396fi
6397ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6398if test -n "$ac_ct_STRIP"; then
6399 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6400echo "${ECHO_T}$ac_ct_STRIP" >&6
6401else
6402 echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
6404fi
6405
6406 STRIP=$ac_ct_STRIP
6407else
6408 STRIP="$ac_cv_prog_STRIP"
6409fi
6410
6411
6412old_CC="$CC"
6413old_CFLAGS="$CFLAGS"
6414
6415# Set sane defaults for various variables
6416test -z "$AR" && AR=ar
6417test -z "$AR_FLAGS" && AR_FLAGS=cru
6418test -z "$AS" && AS=as
6419test -z "$CC" && CC=cc
6420test -z "$LTCC" && LTCC=$CC
6421test -z "$DLLTOOL" && DLLTOOL=dlltool
6422test -z "$LD" && LD=ld
6423test -z "$LN_S" && LN_S="ln -s"
6424test -z "$MAGIC_CMD" && MAGIC_CMD=file
6425test -z "$NM" && NM=nm
6426test -z "$SED" && SED=sed
6427test -z "$OBJDUMP" && OBJDUMP=objdump
6428test -z "$RANLIB" && RANLIB=:
6429test -z "$STRIP" && STRIP=:
6430test -z "$ac_objext" && ac_objext=o
6431
6432# Determine commands to create old-style static archives.
6433old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6434old_postinstall_cmds='chmod 644 $oldlib'
6435old_postuninstall_cmds=
6436
6437if test -n "$RANLIB"; then
6438 case $host_os in
6439 openbsd*)
6440 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6441 ;;
6442 *)
6443 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6444 ;;
6445 esac
6446 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6447fi
6448
6449# Only perform the check for file, if the check method requires it
6450case $deplibs_check_method in
6451file_magic*)
6452 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6453 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6454echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6455if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457else
6458 case $MAGIC_CMD in
6459[\\/*] | ?:[\\/]*)
6460 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6461 ;;
6462*)
6463 lt_save_MAGIC_CMD="$MAGIC_CMD"
6464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6465 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6466 for ac_dir in $ac_dummy; do
6467 IFS="$lt_save_ifs"
6468 test -z "$ac_dir" && ac_dir=.
6469 if test -f $ac_dir/${ac_tool_prefix}file; then
6470 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6471 if test -n "$file_magic_test_file"; then
6472 case $deplibs_check_method in
6473 "file_magic "*)
6474 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6476 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6477 $EGREP "$file_magic_regex" > /dev/null; then
6478 :
6479 else
6480 cat <<EOF 1>&2
6481
6482*** Warning: the command libtool uses to detect shared libraries,
6483*** $file_magic_cmd, produces output that libtool cannot recognize.
6484*** The result is that libtool may fail to recognize shared libraries
6485*** as such. This will affect the creation of libtool libraries that
6486*** depend on shared libraries, but programs linked with such libtool
6487*** libraries will work regardless of this problem. Nevertheless, you
6488*** may want to report the problem to your system manager and/or to
6489*** bug-libtool@gnu.org
6490
6491EOF
6492 fi ;;
6493 esac
6494 fi
6495 break
6496 fi
6497 done
6498 IFS="$lt_save_ifs"
6499 MAGIC_CMD="$lt_save_MAGIC_CMD"
6500 ;;
6501esac
6502fi
6503
6504MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6505if test -n "$MAGIC_CMD"; then
6506 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6507echo "${ECHO_T}$MAGIC_CMD" >&6
6508else
6509 echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6
6511fi
6512
6513if test -z "$lt_cv_path_MAGIC_CMD"; then
6514 if test -n "$ac_tool_prefix"; then
6515 echo "$as_me:$LINENO: checking for file" >&5
6516echo $ECHO_N "checking for file... $ECHO_C" >&6
6517if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520 case $MAGIC_CMD in
6521[\\/*] | ?:[\\/]*)
6522 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6523 ;;
6524*)
6525 lt_save_MAGIC_CMD="$MAGIC_CMD"
6526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6527 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6528 for ac_dir in $ac_dummy; do
6529 IFS="$lt_save_ifs"
6530 test -z "$ac_dir" && ac_dir=.
6531 if test -f $ac_dir/file; then
6532 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6533 if test -n "$file_magic_test_file"; then
6534 case $deplibs_check_method in
6535 "file_magic "*)
6536 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6538 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6539 $EGREP "$file_magic_regex" > /dev/null; then
6540 :
6541 else
6542 cat <<EOF 1>&2
6543
6544*** Warning: the command libtool uses to detect shared libraries,
6545*** $file_magic_cmd, produces output that libtool cannot recognize.
6546*** The result is that libtool may fail to recognize shared libraries
6547*** as such. This will affect the creation of libtool libraries that
6548*** depend on shared libraries, but programs linked with such libtool
6549*** libraries will work regardless of this problem. Nevertheless, you
6550*** may want to report the problem to your system manager and/or to
6551*** bug-libtool@gnu.org
6552
6553EOF
6554 fi ;;
6555 esac
6556 fi
6557 break
6558 fi
6559 done
6560 IFS="$lt_save_ifs"
6561 MAGIC_CMD="$lt_save_MAGIC_CMD"
6562 ;;
6563esac
6564fi
6565
6566MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6567if test -n "$MAGIC_CMD"; then
6568 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6569echo "${ECHO_T}$MAGIC_CMD" >&6
6570else
6571 echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6
6573fi
6574
6575 else
6576 MAGIC_CMD=:
6577 fi
6578fi
6579
6580 fi
6581 ;;
6582esac
6583
6584enable_dlopen=no
6585enable_win32_dll=yes
6586
6587# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6588if test "${enable_libtool_lock+set}" = set; then
6589 enableval="$enable_libtool_lock"
6590
6591fi;
6592test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6593
6594
6595# Check whether --with-pic or --without-pic was given.
6596if test "${with_pic+set}" = set; then
6597 withval="$with_pic"
6598 pic_mode="$withval"
6599else
6600 pic_mode=default
6601fi;
6602test -z "$pic_mode" && pic_mode=default
6603
6604# Use C for the default configuration in the libtool script
6605tagname=
6606lt_save_CC="$CC"
6607ac_ext=c
6608ac_cpp='$CPP $CPPFLAGS'
6609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611ac_compiler_gnu=$ac_cv_c_compiler_gnu
6612
6613
6614# Source file extension for C test sources.
6615ac_ext=c
6616
6617# Object file extension for compiled C test sources.
6618objext=o
6619objext=$objext
6620
6621# Code to be used in simple compile tests
6622lt_simple_compile_test_code="int some_variable = 0;\n"
6623
6624# Code to be used in simple link tests
6625lt_simple_link_test_code='int main(){return(0);}\n'
6626
6627
6628# If no C compiler was specified, use CC.
6629LTCC=${LTCC-"$CC"}
6630
6631# Allow CC to be a program name with arguments.
6632compiler=$CC
6633
6634
6635#
6636# Check for any special shared library compilation flags.
6637#
6638lt_prog_cc_shlib=
6639if test "$GCC" = no; then
6640 case $host_os in
6641 sco3.2v5*)
6642 lt_prog_cc_shlib='-belf'
6643 ;;
6644 esac
6645fi
6646if test -n "$lt_prog_cc_shlib"; then
6647 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6648echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6649 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6650 else
6651 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6652echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6653 lt_cv_prog_cc_can_build_shared=no
6654 fi
6655fi
6656
6657
6658#
6659# Check to make sure the static flag actually works.
6660#
6661echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6662echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6663if test "${lt_prog_compiler_static_works+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665else
6666 lt_prog_compiler_static_works=no
6667 save_LDFLAGS="$LDFLAGS"
6668 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6669 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6671 # The compiler can only warn and ignore the option if not recognized
6672 # So say no if there are warnings
6673 if test -s conftest.err; then
6674 # Append any errors to the config.log.
6675 cat conftest.err 1>&5
6676 else
6677 lt_prog_compiler_static_works=yes
6678 fi
6679 fi
6680 $rm conftest*
6681 LDFLAGS="$save_LDFLAGS"
6682
6683fi
6684echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6685echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6686
6687if test x"$lt_prog_compiler_static_works" = xyes; then
6688 :
6689else
6690 lt_prog_compiler_static=
6691fi
6692
6693
6694
6695
6696lt_prog_compiler_no_builtin_flag=
6697
6698if test "$GCC" = yes; then
6699 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6700
6701
6702echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6703echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6704if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706else
6707 lt_cv_prog_compiler_rtti_exceptions=no
6708 ac_outfile=conftest.$ac_objext
6709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6710 lt_compiler_flag="-fno-rtti -fno-exceptions"
6711 # Insert the option either (1) after the last *FLAGS variable, or
6712 # (2) before a word containing "conftest.", or (3) at the end.
6713 # Note that $ac_compile itself does not contain backslashes and begins
6714 # with a dollar sign (not a hyphen), so the echo should work correctly.
6715 # The option is referenced via a variable to avoid confusing sed.
6716 lt_compile=`echo "$ac_compile" | $SED \
6717 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6719 -e 's:$: $lt_compiler_flag:'`
6720 (eval echo "\"\$as_me:6720: $lt_compile\"" >&5)
6721 (eval "$lt_compile" 2>conftest.err)
6722 ac_status=$?
6723 cat conftest.err >&5
6724 echo "$as_me:6724: \$? = $ac_status" >&5
6725 if (exit $ac_status) && test -s "$ac_outfile"; then
6726 # The compiler can only warn and ignore the option if not recognized
6727 # So say no if there are warnings
6728 if test ! -s conftest.err; then
6729 lt_cv_prog_compiler_rtti_exceptions=yes
6730 fi
6731 fi
6732 $rm conftest*
6733
6734fi
6735echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6736echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6737
6738if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6739 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6740else
6741 :
6742fi
6743
6744fi
6745
6746lt_prog_compiler_wl=
6747lt_prog_compiler_pic=
6748lt_prog_compiler_static=
6749
6750echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6751echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6752
6753 if test "$GCC" = yes; then
6754 lt_prog_compiler_wl='-Wl,'
6755 lt_prog_compiler_static='-static'
6756
6757 case $host_os in
6758 aix*)
6759 # All AIX code is PIC.
6760 if test "$host_cpu" = ia64; then
6761 # AIX 5 now supports IA64 processor
6762 lt_prog_compiler_static='-Bstatic'
6763 fi
6764 ;;
6765
6766 amigaos*)
6767 # FIXME: we need at least 68020 code to build shared libraries, but
6768 # adding the `-m68020' flag to GCC prevents building anything better,
6769 # like `-m68040'.
6770 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6771 ;;
6772
6773 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6774 # PIC is the default for these OSes.
6775 ;;
6776
6777 mingw* | pw32* | os2*)
6778 # This hack is so that the source file can tell whether it is being
6779 # built for inclusion in a dll (and should export symbols for example).
6780 lt_prog_compiler_pic='-DDLL_EXPORT'
6781 ;;
6782
6783 darwin* | rhapsody*)
6784 # PIC is the default on this platform
6785 # Common symbols not allowed in MH_DYLIB files
6786 lt_prog_compiler_pic='-fno-common'
6787 ;;
6788
6789 msdosdjgpp*)
6790 # Just because we use GCC doesn't mean we suddenly get shared libraries
6791 # on systems that don't support them.
6792 lt_prog_compiler_can_build_shared=no
6793 enable_shared=no
6794 ;;
6795
6796 sysv4*MP*)
6797 if test -d /usr/nec; then
6798 lt_prog_compiler_pic=-Kconform_pic
6799 fi
6800 ;;
6801
6802 hpux*)
6803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6804 # not for PA HP-UX.
6805 case "$host_cpu" in
6806 hppa*64*|ia64*)
6807 # +Z the default
6808 ;;
6809 *)
6810 lt_prog_compiler_pic='-fPIC'
6811 ;;
6812 esac
6813 ;;
6814
6815 *)
6816 lt_prog_compiler_pic='-fPIC'
6817 ;;
6818 esac
6819 else
6820 # PORTME Check for flag to pass linker flags through the system compiler.
6821 case $host_os in
6822 aix*)
6823 lt_prog_compiler_wl='-Wl,'
6824 if test "$host_cpu" = ia64; then
6825 # AIX 5 now supports IA64 processor
6826 lt_prog_compiler_static='-Bstatic'
6827 else
6828 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6829 fi
6830 ;;
6831
6832 mingw* | pw32* | os2*)
6833 # This hack is so that the source file can tell whether it is being
6834 # built for inclusion in a dll (and should export symbols for example).
6835 lt_prog_compiler_pic='-DDLL_EXPORT'
6836 ;;
6837
6838 hpux9* | hpux10* | hpux11*)
6839 lt_prog_compiler_wl='-Wl,'
6840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6841 # not for PA HP-UX.
6842 case "$host_cpu" in
6843 hppa*64*|ia64*)
6844 # +Z the default
6845 ;;
6846 *)
6847 lt_prog_compiler_pic='+Z'
6848 ;;
6849 esac
6850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6851 lt_prog_compiler_static='${wl}-a ${wl}archive'
6852 ;;
6853
6854 irix5* | irix6* | nonstopux*)
6855 lt_prog_compiler_wl='-Wl,'
6856 # PIC (with -KPIC) is the default.
6857 lt_prog_compiler_static='-non_shared'
6858 ;;
6859
6860 newsos6)
6861 lt_prog_compiler_pic='-KPIC'
6862 lt_prog_compiler_static='-Bstatic'
6863 ;;
6864
6865 linux*)
6866 case $CC in
6867 icc* | ecc*)
6868 lt_prog_compiler_wl='-Wl,'
6869 lt_prog_compiler_pic='-KPIC'
6870 lt_prog_compiler_static='-static'
6871 ;;
6872 ccc*)
6873 lt_prog_compiler_wl='-Wl,'
6874 # All Alpha code is PIC.
6875 lt_prog_compiler_static='-non_shared'
6876 ;;
6877 esac
6878 ;;
6879
6880 osf3* | osf4* | osf5*)
6881 lt_prog_compiler_wl='-Wl,'
6882 # All OSF/1 code is PIC.
6883 lt_prog_compiler_static='-non_shared'
6884 ;;
6885
6886 sco3.2v5*)
6887 lt_prog_compiler_pic='-Kpic'
6888 lt_prog_compiler_static='-dn'
6889 ;;
6890
6891 solaris*)
6892 lt_prog_compiler_wl='-Wl,'
6893 lt_prog_compiler_pic='-KPIC'
6894 lt_prog_compiler_static='-Bstatic'
6895 ;;
6896
6897 sunos4*)
6898 lt_prog_compiler_wl='-Qoption ld '
6899 lt_prog_compiler_pic='-PIC'
6900 lt_prog_compiler_static='-Bstatic'
6901 ;;
6902
6903 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6904 lt_prog_compiler_wl='-Wl,'
6905 lt_prog_compiler_pic='-KPIC'
6906 lt_prog_compiler_static='-Bstatic'
6907 ;;
6908
6909 sysv4*MP*)
6910 if test -d /usr/nec ;then
6911 lt_prog_compiler_pic='-Kconform_pic'
6912 lt_prog_compiler_static='-Bstatic'
6913 fi
6914 ;;
6915
6916 uts4*)
6917 lt_prog_compiler_pic='-pic'
6918 lt_prog_compiler_static='-Bstatic'
6919 ;;
6920
6921 *)
6922 lt_prog_compiler_can_build_shared=no
6923 ;;
6924 esac
6925 fi
6926
6927echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6928echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6929
6930#
6931# Check to make sure the PIC flag actually works.
6932#
6933if test -n "$lt_prog_compiler_pic"; then
6934
6935echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6936echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6937if test "${lt_prog_compiler_pic_works+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940 lt_prog_compiler_pic_works=no
6941 ac_outfile=conftest.$ac_objext
6942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6943 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6944 # Insert the option either (1) after the last *FLAGS variable, or
6945 # (2) before a word containing "conftest.", or (3) at the end.
6946 # Note that $ac_compile itself does not contain backslashes and begins
6947 # with a dollar sign (not a hyphen), so the echo should work correctly.
6948 # The option is referenced via a variable to avoid confusing sed.
6949 lt_compile=`echo "$ac_compile" | $SED \
6950 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6952 -e 's:$: $lt_compiler_flag:'`
6953 (eval echo "\"\$as_me:6953: $lt_compile\"" >&5)
6954 (eval "$lt_compile" 2>conftest.err)
6955 ac_status=$?
6956 cat conftest.err >&5
6957 echo "$as_me:6957: \$? = $ac_status" >&5
6958 if (exit $ac_status) && test -s "$ac_outfile"; then
6959 # The compiler can only warn and ignore the option if not recognized
6960 # So say no if there are warnings
6961 if test ! -s conftest.err; then
6962 lt_prog_compiler_pic_works=yes
6963 fi
6964 fi
6965 $rm conftest*
6966
6967fi
6968echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6969echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6970
6971if test x"$lt_prog_compiler_pic_works" = xyes; then
6972 case $lt_prog_compiler_pic in
6973 "" | " "*) ;;
6974 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6975 esac
6976else
6977 lt_prog_compiler_pic=
6978 lt_prog_compiler_can_build_shared=no
6979fi
6980
6981fi
6982case "$host_os" in
6983 # For platforms which do not support PIC, -DPIC is meaningless:
6984 *djgpp*)
6985 lt_prog_compiler_pic=
6986 ;;
6987 *)
6988 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6989 ;;
6990esac
6991
6992echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6993echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6994if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997 lt_cv_prog_compiler_c_o=no
6998 $rm -r conftest 2>/dev/null
6999 mkdir conftest
7000 cd conftest
7001 mkdir out
7002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7003
7004 lt_compiler_flag="-o out/conftest2.$ac_objext"
7005 # Insert the option either (1) after the last *FLAGS variable, or
7006 # (2) before a word containing "conftest.", or (3) at the end.
7007 # Note that $ac_compile itself does not contain backslashes and begins
7008 # with a dollar sign (not a hyphen), so the echo should work correctly.
7009 lt_compile=`echo "$ac_compile" | $SED \
7010 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7012 -e 's:$: $lt_compiler_flag:'`
7013 (eval echo "\"\$as_me:7013: $lt_compile\"" >&5)
7014 (eval "$lt_compile" 2>out/conftest.err)
7015 ac_status=$?
7016 cat out/conftest.err >&5
7017 echo "$as_me:7017: \$? = $ac_status" >&5
7018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7019 then
7020 # The compiler can only warn and ignore the option if not recognized
7021 # So say no if there are warnings
7022 if test ! -s out/conftest.err; then
7023 lt_cv_prog_compiler_c_o=yes
7024 fi
7025 fi
7026 chmod u+w .
7027 $rm conftest*
7028 # SGI C++ compiler will create directory out/ii_files/ for
7029 # template instantiation
7030 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7031 $rm out/* && rmdir out
7032 cd ..
7033 rmdir conftest
7034 $rm conftest*
7035
7036fi
7037echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7038echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7039
7040
7041hard_links="nottested"
7042if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7043 # do not overwrite the value of need_locks provided by the user
7044 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7045echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7046 hard_links=yes
7047 $rm conftest*
7048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7049 touch conftest.a
7050 ln conftest.a conftest.b 2>&5 || hard_links=no
7051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7052 echo "$as_me:$LINENO: result: $hard_links" >&5
7053echo "${ECHO_T}$hard_links" >&6
7054 if test "$hard_links" = no; then
7055 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7056echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7057 need_locks=warn
7058 fi
7059else
7060 need_locks=no
7061fi
7062
7063echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7064echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7065
7066 runpath_var=
7067 allow_undefined_flag=
7068 enable_shared_with_static_runtimes=no
7069 archive_cmds=
7070 archive_expsym_cmds=
7071 old_archive_From_new_cmds=
7072 old_archive_from_expsyms_cmds=
7073 export_dynamic_flag_spec=
7074 whole_archive_flag_spec=
7075 thread_safe_flag_spec=
7076 hardcode_libdir_flag_spec=
7077 hardcode_libdir_flag_spec_ld=
7078 hardcode_libdir_separator=
7079 hardcode_direct=no
7080 hardcode_minus_L=no
7081 hardcode_shlibpath_var=unsupported
7082 link_all_deplibs=unknown
7083 hardcode_automatic=no
7084 module_cmds=
7085 module_expsym_cmds=
7086 always_export_symbols=no
7087 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7088 # include_expsyms should be a list of space-separated symbols to be *always*
7089 # included in the symbol list
7090 include_expsyms=
7091 # exclude_expsyms can be an extended regexp of symbols to exclude
7092 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7093 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7094 # as well as any symbol that contains `d'.
7095 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7096 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7097 # platforms (ab)use it in PIC code, but their linkers get confused if
7098 # the symbol is explicitly referenced. Since portable code cannot
7099 # rely on this symbol name, it's probably fine to never include it in
7100 # preloaded symbol tables.
7101 extract_expsyms_cmds=
7102
7103 case $host_os in
7104 cygwin* | mingw* | pw32*)
7105 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7106 # When not using gcc, we currently assume that we are using
7107 # Microsoft Visual C++.
7108 if test "$GCC" != yes; then
7109 with_gnu_ld=no
7110 fi
7111 ;;
7112 openbsd*)
7113 with_gnu_ld=no
7114 ;;
7115 esac
7116
7117 ld_shlibs=yes
7118 if test "$with_gnu_ld" = yes; then
7119 # If archive_cmds runs LD, not CC, wlarc should be empty
7120 wlarc='${wl}'
7121
7122 # See if GNU ld supports shared libraries.
7123 case $host_os in
7124 aix3* | aix4* | aix5*)
7125 # On AIX/PPC, the GNU linker is very broken
7126 if test "$host_cpu" != ia64; then
7127 ld_shlibs=no
7128 cat <<EOF 1>&2
7129
7130*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7131*** to be unable to reliably create shared libraries on AIX.
7132*** Therefore, libtool is disabling shared libraries support. If you
7133*** really care for shared libraries, you may want to modify your PATH
7134*** so that a non-GNU linker is found, and then restart.
7135
7136EOF
7137 fi
7138 ;;
7139
7140 amigaos*)
7141 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)'
7142 hardcode_libdir_flag_spec='-L$libdir'
7143 hardcode_minus_L=yes
7144
7145 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7146 # that the semantics of dynamic libraries on AmigaOS, at least up
7147 # to version 4, is to share data among multiple programs linked
7148 # with the same dynamic library. Since this doesn't match the
7149 # behavior of shared libraries on other platforms, we can't use
7150 # them.
7151 ld_shlibs=no
7152 ;;
7153
7154 beos*)
7155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7156 allow_undefined_flag=unsupported
7157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7158 # support --undefined. This deserves some investigation. FIXME
7159 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7160 else
7161 ld_shlibs=no
7162 fi
7163 ;;
7164
7165 cygwin* | mingw* | pw32*)
7166 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7167 # as there is no search path for DLLs.
7168 hardcode_libdir_flag_spec='-L$libdir'
7169 allow_undefined_flag=unsupported
7170 always_export_symbols=no
7171 enable_shared_with_static_runtimes=yes
7172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7173
7174 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7176 # If the export-symbols file already is a .def file (1st line
7177 # is EXPORTS), use it as is; otherwise, prepend...
7178 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7179 cp $export_symbols $output_objdir/$soname.def;
7180 else
7181 echo EXPORTS > $output_objdir/$soname.def;
7182 cat $export_symbols >> $output_objdir/$soname.def;
7183 fi~
7184 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7185 else
7186 ld_shlibs=no
7187 fi
7188 ;;
7189
7190 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7192 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7193 wlarc=
7194 else
7195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7196 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7197 fi
7198 ;;
7199
7200 solaris* | sysv5*)
7201 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7202 ld_shlibs=no
7203 cat <<EOF 1>&2
7204
7205*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7206*** create shared libraries on Solaris systems. Therefore, libtool
7207*** is disabling shared libraries support. We urge you to upgrade GNU
7208*** binutils to release 2.9.1 or newer. Another option is to modify
7209*** your PATH or compiler configuration so that the native linker is
7210*** used, and then restart.
7211
7212EOF
7213 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7216 else
7217 ld_shlibs=no
7218 fi
7219 ;;
7220
7221 sunos4*)
7222 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7223 wlarc=
7224 hardcode_direct=yes
7225 hardcode_shlibpath_var=no
7226 ;;
7227
7228 linux*)
7229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7230 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7231 archive_cmds="$tmp_archive_cmds"
7232 supports_anon_versioning=no
7233 case `$LD -v 2>/dev/null` in
7234 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7235 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7236 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7237 *\ 2.11.*) ;; # other 2.11 versions
7238 *) supports_anon_versioning=yes ;;
7239 esac
7240 if test $supports_anon_versioning = yes; then
7241 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7242cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7243$echo "local: *; };" >> $output_objdir/$libname.ver~
7244 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7245 else
7246 archive_expsym_cmds="$tmp_archive_cmds"
7247 fi
7248 link_all_deplibs=no
7249 else
7250 ld_shlibs=no
7251 fi
7252 ;;
7253
7254 *)
7255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7258 else
7259 ld_shlibs=no
7260 fi
7261 ;;
7262 esac
7263
7264 if test "$ld_shlibs" = yes; then
7265 runpath_var=LD_RUN_PATH
7266 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7267 export_dynamic_flag_spec='${wl}--export-dynamic'
7268 # ancient GNU ld didn't support --whole-archive et. al.
7269 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7270 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7271 else
7272 whole_archive_flag_spec=
7273 fi
7274 fi
7275 else
7276 # PORTME fill in a description of your system's linker (not GNU ld)
7277 case $host_os in
7278 aix3*)
7279 allow_undefined_flag=unsupported
7280 always_export_symbols=yes
7281 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'
7282 # Note: this linker hardcodes the directories in LIBPATH if there
7283 # are no directories specified by -L.
7284 hardcode_minus_L=yes
7285 if test "$GCC" = yes && test -z "$link_static_flag"; then
7286 # Neither direct hardcoding nor static linking is supported with a
7287 # broken collect2.
7288 hardcode_direct=unsupported
7289 fi
7290 ;;
7291
7292 aix4* | aix5*)
7293 if test "$host_cpu" = ia64; then
7294 # On IA64, the linker does run time linking by default, so we don't
7295 # have to do anything special.
7296 aix_use_runtimelinking=no
7297 exp_sym_flag='-Bexport'
7298 no_entry_flag=""
7299 else
7300 # If we're using GNU nm, then we don't want the "-C" option.
7301 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7302 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7303 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'
7304 else
7305 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'
7306 fi
7307 aix_use_runtimelinking=no
7308
7309 # Test if we are trying to use run time linking or normal
7310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7311 # need to do runtime linking.
7312 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7313 for ld_flag in $LDFLAGS; do
7314 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7315 aix_use_runtimelinking=yes
7316 break
7317 fi
7318 done
7319 esac
7320
7321 exp_sym_flag='-bexport'
7322 no_entry_flag='-bnoentry'
7323 fi
7324
7325 # When large executables or shared objects are built, AIX ld can
7326 # have problems creating the table of contents. If linking a library
7327 # or program results in "error TOC overflow" add -mminimal-toc to
7328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7330
7331 archive_cmds=''
7332 hardcode_direct=yes
7333 hardcode_libdir_separator=':'
7334 link_all_deplibs=yes
7335
7336 if test "$GCC" = yes; then
7337 case $host_os in aix4.012|aix4.012.*)
7338 # We only want to do this on AIX 4.2 and lower, the check
7339 # below for broken collect2 doesn't work under 4.3+
7340 collect2name=`${CC} -print-prog-name=collect2`
7341 if test -f "$collect2name" && \
7342 strings "$collect2name" | grep resolve_lib_name >/dev/null
7343 then
7344 # We have reworked collect2
7345 hardcode_direct=yes
7346 else
7347 # We have old collect2
7348 hardcode_direct=unsupported
7349 # It fails to find uninstalled libraries when the uninstalled
7350 # path is not listed in the libpath. Setting hardcode_minus_L
7351 # to unsupported forces relinking
7352 hardcode_minus_L=yes
7353 hardcode_libdir_flag_spec='-L$libdir'
7354 hardcode_libdir_separator=
7355 fi
7356 esac
7357 shared_flag='-shared'
7358 else
7359 # not using gcc
7360 if test "$host_cpu" = ia64; then
7361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7362 # chokes on -Wl,-G. The following line is correct:
7363 shared_flag='-G'
7364 else
7365 if test "$aix_use_runtimelinking" = yes; then
7366 shared_flag='${wl}-G'
7367 else
7368 shared_flag='${wl}-bM:SRE'
7369 fi
7370 fi
7371 fi
7372
7373 # It seems that -bexpall does not export symbols beginning with
7374 # underscore (_), so it is better to generate a list of symbols to export.
7375 always_export_symbols=yes
7376 if test "$aix_use_runtimelinking" = yes; then
7377 # Warning - without using the other runtime loading flags (-brtl),
7378 # -berok will link without error, but may produce a broken library.
7379 allow_undefined_flag='-berok'
7380 # Determine the default libpath from the value encoded in an empty executable.
7381 cat >conftest.$ac_ext <<_ACEOF
7382/* confdefs.h. */
7383_ACEOF
7384cat confdefs.h >>conftest.$ac_ext
7385cat >>conftest.$ac_ext <<_ACEOF
7386/* end confdefs.h. */
7387
7388int
7389main ()
7390{
7391
7392 ;
7393 return 0;
7394}
7395_ACEOF
7396rm -f conftest.$ac_objext conftest$ac_exeext
7397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7398 (eval $ac_link) 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } &&
7405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; } &&
7411 { ac_try='test -s conftest$ac_exeext'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 (eval $ac_try) 2>&5
7414 ac_status=$?
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; }; then
7417
7418aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7419}'`
7420# Check for a 64-bit object if we didn't find anything.
7421if 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; }
7422}'`; fi
7423else
7424 echo "$as_me: failed program was:" >&5
7425sed 's/^/| /' conftest.$ac_ext >&5
7426
7427fi
7428rm -f conftest.err conftest.$ac_objext \
7429 conftest$ac_exeext conftest.$ac_ext
7430if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7431
7432 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7433 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"
7434 else
7435 if test "$host_cpu" = ia64; then
7436 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7437 allow_undefined_flag="-z nodefs"
7438 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"
7439 else
7440 # Determine the default libpath from the value encoded in an empty executable.
7441 cat >conftest.$ac_ext <<_ACEOF
7442/* confdefs.h. */
7443_ACEOF
7444cat confdefs.h >>conftest.$ac_ext
7445cat >>conftest.$ac_ext <<_ACEOF
7446/* end confdefs.h. */
7447
7448int
7449main ()
7450{
7451
7452 ;
7453 return 0;
7454}
7455_ACEOF
7456rm -f conftest.$ac_objext conftest$ac_exeext
7457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7458 (eval $ac_link) 2>conftest.er1
7459 ac_status=$?
7460 grep -v '^ *+' conftest.er1 >conftest.err
7461 rm -f conftest.er1
7462 cat conftest.err >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } &&
7465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 (eval $ac_try) 2>&5
7468 ac_status=$?
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; } &&
7471 { ac_try='test -s conftest$ac_exeext'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; }; then
7477
7478aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7479}'`
7480# Check for a 64-bit object if we didn't find anything.
7481if 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; }
7482}'`; fi
7483else
7484 echo "$as_me: failed program was:" >&5
7485sed 's/^/| /' conftest.$ac_ext >&5
7486
7487fi
7488rm -f conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7490if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7491
7492 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7493 # Warning - without using the other run time loading flags,
7494 # -berok will link without error, but may produce a broken library.
7495 no_undefined_flag=' ${wl}-bernotok'
7496 allow_undefined_flag=' ${wl}-berok'
7497 # -bexpall does not export symbols beginning with underscore (_)
7498 always_export_symbols=yes
7499 # Exported symbols can be pulled into shared objects from archives
7500 whole_archive_flag_spec=' '
7501 archive_cmds_need_lc=yes
7502 # This is similar to how AIX traditionally builds it's shared libraries.
7503 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'
7504 fi
7505 fi
7506 ;;
7507
7508 amigaos*)
7509 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)'
7510 hardcode_libdir_flag_spec='-L$libdir'
7511 hardcode_minus_L=yes
7512 # see comment about different semantics on the GNU ld section
7513 ld_shlibs=no
7514 ;;
7515
7516 bsdi4*)
7517 export_dynamic_flag_spec=-rdynamic
7518 ;;
7519
7520 cygwin* | mingw* | pw32*)
7521 # When not using gcc, we currently assume that we are using
7522 # Microsoft Visual C++.
7523 # hardcode_libdir_flag_spec is actually meaningless, as there is
7524 # no search path for DLLs.
7525 hardcode_libdir_flag_spec=' '
7526 allow_undefined_flag=unsupported
7527 # Tell ltmain to make .lib files, not .a files.
7528 libext=lib
7529 # Tell ltmain to make .dll files, not .so files.
7530 shrext_cmds=".dll"
7531 # FIXME: Setting linknames here is a bad hack.
7532 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7533 # The linker will automatically build a .lib file if we build a DLL.
7534 old_archive_From_new_cmds='true'
7535 # FIXME: Should let the user specify the lib program.
7536 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7537 fix_srcfile_path='`cygpath -w "$srcfile"`'
7538 enable_shared_with_static_runtimes=yes
7539 ;;
7540
7541 darwin* | rhapsody*)
7542 if test "$GXX" = yes ; then
7543 archive_cmds_need_lc=no
7544 case "$host_os" in
7545 rhapsody* | darwin1.[012])
7546 allow_undefined_flag='-undefined suppress'
7547 ;;
7548 *) # Darwin 1.3 on
7549 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7550 allow_undefined_flag='-flat_namespace -undefined suppress'
7551 else
7552 case ${MACOSX_DEPLOYMENT_TARGET} in
7553 10.[012])
7554 allow_undefined_flag='-flat_namespace -undefined suppress'
7555 ;;
7556 10.*)
7557 allow_undefined_flag='-undefined dynamic_lookup'
7558 ;;
7559 esac
7560 fi
7561 ;;
7562 esac
7563 lt_int_apple_cc_single_mod=no
7564 output_verbose_link_cmd='echo'
7565 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7566 lt_int_apple_cc_single_mod=yes
7567 fi
7568 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7569 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7570 else
7571 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'
7572 fi
7573 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7575 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7576 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}'
7577 else
7578 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}'
7579 fi
7580 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}'
7581 hardcode_direct=no
7582 hardcode_automatic=yes
7583 hardcode_shlibpath_var=unsupported
7584 whole_archive_flag_spec='-all_load $convenience'
7585 link_all_deplibs=yes
7586 else
7587 ld_shlibs=no
7588 fi
7589 ;;
7590
7591 dgux*)
7592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7593 hardcode_libdir_flag_spec='-L$libdir'
7594 hardcode_shlibpath_var=no
7595 ;;
7596
7597 freebsd1*)
7598 ld_shlibs=no
7599 ;;
7600
7601 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7602 # support. Future versions do this automatically, but an explicit c++rt0.o
7603 # does not break anything, and helps significantly (at the cost of a little
7604 # extra space).
7605 freebsd2.2*)
7606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7607 hardcode_libdir_flag_spec='-R$libdir'
7608 hardcode_direct=yes
7609 hardcode_shlibpath_var=no
7610 ;;
7611
7612 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7613 freebsd2*)
7614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7615 hardcode_direct=yes
7616 hardcode_minus_L=yes
7617 hardcode_shlibpath_var=no
7618 ;;
7619
7620 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7621 freebsd* | kfreebsd*-gnu)
7622 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7623 hardcode_libdir_flag_spec='-R$libdir'
7624 hardcode_direct=yes
7625 hardcode_shlibpath_var=no
7626 ;;
7627
7628 hpux9*)
7629 if test "$GCC" = yes; then
7630 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'
7631 else
7632 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'
7633 fi
7634 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7635 hardcode_libdir_separator=:
7636 hardcode_direct=yes
7637
7638 # hardcode_minus_L: Not really in the search PATH,
7639 # but as the default location of the library.
7640 hardcode_minus_L=yes
7641 export_dynamic_flag_spec='${wl}-E'
7642 ;;
7643
7644 hpux10* | hpux11*)
7645 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7646 case "$host_cpu" in
7647 hppa*64*|ia64*)
7648 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7649 ;;
7650 *)
7651 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7652 ;;
7653 esac
7654 else
7655 case "$host_cpu" in
7656 hppa*64*|ia64*)
7657 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7658 ;;
7659 *)
7660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7661 ;;
7662 esac
7663 fi
7664 if test "$with_gnu_ld" = no; then
7665 case "$host_cpu" in
7666 hppa*64*)
7667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7668 hardcode_libdir_flag_spec_ld='+b $libdir'
7669 hardcode_libdir_separator=:
7670 hardcode_direct=no
7671 hardcode_shlibpath_var=no
7672 ;;
7673 ia64*)
7674 hardcode_libdir_flag_spec='-L$libdir'
7675 hardcode_direct=no
7676 hardcode_shlibpath_var=no
7677
7678 # hardcode_minus_L: Not really in the search PATH,
7679 # but as the default location of the library.
7680 hardcode_minus_L=yes
7681 ;;
7682 *)
7683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7684 hardcode_libdir_separator=:
7685 hardcode_direct=yes
7686 export_dynamic_flag_spec='${wl}-E'
7687
7688 # hardcode_minus_L: Not really in the search PATH,
7689 # but as the default location of the library.
7690 hardcode_minus_L=yes
7691 ;;
7692 esac
7693 fi
7694 ;;
7695
7696 irix5* | irix6* | nonstopux*)
7697 if test "$GCC" = yes; then
7698 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'
7699 else
7700 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'
7701 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7702 fi
7703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7704 hardcode_libdir_separator=:
7705 link_all_deplibs=yes
7706 ;;
7707
7708 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7709 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7711 else
7712 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7713 fi
7714 hardcode_libdir_flag_spec='-R$libdir'
7715 hardcode_direct=yes
7716 hardcode_shlibpath_var=no
7717 ;;
7718
7719 newsos6)
7720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7721 hardcode_direct=yes
7722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7723 hardcode_libdir_separator=:
7724 hardcode_shlibpath_var=no
7725 ;;
7726
7727 openbsd*)
7728 hardcode_direct=yes
7729 hardcode_shlibpath_var=no
7730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7731 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7732 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7733 export_dynamic_flag_spec='${wl}-E'
7734 else
7735 case $host_os in
7736 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7738 hardcode_libdir_flag_spec='-R$libdir'
7739 ;;
7740 *)
7741 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7742 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7743 ;;
7744 esac
7745 fi
7746 ;;
7747
7748 os2*)
7749 hardcode_libdir_flag_spec='-L$libdir'
7750 hardcode_minus_L=yes
7751 allow_undefined_flag=unsupported
7752 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'
7753 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7754 ;;
7755
7756 osf3*)
7757 if test "$GCC" = yes; then
7758 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7759 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'
7760 else
7761 allow_undefined_flag=' -expect_unresolved \*'
7762 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'
7763 fi
7764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7765 hardcode_libdir_separator=:
7766 ;;
7767
7768 osf4* | osf5*) # as osf3* with the addition of -msym flag
7769 if test "$GCC" = yes; then
7770 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7771 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'
7772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7773 else
7774 allow_undefined_flag=' -expect_unresolved \*'
7775 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'
7776 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7777 $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'
7778
7779 # Both c and cxx compiler support -rpath directly
7780 hardcode_libdir_flag_spec='-rpath $libdir'
7781 fi
7782 hardcode_libdir_separator=:
7783 ;;
7784
7785 sco3.2v5*)
7786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7787 hardcode_shlibpath_var=no
7788 export_dynamic_flag_spec='${wl}-Bexport'
7789 runpath_var=LD_RUN_PATH
7790 hardcode_runpath_var=yes
7791 ;;
7792
7793 solaris*)
7794 no_undefined_flag=' -z text'
7795 if test "$GCC" = yes; then
7796 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7797 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7798 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7799 else
7800 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7801 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7802 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7803 fi
7804 hardcode_libdir_flag_spec='-R$libdir'
7805 hardcode_shlibpath_var=no
7806 case $host_os in
7807 solaris2.[0-5] | solaris2.[0-5].*) ;;
7808 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7809 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7810 esac
7811 link_all_deplibs=yes
7812 ;;
7813
7814 sunos4*)
7815 if test "x$host_vendor" = xsequent; then
7816 # Use $CC to link under sequent, because it throws in some extra .o
7817 # files that make .init and .fini sections work.
7818 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7819 else
7820 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7821 fi
7822 hardcode_libdir_flag_spec='-L$libdir'
7823 hardcode_direct=yes
7824 hardcode_minus_L=yes
7825 hardcode_shlibpath_var=no
7826 ;;
7827
7828 sysv4)
7829 case $host_vendor in
7830 sni)
7831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832 hardcode_direct=yes # is this really true???
7833 ;;
7834 siemens)
7835 ## LD is ld it makes a PLAMLIB
7836 ## CC just makes a GrossModule.
7837 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7838 reload_cmds='$CC -r -o $output$reload_objs'
7839 hardcode_direct=no
7840 ;;
7841 motorola)
7842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7843 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7844 ;;
7845 esac
7846 runpath_var='LD_RUN_PATH'
7847 hardcode_shlibpath_var=no
7848 ;;
7849
7850 sysv4.3*)
7851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7852 hardcode_shlibpath_var=no
7853 export_dynamic_flag_spec='-Bexport'
7854 ;;
7855
7856 sysv4*MP*)
7857 if test -d /usr/nec; then
7858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7859 hardcode_shlibpath_var=no
7860 runpath_var=LD_RUN_PATH
7861 hardcode_runpath_var=yes
7862 ld_shlibs=yes
7863 fi
7864 ;;
7865
7866 sysv4.2uw2*)
7867 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7868 hardcode_direct=yes
7869 hardcode_minus_L=no
7870 hardcode_shlibpath_var=no
7871 hardcode_runpath_var=yes
7872 runpath_var=LD_RUN_PATH
7873 ;;
7874
7875 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7876 no_undefined_flag='${wl}-z ${wl}text'
7877 if test "$GCC" = yes; then
7878 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7879 else
7880 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7881 fi
7882 runpath_var='LD_RUN_PATH'
7883 hardcode_shlibpath_var=no
7884 ;;
7885
7886 sysv5*)
7887 no_undefined_flag=' -z text'
7888 # $CC -shared without GNU ld will not create a library from C++
7889 # object files and a static libstdc++, better avoid it by now
7890 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7893 hardcode_libdir_flag_spec=
7894 hardcode_shlibpath_var=no
7895 runpath_var='LD_RUN_PATH'
7896 ;;
7897
7898 uts4*)
7899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7900 hardcode_libdir_flag_spec='-L$libdir'
7901 hardcode_shlibpath_var=no
7902 ;;
7903
7904 *)
7905 ld_shlibs=no
7906 ;;
7907 esac
7908 fi
7909
7910echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7911echo "${ECHO_T}$ld_shlibs" >&6
7912test "$ld_shlibs" = no && can_build_shared=no
7913
7914variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7915if test "$GCC" = yes; then
7916 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7917fi
7918
7919#
7920# Do we need to explicitly link libc?
7921#
7922case "x$archive_cmds_need_lc" in
7923x|xyes)
7924 # Assume -lc should be added
7925 archive_cmds_need_lc=yes
7926
7927 if test "$enable_shared" = yes && test "$GCC" = yes; then
7928 case $archive_cmds in
7929 *'~'*)
7930 # FIXME: we may have to deal with multi-command sequences.
7931 ;;
7932 '$CC '*)
7933 # Test whether the compiler implicitly links with -lc since on some
7934 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7935 # to ld, don't add -lc before -lgcc.
7936 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7937echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7938 $rm conftest*
7939 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7940
7941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7942 (eval $ac_compile) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } 2>conftest.err; then
7946 soname=conftest
7947 lib=conftest
7948 libobjs=conftest.$ac_objext
7949 deplibs=
7950 wl=$lt_prog_compiler_wl
7951 compiler_flags=-v
7952 linker_flags=-v
7953 verstring=
7954 output_objdir=.
7955 libname=conftest
7956 lt_save_allow_undefined_flag=$allow_undefined_flag
7957 allow_undefined_flag=
7958 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7959 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }
7963 then
7964 archive_cmds_need_lc=no
7965 else
7966 archive_cmds_need_lc=yes
7967 fi
7968 allow_undefined_flag=$lt_save_allow_undefined_flag
7969 else
7970 cat conftest.err 1>&5
7971 fi
7972 $rm conftest*
7973 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7974echo "${ECHO_T}$archive_cmds_need_lc" >&6
7975 ;;
7976 esac
7977 fi
7978 ;;
7979esac
7980
7981echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7982echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7983library_names_spec=
7984libname_spec='lib$name'
7985soname_spec=
7986shrext_cmds=".so"
7987postinstall_cmds=
7988postuninstall_cmds=
7989finish_cmds=
7990finish_eval=
7991shlibpath_var=
7992shlibpath_overrides_runpath=unknown
7993version_type=none
7994dynamic_linker="$host_os ld.so"
7995sys_lib_dlsearch_path_spec="/lib /usr/lib"
7996if test "$GCC" = yes; then
7997 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7998 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7999 # if the path contains ";" then we assume it to be the separator
8000 # otherwise default to the standard path separator (i.e. ":") - it is
8001 # assumed that no part of a normal pathname contains ";" but that should
8002 # okay in the real world where ";" in dirpaths is itself problematic.
8003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8004 else
8005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8006 fi
8007else
8008 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8009fi
8010need_lib_prefix=unknown
8011hardcode_into_libs=no
8012
8013# when you set need_version to no, make sure it does not cause -set_version
8014# flags to be left without arguments
8015need_version=unknown
8016
8017case $host_os in
8018aix3*)
8019 version_type=linux
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8021 shlibpath_var=LIBPATH
8022
8023 # AIX 3 has no versioning support, so we append a major version to the name.
8024 soname_spec='${libname}${release}${shared_ext}$major'
8025 ;;
8026
8027aix4* | aix5*)
8028 version_type=linux
8029 need_lib_prefix=no
8030 need_version=no
8031 hardcode_into_libs=yes
8032 if test "$host_cpu" = ia64; then
8033 # AIX 5 supports IA64
8034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8035 shlibpath_var=LD_LIBRARY_PATH
8036 else
8037 # With GCC up to 2.95.x, collect2 would create an import file
8038 # for dependence libraries. The import file would start with
8039 # the line `#! .'. This would cause the generated library to
8040 # depend on `.', always an invalid library. This was fixed in
8041 # development snapshots of GCC prior to 3.0.
8042 case $host_os in
8043 aix4 | aix4.[01] | aix4.[01].*)
8044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8045 echo ' yes '
8046 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8047 :
8048 else
8049 can_build_shared=no
8050 fi
8051 ;;
8052 esac
8053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8054 # soname into executable. Probably we can add versioning support to
8055 # collect2, so additional links can be useful in future.
8056 if test "$aix_use_runtimelinking" = yes; then
8057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8058 # instead of lib<name>.a to let people know that these are not
8059 # typical AIX shared libraries.
8060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8061 else
8062 # We preserve .a as extension for shared libraries through AIX4.2
8063 # and later when we are not doing run time linking.
8064 library_names_spec='${libname}${release}.a $libname.a'
8065 soname_spec='${libname}${release}${shared_ext}$major'
8066 fi
8067 shlibpath_var=LIBPATH
8068 fi
8069 ;;
8070
8071amigaos*)
8072 library_names_spec='$libname.ixlibrary $libname.a'
8073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8074 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'
8075 ;;
8076
8077beos*)
8078 library_names_spec='${libname}${shared_ext}'
8079 dynamic_linker="$host_os ld.so"
8080 shlibpath_var=LIBRARY_PATH
8081 ;;
8082
8083bsdi4*)
8084 version_type=linux
8085 need_version=no
8086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8087 soname_spec='${libname}${release}${shared_ext}$major'
8088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8089 shlibpath_var=LD_LIBRARY_PATH
8090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8092 # the default ld.so.conf also contains /usr/contrib/lib and
8093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8094 # libtool to hard-code these into programs
8095 ;;
8096
8097cygwin* | mingw* | pw32*)
8098 version_type=windows
8099 shrext_cmds=".dll"
8100 need_version=no
8101 need_lib_prefix=no
8102
8103 case $GCC,$host_os in
8104 yes,cygwin* | yes,mingw* | yes,pw32*)
8105 library_names_spec='$libname.dll.a'
8106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8107 postinstall_cmds='base_file=`basename \${file}`~
8108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8109 dldir=$destdir/`dirname \$dlpath`~
8110 test -d \$dldir || mkdir -p \$dldir~
8111 $install_prog $dir/$dlname \$dldir/$dlname'
8112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8113 dlpath=$dir/\$dldll~
8114 $rm \$dlpath'
8115 shlibpath_overrides_runpath=yes
8116
8117 case $host_os in
8118 cygwin*)
8119 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8120 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8121 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8122 ;;
8123 mingw*)
8124 # MinGW DLLs use traditional 'lib' prefix
8125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8126 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8127 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8128 # It is most probably a Windows format PATH printed by
8129 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8130 # path with ; separators, and with drive letters. We can handle the
8131 # drive letters (cygwin fileutils understands them), so leave them,
8132 # especially as we might pass files found there to a mingw objdump,
8133 # which wouldn't understand a cygwinified path. Ahh.
8134 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8135 else
8136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8137 fi
8138 ;;
8139 pw32*)
8140 # pw32 DLLs use 'pw' prefix rather than 'lib'
8141 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8142 ;;
8143 esac
8144 ;;
8145
8146 *)
8147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8148 ;;
8149 esac
8150 dynamic_linker='Win32 ld.exe'
8151 # FIXME: first we should search . and the directory the executable is in
8152 shlibpath_var=PATH
8153 ;;
8154
8155darwin* | rhapsody*)
8156 dynamic_linker="$host_os dyld"
8157 version_type=darwin
8158 need_lib_prefix=no
8159 need_version=no
8160 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8161 soname_spec='${libname}${release}${major}$shared_ext'
8162 shlibpath_overrides_runpath=yes
8163 shlibpath_var=DYLD_LIBRARY_PATH
8164 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8165 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8166 if test "$GCC" = yes; then
8167 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"`
8168 else
8169 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8170 fi
8171 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8172 ;;
8173
8174dgux*)
8175 version_type=linux
8176 need_lib_prefix=no
8177 need_version=no
8178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8179 soname_spec='${libname}${release}${shared_ext}$major'
8180 shlibpath_var=LD_LIBRARY_PATH
8181 ;;
8182
8183freebsd1*)
8184 dynamic_linker=no
8185 ;;
8186
8187kfreebsd*-gnu)
8188 version_type=linux
8189 need_lib_prefix=no
8190 need_version=no
8191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8192 soname_spec='${libname}${release}${shared_ext}$major'
8193 shlibpath_var=LD_LIBRARY_PATH
8194 shlibpath_overrides_runpath=no
8195 hardcode_into_libs=yes
8196 dynamic_linker='GNU ld.so'
8197 ;;
8198
8199freebsd*)
8200 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8201 version_type=freebsd-$objformat
8202 case $version_type in
8203 freebsd-elf*)
8204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8205 need_version=no
8206 need_lib_prefix=no
8207 ;;
8208 freebsd-*)
8209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8210 need_version=yes
8211 ;;
8212 esac
8213 shlibpath_var=LD_LIBRARY_PATH
8214 case $host_os in
8215 freebsd2*)
8216 shlibpath_overrides_runpath=yes
8217 ;;
8218 freebsd3.01* | freebsdelf3.01*)
8219 shlibpath_overrides_runpath=yes
8220 hardcode_into_libs=yes
8221 ;;
8222 *) # from 3.2 on
8223 shlibpath_overrides_runpath=no
8224 hardcode_into_libs=yes
8225 ;;
8226 esac
8227 ;;
8228
8229gnu*)
8230 version_type=linux
8231 need_lib_prefix=no
8232 need_version=no
8233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8234 soname_spec='${libname}${release}${shared_ext}$major'
8235 shlibpath_var=LD_LIBRARY_PATH
8236 hardcode_into_libs=yes
8237 ;;
8238
8239hpux9* | hpux10* | hpux11*)
8240 # Give a soname corresponding to the major version so that dld.sl refuses to
8241 # link against other versions.
8242 version_type=sunos
8243 need_lib_prefix=no
8244 need_version=no
8245 case "$host_cpu" in
8246 ia64*)
8247 shrext_cmds='.so'
8248 hardcode_into_libs=yes
8249 dynamic_linker="$host_os dld.so"
8250 shlibpath_var=LD_LIBRARY_PATH
8251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8253 soname_spec='${libname}${release}${shared_ext}$major'
8254 if test "X$HPUX_IA64_MODE" = X32; then
8255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8256 else
8257 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8258 fi
8259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8260 ;;
8261 hppa*64*)
8262 shrext_cmds='.sl'
8263 hardcode_into_libs=yes
8264 dynamic_linker="$host_os dld.sl"
8265 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8268 soname_spec='${libname}${release}${shared_ext}$major'
8269 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8271 ;;
8272 *)
8273 shrext_cmds='.sl'
8274 dynamic_linker="$host_os dld.sl"
8275 shlibpath_var=SHLIB_PATH
8276 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8278 soname_spec='${libname}${release}${shared_ext}$major'
8279 ;;
8280 esac
8281 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8282 postinstall_cmds='chmod 555 $lib'
8283 ;;
8284
8285irix5* | irix6* | nonstopux*)
8286 case $host_os in
8287 nonstopux*) version_type=nonstopux ;;
8288 *)
8289 if test "$lt_cv_prog_gnu_ld" = yes; then
8290 version_type=linux
8291 else
8292 version_type=irix
8293 fi ;;
8294 esac
8295 need_lib_prefix=no
8296 need_version=no
8297 soname_spec='${libname}${release}${shared_ext}$major'
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8299 case $host_os in
8300 irix5* | nonstopux*)
8301 libsuff= shlibsuff=
8302 ;;
8303 *)
8304 case $LD in # libtool.m4 will add one of these switches to LD
8305 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8306 libsuff= shlibsuff= libmagic=32-bit;;
8307 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8308 libsuff=32 shlibsuff=N32 libmagic=N32;;
8309 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8310 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8311 *) libsuff= shlibsuff= libmagic=never-match;;
8312 esac
8313 ;;
8314 esac
8315 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8316 shlibpath_overrides_runpath=no
8317 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8318 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8319 hardcode_into_libs=yes
8320 ;;
8321
8322# No shared lib support for Linux oldld, aout, or coff.
8323linux*oldld* | linux*aout* | linux*coff*)
8324 dynamic_linker=no
8325 ;;
8326
8327# This must be Linux ELF.
8328linux*)
8329 version_type=linux
8330 need_lib_prefix=no
8331 need_version=no
8332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8333 soname_spec='${libname}${release}${shared_ext}$major'
8334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8335 shlibpath_var=LD_LIBRARY_PATH
8336 shlibpath_overrides_runpath=no
8337 # This implies no fast_install, which is unacceptable.
8338 # Some rework will be needed to allow for fast_install
8339 # before this can be enabled.
8340 hardcode_into_libs=yes
8341
8342 # Append ld.so.conf contents to the search path
8343 if test -f /etc/ld.so.conf; then
8344 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8345 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8346 fi
8347
8348 # We used to test for /lib/ld.so.1 and disable shared libraries on
8349 # powerpc, because MkLinux only supported shared libraries with the
8350 # GNU dynamic linker. Since this was broken with cross compilers,
8351 # most powerpc-linux boxes support dynamic linking these days and
8352 # people can always --disable-shared, the test was removed, and we
8353 # assume the GNU/Linux dynamic linker is in use.
8354 dynamic_linker='GNU/Linux ld.so'
8355 ;;
8356
8357netbsdelf*-gnu)
8358 version_type=linux
8359 need_lib_prefix=no
8360 need_version=no
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8362 soname_spec='${libname}${release}${shared_ext}$major'
8363 shlibpath_var=LD_LIBRARY_PATH
8364 shlibpath_overrides_runpath=no
8365 hardcode_into_libs=yes
8366 dynamic_linker='NetBSD ld.elf_so'
8367 ;;
8368
8369knetbsd*-gnu)
8370 version_type=linux
8371 need_lib_prefix=no
8372 need_version=no
8373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8374 soname_spec='${libname}${release}${shared_ext}$major'
8375 shlibpath_var=LD_LIBRARY_PATH
8376 shlibpath_overrides_runpath=no
8377 hardcode_into_libs=yes
8378 dynamic_linker='GNU ld.so'
8379 ;;
8380
8381netbsd*)
8382 version_type=sunos
8383 need_lib_prefix=no
8384 need_version=no
8385 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8388 dynamic_linker='NetBSD (a.out) ld.so'
8389 else
8390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8391 soname_spec='${libname}${release}${shared_ext}$major'
8392 dynamic_linker='NetBSD ld.elf_so'
8393 fi
8394 shlibpath_var=LD_LIBRARY_PATH
8395 shlibpath_overrides_runpath=yes
8396 hardcode_into_libs=yes
8397 ;;
8398
8399newsos6)
8400 version_type=linux
8401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402 shlibpath_var=LD_LIBRARY_PATH
8403 shlibpath_overrides_runpath=yes
8404 ;;
8405
8406nto-qnx*)
8407 version_type=linux
8408 need_lib_prefix=no
8409 need_version=no
8410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8411 soname_spec='${libname}${release}${shared_ext}$major'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 shlibpath_overrides_runpath=yes
8414 ;;
8415
8416openbsd*)
8417 version_type=sunos
8418 need_lib_prefix=no
8419 need_version=yes
8420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8422 shlibpath_var=LD_LIBRARY_PATH
8423 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8424 case $host_os in
8425 openbsd2.[89] | openbsd2.[89].*)
8426 shlibpath_overrides_runpath=no
8427 ;;
8428 *)
8429 shlibpath_overrides_runpath=yes
8430 ;;
8431 esac
8432 else
8433 shlibpath_overrides_runpath=yes
8434 fi
8435 ;;
8436
8437os2*)
8438 libname_spec='$name'
8439 shrext_cmds=".dll"
8440 need_lib_prefix=no
8441 library_names_spec='$libname${shared_ext} $libname.a'
8442 dynamic_linker='OS/2 ld.exe'
8443 shlibpath_var=LIBPATH
8444 ;;
8445
8446osf3* | osf4* | osf5*)
8447 version_type=osf
8448 need_lib_prefix=no
8449 need_version=no
8450 soname_spec='${libname}${release}${shared_ext}$major'
8451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8452 shlibpath_var=LD_LIBRARY_PATH
8453 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8454 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8455 ;;
8456
8457sco3.2v5*)
8458 version_type=osf
8459 soname_spec='${libname}${release}${shared_ext}$major'
8460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8461 shlibpath_var=LD_LIBRARY_PATH
8462 ;;
8463
8464solaris*)
8465 version_type=linux
8466 need_lib_prefix=no
8467 need_version=no
8468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8469 soname_spec='${libname}${release}${shared_ext}$major'
8470 shlibpath_var=LD_LIBRARY_PATH
8471 shlibpath_overrides_runpath=yes
8472 hardcode_into_libs=yes
8473 # ldd complains unless libraries are executable
8474 postinstall_cmds='chmod +x $lib'
8475 ;;
8476
8477sunos4*)
8478 version_type=sunos
8479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8480 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8481 shlibpath_var=LD_LIBRARY_PATH
8482 shlibpath_overrides_runpath=yes
8483 if test "$with_gnu_ld" = yes; then
8484 need_lib_prefix=no
8485 fi
8486 need_version=yes
8487 ;;
8488
8489sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8490 version_type=linux
8491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8492 soname_spec='${libname}${release}${shared_ext}$major'
8493 shlibpath_var=LD_LIBRARY_PATH
8494 case $host_vendor in
8495 sni)
8496 shlibpath_overrides_runpath=no
8497 need_lib_prefix=no
8498 export_dynamic_flag_spec='${wl}-Blargedynsym'
8499 runpath_var=LD_RUN_PATH
8500 ;;
8501 siemens)
8502 need_lib_prefix=no
8503 ;;
8504 motorola)
8505 need_lib_prefix=no
8506 need_version=no
8507 shlibpath_overrides_runpath=no
8508 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8509 ;;
8510 esac
8511 ;;
8512
8513sysv4*MP*)
8514 if test -d /usr/nec ;then
8515 version_type=linux
8516 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8517 soname_spec='$libname${shared_ext}.$major'
8518 shlibpath_var=LD_LIBRARY_PATH
8519 fi
8520 ;;
8521
8522uts4*)
8523 version_type=linux
8524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525 soname_spec='${libname}${release}${shared_ext}$major'
8526 shlibpath_var=LD_LIBRARY_PATH
8527 ;;
8528
8529*)
8530 dynamic_linker=no
8531 ;;
8532esac
8533echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8534echo "${ECHO_T}$dynamic_linker" >&6
8535test "$dynamic_linker" = no && can_build_shared=no
8536
8537echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8538echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8539hardcode_action=
8540if test -n "$hardcode_libdir_flag_spec" || \
8541 test -n "$runpath_var " || \
8542 test "X$hardcode_automatic"="Xyes" ; then
8543
8544 # We can hardcode non-existant directories.
8545 if test "$hardcode_direct" != no &&
8546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8547 # have to relink, otherwise we might link with an installed library
8548 # when we should be linking with a yet-to-be-installed one
8549 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8550 test "$hardcode_minus_L" != no; then
8551 # Linking always hardcodes the temporary library directory.
8552 hardcode_action=relink
8553 else
8554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8555 hardcode_action=immediate
8556 fi
8557else
8558 # We cannot hardcode anything, or else we can only hardcode existing
8559 # directories.
8560 hardcode_action=unsupported
8561fi
8562echo "$as_me:$LINENO: result: $hardcode_action" >&5
8563echo "${ECHO_T}$hardcode_action" >&6
8564
8565if test "$hardcode_action" = relink; then
8566 # Fast installation is not supported
8567 enable_fast_install=no
8568elif test "$shlibpath_overrides_runpath" = yes ||
8569 test "$enable_shared" = no; then
8570 # Fast installation is not necessary
8571 enable_fast_install=needless
8572fi
8573
8574striplib=
8575old_striplib=
8576echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8577echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8578if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8579 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8580 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8581 echo "$as_me:$LINENO: result: yes" >&5
8582echo "${ECHO_T}yes" >&6
8583else
8584# FIXME - insert some real tests, host_os isn't really good enough
8585 case $host_os in
8586 darwin*)
8587 if test -n "$STRIP" ; then
8588 striplib="$STRIP -x"
8589 echo "$as_me:$LINENO: result: yes" >&5
8590echo "${ECHO_T}yes" >&6
8591 else
8592 echo "$as_me:$LINENO: result: no" >&5
8593echo "${ECHO_T}no" >&6
8594fi
8595 ;;
8596 *)
8597 echo "$as_me:$LINENO: result: no" >&5
8598echo "${ECHO_T}no" >&6
8599 ;;
8600 esac
8601fi
8602
8603if test "x$enable_dlopen" != xyes; then
8604 enable_dlopen=unknown
8605 enable_dlopen_self=unknown
8606 enable_dlopen_self_static=unknown
8607else
8608 lt_cv_dlopen=no
8609 lt_cv_dlopen_libs=
8610
8611 case $host_os in
8612 beos*)
8613 lt_cv_dlopen="load_add_on"
8614 lt_cv_dlopen_libs=
8615 lt_cv_dlopen_self=yes
8616 ;;
8617
8618 mingw* | pw32*)
8619 lt_cv_dlopen="LoadLibrary"
8620 lt_cv_dlopen_libs=
8621 ;;
8622
8623 cygwin*)
8624 lt_cv_dlopen="dlopen"
8625 lt_cv_dlopen_libs=
8626 ;;
8627
8628 darwin*)
8629 # if libdl is installed we need to link against it
8630 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8631echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8632if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8634else
8635 ac_check_lib_save_LIBS=$LIBS
8636LIBS="-ldl $LIBS"
8637cat >conftest.$ac_ext <<_ACEOF
8638/* confdefs.h. */
8639_ACEOF
8640cat confdefs.h >>conftest.$ac_ext
8641cat >>conftest.$ac_ext <<_ACEOF
8642/* end confdefs.h. */
8643
8644/* Override any gcc2 internal prototype to avoid an error. */
8645#ifdef __cplusplus
8646extern "C"
8647#endif
8648/* We use char because int might match the return type of a gcc2
8649 builtin and then its argument prototype would still apply. */
8650char dlopen ();
8651int
8652main ()
8653{
8654dlopen ();
8655 ;
8656 return 0;
8657}
8658_ACEOF
8659rm -f conftest.$ac_objext conftest$ac_exeext
8660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8661 (eval $ac_link) 2>conftest.er1
8662 ac_status=$?
8663 grep -v '^ *+' conftest.er1 >conftest.err
8664 rm -f conftest.er1
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } &&
8668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; } &&
8674 { ac_try='test -s conftest$ac_exeext'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 ac_cv_lib_dl_dlopen=yes
8681else
8682 echo "$as_me: failed program was:" >&5
8683sed 's/^/| /' conftest.$ac_ext >&5
8684
8685ac_cv_lib_dl_dlopen=no
8686fi
8687rm -f conftest.err conftest.$ac_objext \
8688 conftest$ac_exeext conftest.$ac_ext
8689LIBS=$ac_check_lib_save_LIBS
8690fi
8691echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8692echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8693if test $ac_cv_lib_dl_dlopen = yes; then
8694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8695else
8696
8697 lt_cv_dlopen="dyld"
8698 lt_cv_dlopen_libs=
8699 lt_cv_dlopen_self=yes
8700
8701fi
8702
8703 ;;
8704
8705 *)
8706 echo "$as_me:$LINENO: checking for shl_load" >&5
8707echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8708if test "${ac_cv_func_shl_load+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710else
8711 cat >conftest.$ac_ext <<_ACEOF
8712/* confdefs.h. */
8713_ACEOF
8714cat confdefs.h >>conftest.$ac_ext
8715cat >>conftest.$ac_ext <<_ACEOF
8716/* end confdefs.h. */
8717/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8719#define shl_load innocuous_shl_load
8720
8721/* System header to define __stub macros and hopefully few prototypes,
8722 which can conflict with char shl_load (); below.
8723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8724 <limits.h> exists even on freestanding compilers. */
8725
8726#ifdef __STDC__
8727# include <limits.h>
8728#else
8729# include <assert.h>
8730#endif
8731
8732#undef shl_load
8733
8734/* Override any gcc2 internal prototype to avoid an error. */
8735#ifdef __cplusplus
8736extern "C"
8737{
8738#endif
8739/* We use char because int might match the return type of a gcc2
8740 builtin and then its argument prototype would still apply. */
8741char shl_load ();
8742/* The GNU C library defines this for functions which it implements
8743 to always fail with ENOSYS. Some functions are actually named
8744 something starting with __ and the normal name is an alias. */
8745#if defined (__stub_shl_load) || defined (__stub___shl_load)
8746choke me
8747#else
8748char (*f) () = shl_load;
8749#endif
8750#ifdef __cplusplus
8751}
8752#endif
8753
8754int
8755main ()
8756{
8757return f != shl_load;
8758 ;
8759 return 0;
8760}
8761_ACEOF
8762rm -f conftest.$ac_objext conftest$ac_exeext
8763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8764 (eval $ac_link) 2>conftest.er1
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 (eval $ac_try) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; } &&
8777 { ac_try='test -s conftest$ac_exeext'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 (eval $ac_try) 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8783 ac_cv_func_shl_load=yes
8784else
8785 echo "$as_me: failed program was:" >&5
8786sed 's/^/| /' conftest.$ac_ext >&5
8787
8788ac_cv_func_shl_load=no
8789fi
8790rm -f conftest.err conftest.$ac_objext \
8791 conftest$ac_exeext conftest.$ac_ext
8792fi
8793echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8794echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8795if test $ac_cv_func_shl_load = yes; then
8796 lt_cv_dlopen="shl_load"
8797else
8798 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8799echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8800if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802else
8803 ac_check_lib_save_LIBS=$LIBS
8804LIBS="-ldld $LIBS"
8805cat >conftest.$ac_ext <<_ACEOF
8806/* confdefs.h. */
8807_ACEOF
8808cat confdefs.h >>conftest.$ac_ext
8809cat >>conftest.$ac_ext <<_ACEOF
8810/* end confdefs.h. */
8811
8812/* Override any gcc2 internal prototype to avoid an error. */
8813#ifdef __cplusplus
8814extern "C"
8815#endif
8816/* We use char because int might match the return type of a gcc2
8817 builtin and then its argument prototype would still apply. */
8818char shl_load ();
8819int
8820main ()
8821{
8822shl_load ();
8823 ;
8824 return 0;
8825}
8826_ACEOF
8827rm -f conftest.$ac_objext conftest$ac_exeext
8828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829 (eval $ac_link) 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; } &&
8842 { ac_try='test -s conftest$ac_exeext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 ac_cv_lib_dld_shl_load=yes
8849else
8850 echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
8853ac_cv_lib_dld_shl_load=no
8854fi
8855rm -f conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857LIBS=$ac_check_lib_save_LIBS
8858fi
8859echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8860echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8861if test $ac_cv_lib_dld_shl_load = yes; then
8862 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8863else
8864 echo "$as_me:$LINENO: checking for dlopen" >&5
8865echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8866if test "${ac_cv_func_dlopen+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8868else
8869 cat >conftest.$ac_ext <<_ACEOF
8870/* confdefs.h. */
8871_ACEOF
8872cat confdefs.h >>conftest.$ac_ext
8873cat >>conftest.$ac_ext <<_ACEOF
8874/* end confdefs.h. */
8875/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8877#define dlopen innocuous_dlopen
8878
8879/* System header to define __stub macros and hopefully few prototypes,
8880 which can conflict with char dlopen (); below.
8881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8882 <limits.h> exists even on freestanding compilers. */
8883
8884#ifdef __STDC__
8885# include <limits.h>
8886#else
8887# include <assert.h>
8888#endif
8889
8890#undef dlopen
8891
8892/* Override any gcc2 internal prototype to avoid an error. */
8893#ifdef __cplusplus
8894extern "C"
8895{
8896#endif
8897/* We use char because int might match the return type of a gcc2
8898 builtin and then its argument prototype would still apply. */
8899char dlopen ();
8900/* The GNU C library defines this for functions which it implements
8901 to always fail with ENOSYS. Some functions are actually named
8902 something starting with __ and the normal name is an alias. */
8903#if defined (__stub_dlopen) || defined (__stub___dlopen)
8904choke me
8905#else
8906char (*f) () = dlopen;
8907#endif
8908#ifdef __cplusplus
8909}
8910#endif
8911
8912int
8913main ()
8914{
8915return f != dlopen;
8916 ;
8917 return 0;
8918}
8919_ACEOF
8920rm -f conftest.$ac_objext conftest$ac_exeext
8921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest$ac_exeext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_func_dlopen=yes
8942else
8943 echo "$as_me: failed program was:" >&5
8944sed 's/^/| /' conftest.$ac_ext >&5
8945
8946ac_cv_func_dlopen=no
8947fi
8948rm -f conftest.err conftest.$ac_objext \
8949 conftest$ac_exeext conftest.$ac_ext
8950fi
8951echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8952echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8953if test $ac_cv_func_dlopen = yes; then
8954 lt_cv_dlopen="dlopen"
8955else
8956 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8957echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8958if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960else
8961 ac_check_lib_save_LIBS=$LIBS
8962LIBS="-ldl $LIBS"
8963cat >conftest.$ac_ext <<_ACEOF
8964/* confdefs.h. */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h. */
8969
8970/* Override any gcc2 internal prototype to avoid an error. */
8971#ifdef __cplusplus
8972extern "C"
8973#endif
8974/* We use char because int might match the return type of a gcc2
8975 builtin and then its argument prototype would still apply. */
8976char dlopen ();
8977int
8978main ()
8979{
8980dlopen ();
8981 ;
8982 return 0;
8983}
8984_ACEOF
8985rm -f conftest.$ac_objext conftest$ac_exeext
8986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 (eval $ac_try) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_lib_dl_dlopen=yes
9007else
9008 echo "$as_me: failed program was:" >&5
9009sed 's/^/| /' conftest.$ac_ext >&5
9010
9011ac_cv_lib_dl_dlopen=no
9012fi
9013rm -f conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
9015LIBS=$ac_check_lib_save_LIBS
9016fi
9017echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9018echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9019if test $ac_cv_lib_dl_dlopen = yes; then
9020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9021else
9022 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9023echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9024if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9026else
9027 ac_check_lib_save_LIBS=$LIBS
9028LIBS="-lsvld $LIBS"
9029cat >conftest.$ac_ext <<_ACEOF
9030/* confdefs.h. */
9031_ACEOF
9032cat confdefs.h >>conftest.$ac_ext
9033cat >>conftest.$ac_ext <<_ACEOF
9034/* end confdefs.h. */
9035
9036/* Override any gcc2 internal prototype to avoid an error. */
9037#ifdef __cplusplus
9038extern "C"
9039#endif
9040/* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042char dlopen ();
9043int
9044main ()
9045{
9046dlopen ();
9047 ;
9048 return 0;
9049}
9050_ACEOF
9051rm -f conftest.$ac_objext conftest$ac_exeext
9052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053 (eval $ac_link) 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_lib_svld_dlopen=yes
9073else
9074 echo "$as_me: failed program was:" >&5
9075sed 's/^/| /' conftest.$ac_ext >&5
9076
9077ac_cv_lib_svld_dlopen=no
9078fi
9079rm -f conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9081LIBS=$ac_check_lib_save_LIBS
9082fi
9083echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9084echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9085if test $ac_cv_lib_svld_dlopen = yes; then
9086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9087else
9088 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9089echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9090if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092else
9093 ac_check_lib_save_LIBS=$LIBS
9094LIBS="-ldld $LIBS"
9095cat >conftest.$ac_ext <<_ACEOF
9096/* confdefs.h. */
9097_ACEOF
9098cat confdefs.h >>conftest.$ac_ext
9099cat >>conftest.$ac_ext <<_ACEOF
9100/* end confdefs.h. */
9101
9102/* Override any gcc2 internal prototype to avoid an error. */
9103#ifdef __cplusplus
9104extern "C"
9105#endif
9106/* We use char because int might match the return type of a gcc2
9107 builtin and then its argument prototype would still apply. */
9108char dld_link ();
9109int
9110main ()
9111{
9112dld_link ();
9113 ;
9114 return 0;
9115}
9116_ACEOF
9117rm -f conftest.$ac_objext conftest$ac_exeext
9118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119 (eval $ac_link) 2>conftest.er1
9120 ac_status=$?
9121 grep -v '^ *+' conftest.er1 >conftest.err
9122 rm -f conftest.er1
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } &&
9126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest$ac_exeext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_cv_lib_dld_dld_link=yes
9139else
9140 echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
9143ac_cv_lib_dld_dld_link=no
9144fi
9145rm -f conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9147LIBS=$ac_check_lib_save_LIBS
9148fi
9149echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9150echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9151if test $ac_cv_lib_dld_dld_link = yes; then
9152 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9153fi
9154
9155
9156fi
9157
9158
9159fi
9160
9161
9162fi
9163
9164
9165fi
9166
9167
9168fi
9169
9170 ;;
9171 esac
9172
9173 if test "x$lt_cv_dlopen" != xno; then
9174 enable_dlopen=yes
9175 else
9176 enable_dlopen=no
9177 fi
9178
9179 case $lt_cv_dlopen in
9180 dlopen)
9181 save_CPPFLAGS="$CPPFLAGS"
9182 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9183
9184 save_LDFLAGS="$LDFLAGS"
9185 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9186
9187 save_LIBS="$LIBS"
9188 LIBS="$lt_cv_dlopen_libs $LIBS"
9189
9190 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9191echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9192if test "${lt_cv_dlopen_self+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194else
9195 if test "$cross_compiling" = yes; then :
9196 lt_cv_dlopen_self=cross
9197else
9198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9199 lt_status=$lt_dlunknown
9200 cat > conftest.$ac_ext <<EOF
9201#line 9201 "configure"
9202#include "confdefs.h"
9203
9204#if HAVE_DLFCN_H
9205#include <dlfcn.h>
9206#endif
9207
9208#include <stdio.h>
9209
9210#ifdef RTLD_GLOBAL
9211# define LT_DLGLOBAL RTLD_GLOBAL
9212#else
9213# ifdef DL_GLOBAL
9214# define LT_DLGLOBAL DL_GLOBAL
9215# else
9216# define LT_DLGLOBAL 0
9217# endif
9218#endif
9219
9220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9221 find out it does not work in some platform. */
9222#ifndef LT_DLLAZY_OR_NOW
9223# ifdef RTLD_LAZY
9224# define LT_DLLAZY_OR_NOW RTLD_LAZY
9225# else
9226# ifdef DL_LAZY
9227# define LT_DLLAZY_OR_NOW DL_LAZY
9228# else
9229# ifdef RTLD_NOW
9230# define LT_DLLAZY_OR_NOW RTLD_NOW
9231# else
9232# ifdef DL_NOW
9233# define LT_DLLAZY_OR_NOW DL_NOW
9234# else
9235# define LT_DLLAZY_OR_NOW 0
9236# endif
9237# endif
9238# endif
9239# endif
9240#endif
9241
9242#ifdef __cplusplus
9243extern "C" void exit (int);
9244#endif
9245
9246void fnord() { int i=42;}
9247int main ()
9248{
9249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9250 int status = $lt_dlunknown;
9251
9252 if (self)
9253 {
9254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9256 /* dlclose (self); */
9257 }
9258
9259 exit (status);
9260}
9261EOF
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9267 (./conftest; exit; ) 2>/dev/null
9268 lt_status=$?
9269 case x$lt_status in
9270 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9271 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9272 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9273 esac
9274 else :
9275 # compilation failed
9276 lt_cv_dlopen_self=no
9277 fi
9278fi
9279rm -fr conftest*
9280
9281
9282fi
9283echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9284echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9285
9286 if test "x$lt_cv_dlopen_self" = xyes; then
9287 LDFLAGS="$LDFLAGS $link_static_flag"
9288 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9289echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9290if test "${lt_cv_dlopen_self_static+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9292else
9293 if test "$cross_compiling" = yes; then :
9294 lt_cv_dlopen_self_static=cross
9295else
9296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9297 lt_status=$lt_dlunknown
9298 cat > conftest.$ac_ext <<EOF
9299#line 9299 "configure"
9300#include "confdefs.h"
9301
9302#if HAVE_DLFCN_H
9303#include <dlfcn.h>
9304#endif
9305
9306#include <stdio.h>
9307
9308#ifdef RTLD_GLOBAL
9309# define LT_DLGLOBAL RTLD_GLOBAL
9310#else
9311# ifdef DL_GLOBAL
9312# define LT_DLGLOBAL DL_GLOBAL
9313# else
9314# define LT_DLGLOBAL 0
9315# endif
9316#endif
9317
9318/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9319 find out it does not work in some platform. */
9320#ifndef LT_DLLAZY_OR_NOW
9321# ifdef RTLD_LAZY
9322# define LT_DLLAZY_OR_NOW RTLD_LAZY
9323# else
9324# ifdef DL_LAZY
9325# define LT_DLLAZY_OR_NOW DL_LAZY
9326# else
9327# ifdef RTLD_NOW
9328# define LT_DLLAZY_OR_NOW RTLD_NOW
9329# else
9330# ifdef DL_NOW
9331# define LT_DLLAZY_OR_NOW DL_NOW
9332# else
9333# define LT_DLLAZY_OR_NOW 0
9334# endif
9335# endif
9336# endif
9337# endif
9338#endif
9339
9340#ifdef __cplusplus
9341extern "C" void exit (int);
9342#endif
9343
9344void fnord() { int i=42;}
9345int main ()
9346{
9347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9348 int status = $lt_dlunknown;
9349
9350 if (self)
9351 {
9352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9353 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9354 /* dlclose (self); */
9355 }
9356
9357 exit (status);
9358}
9359EOF
9360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9361 (eval $ac_link) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9365 (./conftest; exit; ) 2>/dev/null
9366 lt_status=$?
9367 case x$lt_status in
9368 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9369 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9370 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9371 esac
9372 else :
9373 # compilation failed
9374 lt_cv_dlopen_self_static=no
9375 fi
9376fi
9377rm -fr conftest*
9378
9379
9380fi
9381echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9382echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9383 fi
9384
9385 CPPFLAGS="$save_CPPFLAGS"
9386 LDFLAGS="$save_LDFLAGS"
9387 LIBS="$save_LIBS"
9388 ;;
9389 esac
9390
9391 case $lt_cv_dlopen_self in
9392 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9393 *) enable_dlopen_self=unknown ;;
9394 esac
9395
9396 case $lt_cv_dlopen_self_static in
9397 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9398 *) enable_dlopen_self_static=unknown ;;
9399 esac
9400fi
9401
9402
9403# Report which librarie types wil actually be built
9404echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9405echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9406echo "$as_me:$LINENO: result: $can_build_shared" >&5
9407echo "${ECHO_T}$can_build_shared" >&6
9408
9409echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9410echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9411test "$can_build_shared" = "no" && enable_shared=no
9412
9413# On AIX, shared libraries and static libraries use the same namespace, and
9414# are all built from PIC.
9415case "$host_os" in
9416aix3*)
9417 test "$enable_shared" = yes && enable_static=no
9418 if test -n "$RANLIB"; then
9419 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9420 postinstall_cmds='$RANLIB $lib'
9421 fi
9422 ;;
9423
9424aix4* | aix5*)
9425 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9426 test "$enable_shared" = yes && enable_static=no
9427 fi
9428 ;;
9429 darwin* | rhapsody*)
9430 if test "$GCC" = yes; then
9431 archive_cmds_need_lc=no
9432 case "$host_os" in
9433 rhapsody* | darwin1.[012])
9434 allow_undefined_flag='-undefined suppress'
9435 ;;
9436 *) # Darwin 1.3 on
9437 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9438 allow_undefined_flag='-flat_namespace -undefined suppress'
9439 else
9440 case ${MACOSX_DEPLOYMENT_TARGET} in
9441 10.[012])
9442 allow_undefined_flag='-flat_namespace -undefined suppress'
9443 ;;
9444 10.*)
9445 allow_undefined_flag='-undefined dynamic_lookup'
9446 ;;
9447 esac
9448 fi
9449 ;;
9450 esac
9451 output_verbose_link_cmd='echo'
9452 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9453 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9454 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9455 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}'
9456 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}'
9457 hardcode_direct=no
9458 hardcode_automatic=yes
9459 hardcode_shlibpath_var=unsupported
9460 whole_archive_flag_spec='-all_load $convenience'
9461 link_all_deplibs=yes
9462 else
9463 ld_shlibs=no
9464 fi
9465 ;;
9466esac
9467echo "$as_me:$LINENO: result: $enable_shared" >&5
9468echo "${ECHO_T}$enable_shared" >&6
9469
9470echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9471echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9472# Make sure either enable_shared or enable_static is yes.
9473test "$enable_shared" = yes || enable_static=yes
9474echo "$as_me:$LINENO: result: $enable_static" >&5
9475echo "${ECHO_T}$enable_static" >&6
9476
9477# The else clause should only fire when bootstrapping the
9478# libtool distribution, otherwise you forgot to ship ltmain.sh
9479# with your package, and you will get complaints that there are
9480# no rules to generate ltmain.sh.
9481if test -f "$ltmain"; then
9482 # See if we are running on zsh, and set the options which allow our commands through
9483 # without removal of \ escapes.
9484 if test -n "${ZSH_VERSION+set}" ; then
9485 setopt NO_GLOB_SUBST
9486 fi
9487 # Now quote all the things that may contain metacharacters while being
9488 # careful not to overquote the AC_SUBSTed values. We take copies of the
9489 # variables and quote the copies for generation of the libtool script.
9490 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9491 SED SHELL STRIP \
9492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9494 deplibs_check_method reload_flag reload_cmds need_locks \
9495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9496 lt_cv_sys_global_symbol_to_c_name_address \
9497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9498 old_postinstall_cmds old_postuninstall_cmds \
9499 compiler \
9500 CC \
9501 LD \
9502 lt_prog_compiler_wl \
9503 lt_prog_compiler_pic \
9504 lt_prog_compiler_static \
9505 lt_prog_compiler_no_builtin_flag \
9506 export_dynamic_flag_spec \
9507 thread_safe_flag_spec \
9508 whole_archive_flag_spec \
9509 enable_shared_with_static_runtimes \
9510 old_archive_cmds \
9511 old_archive_from_new_cmds \
9512 predep_objects \
9513 postdep_objects \
9514 predeps \
9515 postdeps \
9516 compiler_lib_search_path \
9517 archive_cmds \
9518 archive_expsym_cmds \
9519 postinstall_cmds \
9520 postuninstall_cmds \
9521 old_archive_from_expsyms_cmds \
9522 allow_undefined_flag \
9523 no_undefined_flag \
9524 export_symbols_cmds \
9525 hardcode_libdir_flag_spec \
9526 hardcode_libdir_flag_spec_ld \
9527 hardcode_libdir_separator \
9528 hardcode_automatic \
9529 module_cmds \
9530 module_expsym_cmds \
9531 lt_cv_prog_compiler_c_o \
9532 exclude_expsyms \
9533 include_expsyms; do
9534
9535 case $var in
9536 old_archive_cmds | \
9537 old_archive_from_new_cmds | \
9538 archive_cmds | \
9539 archive_expsym_cmds | \
9540 module_cmds | \
9541 module_expsym_cmds | \
9542 old_archive_from_expsyms_cmds | \
9543 export_symbols_cmds | \
9544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9545 postinstall_cmds | postuninstall_cmds | \
9546 old_postinstall_cmds | old_postuninstall_cmds | \
9547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9548 # Double-quote double-evaled strings.
9549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9550 ;;
9551 *)
9552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9553 ;;
9554 esac
9555 done
9556
9557 case $lt_echo in
9558 *'\$0 --fallback-echo"')
9559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9560 ;;
9561 esac
9562
9563cfgfile="${ofile}T"
9564 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9565 $rm -f "$cfgfile"
9566 { echo "$as_me:$LINENO: creating $ofile" >&5
9567echo "$as_me: creating $ofile" >&6;}
9568
9569 cat <<__EOF__ >> "$cfgfile"
9570#! $SHELL
9571
9572# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9573# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9574# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9575#
9576# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9577# Free Software Foundation, Inc.
9578#
9579# This file is part of GNU Libtool:
9580# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9581#
9582# This program is free software; you can redistribute it and/or modify
9583# it under the terms of the GNU General Public License as published by
9584# the Free Software Foundation; either version 2 of the License, or
9585# (at your option) any later version.
9586#
9587# This program is distributed in the hope that it will be useful, but
9588# WITHOUT ANY WARRANTY; without even the implied warranty of
9589# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9590# General Public License for more details.
9591#
9592# You should have received a copy of the GNU General Public License
9593# along with this program; if not, write to the Free Software
9594# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9595#
9596# As a special exception to the GNU General Public License, if you
9597# distribute this file as part of a program that contains a
9598# configuration script generated by Autoconf, you may include it under
9599# the same distribution terms that you use for the rest of that program.
9600
9601# A sed program that does not truncate output.
9602SED=$lt_SED
9603
9604# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9605Xsed="$SED -e s/^X//"
9606
9607# The HP-UX ksh and POSIX shell print the target directory to stdout
9608# if CDPATH is set.
9609if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9610
9611# The names of the tagged configurations supported by this script.
9612available_tags=
9613
9614# ### BEGIN LIBTOOL CONFIG
9615
9616# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9617
9618# Shell to use when invoking shell scripts.
9619SHELL=$lt_SHELL
9620
9621# Whether or not to build shared libraries.
9622build_libtool_libs=$enable_shared
9623
9624# Whether or not to build static libraries.
9625build_old_libs=$enable_static
9626
9627# Whether or not to add -lc for building shared libraries.
9628build_libtool_need_lc=$archive_cmds_need_lc
9629
9630# Whether or not to disallow shared libs when runtime libs are static
9631allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9632
9633# Whether or not to optimize for fast installation.
9634fast_install=$enable_fast_install
9635
9636# The host system.
9637host_alias=$host_alias
9638host=$host
9639
9640# An echo program that does not interpret backslashes.
9641echo=$lt_echo
9642
9643# The archiver.
9644AR=$lt_AR
9645AR_FLAGS=$lt_AR_FLAGS
9646
9647# A C compiler.
9648LTCC=$lt_LTCC
9649
9650# A language-specific compiler.
9651CC=$lt_compiler
9652
9653# Is the compiler the GNU C compiler?
9654with_gcc=$GCC
9655
9656# An ERE matcher.
9657EGREP=$lt_EGREP
9658
9659# The linker used to build libraries.
9660LD=$lt_LD
9661
9662# Whether we need hard or soft links.
9663LN_S=$lt_LN_S
9664
9665# A BSD-compatible nm program.
9666NM=$lt_NM
9667
9668# A symbol stripping program
9669STRIP=$lt_STRIP
9670
9671# Used to examine libraries when file_magic_cmd begins "file"
9672MAGIC_CMD=$MAGIC_CMD
9673
9674# Used on cygwin: DLL creation program.
9675DLLTOOL="$DLLTOOL"
9676
9677# Used on cygwin: object dumper.
9678OBJDUMP="$OBJDUMP"
9679
9680# Used on cygwin: assembler.
9681AS="$AS"
9682
9683# The name of the directory that contains temporary libtool files.
9684objdir=$objdir
9685
9686# How to create reloadable object files.
9687reload_flag=$lt_reload_flag
9688reload_cmds=$lt_reload_cmds
9689
9690# How to pass a linker flag through the compiler.
9691wl=$lt_lt_prog_compiler_wl
9692
9693# Object file suffix (normally "o").
9694objext="$ac_objext"
9695
9696# Old archive suffix (normally "a").
9697libext="$libext"
9698
9699# Shared library suffix (normally ".so").
9700shrext_cmds='$shrext_cmds'
9701
9702# Executable file suffix (normally "").
9703exeext="$exeext"
9704
9705# Additional compiler flags for building library objects.
9706pic_flag=$lt_lt_prog_compiler_pic
9707pic_mode=$pic_mode
9708
9709# What is the maximum length of a command?
9710max_cmd_len=$lt_cv_sys_max_cmd_len
9711
9712# Does compiler simultaneously support -c and -o options?
9713compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9714
9715# Must we lock files when doing compilation ?
9716need_locks=$lt_need_locks
9717
9718# Do we need the lib prefix for modules?
9719need_lib_prefix=$need_lib_prefix
9720
9721# Do we need a version for libraries?
9722need_version=$need_version
9723
9724# Whether dlopen is supported.
9725dlopen_support=$enable_dlopen
9726
9727# Whether dlopen of programs is supported.
9728dlopen_self=$enable_dlopen_self
9729
9730# Whether dlopen of statically linked programs is supported.
9731dlopen_self_static=$enable_dlopen_self_static
9732
9733# Compiler flag to prevent dynamic linking.
9734link_static_flag=$lt_lt_prog_compiler_static
9735
9736# Compiler flag to turn off builtin functions.
9737no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9738
9739# Compiler flag to allow reflexive dlopens.
9740export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9741
9742# Compiler flag to generate shared objects directly from archives.
9743whole_archive_flag_spec=$lt_whole_archive_flag_spec
9744
9745# Compiler flag to generate thread-safe objects.
9746thread_safe_flag_spec=$lt_thread_safe_flag_spec
9747
9748# Library versioning type.
9749version_type=$version_type
9750
9751# Format of library name prefix.
9752libname_spec=$lt_libname_spec
9753
9754# List of archive names. First name is the real one, the rest are links.
9755# The last name is the one that the linker finds with -lNAME.
9756library_names_spec=$lt_library_names_spec
9757
9758# The coded name of the library, if different from the real name.
9759soname_spec=$lt_soname_spec
9760
9761# Commands used to build and install an old-style archive.
9762RANLIB=$lt_RANLIB
9763old_archive_cmds=$lt_old_archive_cmds
9764old_postinstall_cmds=$lt_old_postinstall_cmds
9765old_postuninstall_cmds=$lt_old_postuninstall_cmds
9766
9767# Create an old-style archive from a shared archive.
9768old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9769
9770# Create a temporary old-style archive to link instead of a shared archive.
9771old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9772
9773# Commands used to build and install a shared archive.
9774archive_cmds=$lt_archive_cmds
9775archive_expsym_cmds=$lt_archive_expsym_cmds
9776postinstall_cmds=$lt_postinstall_cmds
9777postuninstall_cmds=$lt_postuninstall_cmds
9778
9779# Commands used to build a loadable module (assumed same as above if empty)
9780module_cmds=$lt_module_cmds
9781module_expsym_cmds=$lt_module_expsym_cmds
9782
9783# Commands to strip libraries.
9784old_striplib=$lt_old_striplib
9785striplib=$lt_striplib
9786
9787# Dependencies to place before the objects being linked to create a
9788# shared library.
9789predep_objects=$lt_predep_objects
9790
9791# Dependencies to place after the objects being linked to create a
9792# shared library.
9793postdep_objects=$lt_postdep_objects
9794
9795# Dependencies to place before the objects being linked to create a
9796# shared library.
9797predeps=$lt_predeps
9798
9799# Dependencies to place after the objects being linked to create a
9800# shared library.
9801postdeps=$lt_postdeps
9802
9803# The library search path used internally by the compiler when linking
9804# a shared library.
9805compiler_lib_search_path=$lt_compiler_lib_search_path
9806
9807# Method to check whether dependent libraries are shared objects.
9808deplibs_check_method=$lt_deplibs_check_method
9809
9810# Command to use when deplibs_check_method == file_magic.
9811file_magic_cmd=$lt_file_magic_cmd
9812
9813# Flag that allows shared libraries with undefined symbols to be built.
9814allow_undefined_flag=$lt_allow_undefined_flag
9815
9816# Flag that forces no undefined symbols.
9817no_undefined_flag=$lt_no_undefined_flag
9818
9819# Commands used to finish a libtool library installation in a directory.
9820finish_cmds=$lt_finish_cmds
9821
9822# Same as above, but a single script fragment to be evaled but not shown.
9823finish_eval=$lt_finish_eval
9824
9825# Take the output of nm and produce a listing of raw symbols and C names.
9826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9827
9828# Transform the output of nm in a proper C declaration
9829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9830
9831# Transform the output of nm in a C name address pair
9832global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9833
9834# This is the shared library runtime path variable.
9835runpath_var=$runpath_var
9836
9837# This is the shared library path variable.
9838shlibpath_var=$shlibpath_var
9839
9840# Is shlibpath searched before the hard-coded library search path?
9841shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9842
9843# How to hardcode a shared library path into an executable.
9844hardcode_action=$hardcode_action
9845
9846# Whether we should hardcode library paths into libraries.
9847hardcode_into_libs=$hardcode_into_libs
9848
9849# Flag to hardcode \$libdir into a binary during linking.
9850# This must work even if \$libdir does not exist.
9851hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9852
9853# If ld is used when linking, flag to hardcode \$libdir into
9854# a binary during linking. This must work even if \$libdir does
9855# not exist.
9856hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9857
9858# Whether we need a single -rpath flag with a separated argument.
9859hardcode_libdir_separator=$lt_hardcode_libdir_separator
9860
9861# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9862# resulting binary.
9863hardcode_direct=$hardcode_direct
9864
9865# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9866# resulting binary.
9867hardcode_minus_L=$hardcode_minus_L
9868
9869# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9870# the resulting binary.
9871hardcode_shlibpath_var=$hardcode_shlibpath_var
9872
9873# Set to yes if building a shared library automatically hardcodes DIR into the library
9874# and all subsequent libraries and executables linked against it.
9875hardcode_automatic=$hardcode_automatic
9876
9877# Variables whose values should be saved in libtool wrapper scripts and
9878# restored at relink time.
9879variables_saved_for_relink="$variables_saved_for_relink"
9880
9881# Whether libtool must link a program against all its dependency libraries.
9882link_all_deplibs=$link_all_deplibs
9883
9884# Compile-time system search path for libraries
9885sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9886
9887# Run-time system search path for libraries
9888sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9889
9890# Fix the shell variable \$srcfile for the compiler.
9891fix_srcfile_path="$fix_srcfile_path"
9892
9893# Set to yes if exported symbols are required.
9894always_export_symbols=$always_export_symbols
9895
9896# The commands to list exported symbols.
9897export_symbols_cmds=$lt_export_symbols_cmds
9898
9899# The commands to extract the exported symbol list from a shared archive.
9900extract_expsyms_cmds=$lt_extract_expsyms_cmds
9901
9902# Symbols that should not be listed in the preloaded symbols.
9903exclude_expsyms=$lt_exclude_expsyms
9904
9905# Symbols that must always be exported.
9906include_expsyms=$lt_include_expsyms
9907
9908# ### END LIBTOOL CONFIG
9909
9910__EOF__
9911
9912
9913 case $host_os in
9914 aix3*)
9915 cat <<\EOF >> "$cfgfile"
9916
9917# AIX sometimes has problems with the GCC collect2 program. For some
9918# reason, if we set the COLLECT_NAMES environment variable, the problems
9919# vanish in a puff of smoke.
9920if test "X${COLLECT_NAMES+set}" != Xset; then
9921 COLLECT_NAMES=
9922 export COLLECT_NAMES
9923fi
9924EOF
9925 ;;
9926 esac
9927
9928 # We use sed instead of cat because bash on DJGPP gets confused if
9929 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9930 # text mode, it properly converts lines to CR/LF. This bash problem
9931 # is reportedly fixed, but why not run on old versions too?
9932 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9933
9934 mv -f "$cfgfile" "$ofile" || \
9935 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9936 chmod +x "$ofile"
9937
9938else
9939 # If there is no Makefile yet, we rely on a make rule to execute
9940 # `config.status --recheck' to rerun these tests and create the
9941 # libtool script then.
9942 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9943 if test -f "$ltmain_in"; then
9944 test -f Makefile && make "$ltmain"
9945 fi
9946fi
9947
9948
9949ac_ext=c
9950ac_cpp='$CPP $CPPFLAGS'
9951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9953ac_compiler_gnu=$ac_cv_c_compiler_gnu
9954
9955CC="$lt_save_CC"
9956
9957
9958# Check whether --with-tags or --without-tags was given.
9959if test "${with_tags+set}" = set; then
9960 withval="$with_tags"
9961 tagnames="$withval"
9962fi;
9963
9964if test -f "$ltmain" && test -n "$tagnames"; then
9965 if test ! -f "${ofile}"; then
9966 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9967echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9968 fi
9969
9970 if test -z "$LTCC"; then
9971 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9972 if test -z "$LTCC"; then
9973 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9974echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9975 else
9976 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9977echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9978 fi
9979 fi
9980
9981 # Extract list of available tagged configurations in $ofile.
9982 # Note that this assumes the entire list is on one line.
9983 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9984
9985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9986 for tagname in $tagnames; do
9987 IFS="$lt_save_ifs"
9988 # Check whether tagname contains only valid characters
9989 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9990 "") ;;
9991 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9992echo "$as_me: error: invalid tag name: $tagname" >&2;}
9993 { (exit 1); exit 1; }; }
9994 ;;
9995 esac
9996
9997 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9998 then
9999 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10000echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10001 { (exit 1); exit 1; }; }
10002 fi
10003
10004 # Update the list of available tags.
10005 if test -n "$tagname"; then
10006 echo appending configuration tag \"$tagname\" to $ofile
10007
10008 case $tagname in
10009 CXX)
10010 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10011 ac_ext=cc
10012ac_cpp='$CXXCPP $CPPFLAGS'
10013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10016
10017
10018
10019
10020archive_cmds_need_lc_CXX=no
10021allow_undefined_flag_CXX=
10022always_export_symbols_CXX=no
10023archive_expsym_cmds_CXX=
10024export_dynamic_flag_spec_CXX=
10025hardcode_direct_CXX=no
10026hardcode_libdir_flag_spec_CXX=
10027hardcode_libdir_flag_spec_ld_CXX=
10028hardcode_libdir_separator_CXX=
10029hardcode_minus_L_CXX=no
10030hardcode_automatic_CXX=no
10031module_cmds_CXX=
10032module_expsym_cmds_CXX=
10033link_all_deplibs_CXX=unknown
10034old_archive_cmds_CXX=$old_archive_cmds
10035no_undefined_flag_CXX=
10036whole_archive_flag_spec_CXX=
10037enable_shared_with_static_runtimes_CXX=no
10038
10039# Dependencies to place before and after the object being linked:
10040predep_objects_CXX=
10041postdep_objects_CXX=
10042predeps_CXX=
10043postdeps_CXX=
10044compiler_lib_search_path_CXX=
10045
10046# Source file extension for C++ test sources.
10047ac_ext=cc
10048
10049# Object file extension for compiled C++ test sources.
10050objext=o
10051objext_CXX=$objext
10052
10053# Code to be used in simple compile tests
10054lt_simple_compile_test_code="int some_variable = 0;\n"
10055
10056# Code to be used in simple link tests
10057lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10058
10059# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10060
10061# If no C compiler was specified, use CC.
10062LTCC=${LTCC-"$CC"}
10063
10064# Allow CC to be a program name with arguments.
10065compiler=$CC
10066
10067
10068# Allow CC to be a program name with arguments.
10069lt_save_CC=$CC
10070lt_save_LD=$LD
10071lt_save_GCC=$GCC
10072GCC=$GXX
10073lt_save_with_gnu_ld=$with_gnu_ld
10074lt_save_path_LD=$lt_cv_path_LD
10075if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10076 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10077else
10078 unset lt_cv_prog_gnu_ld
10079fi
10080if test -n "${lt_cv_path_LDCXX+set}"; then
10081 lt_cv_path_LD=$lt_cv_path_LDCXX
10082else
10083 unset lt_cv_path_LD
10084fi
10085test -z "${LDCXX+set}" || LD=$LDCXX
10086CC=${CXX-"c++"}
10087compiler=$CC
10088compiler_CXX=$CC
10089cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10090
10091# We don't want -fno-exception wen compiling C++ code, so set the
10092# no_builtin_flag separately
10093if test "$GXX" = yes; then
10094 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10095else
10096 lt_prog_compiler_no_builtin_flag_CXX=
10097fi
10098
10099if test "$GXX" = yes; then
10100 # Set up default GNU C++ configuration
10101
10102
10103# Check whether --with-gnu-ld or --without-gnu-ld was given.
10104if test "${with_gnu_ld+set}" = set; then
10105 withval="$with_gnu_ld"
10106 test "$withval" = no || with_gnu_ld=yes
10107else
10108 with_gnu_ld=no
10109fi;
10110ac_prog=ld
10111if test "$GCC" = yes; then
10112 # Check if gcc -print-prog-name=ld gives a path.
10113 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10114echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10115 case $host in
10116 *-*-mingw*)
10117 # gcc leaves a trailing carriage return which upsets mingw
10118 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10119 *)
10120 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10121 esac
10122 case $ac_prog in
10123 # Accept absolute paths.
10124 [\\/]* | ?:[\\/]*)
10125 re_direlt='/[^/][^/]*/\.\./'
10126 # Canonicalize the pathname of ld
10127 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10128 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10129 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10130 done
10131 test -z "$LD" && LD="$ac_prog"
10132 ;;
10133 "")
10134 # If it fails, then pretend we aren't using GCC.
10135 ac_prog=ld
10136 ;;
10137 *)
10138 # If it is relative, then search for the first ld in PATH.
10139 with_gnu_ld=unknown
10140 ;;
10141 esac
10142elif test "$with_gnu_ld" = yes; then
10143 echo "$as_me:$LINENO: checking for GNU ld" >&5
10144echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10145else
10146 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10147echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10148fi
10149if test "${lt_cv_path_LD+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151else
10152 if test -z "$LD"; then
10153 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10154 for ac_dir in $PATH; do
10155 IFS="$lt_save_ifs"
10156 test -z "$ac_dir" && ac_dir=.
10157 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10158 lt_cv_path_LD="$ac_dir/$ac_prog"
10159 # Check to see if the program is GNU ld. I'd rather use --version,
10160 # but apparently some GNU ld's only accept -v.
10161 # Break only if it was the GNU/non-GNU ld that we prefer.
10162 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10163 *GNU* | *'with BFD'*)
10164 test "$with_gnu_ld" != no && break
10165 ;;
10166 *)
10167 test "$with_gnu_ld" != yes && break
10168 ;;
10169 esac
10170 fi
10171 done
10172 IFS="$lt_save_ifs"
10173else
10174 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10175fi
10176fi
10177
10178LD="$lt_cv_path_LD"
10179if test -n "$LD"; then
10180 echo "$as_me:$LINENO: result: $LD" >&5
10181echo "${ECHO_T}$LD" >&6
10182else
10183 echo "$as_me:$LINENO: result: no" >&5
10184echo "${ECHO_T}no" >&6
10185fi
10186test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10187echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10188 { (exit 1); exit 1; }; }
10189echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10190echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10191if test "${lt_cv_prog_gnu_ld+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10195case `$LD -v 2>&1 </dev/null` in
10196*GNU* | *'with BFD'*)
10197 lt_cv_prog_gnu_ld=yes
10198 ;;
10199*)
10200 lt_cv_prog_gnu_ld=no
10201 ;;
10202esac
10203fi
10204echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10205echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10206with_gnu_ld=$lt_cv_prog_gnu_ld
10207
10208
10209
10210 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10211 # archiving commands below assume that GNU ld is being used.
10212 if test "$with_gnu_ld" = yes; then
10213 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10214 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'
10215
10216 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10217 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10218
10219 # If archive_cmds runs LD, not CC, wlarc should be empty
10220 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10221 # investigate it a little bit more. (MM)
10222 wlarc='${wl}'
10223
10224 # ancient GNU ld didn't support --whole-archive et. al.
10225 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10226 grep 'no-whole-archive' > /dev/null; then
10227 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10228 else
10229 whole_archive_flag_spec_CXX=
10230 fi
10231 else
10232 with_gnu_ld=no
10233 wlarc=
10234
10235 # A generic and very simple default shared library creation
10236 # command for GNU C++ for the case where it uses the native
10237 # linker, instead of GNU ld. If possible, this setting should
10238 # overridden to take advantage of the native linker features on
10239 # the platform it is being used on.
10240 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10241 fi
10242
10243 # Commands to make compiler produce verbose output that lists
10244 # what "hidden" libraries, object files and flags are used when
10245 # linking a shared library.
10246 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10247
10248else
10249 GXX=no
10250 with_gnu_ld=no
10251 wlarc=
10252fi
10253
10254# PORTME: fill in a description of your system's C++ link characteristics
10255echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10256echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10257ld_shlibs_CXX=yes
10258case $host_os in
10259 aix3*)
10260 # FIXME: insert proper C++ library support
10261 ld_shlibs_CXX=no
10262 ;;
10263 aix4* | aix5*)
10264 if test "$host_cpu" = ia64; then
10265 # On IA64, the linker does run time linking by default, so we don't
10266 # have to do anything special.
10267 aix_use_runtimelinking=no
10268 exp_sym_flag='-Bexport'
10269 no_entry_flag=""
10270 else
10271 aix_use_runtimelinking=no
10272
10273 # Test if we are trying to use run time linking or normal
10274 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10275 # need to do runtime linking.
10276 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10277 for ld_flag in $LDFLAGS; do
10278 case $ld_flag in
10279 *-brtl*)
10280 aix_use_runtimelinking=yes
10281 break
10282 ;;
10283 esac
10284 done
10285 esac
10286
10287 exp_sym_flag='-bexport'
10288 no_entry_flag='-bnoentry'
10289 fi
10290
10291 # When large executables or shared objects are built, AIX ld can
10292 # have problems creating the table of contents. If linking a library
10293 # or program results in "error TOC overflow" add -mminimal-toc to
10294 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10295 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10296
10297 archive_cmds_CXX=''
10298 hardcode_direct_CXX=yes
10299 hardcode_libdir_separator_CXX=':'
10300 link_all_deplibs_CXX=yes
10301
10302 if test "$GXX" = yes; then
10303 case $host_os in aix4.012|aix4.012.*)
10304 # We only want to do this on AIX 4.2 and lower, the check
10305 # below for broken collect2 doesn't work under 4.3+
10306 collect2name=`${CC} -print-prog-name=collect2`
10307 if test -f "$collect2name" && \
10308 strings "$collect2name" | grep resolve_lib_name >/dev/null
10309 then
10310 # We have reworked collect2
10311 hardcode_direct_CXX=yes
10312 else
10313 # We have old collect2
10314 hardcode_direct_CXX=unsupported
10315 # It fails to find uninstalled libraries when the uninstalled
10316 # path is not listed in the libpath. Setting hardcode_minus_L
10317 # to unsupported forces relinking
10318 hardcode_minus_L_CXX=yes
10319 hardcode_libdir_flag_spec_CXX='-L$libdir'
10320 hardcode_libdir_separator_CXX=
10321 fi
10322 esac
10323 shared_flag='-shared'
10324 else
10325 # not using gcc
10326 if test "$host_cpu" = ia64; then
10327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10328 # chokes on -Wl,-G. The following line is correct:
10329 shared_flag='-G'
10330 else
10331 if test "$aix_use_runtimelinking" = yes; then
10332 shared_flag='${wl}-G'
10333 else
10334 shared_flag='${wl}-bM:SRE'
10335 fi
10336 fi
10337 fi
10338
10339 # It seems that -bexpall does not export symbols beginning with
10340 # underscore (_), so it is better to generate a list of symbols to export.
10341 always_export_symbols_CXX=yes
10342 if test "$aix_use_runtimelinking" = yes; then
10343 # Warning - without using the other runtime loading flags (-brtl),
10344 # -berok will link without error, but may produce a broken library.
10345 allow_undefined_flag_CXX='-berok'
10346 # Determine the default libpath from the value encoded in an empty executable.
10347 cat >conftest.$ac_ext <<_ACEOF
10348/* confdefs.h. */
10349_ACEOF
10350cat confdefs.h >>conftest.$ac_ext
10351cat >>conftest.$ac_ext <<_ACEOF
10352/* end confdefs.h. */
10353
10354int
10355main ()
10356{
10357
10358 ;
10359 return 0;
10360}
10361_ACEOF
10362rm -f conftest.$ac_objext conftest$ac_exeext
10363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364 (eval $ac_link) 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } &&
10371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; } &&
10377 { ac_try='test -s conftest$ac_exeext'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383
10384aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10385}'`
10386# Check for a 64-bit object if we didn't find anything.
10387if 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; }
10388}'`; fi
10389else
10390 echo "$as_me: failed program was:" >&5
10391sed 's/^/| /' conftest.$ac_ext >&5
10392
10393fi
10394rm -f conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10397
10398 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10399
10400 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"
10401 else
10402 if test "$host_cpu" = ia64; then
10403 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10404 allow_undefined_flag_CXX="-z nodefs"
10405 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"
10406 else
10407 # Determine the default libpath from the value encoded in an empty executable.
10408 cat >conftest.$ac_ext <<_ACEOF
10409/* confdefs.h. */
10410_ACEOF
10411cat confdefs.h >>conftest.$ac_ext
10412cat >>conftest.$ac_ext <<_ACEOF
10413/* end confdefs.h. */
10414
10415int
10416main ()
10417{
10418
10419 ;
10420 return 0;
10421}
10422_ACEOF
10423rm -f conftest.$ac_objext conftest$ac_exeext
10424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; } &&
10438 { ac_try='test -s conftest$ac_exeext'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10444
10445aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10446}'`
10447# Check for a 64-bit object if we didn't find anything.
10448if 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; }
10449}'`; fi
10450else
10451 echo "$as_me: failed program was:" >&5
10452sed 's/^/| /' conftest.$ac_ext >&5
10453
10454fi
10455rm -f conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10458
10459 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10460 # Warning - without using the other run time loading flags,
10461 # -berok will link without error, but may produce a broken library.
10462 no_undefined_flag_CXX=' ${wl}-bernotok'
10463 allow_undefined_flag_CXX=' ${wl}-berok'
10464 # -bexpall does not export symbols beginning with underscore (_)
10465 always_export_symbols_CXX=yes
10466 # Exported symbols can be pulled into shared objects from archives
10467 whole_archive_flag_spec_CXX=' '
10468 archive_cmds_need_lc_CXX=yes
10469 # This is similar to how AIX traditionally builds it's shared libraries.
10470 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'
10471 fi
10472 fi
10473 ;;
10474 chorus*)
10475 case $cc_basename in
10476 *)
10477 # FIXME: insert proper C++ library support
10478 ld_shlibs_CXX=no
10479 ;;
10480 esac
10481 ;;
10482
10483 cygwin* | mingw* | pw32*)
10484 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10485 # as there is no search path for DLLs.
10486 hardcode_libdir_flag_spec_CXX='-L$libdir'
10487 allow_undefined_flag_CXX=unsupported
10488 always_export_symbols_CXX=no
10489 enable_shared_with_static_runtimes_CXX=yes
10490
10491 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10492 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'
10493 # If the export-symbols file already is a .def file (1st line
10494 # is EXPORTS), use it as is; otherwise, prepend...
10495 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10496 cp $export_symbols $output_objdir/$soname.def;
10497 else
10498 echo EXPORTS > $output_objdir/$soname.def;
10499 cat $export_symbols >> $output_objdir/$soname.def;
10500 fi~
10501 $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'
10502 else
10503 ld_shlibs_CXX=no
10504 fi
10505 ;;
10506
10507 darwin* | rhapsody*)
10508 if test "$GXX" = yes; then
10509 archive_cmds_need_lc_CXX=no
10510 case "$host_os" in
10511 rhapsody* | darwin1.[012])
10512 allow_undefined_flag_CXX='-undefined suppress'
10513 ;;
10514 *) # Darwin 1.3 on
10515 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10516 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10517 else
10518 case ${MACOSX_DEPLOYMENT_TARGET} in
10519 10.[012])
10520 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10521 ;;
10522 10.*)
10523 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10524 ;;
10525 esac
10526 fi
10527 ;;
10528 esac
10529 lt_int_apple_cc_single_mod=no
10530 output_verbose_link_cmd='echo'
10531 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10532 lt_int_apple_cc_single_mod=yes
10533 fi
10534 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10535 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10536 else
10537 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'
10538 fi
10539 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10540
10541 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10542 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10543 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}'
10544 else
10545 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}'
10546 fi
10547 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}'
10548 hardcode_direct_CXX=no
10549 hardcode_automatic_CXX=yes
10550 hardcode_shlibpath_var_CXX=unsupported
10551 whole_archive_flag_spec_CXX='-all_load $convenience'
10552 link_all_deplibs_CXX=yes
10553 else
10554 ld_shlibs_CXX=no
10555 fi
10556 ;;
10557
10558 dgux*)
10559 case $cc_basename in
10560 ec++)
10561 # FIXME: insert proper C++ library support
10562 ld_shlibs_CXX=no
10563 ;;
10564 ghcx)
10565 # Green Hills C++ Compiler
10566 # FIXME: insert proper C++ library support
10567 ld_shlibs_CXX=no
10568 ;;
10569 *)
10570 # FIXME: insert proper C++ library support
10571 ld_shlibs_CXX=no
10572 ;;
10573 esac
10574 ;;
10575 freebsd12*)
10576 # C++ shared libraries reported to be fairly broken before switch to ELF
10577 ld_shlibs_CXX=no
10578 ;;
10579 freebsd-elf*)
10580 archive_cmds_need_lc_CXX=no
10581 ;;
10582 freebsd* | kfreebsd*-gnu)
10583 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10584 # conventions
10585 ld_shlibs_CXX=yes
10586 ;;
10587 gnu*)
10588 ;;
10589 hpux9*)
10590 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10591 hardcode_libdir_separator_CXX=:
10592 export_dynamic_flag_spec_CXX='${wl}-E'
10593 hardcode_direct_CXX=yes
10594 hardcode_minus_L_CXX=yes # Not in the search PATH,
10595 # but as the default
10596 # location of the library.
10597
10598 case $cc_basename in
10599 CC)
10600 # FIXME: insert proper C++ library support
10601 ld_shlibs_CXX=no
10602 ;;
10603 aCC)
10604 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'
10605 # Commands to make compiler produce verbose output that lists
10606 # what "hidden" libraries, object files and flags are used when
10607 # linking a shared library.
10608 #
10609 # There doesn't appear to be a way to prevent this compiler from
10610 # explicitly linking system object files so we need to strip them
10611 # from the output so that they don't get included in the library
10612 # dependencies.
10613 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'
10614 ;;
10615 *)
10616 if test "$GXX" = yes; then
10617 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'
10618 else
10619 # FIXME: insert proper C++ library support
10620 ld_shlibs_CXX=no
10621 fi
10622 ;;
10623 esac
10624 ;;
10625 hpux10*|hpux11*)
10626 if test $with_gnu_ld = no; then
10627 case "$host_cpu" in
10628 hppa*64*)
10629 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10630 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10631 hardcode_libdir_separator_CXX=:
10632 ;;
10633 ia64*)
10634 hardcode_libdir_flag_spec_CXX='-L$libdir'
10635 ;;
10636 *)
10637 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10638 hardcode_libdir_separator_CXX=:
10639 export_dynamic_flag_spec_CXX='${wl}-E'
10640 ;;
10641 esac
10642 fi
10643 case "$host_cpu" in
10644 hppa*64*)
10645 hardcode_direct_CXX=no
10646 hardcode_shlibpath_var_CXX=no
10647 ;;
10648 ia64*)
10649 hardcode_direct_CXX=no
10650 hardcode_shlibpath_var_CXX=no
10651 hardcode_minus_L_CXX=yes # Not in the search PATH,
10652 # but as the default
10653 # location of the library.
10654 ;;
10655 *)
10656 hardcode_direct_CXX=yes
10657 hardcode_minus_L_CXX=yes # Not in the search PATH,
10658 # but as the default
10659 # location of the library.
10660 ;;
10661 esac
10662
10663 case $cc_basename in
10664 CC)
10665 # FIXME: insert proper C++ library support
10666 ld_shlibs_CXX=no
10667 ;;
10668 aCC)
10669 case "$host_cpu" in
10670 hppa*64*|ia64*)
10671 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10672 ;;
10673 *)
10674 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10675 ;;
10676 esac
10677 # Commands to make compiler produce verbose output that lists
10678 # what "hidden" libraries, object files and flags are used when
10679 # linking a shared library.
10680 #
10681 # There doesn't appear to be a way to prevent this compiler from
10682 # explicitly linking system object files so we need to strip them
10683 # from the output so that they don't get included in the library
10684 # dependencies.
10685 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'
10686 ;;
10687 *)
10688 if test "$GXX" = yes; then
10689 if test $with_gnu_ld = no; then
10690 case "$host_cpu" in
10691 ia64*|hppa*64*)
10692 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10693 ;;
10694 *)
10695 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'
10696 ;;
10697 esac
10698 fi
10699 else
10700 # FIXME: insert proper C++ library support
10701 ld_shlibs_CXX=no
10702 fi
10703 ;;
10704 esac
10705 ;;
10706 irix5* | irix6*)
10707 case $cc_basename in
10708 CC)
10709 # SGI C++
10710 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'
10711
10712 # Archives containing C++ object files must be created using
10713 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10714 # necessary to make sure instantiated templates are included
10715 # in the archive.
10716 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10717 ;;
10718 *)
10719 if test "$GXX" = yes; then
10720 if test "$with_gnu_ld" = no; then
10721 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'
10722 else
10723 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'
10724 fi
10725 fi
10726 link_all_deplibs_CXX=yes
10727 ;;
10728 esac
10729 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10730 hardcode_libdir_separator_CXX=:
10731 ;;
10732 linux*)
10733 case $cc_basename in
10734 KCC)
10735 # Kuck and Associates, Inc. (KAI) C++ Compiler
10736
10737 # KCC will only create a shared library if the output file
10738 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10739 # to its proper name (with version) after linking.
10740 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'
10741 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'
10742 # Commands to make compiler produce verbose output that lists
10743 # what "hidden" libraries, object files and flags are used when
10744 # linking a shared library.
10745 #
10746 # There doesn't appear to be a way to prevent this compiler from
10747 # explicitly linking system object files so we need to strip them
10748 # from the output so that they don't get included in the library
10749 # dependencies.
10750 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'
10751
10752 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10754
10755 # Archives containing C++ object files must be created using
10756 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10757 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10758 ;;
10759 icpc)
10760 # Intel C++
10761 with_gnu_ld=yes
10762 archive_cmds_need_lc_CXX=no
10763 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10764 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'
10765 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10767 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10768 ;;
10769 cxx)
10770 # Compaq C++
10771 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10772 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'
10773
10774 runpath_var=LD_RUN_PATH
10775 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10776 hardcode_libdir_separator_CXX=:
10777
10778 # Commands to make compiler produce verbose output that lists
10779 # what "hidden" libraries, object files and flags are used when
10780 # linking a shared library.
10781 #
10782 # There doesn't appear to be a way to prevent this compiler from
10783 # explicitly linking system object files so we need to strip them
10784 # from the output so that they don't get included in the library
10785 # dependencies.
10786 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'
10787 ;;
10788 esac
10789 ;;
10790 lynxos*)
10791 # FIXME: insert proper C++ library support
10792 ld_shlibs_CXX=no
10793 ;;
10794 m88k*)
10795 # FIXME: insert proper C++ library support
10796 ld_shlibs_CXX=no
10797 ;;
10798 mvs*)
10799 case $cc_basename in
10800 cxx)
10801 # FIXME: insert proper C++ library support
10802 ld_shlibs_CXX=no
10803 ;;
10804 *)
10805 # FIXME: insert proper C++ library support
10806 ld_shlibs_CXX=no
10807 ;;
10808 esac
10809 ;;
10810 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10812 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10813 wlarc=
10814 hardcode_libdir_flag_spec_CXX='-R$libdir'
10815 hardcode_direct_CXX=yes
10816 hardcode_shlibpath_var_CXX=no
10817 fi
10818 # Workaround some broken pre-1.5 toolchains
10819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10820 ;;
10821 osf3*)
10822 case $cc_basename in
10823 KCC)
10824 # Kuck and Associates, Inc. (KAI) C++ Compiler
10825
10826 # KCC will only create a shared library if the output file
10827 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10828 # to its proper name (with version) after linking.
10829 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'
10830
10831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10832 hardcode_libdir_separator_CXX=:
10833
10834 # Archives containing C++ object files must be created using
10835 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10836 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10837
10838 ;;
10839 RCC)
10840 # Rational C++ 2.4.1
10841 # FIXME: insert proper C++ library support
10842 ld_shlibs_CXX=no
10843 ;;
10844 cxx)
10845 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10846 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'
10847
10848 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10849 hardcode_libdir_separator_CXX=:
10850
10851 # Commands to make compiler produce verbose output that lists
10852 # what "hidden" libraries, object files and flags are used when
10853 # linking a shared library.
10854 #
10855 # There doesn't appear to be a way to prevent this compiler from
10856 # explicitly linking system object files so we need to strip them
10857 # from the output so that they don't get included in the library
10858 # dependencies.
10859 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'
10860 ;;
10861 *)
10862 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10863 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10864 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'
10865
10866 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10867 hardcode_libdir_separator_CXX=:
10868
10869 # Commands to make compiler produce verbose output that lists
10870 # what "hidden" libraries, object files and flags are used when
10871 # linking a shared library.
10872 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10873
10874 else
10875 # FIXME: insert proper C++ library support
10876 ld_shlibs_CXX=no
10877 fi
10878 ;;
10879 esac
10880 ;;
10881 osf4* | osf5*)
10882 case $cc_basename in
10883 KCC)
10884 # Kuck and Associates, Inc. (KAI) C++ Compiler
10885
10886 # KCC will only create a shared library if the output file
10887 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10888 # to its proper name (with version) after linking.
10889 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'
10890
10891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10892 hardcode_libdir_separator_CXX=:
10893
10894 # Archives containing C++ object files must be created using
10895 # the KAI C++ compiler.
10896 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10897 ;;
10898 RCC)
10899 # Rational C++ 2.4.1
10900 # FIXME: insert proper C++ library support
10901 ld_shlibs_CXX=no
10902 ;;
10903 cxx)
10904 allow_undefined_flag_CXX=' -expect_unresolved \*'
10905 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'
10906 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10907 echo "-hidden">> $lib.exp~
10908 $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~
10909 $rm $lib.exp'
10910
10911 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10912 hardcode_libdir_separator_CXX=:
10913
10914 # Commands to make compiler produce verbose output that lists
10915 # what "hidden" libraries, object files and flags are used when
10916 # linking a shared library.
10917 #
10918 # There doesn't appear to be a way to prevent this compiler from
10919 # explicitly linking system object files so we need to strip them
10920 # from the output so that they don't get included in the library
10921 # dependencies.
10922 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'
10923 ;;
10924 *)
10925 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10926 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10927 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'
10928
10929 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10930 hardcode_libdir_separator_CXX=:
10931
10932 # Commands to make compiler produce verbose output that lists
10933 # what "hidden" libraries, object files and flags are used when
10934 # linking a shared library.
10935 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10936
10937 else
10938 # FIXME: insert proper C++ library support
10939 ld_shlibs_CXX=no
10940 fi
10941 ;;
10942 esac
10943 ;;
10944 psos*)
10945 # FIXME: insert proper C++ library support
10946 ld_shlibs_CXX=no
10947 ;;
10948 sco*)
10949 archive_cmds_need_lc_CXX=no
10950 case $cc_basename in
10951 CC)
10952 # FIXME: insert proper C++ library support
10953 ld_shlibs_CXX=no
10954 ;;
10955 *)
10956 # FIXME: insert proper C++ library support
10957 ld_shlibs_CXX=no
10958 ;;
10959 esac
10960 ;;
10961 sunos4*)
10962 case $cc_basename in
10963 CC)
10964 # Sun C++ 4.x
10965 # FIXME: insert proper C++ library support
10966 ld_shlibs_CXX=no
10967 ;;
10968 lcc)
10969 # Lucid
10970 # FIXME: insert proper C++ library support
10971 ld_shlibs_CXX=no
10972 ;;
10973 *)
10974 # FIXME: insert proper C++ library support
10975 ld_shlibs_CXX=no
10976 ;;
10977 esac
10978 ;;
10979 solaris*)
10980 case $cc_basename in
10981 CC)
10982 # Sun C++ 4.2, 5.x and Centerline C++
10983 no_undefined_flag_CXX=' -zdefs'
10984 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10985 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10986 $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'
10987
10988 hardcode_libdir_flag_spec_CXX='-R$libdir'
10989 hardcode_shlibpath_var_CXX=no
10990 case $host_os in
10991 solaris2.0-5 | solaris2.0-5.*) ;;
10992 *)
10993 # The C++ compiler is used as linker so we must use $wl
10994 # flag to pass the commands to the underlying system
10995 # linker.
10996 # Supported since Solaris 2.6 (maybe 2.5.1?)
10997 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10998 ;;
10999 esac
11000 link_all_deplibs_CXX=yes
11001
11002 # Commands to make compiler produce verbose output that lists
11003 # what "hidden" libraries, object files and flags are used when
11004 # linking a shared library.
11005 #
11006 # There doesn't appear to be a way to prevent this compiler from
11007 # explicitly linking system object files so we need to strip them
11008 # from the output so that they don't get included in the library
11009 # dependencies.
11010 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'
11011
11012 # Archives containing C++ object files must be created using
11013 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11014 # necessary to make sure instantiated templates are included
11015 # in the archive.
11016 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11017 ;;
11018 gcx)
11019 # Green Hills C++ Compiler
11020 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11021
11022 # The C++ compiler must be used to create the archive.
11023 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11024 ;;
11025 *)
11026 # GNU C++ compiler with Solaris linker
11027 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11028 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11029 if $CC --version | grep -v '^2\.7' > /dev/null; then
11030 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11031 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11032 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11033
11034 # Commands to make compiler produce verbose output that lists
11035 # what "hidden" libraries, object files and flags are used when
11036 # linking a shared library.
11037 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11038 else
11039 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11040 # platform.
11041 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11042 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11043 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11044
11045 # Commands to make compiler produce verbose output that lists
11046 # what "hidden" libraries, object files and flags are used when
11047 # linking a shared library.
11048 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11049 fi
11050
11051 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11052 fi
11053 ;;
11054 esac
11055 ;;
11056 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11057 archive_cmds_need_lc_CXX=no
11058 ;;
11059 tandem*)
11060 case $cc_basename in
11061 NCC)
11062 # NonStop-UX NCC 3.20
11063 # FIXME: insert proper C++ library support
11064 ld_shlibs_CXX=no
11065 ;;
11066 *)
11067 # FIXME: insert proper C++ library support
11068 ld_shlibs_CXX=no
11069 ;;
11070 esac
11071 ;;
11072 vxworks*)
11073 # FIXME: insert proper C++ library support
11074 ld_shlibs_CXX=no
11075 ;;
11076 *)
11077 # FIXME: insert proper C++ library support
11078 ld_shlibs_CXX=no
11079 ;;
11080esac
11081echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11082echo "${ECHO_T}$ld_shlibs_CXX" >&6
11083test "$ld_shlibs_CXX" = no && can_build_shared=no
11084
11085GCC_CXX="$GXX"
11086LD_CXX="$LD"
11087
11088
11089cat > conftest.$ac_ext <<EOF
11090class Foo
11091{
11092public:
11093 Foo (void) { a = 0; }
11094private:
11095 int a;
11096};
11097EOF
11098
11099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100 (eval $ac_compile) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; then
11104 # Parse the compiler output and extract the necessary
11105 # objects, libraries and library flags.
11106
11107 # Sentinel used to keep track of whether or not we are before
11108 # the conftest object file.
11109 pre_test_object_deps_done=no
11110
11111 # The `*' in the case matches for architectures that use `case' in
11112 # $output_verbose_cmd can trigger glob expansion during the loop
11113 # eval without this substitution.
11114 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11115
11116 for p in `eval $output_verbose_link_cmd`; do
11117 case $p in
11118
11119 -L* | -R* | -l*)
11120 # Some compilers place space between "-{L,R}" and the path.
11121 # Remove the space.
11122 if test $p = "-L" \
11123 || test $p = "-R"; then
11124 prev=$p
11125 continue
11126 else
11127 prev=
11128 fi
11129
11130 if test "$pre_test_object_deps_done" = no; then
11131 case $p in
11132 -L* | -R*)
11133 # Internal compiler library paths should come after those
11134 # provided the user. The postdeps already come after the
11135 # user supplied libs so there is no need to process them.
11136 if test -z "$compiler_lib_search_path_CXX"; then
11137 compiler_lib_search_path_CXX="${prev}${p}"
11138 else
11139 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11140 fi
11141 ;;
11142 # The "-l" case would never come before the object being
11143 # linked, so don't bother handling this case.
11144 esac
11145 else
11146 if test -z "$postdeps_CXX"; then
11147 postdeps_CXX="${prev}${p}"
11148 else
11149 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11150 fi
11151 fi
11152 ;;
11153
11154 *.$objext)
11155 # This assumes that the test object file only shows up
11156 # once in the compiler output.
11157 if test "$p" = "conftest.$objext"; then
11158 pre_test_object_deps_done=yes
11159 continue
11160 fi
11161
11162 if test "$pre_test_object_deps_done" = no; then
11163 if test -z "$predep_objects_CXX"; then
11164 predep_objects_CXX="$p"
11165 else
11166 predep_objects_CXX="$predep_objects_CXX $p"
11167 fi
11168 else
11169 if test -z "$postdep_objects_CXX"; then
11170 postdep_objects_CXX="$p"
11171 else
11172 postdep_objects_CXX="$postdep_objects_CXX $p"
11173 fi
11174 fi
11175 ;;
11176
11177 *) ;; # Ignore the rest.
11178
11179 esac
11180 done
11181
11182 # Clean up.
11183 rm -f a.out a.exe
11184else
11185 echo "libtool.m4: error: problem compiling CXX test program"
11186fi
11187
11188$rm -f confest.$objext
11189
11190case " $postdeps_CXX " in
11191*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11192esac
11193
11194lt_prog_compiler_wl_CXX=
11195lt_prog_compiler_pic_CXX=
11196lt_prog_compiler_static_CXX=
11197
11198echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11199echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11200
11201 # C++ specific cases for pic, static, wl, etc.
11202 if test "$GXX" = yes; then
11203 lt_prog_compiler_wl_CXX='-Wl,'
11204 lt_prog_compiler_static_CXX='-static'
11205
11206 case $host_os in
11207 aix*)
11208 # All AIX code is PIC.
11209 if test "$host_cpu" = ia64; then
11210 # AIX 5 now supports IA64 processor
11211 lt_prog_compiler_static_CXX='-Bstatic'
11212 fi
11213 ;;
11214 amigaos*)
11215 # FIXME: we need at least 68020 code to build shared libraries, but
11216 # adding the `-m68020' flag to GCC prevents building anything better,
11217 # like `-m68040'.
11218 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11219 ;;
11220 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11221 # PIC is the default for these OSes.
11222 ;;
11223 mingw* | os2* | pw32*)
11224 # This hack is so that the source file can tell whether it is being
11225 # built for inclusion in a dll (and should export symbols for example).
11226 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11227 ;;
11228 darwin* | rhapsody*)
11229 # PIC is the default on this platform
11230 # Common symbols not allowed in MH_DYLIB files
11231 lt_prog_compiler_pic_CXX='-fno-common'
11232 ;;
11233 *djgpp*)
11234 # DJGPP does not support shared libraries at all
11235 lt_prog_compiler_pic_CXX=
11236 ;;
11237 sysv4*MP*)
11238 if test -d /usr/nec; then
11239 lt_prog_compiler_pic_CXX=-Kconform_pic
11240 fi
11241 ;;
11242 hpux*)
11243 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11244 # not for PA HP-UX.
11245 case "$host_cpu" in
11246 hppa*64*|ia64*)
11247 ;;
11248 *)
11249 lt_prog_compiler_pic_CXX='-fPIC'
11250 ;;
11251 esac
11252 ;;
11253 *)
11254 lt_prog_compiler_pic_CXX='-fPIC'
11255 ;;
11256 esac
11257 else
11258 case $host_os in
11259 aix4* | aix5*)
11260 # All AIX code is PIC.
11261 if test "$host_cpu" = ia64; then
11262 # AIX 5 now supports IA64 processor
11263 lt_prog_compiler_static_CXX='-Bstatic'
11264 else
11265 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11266 fi
11267 ;;
11268 chorus*)
11269 case $cc_basename in
11270 cxch68)
11271 # Green Hills C++ Compiler
11272 # _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"
11273 ;;
11274 esac
11275 ;;
11276 dgux*)
11277 case $cc_basename in
11278 ec++)
11279 lt_prog_compiler_pic_CXX='-KPIC'
11280 ;;
11281 ghcx)
11282 # Green Hills C++ Compiler
11283 lt_prog_compiler_pic_CXX='-pic'
11284 ;;
11285 *)
11286 ;;
11287 esac
11288 ;;
11289 freebsd* | kfreebsd*-gnu)
11290 # FreeBSD uses GNU C++
11291 ;;
11292 hpux9* | hpux10* | hpux11*)
11293 case $cc_basename in
11294 CC)
11295 lt_prog_compiler_wl_CXX='-Wl,'
11296 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11297 if test "$host_cpu" != ia64; then
11298 lt_prog_compiler_pic_CXX='+Z'
11299 fi
11300 ;;
11301 aCC)
11302 lt_prog_compiler_wl_CXX='-Wl,'
11303 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11304 case "$host_cpu" in
11305 hppa*64*|ia64*)
11306 # +Z the default
11307 ;;
11308 *)
11309 lt_prog_compiler_pic_CXX='+Z'
11310 ;;
11311 esac
11312 ;;
11313 *)
11314 ;;
11315 esac
11316 ;;
11317 irix5* | irix6* | nonstopux*)
11318 case $cc_basename in
11319 CC)
11320 lt_prog_compiler_wl_CXX='-Wl,'
11321 lt_prog_compiler_static_CXX='-non_shared'
11322 # CC pic flag -KPIC is the default.
11323 ;;
11324 *)
11325 ;;
11326 esac
11327 ;;
11328 linux*)
11329 case $cc_basename in
11330 KCC)
11331 # KAI C++ Compiler
11332 lt_prog_compiler_wl_CXX='--backend -Wl,'
11333 lt_prog_compiler_pic_CXX='-fPIC'
11334 ;;
11335 icpc)
11336 # Intel C++
11337 lt_prog_compiler_wl_CXX='-Wl,'
11338 lt_prog_compiler_pic_CXX='-KPIC'
11339 lt_prog_compiler_static_CXX='-static'
11340 ;;
11341 cxx)
11342 # Compaq C++
11343 # Make sure the PIC flag is empty. It appears that all Alpha
11344 # Linux and Compaq Tru64 Unix objects are PIC.
11345 lt_prog_compiler_pic_CXX=
11346 lt_prog_compiler_static_CXX='-non_shared'
11347 ;;
11348 *)
11349 ;;
11350 esac
11351 ;;
11352 lynxos*)
11353 ;;
11354 m88k*)
11355 ;;
11356 mvs*)
11357 case $cc_basename in
11358 cxx)
11359 lt_prog_compiler_pic_CXX='-W c,exportall'
11360 ;;
11361 *)
11362 ;;
11363 esac
11364 ;;
11365 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11366 ;;
11367 osf3* | osf4* | osf5*)
11368 case $cc_basename in
11369 KCC)
11370 lt_prog_compiler_wl_CXX='--backend -Wl,'
11371 ;;
11372 RCC)
11373 # Rational C++ 2.4.1
11374 lt_prog_compiler_pic_CXX='-pic'
11375 ;;
11376 cxx)
11377 # Digital/Compaq C++
11378 lt_prog_compiler_wl_CXX='-Wl,'
11379 # Make sure the PIC flag is empty. It appears that all Alpha
11380 # Linux and Compaq Tru64 Unix objects are PIC.
11381 lt_prog_compiler_pic_CXX=
11382 lt_prog_compiler_static_CXX='-non_shared'
11383 ;;
11384 *)
11385 ;;
11386 esac
11387 ;;
11388 psos*)
11389 ;;
11390 sco*)
11391 case $cc_basename in
11392 CC)
11393 lt_prog_compiler_pic_CXX='-fPIC'
11394 ;;
11395 *)
11396 ;;
11397 esac
11398 ;;
11399 solaris*)
11400 case $cc_basename in
11401 CC)
11402 # Sun C++ 4.2, 5.x and Centerline C++
11403 lt_prog_compiler_pic_CXX='-KPIC'
11404 lt_prog_compiler_static_CXX='-Bstatic'
11405 lt_prog_compiler_wl_CXX='-Qoption ld '
11406 ;;
11407 gcx)
11408 # Green Hills C++ Compiler
11409 lt_prog_compiler_pic_CXX='-PIC'
11410 ;;
11411 *)
11412 ;;
11413 esac
11414 ;;
11415 sunos4*)
11416 case $cc_basename in
11417 CC)
11418 # Sun C++ 4.x
11419 lt_prog_compiler_pic_CXX='-pic'
11420 lt_prog_compiler_static_CXX='-Bstatic'
11421 ;;
11422 lcc)
11423 # Lucid
11424 lt_prog_compiler_pic_CXX='-pic'
11425 ;;
11426 *)
11427 ;;
11428 esac
11429 ;;
11430 tandem*)
11431 case $cc_basename in
11432 NCC)
11433 # NonStop-UX NCC 3.20
11434 lt_prog_compiler_pic_CXX='-KPIC'
11435 ;;
11436 *)
11437 ;;
11438 esac
11439 ;;
11440 unixware*)
11441 ;;
11442 vxworks*)
11443 ;;
11444 *)
11445 lt_prog_compiler_can_build_shared_CXX=no
11446 ;;
11447 esac
11448 fi
11449
11450echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11451echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11452
11453#
11454# Check to make sure the PIC flag actually works.
11455#
11456if test -n "$lt_prog_compiler_pic_CXX"; then
11457
11458echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11459echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11460if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11462else
11463 lt_prog_compiler_pic_works_CXX=no
11464 ac_outfile=conftest.$ac_objext
11465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11466 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11467 # Insert the option either (1) after the last *FLAGS variable, or
11468 # (2) before a word containing "conftest.", or (3) at the end.
11469 # Note that $ac_compile itself does not contain backslashes and begins
11470 # with a dollar sign (not a hyphen), so the echo should work correctly.
11471 # The option is referenced via a variable to avoid confusing sed.
11472 lt_compile=`echo "$ac_compile" | $SED \
11473 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11475 -e 's:$: $lt_compiler_flag:'`
11476 (eval echo "\"\$as_me:11476: $lt_compile\"" >&5)
11477 (eval "$lt_compile" 2>conftest.err)
11478 ac_status=$?
11479 cat conftest.err >&5
11480 echo "$as_me:11480: \$? = $ac_status" >&5
11481 if (exit $ac_status) && test -s "$ac_outfile"; then
11482 # The compiler can only warn and ignore the option if not recognized
11483 # So say no if there are warnings
11484 if test ! -s conftest.err; then
11485 lt_prog_compiler_pic_works_CXX=yes
11486 fi
11487 fi
11488 $rm conftest*
11489
11490fi
11491echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11492echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11493
11494if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11495 case $lt_prog_compiler_pic_CXX in
11496 "" | " "*) ;;
11497 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11498 esac
11499else
11500 lt_prog_compiler_pic_CXX=
11501 lt_prog_compiler_can_build_shared_CXX=no
11502fi
11503
11504fi
11505case "$host_os" in
11506 # For platforms which do not support PIC, -DPIC is meaningless:
11507 *djgpp*)
11508 lt_prog_compiler_pic_CXX=
11509 ;;
11510 *)
11511 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11512 ;;
11513esac
11514
11515echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11516echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11517if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519else
11520 lt_cv_prog_compiler_c_o_CXX=no
11521 $rm -r conftest 2>/dev/null
11522 mkdir conftest
11523 cd conftest
11524 mkdir out
11525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11526
11527 lt_compiler_flag="-o out/conftest2.$ac_objext"
11528 # Insert the option either (1) after the last *FLAGS variable, or
11529 # (2) before a word containing "conftest.", or (3) at the end.
11530 # Note that $ac_compile itself does not contain backslashes and begins
11531 # with a dollar sign (not a hyphen), so the echo should work correctly.
11532 lt_compile=`echo "$ac_compile" | $SED \
11533 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11535 -e 's:$: $lt_compiler_flag:'`
11536 (eval echo "\"\$as_me:11536: $lt_compile\"" >&5)
11537 (eval "$lt_compile" 2>out/conftest.err)
11538 ac_status=$?
11539 cat out/conftest.err >&5
11540 echo "$as_me:11540: \$? = $ac_status" >&5
11541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11542 then
11543 # The compiler can only warn and ignore the option if not recognized
11544 # So say no if there are warnings
11545 if test ! -s out/conftest.err; then
11546 lt_cv_prog_compiler_c_o_CXX=yes
11547 fi
11548 fi
11549 chmod u+w .
11550 $rm conftest*
11551 # SGI C++ compiler will create directory out/ii_files/ for
11552 # template instantiation
11553 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11554 $rm out/* && rmdir out
11555 cd ..
11556 rmdir conftest
11557 $rm conftest*
11558
11559fi
11560echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11561echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11562
11563
11564hard_links="nottested"
11565if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11566 # do not overwrite the value of need_locks provided by the user
11567 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11568echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11569 hard_links=yes
11570 $rm conftest*
11571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11572 touch conftest.a
11573 ln conftest.a conftest.b 2>&5 || hard_links=no
11574 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11575 echo "$as_me:$LINENO: result: $hard_links" >&5
11576echo "${ECHO_T}$hard_links" >&6
11577 if test "$hard_links" = no; then
11578 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11579echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11580 need_locks=warn
11581 fi
11582else
11583 need_locks=no
11584fi
11585
11586echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11587echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11588
11589 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11590 case $host_os in
11591 aix4* | aix5*)
11592 # If we're using GNU nm, then we don't want the "-C" option.
11593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11594 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11595 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'
11596 else
11597 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'
11598 fi
11599 ;;
11600 pw32*)
11601 export_symbols_cmds_CXX="$ltdll_cmds"
11602 ;;
11603 cygwin* | mingw*)
11604 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11605 ;;
11606 linux*)
11607 link_all_deplibs_CXX=no
11608 ;;
11609 *)
11610 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11611 ;;
11612 esac
11613
11614echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11615echo "${ECHO_T}$ld_shlibs_CXX" >&6
11616test "$ld_shlibs_CXX" = no && can_build_shared=no
11617
11618variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11619if test "$GCC" = yes; then
11620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11621fi
11622
11623#
11624# Do we need to explicitly link libc?
11625#
11626case "x$archive_cmds_need_lc_CXX" in
11627x|xyes)
11628 # Assume -lc should be added
11629 archive_cmds_need_lc_CXX=yes
11630
11631 if test "$enable_shared" = yes && test "$GCC" = yes; then
11632 case $archive_cmds_CXX in
11633 *'~'*)
11634 # FIXME: we may have to deal with multi-command sequences.
11635 ;;
11636 '$CC '*)
11637 # Test whether the compiler implicitly links with -lc since on some
11638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11639 # to ld, don't add -lc before -lgcc.
11640 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11641echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11642 $rm conftest*
11643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11644
11645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646 (eval $ac_compile) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } 2>conftest.err; then
11650 soname=conftest
11651 lib=conftest
11652 libobjs=conftest.$ac_objext
11653 deplibs=
11654 wl=$lt_prog_compiler_wl_CXX
11655 compiler_flags=-v
11656 linker_flags=-v
11657 verstring=
11658 output_objdir=.
11659 libname=conftest
11660 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11661 allow_undefined_flag_CXX=
11662 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11663 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }
11667 then
11668 archive_cmds_need_lc_CXX=no
11669 else
11670 archive_cmds_need_lc_CXX=yes
11671 fi
11672 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11673 else
11674 cat conftest.err 1>&5
11675 fi
11676 $rm conftest*
11677 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11678echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11679 ;;
11680 esac
11681 fi
11682 ;;
11683esac
11684
11685echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11686echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11687library_names_spec=
11688libname_spec='lib$name'
11689soname_spec=
11690shrext_cmds=".so"
11691postinstall_cmds=
11692postuninstall_cmds=
11693finish_cmds=
11694finish_eval=
11695shlibpath_var=
11696shlibpath_overrides_runpath=unknown
11697version_type=none
11698dynamic_linker="$host_os ld.so"
11699sys_lib_dlsearch_path_spec="/lib /usr/lib"
11700if test "$GCC" = yes; then
11701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11702 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11703 # if the path contains ";" then we assume it to be the separator
11704 # otherwise default to the standard path separator (i.e. ":") - it is
11705 # assumed that no part of a normal pathname contains ";" but that should
11706 # okay in the real world where ";" in dirpaths is itself problematic.
11707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11708 else
11709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11710 fi
11711else
11712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11713fi
11714need_lib_prefix=unknown
11715hardcode_into_libs=no
11716
11717# when you set need_version to no, make sure it does not cause -set_version
11718# flags to be left without arguments
11719need_version=unknown
11720
11721case $host_os in
11722aix3*)
11723 version_type=linux
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11725 shlibpath_var=LIBPATH
11726
11727 # AIX 3 has no versioning support, so we append a major version to the name.
11728 soname_spec='${libname}${release}${shared_ext}$major'
11729 ;;
11730
11731aix4* | aix5*)
11732 version_type=linux
11733 need_lib_prefix=no
11734 need_version=no
11735 hardcode_into_libs=yes
11736 if test "$host_cpu" = ia64; then
11737 # AIX 5 supports IA64
11738 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 else
11741 # With GCC up to 2.95.x, collect2 would create an import file
11742 # for dependence libraries. The import file would start with
11743 # the line `#! .'. This would cause the generated library to
11744 # depend on `.', always an invalid library. This was fixed in
11745 # development snapshots of GCC prior to 3.0.
11746 case $host_os in
11747 aix4 | aix4.[01] | aix4.[01].*)
11748 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11749 echo ' yes '
11750 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11751 :
11752 else
11753 can_build_shared=no
11754 fi
11755 ;;
11756 esac
11757 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11758 # soname into executable. Probably we can add versioning support to
11759 # collect2, so additional links can be useful in future.
11760 if test "$aix_use_runtimelinking" = yes; then
11761 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11762 # instead of lib<name>.a to let people know that these are not
11763 # typical AIX shared libraries.
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11765 else
11766 # We preserve .a as extension for shared libraries through AIX4.2
11767 # and later when we are not doing run time linking.
11768 library_names_spec='${libname}${release}.a $libname.a'
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 fi
11771 shlibpath_var=LIBPATH
11772 fi
11773 ;;
11774
11775amigaos*)
11776 library_names_spec='$libname.ixlibrary $libname.a'
11777 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11778 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'
11779 ;;
11780
11781beos*)
11782 library_names_spec='${libname}${shared_ext}'
11783 dynamic_linker="$host_os ld.so"
11784 shlibpath_var=LIBRARY_PATH
11785 ;;
11786
11787bsdi4*)
11788 version_type=linux
11789 need_version=no
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11793 shlibpath_var=LD_LIBRARY_PATH
11794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11796 # the default ld.so.conf also contains /usr/contrib/lib and
11797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11798 # libtool to hard-code these into programs
11799 ;;
11800
11801cygwin* | mingw* | pw32*)
11802 version_type=windows
11803 shrext_cmds=".dll"
11804 need_version=no
11805 need_lib_prefix=no
11806
11807 case $GCC,$host_os in
11808 yes,cygwin* | yes,mingw* | yes,pw32*)
11809 library_names_spec='$libname.dll.a'
11810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11811 postinstall_cmds='base_file=`basename \${file}`~
11812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11813 dldir=$destdir/`dirname \$dlpath`~
11814 test -d \$dldir || mkdir -p \$dldir~
11815 $install_prog $dir/$dlname \$dldir/$dlname'
11816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11817 dlpath=$dir/\$dldll~
11818 $rm \$dlpath'
11819 shlibpath_overrides_runpath=yes
11820
11821 case $host_os in
11822 cygwin*)
11823 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11824 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11825 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11826 ;;
11827 mingw*)
11828 # MinGW DLLs use traditional 'lib' prefix
11829 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11830 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11831 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11832 # It is most probably a Windows format PATH printed by
11833 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11834 # path with ; separators, and with drive letters. We can handle the
11835 # drive letters (cygwin fileutils understands them), so leave them,
11836 # especially as we might pass files found there to a mingw objdump,
11837 # which wouldn't understand a cygwinified path. Ahh.
11838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11839 else
11840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11841 fi
11842 ;;
11843 pw32*)
11844 # pw32 DLLs use 'pw' prefix rather than 'lib'
11845 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11846 ;;
11847 esac
11848 ;;
11849
11850 *)
11851 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11852 ;;
11853 esac
11854 dynamic_linker='Win32 ld.exe'
11855 # FIXME: first we should search . and the directory the executable is in
11856 shlibpath_var=PATH
11857 ;;
11858
11859darwin* | rhapsody*)
11860 dynamic_linker="$host_os dyld"
11861 version_type=darwin
11862 need_lib_prefix=no
11863 need_version=no
11864 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11865 soname_spec='${libname}${release}${major}$shared_ext'
11866 shlibpath_overrides_runpath=yes
11867 shlibpath_var=DYLD_LIBRARY_PATH
11868 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11869 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11870 if test "$GCC" = yes; then
11871 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"`
11872 else
11873 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11874 fi
11875 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11876 ;;
11877
11878dgux*)
11879 version_type=linux
11880 need_lib_prefix=no
11881 need_version=no
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11883 soname_spec='${libname}${release}${shared_ext}$major'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 ;;
11886
11887freebsd1*)
11888 dynamic_linker=no
11889 ;;
11890
11891kfreebsd*-gnu)
11892 version_type=linux
11893 need_lib_prefix=no
11894 need_version=no
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11896 soname_spec='${libname}${release}${shared_ext}$major'
11897 shlibpath_var=LD_LIBRARY_PATH
11898 shlibpath_overrides_runpath=no
11899 hardcode_into_libs=yes
11900 dynamic_linker='GNU ld.so'
11901 ;;
11902
11903freebsd*)
11904 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11905 version_type=freebsd-$objformat
11906 case $version_type in
11907 freebsd-elf*)
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11909 need_version=no
11910 need_lib_prefix=no
11911 ;;
11912 freebsd-*)
11913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11914 need_version=yes
11915 ;;
11916 esac
11917 shlibpath_var=LD_LIBRARY_PATH
11918 case $host_os in
11919 freebsd2*)
11920 shlibpath_overrides_runpath=yes
11921 ;;
11922 freebsd3.01* | freebsdelf3.01*)
11923 shlibpath_overrides_runpath=yes
11924 hardcode_into_libs=yes
11925 ;;
11926 *) # from 3.2 on
11927 shlibpath_overrides_runpath=no
11928 hardcode_into_libs=yes
11929 ;;
11930 esac
11931 ;;
11932
11933gnu*)
11934 version_type=linux
11935 need_lib_prefix=no
11936 need_version=no
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 hardcode_into_libs=yes
11941 ;;
11942
11943hpux9* | hpux10* | hpux11*)
11944 # Give a soname corresponding to the major version so that dld.sl refuses to
11945 # link against other versions.
11946 version_type=sunos
11947 need_lib_prefix=no
11948 need_version=no
11949 case "$host_cpu" in
11950 ia64*)
11951 shrext_cmds='.so'
11952 hardcode_into_libs=yes
11953 dynamic_linker="$host_os dld.so"
11954 shlibpath_var=LD_LIBRARY_PATH
11955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11957 soname_spec='${libname}${release}${shared_ext}$major'
11958 if test "X$HPUX_IA64_MODE" = X32; then
11959 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11960 else
11961 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11962 fi
11963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11964 ;;
11965 hppa*64*)
11966 shrext_cmds='.sl'
11967 hardcode_into_libs=yes
11968 dynamic_linker="$host_os dld.sl"
11969 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11970 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11972 soname_spec='${libname}${release}${shared_ext}$major'
11973 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11975 ;;
11976 *)
11977 shrext_cmds='.sl'
11978 dynamic_linker="$host_os dld.sl"
11979 shlibpath_var=SHLIB_PATH
11980 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11982 soname_spec='${libname}${release}${shared_ext}$major'
11983 ;;
11984 esac
11985 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11986 postinstall_cmds='chmod 555 $lib'
11987 ;;
11988
11989irix5* | irix6* | nonstopux*)
11990 case $host_os in
11991 nonstopux*) version_type=nonstopux ;;
11992 *)
11993 if test "$lt_cv_prog_gnu_ld" = yes; then
11994 version_type=linux
11995 else
11996 version_type=irix
11997 fi ;;
11998 esac
11999 need_lib_prefix=no
12000 need_version=no
12001 soname_spec='${libname}${release}${shared_ext}$major'
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12003 case $host_os in
12004 irix5* | nonstopux*)
12005 libsuff= shlibsuff=
12006 ;;
12007 *)
12008 case $LD in # libtool.m4 will add one of these switches to LD
12009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12010 libsuff= shlibsuff= libmagic=32-bit;;
12011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12012 libsuff=32 shlibsuff=N32 libmagic=N32;;
12013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12015 *) libsuff= shlibsuff= libmagic=never-match;;
12016 esac
12017 ;;
12018 esac
12019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12020 shlibpath_overrides_runpath=no
12021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12023 hardcode_into_libs=yes
12024 ;;
12025
12026# No shared lib support for Linux oldld, aout, or coff.
12027linux*oldld* | linux*aout* | linux*coff*)
12028 dynamic_linker=no
12029 ;;
12030
12031# This must be Linux ELF.
12032linux*)
12033 version_type=linux
12034 need_lib_prefix=no
12035 need_version=no
12036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12037 soname_spec='${libname}${release}${shared_ext}$major'
12038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12039 shlibpath_var=LD_LIBRARY_PATH
12040 shlibpath_overrides_runpath=no
12041 # This implies no fast_install, which is unacceptable.
12042 # Some rework will be needed to allow for fast_install
12043 # before this can be enabled.
12044 hardcode_into_libs=yes
12045
12046 # Append ld.so.conf contents to the search path
12047 if test -f /etc/ld.so.conf; then
12048 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12049 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12050 fi
12051
12052 # We used to test for /lib/ld.so.1 and disable shared libraries on
12053 # powerpc, because MkLinux only supported shared libraries with the
12054 # GNU dynamic linker. Since this was broken with cross compilers,
12055 # most powerpc-linux boxes support dynamic linking these days and
12056 # people can always --disable-shared, the test was removed, and we
12057 # assume the GNU/Linux dynamic linker is in use.
12058 dynamic_linker='GNU/Linux ld.so'
12059 ;;
12060
12061netbsdelf*-gnu)
12062 version_type=linux
12063 need_lib_prefix=no
12064 need_version=no
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12066 soname_spec='${libname}${release}${shared_ext}$major'
12067 shlibpath_var=LD_LIBRARY_PATH
12068 shlibpath_overrides_runpath=no
12069 hardcode_into_libs=yes
12070 dynamic_linker='NetBSD ld.elf_so'
12071 ;;
12072
12073knetbsd*-gnu)
12074 version_type=linux
12075 need_lib_prefix=no
12076 need_version=no
12077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12078 soname_spec='${libname}${release}${shared_ext}$major'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 shlibpath_overrides_runpath=no
12081 hardcode_into_libs=yes
12082 dynamic_linker='GNU ld.so'
12083 ;;
12084
12085netbsd*)
12086 version_type=sunos
12087 need_lib_prefix=no
12088 need_version=no
12089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12092 dynamic_linker='NetBSD (a.out) ld.so'
12093 else
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 dynamic_linker='NetBSD ld.elf_so'
12097 fi
12098 shlibpath_var=LD_LIBRARY_PATH
12099 shlibpath_overrides_runpath=yes
12100 hardcode_into_libs=yes
12101 ;;
12102
12103newsos6)
12104 version_type=linux
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106 shlibpath_var=LD_LIBRARY_PATH
12107 shlibpath_overrides_runpath=yes
12108 ;;
12109
12110nto-qnx*)
12111 version_type=linux
12112 need_lib_prefix=no
12113 need_version=no
12114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12115 soname_spec='${libname}${release}${shared_ext}$major'
12116 shlibpath_var=LD_LIBRARY_PATH
12117 shlibpath_overrides_runpath=yes
12118 ;;
12119
12120openbsd*)
12121 version_type=sunos
12122 need_lib_prefix=no
12123 need_version=yes
12124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12128 case $host_os in
12129 openbsd2.[89] | openbsd2.[89].*)
12130 shlibpath_overrides_runpath=no
12131 ;;
12132 *)
12133 shlibpath_overrides_runpath=yes
12134 ;;
12135 esac
12136 else
12137 shlibpath_overrides_runpath=yes
12138 fi
12139 ;;
12140
12141os2*)
12142 libname_spec='$name'
12143 shrext_cmds=".dll"
12144 need_lib_prefix=no
12145 library_names_spec='$libname${shared_ext} $libname.a'
12146 dynamic_linker='OS/2 ld.exe'
12147 shlibpath_var=LIBPATH
12148 ;;
12149
12150osf3* | osf4* | osf5*)
12151 version_type=osf
12152 need_lib_prefix=no
12153 need_version=no
12154 soname_spec='${libname}${release}${shared_ext}$major'
12155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12158 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12159 ;;
12160
12161sco3.2v5*)
12162 version_type=osf
12163 soname_spec='${libname}${release}${shared_ext}$major'
12164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12165 shlibpath_var=LD_LIBRARY_PATH
12166 ;;
12167
12168solaris*)
12169 version_type=linux
12170 need_lib_prefix=no
12171 need_version=no
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12173 soname_spec='${libname}${release}${shared_ext}$major'
12174 shlibpath_var=LD_LIBRARY_PATH
12175 shlibpath_overrides_runpath=yes
12176 hardcode_into_libs=yes
12177 # ldd complains unless libraries are executable
12178 postinstall_cmds='chmod +x $lib'
12179 ;;
12180
12181sunos4*)
12182 version_type=sunos
12183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12184 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12185 shlibpath_var=LD_LIBRARY_PATH
12186 shlibpath_overrides_runpath=yes
12187 if test "$with_gnu_ld" = yes; then
12188 need_lib_prefix=no
12189 fi
12190 need_version=yes
12191 ;;
12192
12193sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12194 version_type=linux
12195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12196 soname_spec='${libname}${release}${shared_ext}$major'
12197 shlibpath_var=LD_LIBRARY_PATH
12198 case $host_vendor in
12199 sni)
12200 shlibpath_overrides_runpath=no
12201 need_lib_prefix=no
12202 export_dynamic_flag_spec='${wl}-Blargedynsym'
12203 runpath_var=LD_RUN_PATH
12204 ;;
12205 siemens)
12206 need_lib_prefix=no
12207 ;;
12208 motorola)
12209 need_lib_prefix=no
12210 need_version=no
12211 shlibpath_overrides_runpath=no
12212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12213 ;;
12214 esac
12215 ;;
12216
12217sysv4*MP*)
12218 if test -d /usr/nec ;then
12219 version_type=linux
12220 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12221 soname_spec='$libname${shared_ext}.$major'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 fi
12224 ;;
12225
12226uts4*)
12227 version_type=linux
12228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12229 soname_spec='${libname}${release}${shared_ext}$major'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 ;;
12232
12233*)
12234 dynamic_linker=no
12235 ;;
12236esac
12237echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12238echo "${ECHO_T}$dynamic_linker" >&6
12239test "$dynamic_linker" = no && can_build_shared=no
12240
12241echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12242echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12243hardcode_action_CXX=
12244if test -n "$hardcode_libdir_flag_spec_CXX" || \
12245 test -n "$runpath_var CXX" || \
12246 test "X$hardcode_automatic_CXX"="Xyes" ; then
12247
12248 # We can hardcode non-existant directories.
12249 if test "$hardcode_direct_CXX" != no &&
12250 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12251 # have to relink, otherwise we might link with an installed library
12252 # when we should be linking with a yet-to-be-installed one
12253 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12254 test "$hardcode_minus_L_CXX" != no; then
12255 # Linking always hardcodes the temporary library directory.
12256 hardcode_action_CXX=relink
12257 else
12258 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12259 hardcode_action_CXX=immediate
12260 fi
12261else
12262 # We cannot hardcode anything, or else we can only hardcode existing
12263 # directories.
12264 hardcode_action_CXX=unsupported
12265fi
12266echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12267echo "${ECHO_T}$hardcode_action_CXX" >&6
12268
12269if test "$hardcode_action_CXX" = relink; then
12270 # Fast installation is not supported
12271 enable_fast_install=no
12272elif test "$shlibpath_overrides_runpath" = yes ||
12273 test "$enable_shared" = no; then
12274 # Fast installation is not necessary
12275 enable_fast_install=needless
12276fi
12277
12278striplib=
12279old_striplib=
12280echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12281echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12282if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12283 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12284 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12285 echo "$as_me:$LINENO: result: yes" >&5
12286echo "${ECHO_T}yes" >&6
12287else
12288# FIXME - insert some real tests, host_os isn't really good enough
12289 case $host_os in
12290 darwin*)
12291 if test -n "$STRIP" ; then
12292 striplib="$STRIP -x"
12293 echo "$as_me:$LINENO: result: yes" >&5
12294echo "${ECHO_T}yes" >&6
12295 else
12296 echo "$as_me:$LINENO: result: no" >&5
12297echo "${ECHO_T}no" >&6
12298fi
12299 ;;
12300 *)
12301 echo "$as_me:$LINENO: result: no" >&5
12302echo "${ECHO_T}no" >&6
12303 ;;
12304 esac
12305fi
12306
12307if test "x$enable_dlopen" != xyes; then
12308 enable_dlopen=unknown
12309 enable_dlopen_self=unknown
12310 enable_dlopen_self_static=unknown
12311else
12312 lt_cv_dlopen=no
12313 lt_cv_dlopen_libs=
12314
12315 case $host_os in
12316 beos*)
12317 lt_cv_dlopen="load_add_on"
12318 lt_cv_dlopen_libs=
12319 lt_cv_dlopen_self=yes
12320 ;;
12321
12322 mingw* | pw32*)
12323 lt_cv_dlopen="LoadLibrary"
12324 lt_cv_dlopen_libs=
12325 ;;
12326
12327 cygwin*)
12328 lt_cv_dlopen="dlopen"
12329 lt_cv_dlopen_libs=
12330 ;;
12331
12332 darwin*)
12333 # if libdl is installed we need to link against it
12334 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12335echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12336if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338else
12339 ac_check_lib_save_LIBS=$LIBS
12340LIBS="-ldl $LIBS"
12341cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
12347
12348/* Override any gcc2 internal prototype to avoid an error. */
12349#ifdef __cplusplus
12350extern "C"
12351#endif
12352/* We use char because int might match the return type of a gcc2
12353 builtin and then its argument prototype would still apply. */
12354char dlopen ();
12355int
12356main ()
12357{
12358dlopen ();
12359 ;
12360 return 0;
12361}
12362_ACEOF
12363rm -f conftest.$ac_objext conftest$ac_exeext
12364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12365 (eval $ac_link) 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_cv_lib_dl_dlopen=yes
12385else
12386 echo "$as_me: failed program was:" >&5
12387sed 's/^/| /' conftest.$ac_ext >&5
12388
12389ac_cv_lib_dl_dlopen=no
12390fi
12391rm -f conftest.err conftest.$ac_objext \
12392 conftest$ac_exeext conftest.$ac_ext
12393LIBS=$ac_check_lib_save_LIBS
12394fi
12395echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12396echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12397if test $ac_cv_lib_dl_dlopen = yes; then
12398 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12399else
12400
12401 lt_cv_dlopen="dyld"
12402 lt_cv_dlopen_libs=
12403 lt_cv_dlopen_self=yes
12404
12405fi
12406
12407 ;;
12408
12409 *)
12410 echo "$as_me:$LINENO: checking for shl_load" >&5
12411echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12412if test "${ac_cv_func_shl_load+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12414else
12415 cat >conftest.$ac_ext <<_ACEOF
12416/* confdefs.h. */
12417_ACEOF
12418cat confdefs.h >>conftest.$ac_ext
12419cat >>conftest.$ac_ext <<_ACEOF
12420/* end confdefs.h. */
12421/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12423#define shl_load innocuous_shl_load
12424
12425/* System header to define __stub macros and hopefully few prototypes,
12426 which can conflict with char shl_load (); below.
12427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12428 <limits.h> exists even on freestanding compilers. */
12429
12430#ifdef __STDC__
12431# include <limits.h>
12432#else
12433# include <assert.h>
12434#endif
12435
12436#undef shl_load
12437
12438/* Override any gcc2 internal prototype to avoid an error. */
12439#ifdef __cplusplus
12440extern "C"
12441{
12442#endif
12443/* We use char because int might match the return type of a gcc2
12444 builtin and then its argument prototype would still apply. */
12445char shl_load ();
12446/* The GNU C library defines this for functions which it implements
12447 to always fail with ENOSYS. Some functions are actually named
12448 something starting with __ and the normal name is an alias. */
12449#if defined (__stub_shl_load) || defined (__stub___shl_load)
12450choke me
12451#else
12452char (*f) () = shl_load;
12453#endif
12454#ifdef __cplusplus
12455}
12456#endif
12457
12458int
12459main ()
12460{
12461return f != shl_load;
12462 ;
12463 return 0;
12464}
12465_ACEOF
12466rm -f conftest.$ac_objext conftest$ac_exeext
12467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest$ac_exeext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_cv_func_shl_load=yes
12488else
12489 echo "$as_me: failed program was:" >&5
12490sed 's/^/| /' conftest.$ac_ext >&5
12491
12492ac_cv_func_shl_load=no
12493fi
12494rm -f conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496fi
12497echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12498echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12499if test $ac_cv_func_shl_load = yes; then
12500 lt_cv_dlopen="shl_load"
12501else
12502 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12503echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12504if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12506else
12507 ac_check_lib_save_LIBS=$LIBS
12508LIBS="-ldld $LIBS"
12509cat >conftest.$ac_ext <<_ACEOF
12510/* confdefs.h. */
12511_ACEOF
12512cat confdefs.h >>conftest.$ac_ext
12513cat >>conftest.$ac_ext <<_ACEOF
12514/* end confdefs.h. */
12515
12516/* Override any gcc2 internal prototype to avoid an error. */
12517#ifdef __cplusplus
12518extern "C"
12519#endif
12520/* We use char because int might match the return type of a gcc2
12521 builtin and then its argument prototype would still apply. */
12522char shl_load ();
12523int
12524main ()
12525{
12526shl_load ();
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531rm -f conftest.$ac_objext conftest$ac_exeext
12532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12533 (eval $ac_link) 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest$ac_exeext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_lib_dld_shl_load=yes
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557ac_cv_lib_dld_shl_load=no
12558fi
12559rm -f conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12561LIBS=$ac_check_lib_save_LIBS
12562fi
12563echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12564echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12565if test $ac_cv_lib_dld_shl_load = yes; then
12566 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12567else
12568 echo "$as_me:$LINENO: checking for dlopen" >&5
12569echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12570if test "${ac_cv_func_dlopen+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572else
12573 cat >conftest.$ac_ext <<_ACEOF
12574/* confdefs.h. */
12575_ACEOF
12576cat confdefs.h >>conftest.$ac_ext
12577cat >>conftest.$ac_ext <<_ACEOF
12578/* end confdefs.h. */
12579/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12581#define dlopen innocuous_dlopen
12582
12583/* System header to define __stub macros and hopefully few prototypes,
12584 which can conflict with char dlopen (); below.
12585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586 <limits.h> exists even on freestanding compilers. */
12587
12588#ifdef __STDC__
12589# include <limits.h>
12590#else
12591# include <assert.h>
12592#endif
12593
12594#undef dlopen
12595
12596/* Override any gcc2 internal prototype to avoid an error. */
12597#ifdef __cplusplus
12598extern "C"
12599{
12600#endif
12601/* We use char because int might match the return type of a gcc2
12602 builtin and then its argument prototype would still apply. */
12603char dlopen ();
12604/* The GNU C library defines this for functions which it implements
12605 to always fail with ENOSYS. Some functions are actually named
12606 something starting with __ and the normal name is an alias. */
12607#if defined (__stub_dlopen) || defined (__stub___dlopen)
12608choke me
12609#else
12610char (*f) () = dlopen;
12611#endif
12612#ifdef __cplusplus
12613}
12614#endif
12615
12616int
12617main ()
12618{
12619return f != dlopen;
12620 ;
12621 return 0;
12622}
12623_ACEOF
12624rm -f conftest.$ac_objext conftest$ac_exeext
12625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12626 (eval $ac_link) 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest$ac_exeext'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 ac_cv_func_dlopen=yes
12646else
12647 echo "$as_me: failed program was:" >&5
12648sed 's/^/| /' conftest.$ac_ext >&5
12649
12650ac_cv_func_dlopen=no
12651fi
12652rm -f conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654fi
12655echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12656echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12657if test $ac_cv_func_dlopen = yes; then
12658 lt_cv_dlopen="dlopen"
12659else
12660 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12661echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12662if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664else
12665 ac_check_lib_save_LIBS=$LIBS
12666LIBS="-ldl $LIBS"
12667cat >conftest.$ac_ext <<_ACEOF
12668/* confdefs.h. */
12669_ACEOF
12670cat confdefs.h >>conftest.$ac_ext
12671cat >>conftest.$ac_ext <<_ACEOF
12672/* end confdefs.h. */
12673
12674/* Override any gcc2 internal prototype to avoid an error. */
12675#ifdef __cplusplus
12676extern "C"
12677#endif
12678/* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12680char dlopen ();
12681int
12682main ()
12683{
12684dlopen ();
12685 ;
12686 return 0;
12687}
12688_ACEOF
12689rm -f conftest.$ac_objext conftest$ac_exeext
12690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691 (eval $ac_link) 2>conftest.er1
12692 ac_status=$?
12693 grep -v '^ *+' conftest.er1 >conftest.err
12694 rm -f conftest.er1
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_lib_dl_dlopen=yes
12711else
12712 echo "$as_me: failed program was:" >&5
12713sed 's/^/| /' conftest.$ac_ext >&5
12714
12715ac_cv_lib_dl_dlopen=no
12716fi
12717rm -f conftest.err conftest.$ac_objext \
12718 conftest$ac_exeext conftest.$ac_ext
12719LIBS=$ac_check_lib_save_LIBS
12720fi
12721echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12722echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12723if test $ac_cv_lib_dl_dlopen = yes; then
12724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12725else
12726 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12727echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12728if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730else
12731 ac_check_lib_save_LIBS=$LIBS
12732LIBS="-lsvld $LIBS"
12733cat >conftest.$ac_ext <<_ACEOF
12734/* confdefs.h. */
12735_ACEOF
12736cat confdefs.h >>conftest.$ac_ext
12737cat >>conftest.$ac_ext <<_ACEOF
12738/* end confdefs.h. */
12739
12740/* Override any gcc2 internal prototype to avoid an error. */
12741#ifdef __cplusplus
12742extern "C"
12743#endif
12744/* We use char because int might match the return type of a gcc2
12745 builtin and then its argument prototype would still apply. */
12746char dlopen ();
12747int
12748main ()
12749{
12750dlopen ();
12751 ;
12752 return 0;
12753}
12754_ACEOF
12755rm -f conftest.$ac_objext conftest$ac_exeext
12756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12757 (eval $ac_link) 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest$ac_exeext'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 ac_cv_lib_svld_dlopen=yes
12777else
12778 echo "$as_me: failed program was:" >&5
12779sed 's/^/| /' conftest.$ac_ext >&5
12780
12781ac_cv_lib_svld_dlopen=no
12782fi
12783rm -f conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785LIBS=$ac_check_lib_save_LIBS
12786fi
12787echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12788echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12789if test $ac_cv_lib_svld_dlopen = yes; then
12790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12791else
12792 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12793echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12794if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797 ac_check_lib_save_LIBS=$LIBS
12798LIBS="-ldld $LIBS"
12799cat >conftest.$ac_ext <<_ACEOF
12800/* confdefs.h. */
12801_ACEOF
12802cat confdefs.h >>conftest.$ac_ext
12803cat >>conftest.$ac_ext <<_ACEOF
12804/* end confdefs.h. */
12805
12806/* Override any gcc2 internal prototype to avoid an error. */
12807#ifdef __cplusplus
12808extern "C"
12809#endif
12810/* We use char because int might match the return type of a gcc2
12811 builtin and then its argument prototype would still apply. */
12812char dld_link ();
12813int
12814main ()
12815{
12816dld_link ();
12817 ;
12818 return 0;
12819}
12820_ACEOF
12821rm -f conftest.$ac_objext conftest$ac_exeext
12822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823 (eval $ac_link) 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
12830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try='test -s conftest$ac_exeext'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 ac_cv_lib_dld_dld_link=yes
12843else
12844 echo "$as_me: failed program was:" >&5
12845sed 's/^/| /' conftest.$ac_ext >&5
12846
12847ac_cv_lib_dld_dld_link=no
12848fi
12849rm -f conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12851LIBS=$ac_check_lib_save_LIBS
12852fi
12853echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12854echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12855if test $ac_cv_lib_dld_dld_link = yes; then
12856 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12857fi
12858
12859
12860fi
12861
12862
12863fi
12864
12865
12866fi
12867
12868
12869fi
12870
12871
12872fi
12873
12874 ;;
12875 esac
12876
12877 if test "x$lt_cv_dlopen" != xno; then
12878 enable_dlopen=yes
12879 else
12880 enable_dlopen=no
12881 fi
12882
12883 case $lt_cv_dlopen in
12884 dlopen)
12885 save_CPPFLAGS="$CPPFLAGS"
12886 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12887
12888 save_LDFLAGS="$LDFLAGS"
12889 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12890
12891 save_LIBS="$LIBS"
12892 LIBS="$lt_cv_dlopen_libs $LIBS"
12893
12894 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12895echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12896if test "${lt_cv_dlopen_self+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898else
12899 if test "$cross_compiling" = yes; then :
12900 lt_cv_dlopen_self=cross
12901else
12902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12903 lt_status=$lt_dlunknown
12904 cat > conftest.$ac_ext <<EOF
12905#line 12905 "configure"
12906#include "confdefs.h"
12907
12908#if HAVE_DLFCN_H
12909#include <dlfcn.h>
12910#endif
12911
12912#include <stdio.h>
12913
12914#ifdef RTLD_GLOBAL
12915# define LT_DLGLOBAL RTLD_GLOBAL
12916#else
12917# ifdef DL_GLOBAL
12918# define LT_DLGLOBAL DL_GLOBAL
12919# else
12920# define LT_DLGLOBAL 0
12921# endif
12922#endif
12923
12924/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12925 find out it does not work in some platform. */
12926#ifndef LT_DLLAZY_OR_NOW
12927# ifdef RTLD_LAZY
12928# define LT_DLLAZY_OR_NOW RTLD_LAZY
12929# else
12930# ifdef DL_LAZY
12931# define LT_DLLAZY_OR_NOW DL_LAZY
12932# else
12933# ifdef RTLD_NOW
12934# define LT_DLLAZY_OR_NOW RTLD_NOW
12935# else
12936# ifdef DL_NOW
12937# define LT_DLLAZY_OR_NOW DL_NOW
12938# else
12939# define LT_DLLAZY_OR_NOW 0
12940# endif
12941# endif
12942# endif
12943# endif
12944#endif
12945
12946#ifdef __cplusplus
12947extern "C" void exit (int);
12948#endif
12949
12950void fnord() { int i=42;}
12951int main ()
12952{
12953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12954 int status = $lt_dlunknown;
12955
12956 if (self)
12957 {
12958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12959 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12960 /* dlclose (self); */
12961 }
12962
12963 exit (status);
12964}
12965EOF
12966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12967 (eval $ac_link) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12971 (./conftest; exit; ) 2>/dev/null
12972 lt_status=$?
12973 case x$lt_status in
12974 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12975 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12976 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12977 esac
12978 else :
12979 # compilation failed
12980 lt_cv_dlopen_self=no
12981 fi
12982fi
12983rm -fr conftest*
12984
12985
12986fi
12987echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12988echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12989
12990 if test "x$lt_cv_dlopen_self" = xyes; then
12991 LDFLAGS="$LDFLAGS $link_static_flag"
12992 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12993echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12994if test "${lt_cv_dlopen_self_static+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
12997 if test "$cross_compiling" = yes; then :
12998 lt_cv_dlopen_self_static=cross
12999else
13000 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13001 lt_status=$lt_dlunknown
13002 cat > conftest.$ac_ext <<EOF
13003#line 13003 "configure"
13004#include "confdefs.h"
13005
13006#if HAVE_DLFCN_H
13007#include <dlfcn.h>
13008#endif
13009
13010#include <stdio.h>
13011
13012#ifdef RTLD_GLOBAL
13013# define LT_DLGLOBAL RTLD_GLOBAL
13014#else
13015# ifdef DL_GLOBAL
13016# define LT_DLGLOBAL DL_GLOBAL
13017# else
13018# define LT_DLGLOBAL 0
13019# endif
13020#endif
13021
13022/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13023 find out it does not work in some platform. */
13024#ifndef LT_DLLAZY_OR_NOW
13025# ifdef RTLD_LAZY
13026# define LT_DLLAZY_OR_NOW RTLD_LAZY
13027# else
13028# ifdef DL_LAZY
13029# define LT_DLLAZY_OR_NOW DL_LAZY
13030# else
13031# ifdef RTLD_NOW
13032# define LT_DLLAZY_OR_NOW RTLD_NOW
13033# else
13034# ifdef DL_NOW
13035# define LT_DLLAZY_OR_NOW DL_NOW
13036# else
13037# define LT_DLLAZY_OR_NOW 0
13038# endif
13039# endif
13040# endif
13041# endif
13042#endif
13043
13044#ifdef __cplusplus
13045extern "C" void exit (int);
13046#endif
13047
13048void fnord() { int i=42;}
13049int main ()
13050{
13051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13052 int status = $lt_dlunknown;
13053
13054 if (self)
13055 {
13056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13057 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13058 /* dlclose (self); */
13059 }
13060
13061 exit (status);
13062}
13063EOF
13064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13065 (eval $ac_link) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13069 (./conftest; exit; ) 2>/dev/null
13070 lt_status=$?
13071 case x$lt_status in
13072 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13073 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13074 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13075 esac
13076 else :
13077 # compilation failed
13078 lt_cv_dlopen_self_static=no
13079 fi
13080fi
13081rm -fr conftest*
13082
13083
13084fi
13085echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13086echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13087 fi
13088
13089 CPPFLAGS="$save_CPPFLAGS"
13090 LDFLAGS="$save_LDFLAGS"
13091 LIBS="$save_LIBS"
13092 ;;
13093 esac
13094
13095 case $lt_cv_dlopen_self in
13096 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13097 *) enable_dlopen_self=unknown ;;
13098 esac
13099
13100 case $lt_cv_dlopen_self_static in
13101 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13102 *) enable_dlopen_self_static=unknown ;;
13103 esac
13104fi
13105
13106
13107# The else clause should only fire when bootstrapping the
13108# libtool distribution, otherwise you forgot to ship ltmain.sh
13109# with your package, and you will get complaints that there are
13110# no rules to generate ltmain.sh.
13111if test -f "$ltmain"; then
13112 # See if we are running on zsh, and set the options which allow our commands through
13113 # without removal of \ escapes.
13114 if test -n "${ZSH_VERSION+set}" ; then
13115 setopt NO_GLOB_SUBST
13116 fi
13117 # Now quote all the things that may contain metacharacters while being
13118 # careful not to overquote the AC_SUBSTed values. We take copies of the
13119 # variables and quote the copies for generation of the libtool script.
13120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13121 SED SHELL STRIP \
13122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13124 deplibs_check_method reload_flag reload_cmds need_locks \
13125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13126 lt_cv_sys_global_symbol_to_c_name_address \
13127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13128 old_postinstall_cmds old_postuninstall_cmds \
13129 compiler_CXX \
13130 CC_CXX \
13131 LD_CXX \
13132 lt_prog_compiler_wl_CXX \
13133 lt_prog_compiler_pic_CXX \
13134 lt_prog_compiler_static_CXX \
13135 lt_prog_compiler_no_builtin_flag_CXX \
13136 export_dynamic_flag_spec_CXX \
13137 thread_safe_flag_spec_CXX \
13138 whole_archive_flag_spec_CXX \
13139 enable_shared_with_static_runtimes_CXX \
13140 old_archive_cmds_CXX \
13141 old_archive_from_new_cmds_CXX \
13142 predep_objects_CXX \
13143 postdep_objects_CXX \
13144 predeps_CXX \
13145 postdeps_CXX \
13146 compiler_lib_search_path_CXX \
13147 archive_cmds_CXX \
13148 archive_expsym_cmds_CXX \
13149 postinstall_cmds_CXX \
13150 postuninstall_cmds_CXX \
13151 old_archive_from_expsyms_cmds_CXX \
13152 allow_undefined_flag_CXX \
13153 no_undefined_flag_CXX \
13154 export_symbols_cmds_CXX \
13155 hardcode_libdir_flag_spec_CXX \
13156 hardcode_libdir_flag_spec_ld_CXX \
13157 hardcode_libdir_separator_CXX \
13158 hardcode_automatic_CXX \
13159 module_cmds_CXX \
13160 module_expsym_cmds_CXX \
13161 lt_cv_prog_compiler_c_o_CXX \
13162 exclude_expsyms_CXX \
13163 include_expsyms_CXX; do
13164
13165 case $var in
13166 old_archive_cmds_CXX | \
13167 old_archive_from_new_cmds_CXX | \
13168 archive_cmds_CXX | \
13169 archive_expsym_cmds_CXX | \
13170 module_cmds_CXX | \
13171 module_expsym_cmds_CXX | \
13172 old_archive_from_expsyms_cmds_CXX | \
13173 export_symbols_cmds_CXX | \
13174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13175 postinstall_cmds | postuninstall_cmds | \
13176 old_postinstall_cmds | old_postuninstall_cmds | \
13177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13178 # Double-quote double-evaled strings.
13179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13180 ;;
13181 *)
13182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13183 ;;
13184 esac
13185 done
13186
13187 case $lt_echo in
13188 *'\$0 --fallback-echo"')
13189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13190 ;;
13191 esac
13192
13193cfgfile="$ofile"
13194
13195 cat <<__EOF__ >> "$cfgfile"
13196# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13197
13198# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13199
13200# Shell to use when invoking shell scripts.
13201SHELL=$lt_SHELL
13202
13203# Whether or not to build shared libraries.
13204build_libtool_libs=$enable_shared
13205
13206# Whether or not to build static libraries.
13207build_old_libs=$enable_static
13208
13209# Whether or not to add -lc for building shared libraries.
13210build_libtool_need_lc=$archive_cmds_need_lc_CXX
13211
13212# Whether or not to disallow shared libs when runtime libs are static
13213allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13214
13215# Whether or not to optimize for fast installation.
13216fast_install=$enable_fast_install
13217
13218# The host system.
13219host_alias=$host_alias
13220host=$host
13221
13222# An echo program that does not interpret backslashes.
13223echo=$lt_echo
13224
13225# The archiver.
13226AR=$lt_AR
13227AR_FLAGS=$lt_AR_FLAGS
13228
13229# A C compiler.
13230LTCC=$lt_LTCC
13231
13232# A language-specific compiler.
13233CC=$lt_compiler_CXX
13234
13235# Is the compiler the GNU C compiler?
13236with_gcc=$GCC_CXX
13237
13238# An ERE matcher.
13239EGREP=$lt_EGREP
13240
13241# The linker used to build libraries.
13242LD=$lt_LD_CXX
13243
13244# Whether we need hard or soft links.
13245LN_S=$lt_LN_S
13246
13247# A BSD-compatible nm program.
13248NM=$lt_NM
13249
13250# A symbol stripping program
13251STRIP=$lt_STRIP
13252
13253# Used to examine libraries when file_magic_cmd begins "file"
13254MAGIC_CMD=$MAGIC_CMD
13255
13256# Used on cygwin: DLL creation program.
13257DLLTOOL="$DLLTOOL"
13258
13259# Used on cygwin: object dumper.
13260OBJDUMP="$OBJDUMP"
13261
13262# Used on cygwin: assembler.
13263AS="$AS"
13264
13265# The name of the directory that contains temporary libtool files.
13266objdir=$objdir
13267
13268# How to create reloadable object files.
13269reload_flag=$lt_reload_flag
13270reload_cmds=$lt_reload_cmds
13271
13272# How to pass a linker flag through the compiler.
13273wl=$lt_lt_prog_compiler_wl_CXX
13274
13275# Object file suffix (normally "o").
13276objext="$ac_objext"
13277
13278# Old archive suffix (normally "a").
13279libext="$libext"
13280
13281# Shared library suffix (normally ".so").
13282shrext_cmds='$shrext_cmds'
13283
13284# Executable file suffix (normally "").
13285exeext="$exeext"
13286
13287# Additional compiler flags for building library objects.
13288pic_flag=$lt_lt_prog_compiler_pic_CXX
13289pic_mode=$pic_mode
13290
13291# What is the maximum length of a command?
13292max_cmd_len=$lt_cv_sys_max_cmd_len
13293
13294# Does compiler simultaneously support -c and -o options?
13295compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13296
13297# Must we lock files when doing compilation ?
13298need_locks=$lt_need_locks
13299
13300# Do we need the lib prefix for modules?
13301need_lib_prefix=$need_lib_prefix
13302
13303# Do we need a version for libraries?
13304need_version=$need_version
13305
13306# Whether dlopen is supported.
13307dlopen_support=$enable_dlopen
13308
13309# Whether dlopen of programs is supported.
13310dlopen_self=$enable_dlopen_self
13311
13312# Whether dlopen of statically linked programs is supported.
13313dlopen_self_static=$enable_dlopen_self_static
13314
13315# Compiler flag to prevent dynamic linking.
13316link_static_flag=$lt_lt_prog_compiler_static_CXX
13317
13318# Compiler flag to turn off builtin functions.
13319no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13320
13321# Compiler flag to allow reflexive dlopens.
13322export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13323
13324# Compiler flag to generate shared objects directly from archives.
13325whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13326
13327# Compiler flag to generate thread-safe objects.
13328thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13329
13330# Library versioning type.
13331version_type=$version_type
13332
13333# Format of library name prefix.
13334libname_spec=$lt_libname_spec
13335
13336# List of archive names. First name is the real one, the rest are links.
13337# The last name is the one that the linker finds with -lNAME.
13338library_names_spec=$lt_library_names_spec
13339
13340# The coded name of the library, if different from the real name.
13341soname_spec=$lt_soname_spec
13342
13343# Commands used to build and install an old-style archive.
13344RANLIB=$lt_RANLIB
13345old_archive_cmds=$lt_old_archive_cmds_CXX
13346old_postinstall_cmds=$lt_old_postinstall_cmds
13347old_postuninstall_cmds=$lt_old_postuninstall_cmds
13348
13349# Create an old-style archive from a shared archive.
13350old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13351
13352# Create a temporary old-style archive to link instead of a shared archive.
13353old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13354
13355# Commands used to build and install a shared archive.
13356archive_cmds=$lt_archive_cmds_CXX
13357archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13358postinstall_cmds=$lt_postinstall_cmds
13359postuninstall_cmds=$lt_postuninstall_cmds
13360
13361# Commands used to build a loadable module (assumed same as above if empty)
13362module_cmds=$lt_module_cmds_CXX
13363module_expsym_cmds=$lt_module_expsym_cmds_CXX
13364
13365# Commands to strip libraries.
13366old_striplib=$lt_old_striplib
13367striplib=$lt_striplib
13368
13369# Dependencies to place before the objects being linked to create a
13370# shared library.
13371predep_objects=$lt_predep_objects_CXX
13372
13373# Dependencies to place after the objects being linked to create a
13374# shared library.
13375postdep_objects=$lt_postdep_objects_CXX
13376
13377# Dependencies to place before the objects being linked to create a
13378# shared library.
13379predeps=$lt_predeps_CXX
13380
13381# Dependencies to place after the objects being linked to create a
13382# shared library.
13383postdeps=$lt_postdeps_CXX
13384
13385# The library search path used internally by the compiler when linking
13386# a shared library.
13387compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13388
13389# Method to check whether dependent libraries are shared objects.
13390deplibs_check_method=$lt_deplibs_check_method
13391
13392# Command to use when deplibs_check_method == file_magic.
13393file_magic_cmd=$lt_file_magic_cmd
13394
13395# Flag that allows shared libraries with undefined symbols to be built.
13396allow_undefined_flag=$lt_allow_undefined_flag_CXX
13397
13398# Flag that forces no undefined symbols.
13399no_undefined_flag=$lt_no_undefined_flag_CXX
13400
13401# Commands used to finish a libtool library installation in a directory.
13402finish_cmds=$lt_finish_cmds
13403
13404# Same as above, but a single script fragment to be evaled but not shown.
13405finish_eval=$lt_finish_eval
13406
13407# Take the output of nm and produce a listing of raw symbols and C names.
13408global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13409
13410# Transform the output of nm in a proper C declaration
13411global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13412
13413# Transform the output of nm in a C name address pair
13414global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13415
13416# This is the shared library runtime path variable.
13417runpath_var=$runpath_var
13418
13419# This is the shared library path variable.
13420shlibpath_var=$shlibpath_var
13421
13422# Is shlibpath searched before the hard-coded library search path?
13423shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13424
13425# How to hardcode a shared library path into an executable.
13426hardcode_action=$hardcode_action_CXX
13427
13428# Whether we should hardcode library paths into libraries.
13429hardcode_into_libs=$hardcode_into_libs
13430
13431# Flag to hardcode \$libdir into a binary during linking.
13432# This must work even if \$libdir does not exist.
13433hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13434
13435# If ld is used when linking, flag to hardcode \$libdir into
13436# a binary during linking. This must work even if \$libdir does
13437# not exist.
13438hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13439
13440# Whether we need a single -rpath flag with a separated argument.
13441hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13442
13443# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13444# resulting binary.
13445hardcode_direct=$hardcode_direct_CXX
13446
13447# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13448# resulting binary.
13449hardcode_minus_L=$hardcode_minus_L_CXX
13450
13451# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13452# the resulting binary.
13453hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13454
13455# Set to yes if building a shared library automatically hardcodes DIR into the library
13456# and all subsequent libraries and executables linked against it.
13457hardcode_automatic=$hardcode_automatic_CXX
13458
13459# Variables whose values should be saved in libtool wrapper scripts and
13460# restored at relink time.
13461variables_saved_for_relink="$variables_saved_for_relink"
13462
13463# Whether libtool must link a program against all its dependency libraries.
13464link_all_deplibs=$link_all_deplibs_CXX
13465
13466# Compile-time system search path for libraries
13467sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13468
13469# Run-time system search path for libraries
13470sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13471
13472# Fix the shell variable \$srcfile for the compiler.
13473fix_srcfile_path="$fix_srcfile_path_CXX"
13474
13475# Set to yes if exported symbols are required.
13476always_export_symbols=$always_export_symbols_CXX
13477
13478# The commands to list exported symbols.
13479export_symbols_cmds=$lt_export_symbols_cmds_CXX
13480
13481# The commands to extract the exported symbol list from a shared archive.
13482extract_expsyms_cmds=$lt_extract_expsyms_cmds
13483
13484# Symbols that should not be listed in the preloaded symbols.
13485exclude_expsyms=$lt_exclude_expsyms_CXX
13486
13487# Symbols that must always be exported.
13488include_expsyms=$lt_include_expsyms_CXX
13489
13490# ### END LIBTOOL TAG CONFIG: $tagname
13491
13492__EOF__
13493
13494
13495else
13496 # If there is no Makefile yet, we rely on a make rule to execute
13497 # `config.status --recheck' to rerun these tests and create the
13498 # libtool script then.
13499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13500 if test -f "$ltmain_in"; then
13501 test -f Makefile && make "$ltmain"
13502 fi
13503fi
13504
13505
13506ac_ext=c
13507ac_cpp='$CPP $CPPFLAGS'
13508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13510ac_compiler_gnu=$ac_cv_c_compiler_gnu
13511
13512CC=$lt_save_CC
13513LDCXX=$LD
13514LD=$lt_save_LD
13515GCC=$lt_save_GCC
13516with_gnu_ldcxx=$with_gnu_ld
13517with_gnu_ld=$lt_save_with_gnu_ld
13518lt_cv_path_LDCXX=$lt_cv_path_LD
13519lt_cv_path_LD=$lt_save_path_LD
13520lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13521lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13522
13523 else
13524 tagname=""
13525 fi
13526 ;;
13527
13528 F77)
13529 if test -n "$F77" && test "X$F77" != "Xno"; then
13530
13531ac_ext=f
13532ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13533ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13534ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13535
13536
13537archive_cmds_need_lc_F77=no
13538allow_undefined_flag_F77=
13539always_export_symbols_F77=no
13540archive_expsym_cmds_F77=
13541export_dynamic_flag_spec_F77=
13542hardcode_direct_F77=no
13543hardcode_libdir_flag_spec_F77=
13544hardcode_libdir_flag_spec_ld_F77=
13545hardcode_libdir_separator_F77=
13546hardcode_minus_L_F77=no
13547hardcode_automatic_F77=no
13548module_cmds_F77=
13549module_expsym_cmds_F77=
13550link_all_deplibs_F77=unknown
13551old_archive_cmds_F77=$old_archive_cmds
13552no_undefined_flag_F77=
13553whole_archive_flag_spec_F77=
13554enable_shared_with_static_runtimes_F77=no
13555
13556# Source file extension for f77 test sources.
13557ac_ext=f
13558
13559# Object file extension for compiled f77 test sources.
13560objext=o
13561objext_F77=$objext
13562
13563# Code to be used in simple compile tests
13564lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13565
13566# Code to be used in simple link tests
13567lt_simple_link_test_code=" program t\n end\n"
13568
13569# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13570
13571# If no C compiler was specified, use CC.
13572LTCC=${LTCC-"$CC"}
13573
13574# Allow CC to be a program name with arguments.
13575compiler=$CC
13576
13577
13578# Allow CC to be a program name with arguments.
13579lt_save_CC="$CC"
13580CC=${F77-"f77"}
13581compiler=$CC
13582compiler_F77=$CC
13583cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13584
13585echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13586echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13587echo "$as_me:$LINENO: result: $can_build_shared" >&5
13588echo "${ECHO_T}$can_build_shared" >&6
13589
13590echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13591echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13592test "$can_build_shared" = "no" && enable_shared=no
13593
13594# On AIX, shared libraries and static libraries use the same namespace, and
13595# are all built from PIC.
13596case "$host_os" in
13597aix3*)
13598 test "$enable_shared" = yes && enable_static=no
13599 if test -n "$RANLIB"; then
13600 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13601 postinstall_cmds='$RANLIB $lib'
13602 fi
13603 ;;
13604aix4* | aix5*)
13605 test "$enable_shared" = yes && enable_static=no
13606 ;;
13607esac
13608echo "$as_me:$LINENO: result: $enable_shared" >&5
13609echo "${ECHO_T}$enable_shared" >&6
13610
13611echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13612echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13613# Make sure either enable_shared or enable_static is yes.
13614test "$enable_shared" = yes || enable_static=yes
13615echo "$as_me:$LINENO: result: $enable_static" >&5
13616echo "${ECHO_T}$enable_static" >&6
13617
13618test "$ld_shlibs_F77" = no && can_build_shared=no
13619
13620GCC_F77="$G77"
13621LD_F77="$LD"
13622
13623lt_prog_compiler_wl_F77=
13624lt_prog_compiler_pic_F77=
13625lt_prog_compiler_static_F77=
13626
13627echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13628echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13629
13630 if test "$GCC" = yes; then
13631 lt_prog_compiler_wl_F77='-Wl,'
13632 lt_prog_compiler_static_F77='-static'
13633
13634 case $host_os in
13635 aix*)
13636 # All AIX code is PIC.
13637 if test "$host_cpu" = ia64; then
13638 # AIX 5 now supports IA64 processor
13639 lt_prog_compiler_static_F77='-Bstatic'
13640 fi
13641 ;;
13642
13643 amigaos*)
13644 # FIXME: we need at least 68020 code to build shared libraries, but
13645 # adding the `-m68020' flag to GCC prevents building anything better,
13646 # like `-m68040'.
13647 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13648 ;;
13649
13650 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13651 # PIC is the default for these OSes.
13652 ;;
13653
13654 mingw* | pw32* | os2*)
13655 # This hack is so that the source file can tell whether it is being
13656 # built for inclusion in a dll (and should export symbols for example).
13657 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13658 ;;
13659
13660 darwin* | rhapsody*)
13661 # PIC is the default on this platform
13662 # Common symbols not allowed in MH_DYLIB files
13663 lt_prog_compiler_pic_F77='-fno-common'
13664 ;;
13665
13666 msdosdjgpp*)
13667 # Just because we use GCC doesn't mean we suddenly get shared libraries
13668 # on systems that don't support them.
13669 lt_prog_compiler_can_build_shared_F77=no
13670 enable_shared=no
13671 ;;
13672
13673 sysv4*MP*)
13674 if test -d /usr/nec; then
13675 lt_prog_compiler_pic_F77=-Kconform_pic
13676 fi
13677 ;;
13678
13679 hpux*)
13680 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13681 # not for PA HP-UX.
13682 case "$host_cpu" in
13683 hppa*64*|ia64*)
13684 # +Z the default
13685 ;;
13686 *)
13687 lt_prog_compiler_pic_F77='-fPIC'
13688 ;;
13689 esac
13690 ;;
13691
13692 *)
13693 lt_prog_compiler_pic_F77='-fPIC'
13694 ;;
13695 esac
13696 else
13697 # PORTME Check for flag to pass linker flags through the system compiler.
13698 case $host_os in
13699 aix*)
13700 lt_prog_compiler_wl_F77='-Wl,'
13701 if test "$host_cpu" = ia64; then
13702 # AIX 5 now supports IA64 processor
13703 lt_prog_compiler_static_F77='-Bstatic'
13704 else
13705 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13706 fi
13707 ;;
13708
13709 mingw* | pw32* | os2*)
13710 # This hack is so that the source file can tell whether it is being
13711 # built for inclusion in a dll (and should export symbols for example).
13712 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13713 ;;
13714
13715 hpux9* | hpux10* | hpux11*)
13716 lt_prog_compiler_wl_F77='-Wl,'
13717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13718 # not for PA HP-UX.
13719 case "$host_cpu" in
13720 hppa*64*|ia64*)
13721 # +Z the default
13722 ;;
13723 *)
13724 lt_prog_compiler_pic_F77='+Z'
13725 ;;
13726 esac
13727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13728 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13729 ;;
13730
13731 irix5* | irix6* | nonstopux*)
13732 lt_prog_compiler_wl_F77='-Wl,'
13733 # PIC (with -KPIC) is the default.
13734 lt_prog_compiler_static_F77='-non_shared'
13735 ;;
13736
13737 newsos6)
13738 lt_prog_compiler_pic_F77='-KPIC'
13739 lt_prog_compiler_static_F77='-Bstatic'
13740 ;;
13741
13742 linux*)
13743 case $CC in
13744 icc* | ecc*)
13745 lt_prog_compiler_wl_F77='-Wl,'
13746 lt_prog_compiler_pic_F77='-KPIC'
13747 lt_prog_compiler_static_F77='-static'
13748 ;;
13749 ccc*)
13750 lt_prog_compiler_wl_F77='-Wl,'
13751 # All Alpha code is PIC.
13752 lt_prog_compiler_static_F77='-non_shared'
13753 ;;
13754 esac
13755 ;;
13756
13757 osf3* | osf4* | osf5*)
13758 lt_prog_compiler_wl_F77='-Wl,'
13759 # All OSF/1 code is PIC.
13760 lt_prog_compiler_static_F77='-non_shared'
13761 ;;
13762
13763 sco3.2v5*)
13764 lt_prog_compiler_pic_F77='-Kpic'
13765 lt_prog_compiler_static_F77='-dn'
13766 ;;
13767
13768 solaris*)
13769 lt_prog_compiler_wl_F77='-Wl,'
13770 lt_prog_compiler_pic_F77='-KPIC'
13771 lt_prog_compiler_static_F77='-Bstatic'
13772 ;;
13773
13774 sunos4*)
13775 lt_prog_compiler_wl_F77='-Qoption ld '
13776 lt_prog_compiler_pic_F77='-PIC'
13777 lt_prog_compiler_static_F77='-Bstatic'
13778 ;;
13779
13780 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13781 lt_prog_compiler_wl_F77='-Wl,'
13782 lt_prog_compiler_pic_F77='-KPIC'
13783 lt_prog_compiler_static_F77='-Bstatic'
13784 ;;
13785
13786 sysv4*MP*)
13787 if test -d /usr/nec ;then
13788 lt_prog_compiler_pic_F77='-Kconform_pic'
13789 lt_prog_compiler_static_F77='-Bstatic'
13790 fi
13791 ;;
13792
13793 uts4*)
13794 lt_prog_compiler_pic_F77='-pic'
13795 lt_prog_compiler_static_F77='-Bstatic'
13796 ;;
13797
13798 *)
13799 lt_prog_compiler_can_build_shared_F77=no
13800 ;;
13801 esac
13802 fi
13803
13804echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13805echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13806
13807#
13808# Check to make sure the PIC flag actually works.
13809#
13810if test -n "$lt_prog_compiler_pic_F77"; then
13811
13812echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13813echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13814if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816else
13817 lt_prog_compiler_pic_works_F77=no
13818 ac_outfile=conftest.$ac_objext
13819 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13820 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13821 # Insert the option either (1) after the last *FLAGS variable, or
13822 # (2) before a word containing "conftest.", or (3) at the end.
13823 # Note that $ac_compile itself does not contain backslashes and begins
13824 # with a dollar sign (not a hyphen), so the echo should work correctly.
13825 # The option is referenced via a variable to avoid confusing sed.
13826 lt_compile=`echo "$ac_compile" | $SED \
13827 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13829 -e 's:$: $lt_compiler_flag:'`
13830 (eval echo "\"\$as_me:13830: $lt_compile\"" >&5)
13831 (eval "$lt_compile" 2>conftest.err)
13832 ac_status=$?
13833 cat conftest.err >&5
13834 echo "$as_me:13834: \$? = $ac_status" >&5
13835 if (exit $ac_status) && test -s "$ac_outfile"; then
13836 # The compiler can only warn and ignore the option if not recognized
13837 # So say no if there are warnings
13838 if test ! -s conftest.err; then
13839 lt_prog_compiler_pic_works_F77=yes
13840 fi
13841 fi
13842 $rm conftest*
13843
13844fi
13845echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13846echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13847
13848if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13849 case $lt_prog_compiler_pic_F77 in
13850 "" | " "*) ;;
13851 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13852 esac
13853else
13854 lt_prog_compiler_pic_F77=
13855 lt_prog_compiler_can_build_shared_F77=no
13856fi
13857
13858fi
13859case "$host_os" in
13860 # For platforms which do not support PIC, -DPIC is meaningless:
13861 *djgpp*)
13862 lt_prog_compiler_pic_F77=
13863 ;;
13864 *)
13865 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13866 ;;
13867esac
13868
13869echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13870echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13871if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873else
13874 lt_cv_prog_compiler_c_o_F77=no
13875 $rm -r conftest 2>/dev/null
13876 mkdir conftest
13877 cd conftest
13878 mkdir out
13879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13880
13881 lt_compiler_flag="-o out/conftest2.$ac_objext"
13882 # Insert the option either (1) after the last *FLAGS variable, or
13883 # (2) before a word containing "conftest.", or (3) at the end.
13884 # Note that $ac_compile itself does not contain backslashes and begins
13885 # with a dollar sign (not a hyphen), so the echo should work correctly.
13886 lt_compile=`echo "$ac_compile" | $SED \
13887 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13889 -e 's:$: $lt_compiler_flag:'`
13890 (eval echo "\"\$as_me:13890: $lt_compile\"" >&5)
13891 (eval "$lt_compile" 2>out/conftest.err)
13892 ac_status=$?
13893 cat out/conftest.err >&5
13894 echo "$as_me:13894: \$? = $ac_status" >&5
13895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13896 then
13897 # The compiler can only warn and ignore the option if not recognized
13898 # So say no if there are warnings
13899 if test ! -s out/conftest.err; then
13900 lt_cv_prog_compiler_c_o_F77=yes
13901 fi
13902 fi
13903 chmod u+w .
13904 $rm conftest*
13905 # SGI C++ compiler will create directory out/ii_files/ for
13906 # template instantiation
13907 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13908 $rm out/* && rmdir out
13909 cd ..
13910 rmdir conftest
13911 $rm conftest*
13912
13913fi
13914echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13915echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13916
13917
13918hard_links="nottested"
13919if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13920 # do not overwrite the value of need_locks provided by the user
13921 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13922echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13923 hard_links=yes
13924 $rm conftest*
13925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13926 touch conftest.a
13927 ln conftest.a conftest.b 2>&5 || hard_links=no
13928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13929 echo "$as_me:$LINENO: result: $hard_links" >&5
13930echo "${ECHO_T}$hard_links" >&6
13931 if test "$hard_links" = no; then
13932 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13933echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13934 need_locks=warn
13935 fi
13936else
13937 need_locks=no
13938fi
13939
13940echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13941echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13942
13943 runpath_var=
13944 allow_undefined_flag_F77=
13945 enable_shared_with_static_runtimes_F77=no
13946 archive_cmds_F77=
13947 archive_expsym_cmds_F77=
13948 old_archive_From_new_cmds_F77=
13949 old_archive_from_expsyms_cmds_F77=
13950 export_dynamic_flag_spec_F77=
13951 whole_archive_flag_spec_F77=
13952 thread_safe_flag_spec_F77=
13953 hardcode_libdir_flag_spec_F77=
13954 hardcode_libdir_flag_spec_ld_F77=
13955 hardcode_libdir_separator_F77=
13956 hardcode_direct_F77=no
13957 hardcode_minus_L_F77=no
13958 hardcode_shlibpath_var_F77=unsupported
13959 link_all_deplibs_F77=unknown
13960 hardcode_automatic_F77=no
13961 module_cmds_F77=
13962 module_expsym_cmds_F77=
13963 always_export_symbols_F77=no
13964 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13965 # include_expsyms should be a list of space-separated symbols to be *always*
13966 # included in the symbol list
13967 include_expsyms_F77=
13968 # exclude_expsyms can be an extended regexp of symbols to exclude
13969 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13970 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13971 # as well as any symbol that contains `d'.
13972 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13973 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13974 # platforms (ab)use it in PIC code, but their linkers get confused if
13975 # the symbol is explicitly referenced. Since portable code cannot
13976 # rely on this symbol name, it's probably fine to never include it in
13977 # preloaded symbol tables.
13978 extract_expsyms_cmds=
13979
13980 case $host_os in
13981 cygwin* | mingw* | pw32*)
13982 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13983 # When not using gcc, we currently assume that we are using
13984 # Microsoft Visual C++.
13985 if test "$GCC" != yes; then
13986 with_gnu_ld=no
13987 fi
13988 ;;
13989 openbsd*)
13990 with_gnu_ld=no
13991 ;;
13992 esac
13993
13994 ld_shlibs_F77=yes
13995 if test "$with_gnu_ld" = yes; then
13996 # If archive_cmds runs LD, not CC, wlarc should be empty
13997 wlarc='${wl}'
13998
13999 # See if GNU ld supports shared libraries.
14000 case $host_os in
14001 aix3* | aix4* | aix5*)
14002 # On AIX/PPC, the GNU linker is very broken
14003 if test "$host_cpu" != ia64; then
14004 ld_shlibs_F77=no
14005 cat <<EOF 1>&2
14006
14007*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14008*** to be unable to reliably create shared libraries on AIX.
14009*** Therefore, libtool is disabling shared libraries support. If you
14010*** really care for shared libraries, you may want to modify your PATH
14011*** so that a non-GNU linker is found, and then restart.
14012
14013EOF
14014 fi
14015 ;;
14016
14017 amigaos*)
14018 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)'
14019 hardcode_libdir_flag_spec_F77='-L$libdir'
14020 hardcode_minus_L_F77=yes
14021
14022 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14023 # that the semantics of dynamic libraries on AmigaOS, at least up
14024 # to version 4, is to share data among multiple programs linked
14025 # with the same dynamic library. Since this doesn't match the
14026 # behavior of shared libraries on other platforms, we can't use
14027 # them.
14028 ld_shlibs_F77=no
14029 ;;
14030
14031 beos*)
14032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14033 allow_undefined_flag_F77=unsupported
14034 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14035 # support --undefined. This deserves some investigation. FIXME
14036 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14037 else
14038 ld_shlibs_F77=no
14039 fi
14040 ;;
14041
14042 cygwin* | mingw* | pw32*)
14043 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14044 # as there is no search path for DLLs.
14045 hardcode_libdir_flag_spec_F77='-L$libdir'
14046 allow_undefined_flag_F77=unsupported
14047 always_export_symbols_F77=no
14048 enable_shared_with_static_runtimes_F77=yes
14049 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14050
14051 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14052 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14053 # If the export-symbols file already is a .def file (1st line
14054 # is EXPORTS), use it as is; otherwise, prepend...
14055 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14056 cp $export_symbols $output_objdir/$soname.def;
14057 else
14058 echo EXPORTS > $output_objdir/$soname.def;
14059 cat $export_symbols >> $output_objdir/$soname.def;
14060 fi~
14061 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14062 else
14063 ld_shlibs=no
14064 fi
14065 ;;
14066
14067 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14069 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14070 wlarc=
14071 else
14072 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14073 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14074 fi
14075 ;;
14076
14077 solaris* | sysv5*)
14078 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14079 ld_shlibs_F77=no
14080 cat <<EOF 1>&2
14081
14082*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14083*** create shared libraries on Solaris systems. Therefore, libtool
14084*** is disabling shared libraries support. We urge you to upgrade GNU
14085*** binutils to release 2.9.1 or newer. Another option is to modify
14086*** your PATH or compiler configuration so that the native linker is
14087*** used, and then restart.
14088
14089EOF
14090 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14091 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14092 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14093 else
14094 ld_shlibs_F77=no
14095 fi
14096 ;;
14097
14098 sunos4*)
14099 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14100 wlarc=
14101 hardcode_direct_F77=yes
14102 hardcode_shlibpath_var_F77=no
14103 ;;
14104
14105 linux*)
14106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14107 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14108 archive_cmds_F77="$tmp_archive_cmds"
14109 supports_anon_versioning=no
14110 case `$LD -v 2>/dev/null` in
14111 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14112 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14113 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14114 *\ 2.11.*) ;; # other 2.11 versions
14115 *) supports_anon_versioning=yes ;;
14116 esac
14117 if test $supports_anon_versioning = yes; then
14118 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14119cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14120$echo "local: *; };" >> $output_objdir/$libname.ver~
14121 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14122 else
14123 archive_expsym_cmds_F77="$tmp_archive_cmds"
14124 fi
14125 link_all_deplibs_F77=no
14126 else
14127 ld_shlibs_F77=no
14128 fi
14129 ;;
14130
14131 *)
14132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14133 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14134 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14135 else
14136 ld_shlibs_F77=no
14137 fi
14138 ;;
14139 esac
14140
14141 if test "$ld_shlibs_F77" = yes; then
14142 runpath_var=LD_RUN_PATH
14143 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14144 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14145 # ancient GNU ld didn't support --whole-archive et. al.
14146 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14147 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14148 else
14149 whole_archive_flag_spec_F77=
14150 fi
14151 fi
14152 else
14153 # PORTME fill in a description of your system's linker (not GNU ld)
14154 case $host_os in
14155 aix3*)
14156 allow_undefined_flag_F77=unsupported
14157 always_export_symbols_F77=yes
14158 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'
14159 # Note: this linker hardcodes the directories in LIBPATH if there
14160 # are no directories specified by -L.
14161 hardcode_minus_L_F77=yes
14162 if test "$GCC" = yes && test -z "$link_static_flag"; then
14163 # Neither direct hardcoding nor static linking is supported with a
14164 # broken collect2.
14165 hardcode_direct_F77=unsupported
14166 fi
14167 ;;
14168
14169 aix4* | aix5*)
14170 if test "$host_cpu" = ia64; then
14171 # On IA64, the linker does run time linking by default, so we don't
14172 # have to do anything special.
14173 aix_use_runtimelinking=no
14174 exp_sym_flag='-Bexport'
14175 no_entry_flag=""
14176 else
14177 # If we're using GNU nm, then we don't want the "-C" option.
14178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14179 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14180 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'
14181 else
14182 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'
14183 fi
14184 aix_use_runtimelinking=no
14185
14186 # Test if we are trying to use run time linking or normal
14187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14188 # need to do runtime linking.
14189 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14190 for ld_flag in $LDFLAGS; do
14191 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14192 aix_use_runtimelinking=yes
14193 break
14194 fi
14195 done
14196 esac
14197
14198 exp_sym_flag='-bexport'
14199 no_entry_flag='-bnoentry'
14200 fi
14201
14202 # When large executables or shared objects are built, AIX ld can
14203 # have problems creating the table of contents. If linking a library
14204 # or program results in "error TOC overflow" add -mminimal-toc to
14205 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14206 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14207
14208 archive_cmds_F77=''
14209 hardcode_direct_F77=yes
14210 hardcode_libdir_separator_F77=':'
14211 link_all_deplibs_F77=yes
14212
14213 if test "$GCC" = yes; then
14214 case $host_os in aix4.012|aix4.012.*)
14215 # We only want to do this on AIX 4.2 and lower, the check
14216 # below for broken collect2 doesn't work under 4.3+
14217 collect2name=`${CC} -print-prog-name=collect2`
14218 if test -f "$collect2name" && \
14219 strings "$collect2name" | grep resolve_lib_name >/dev/null
14220 then
14221 # We have reworked collect2
14222 hardcode_direct_F77=yes
14223 else
14224 # We have old collect2
14225 hardcode_direct_F77=unsupported
14226 # It fails to find uninstalled libraries when the uninstalled
14227 # path is not listed in the libpath. Setting hardcode_minus_L
14228 # to unsupported forces relinking
14229 hardcode_minus_L_F77=yes
14230 hardcode_libdir_flag_spec_F77='-L$libdir'
14231 hardcode_libdir_separator_F77=
14232 fi
14233 esac
14234 shared_flag='-shared'
14235 else
14236 # not using gcc
14237 if test "$host_cpu" = ia64; then
14238 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14239 # chokes on -Wl,-G. The following line is correct:
14240 shared_flag='-G'
14241 else
14242 if test "$aix_use_runtimelinking" = yes; then
14243 shared_flag='${wl}-G'
14244 else
14245 shared_flag='${wl}-bM:SRE'
14246 fi
14247 fi
14248 fi
14249
14250 # It seems that -bexpall does not export symbols beginning with
14251 # underscore (_), so it is better to generate a list of symbols to export.
14252 always_export_symbols_F77=yes
14253 if test "$aix_use_runtimelinking" = yes; then
14254 # Warning - without using the other runtime loading flags (-brtl),
14255 # -berok will link without error, but may produce a broken library.
14256 allow_undefined_flag_F77='-berok'
14257 # Determine the default libpath from the value encoded in an empty executable.
14258 cat >conftest.$ac_ext <<_ACEOF
14259 program main
14260
14261 end
14262_ACEOF
14263rm -f conftest.$ac_objext conftest$ac_exeext
14264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14265 (eval $ac_link) 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; } &&
14278 { ac_try='test -s conftest$ac_exeext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284
14285aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14286}'`
14287# Check for a 64-bit object if we didn't find anything.
14288if 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; }
14289}'`; fi
14290else
14291 echo "$as_me: failed program was:" >&5
14292sed 's/^/| /' conftest.$ac_ext >&5
14293
14294fi
14295rm -f conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
14297if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14298
14299 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14300 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"
14301 else
14302 if test "$host_cpu" = ia64; then
14303 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14304 allow_undefined_flag_F77="-z nodefs"
14305 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"
14306 else
14307 # Determine the default libpath from the value encoded in an empty executable.
14308 cat >conftest.$ac_ext <<_ACEOF
14309 program main
14310
14311 end
14312_ACEOF
14313rm -f conftest.$ac_objext conftest$ac_exeext
14314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14315 (eval $ac_link) 2>conftest.er1
14316 ac_status=$?
14317 grep -v '^ *+' conftest.er1 >conftest.err
14318 rm -f conftest.er1
14319 cat conftest.err >&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } &&
14322 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest$ac_exeext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334
14335aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14336}'`
14337# Check for a 64-bit object if we didn't find anything.
14338if 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; }
14339}'`; fi
14340else
14341 echo "$as_me: failed program was:" >&5
14342sed 's/^/| /' conftest.$ac_ext >&5
14343
14344fi
14345rm -f conftest.err conftest.$ac_objext \
14346 conftest$ac_exeext conftest.$ac_ext
14347if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14348
14349 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14350 # Warning - without using the other run time loading flags,
14351 # -berok will link without error, but may produce a broken library.
14352 no_undefined_flag_F77=' ${wl}-bernotok'
14353 allow_undefined_flag_F77=' ${wl}-berok'
14354 # -bexpall does not export symbols beginning with underscore (_)
14355 always_export_symbols_F77=yes
14356 # Exported symbols can be pulled into shared objects from archives
14357 whole_archive_flag_spec_F77=' '
14358 archive_cmds_need_lc_F77=yes
14359 # This is similar to how AIX traditionally builds it's shared libraries.
14360 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'
14361 fi
14362 fi
14363 ;;
14364
14365 amigaos*)
14366 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)'
14367 hardcode_libdir_flag_spec_F77='-L$libdir'
14368 hardcode_minus_L_F77=yes
14369 # see comment about different semantics on the GNU ld section
14370 ld_shlibs_F77=no
14371 ;;
14372
14373 bsdi4*)
14374 export_dynamic_flag_spec_F77=-rdynamic
14375 ;;
14376
14377 cygwin* | mingw* | pw32*)
14378 # When not using gcc, we currently assume that we are using
14379 # Microsoft Visual C++.
14380 # hardcode_libdir_flag_spec is actually meaningless, as there is
14381 # no search path for DLLs.
14382 hardcode_libdir_flag_spec_F77=' '
14383 allow_undefined_flag_F77=unsupported
14384 # Tell ltmain to make .lib files, not .a files.
14385 libext=lib
14386 # Tell ltmain to make .dll files, not .so files.
14387 shrext_cmds=".dll"
14388 # FIXME: Setting linknames here is a bad hack.
14389 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14390 # The linker will automatically build a .lib file if we build a DLL.
14391 old_archive_From_new_cmds_F77='true'
14392 # FIXME: Should let the user specify the lib program.
14393 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14394 fix_srcfile_path='`cygpath -w "$srcfile"`'
14395 enable_shared_with_static_runtimes_F77=yes
14396 ;;
14397
14398 darwin* | rhapsody*)
14399 if test "$GXX" = yes ; then
14400 archive_cmds_need_lc_F77=no
14401 case "$host_os" in
14402 rhapsody* | darwin1.[012])
14403 allow_undefined_flag_F77='-undefined suppress'
14404 ;;
14405 *) # Darwin 1.3 on
14406 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14407 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14408 else
14409 case ${MACOSX_DEPLOYMENT_TARGET} in
14410 10.[012])
14411 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14412 ;;
14413 10.*)
14414 allow_undefined_flag_F77='-undefined dynamic_lookup'
14415 ;;
14416 esac
14417 fi
14418 ;;
14419 esac
14420 lt_int_apple_cc_single_mod=no
14421 output_verbose_link_cmd='echo'
14422 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14423 lt_int_apple_cc_single_mod=yes
14424 fi
14425 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14426 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14427 else
14428 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'
14429 fi
14430 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14431 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14432 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14433 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}'
14434 else
14435 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}'
14436 fi
14437 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}'
14438 hardcode_direct_F77=no
14439 hardcode_automatic_F77=yes
14440 hardcode_shlibpath_var_F77=unsupported
14441 whole_archive_flag_spec_F77='-all_load $convenience'
14442 link_all_deplibs_F77=yes
14443 else
14444 ld_shlibs_F77=no
14445 fi
14446 ;;
14447
14448 dgux*)
14449 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14450 hardcode_libdir_flag_spec_F77='-L$libdir'
14451 hardcode_shlibpath_var_F77=no
14452 ;;
14453
14454 freebsd1*)
14455 ld_shlibs_F77=no
14456 ;;
14457
14458 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14459 # support. Future versions do this automatically, but an explicit c++rt0.o
14460 # does not break anything, and helps significantly (at the cost of a little
14461 # extra space).
14462 freebsd2.2*)
14463 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14464 hardcode_libdir_flag_spec_F77='-R$libdir'
14465 hardcode_direct_F77=yes
14466 hardcode_shlibpath_var_F77=no
14467 ;;
14468
14469 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14470 freebsd2*)
14471 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14472 hardcode_direct_F77=yes
14473 hardcode_minus_L_F77=yes
14474 hardcode_shlibpath_var_F77=no
14475 ;;
14476
14477 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14478 freebsd* | kfreebsd*-gnu)
14479 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14480 hardcode_libdir_flag_spec_F77='-R$libdir'
14481 hardcode_direct_F77=yes
14482 hardcode_shlibpath_var_F77=no
14483 ;;
14484
14485 hpux9*)
14486 if test "$GCC" = yes; then
14487 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'
14488 else
14489 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'
14490 fi
14491 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14492 hardcode_libdir_separator_F77=:
14493 hardcode_direct_F77=yes
14494
14495 # hardcode_minus_L: Not really in the search PATH,
14496 # but as the default location of the library.
14497 hardcode_minus_L_F77=yes
14498 export_dynamic_flag_spec_F77='${wl}-E'
14499 ;;
14500
14501 hpux10* | hpux11*)
14502 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14503 case "$host_cpu" in
14504 hppa*64*|ia64*)
14505 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14506 ;;
14507 *)
14508 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14509 ;;
14510 esac
14511 else
14512 case "$host_cpu" in
14513 hppa*64*|ia64*)
14514 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14515 ;;
14516 *)
14517 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14518 ;;
14519 esac
14520 fi
14521 if test "$with_gnu_ld" = no; then
14522 case "$host_cpu" in
14523 hppa*64*)
14524 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14525 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14526 hardcode_libdir_separator_F77=:
14527 hardcode_direct_F77=no
14528 hardcode_shlibpath_var_F77=no
14529 ;;
14530 ia64*)
14531 hardcode_libdir_flag_spec_F77='-L$libdir'
14532 hardcode_direct_F77=no
14533 hardcode_shlibpath_var_F77=no
14534
14535 # hardcode_minus_L: Not really in the search PATH,
14536 # but as the default location of the library.
14537 hardcode_minus_L_F77=yes
14538 ;;
14539 *)
14540 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14541 hardcode_libdir_separator_F77=:
14542 hardcode_direct_F77=yes
14543 export_dynamic_flag_spec_F77='${wl}-E'
14544
14545 # hardcode_minus_L: Not really in the search PATH,
14546 # but as the default location of the library.
14547 hardcode_minus_L_F77=yes
14548 ;;
14549 esac
14550 fi
14551 ;;
14552
14553 irix5* | irix6* | nonstopux*)
14554 if test "$GCC" = yes; then
14555 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'
14556 else
14557 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'
14558 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14559 fi
14560 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14561 hardcode_libdir_separator_F77=:
14562 link_all_deplibs_F77=yes
14563 ;;
14564
14565 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14567 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14568 else
14569 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14570 fi
14571 hardcode_libdir_flag_spec_F77='-R$libdir'
14572 hardcode_direct_F77=yes
14573 hardcode_shlibpath_var_F77=no
14574 ;;
14575
14576 newsos6)
14577 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14578 hardcode_direct_F77=yes
14579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14580 hardcode_libdir_separator_F77=:
14581 hardcode_shlibpath_var_F77=no
14582 ;;
14583
14584 openbsd*)
14585 hardcode_direct_F77=yes
14586 hardcode_shlibpath_var_F77=no
14587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14588 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14589 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14590 export_dynamic_flag_spec_F77='${wl}-E'
14591 else
14592 case $host_os in
14593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14595 hardcode_libdir_flag_spec_F77='-R$libdir'
14596 ;;
14597 *)
14598 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14600 ;;
14601 esac
14602 fi
14603 ;;
14604
14605 os2*)
14606 hardcode_libdir_flag_spec_F77='-L$libdir'
14607 hardcode_minus_L_F77=yes
14608 allow_undefined_flag_F77=unsupported
14609 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'
14610 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14611 ;;
14612
14613 osf3*)
14614 if test "$GCC" = yes; then
14615 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14616 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'
14617 else
14618 allow_undefined_flag_F77=' -expect_unresolved \*'
14619 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'
14620 fi
14621 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14622 hardcode_libdir_separator_F77=:
14623 ;;
14624
14625 osf4* | osf5*) # as osf3* with the addition of -msym flag
14626 if test "$GCC" = yes; then
14627 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14628 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'
14629 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14630 else
14631 allow_undefined_flag_F77=' -expect_unresolved \*'
14632 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'
14633 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~
14634 $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'
14635
14636 # Both c and cxx compiler support -rpath directly
14637 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14638 fi
14639 hardcode_libdir_separator_F77=:
14640 ;;
14641
14642 sco3.2v5*)
14643 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14644 hardcode_shlibpath_var_F77=no
14645 export_dynamic_flag_spec_F77='${wl}-Bexport'
14646 runpath_var=LD_RUN_PATH
14647 hardcode_runpath_var=yes
14648 ;;
14649
14650 solaris*)
14651 no_undefined_flag_F77=' -z text'
14652 if test "$GCC" = yes; then
14653 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14654 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14655 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14656 else
14657 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14658 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14659 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14660 fi
14661 hardcode_libdir_flag_spec_F77='-R$libdir'
14662 hardcode_shlibpath_var_F77=no
14663 case $host_os in
14664 solaris2.[0-5] | solaris2.[0-5].*) ;;
14665 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14666 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14667 esac
14668 link_all_deplibs_F77=yes
14669 ;;
14670
14671 sunos4*)
14672 if test "x$host_vendor" = xsequent; then
14673 # Use $CC to link under sequent, because it throws in some extra .o
14674 # files that make .init and .fini sections work.
14675 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14676 else
14677 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14678 fi
14679 hardcode_libdir_flag_spec_F77='-L$libdir'
14680 hardcode_direct_F77=yes
14681 hardcode_minus_L_F77=yes
14682 hardcode_shlibpath_var_F77=no
14683 ;;
14684
14685 sysv4)
14686 case $host_vendor in
14687 sni)
14688 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14689 hardcode_direct_F77=yes # is this really true???
14690 ;;
14691 siemens)
14692 ## LD is ld it makes a PLAMLIB
14693 ## CC just makes a GrossModule.
14694 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14695 reload_cmds_F77='$CC -r -o $output$reload_objs'
14696 hardcode_direct_F77=no
14697 ;;
14698 motorola)
14699 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14700 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14701 ;;
14702 esac
14703 runpath_var='LD_RUN_PATH'
14704 hardcode_shlibpath_var_F77=no
14705 ;;
14706
14707 sysv4.3*)
14708 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14709 hardcode_shlibpath_var_F77=no
14710 export_dynamic_flag_spec_F77='-Bexport'
14711 ;;
14712
14713 sysv4*MP*)
14714 if test -d /usr/nec; then
14715 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14716 hardcode_shlibpath_var_F77=no
14717 runpath_var=LD_RUN_PATH
14718 hardcode_runpath_var=yes
14719 ld_shlibs_F77=yes
14720 fi
14721 ;;
14722
14723 sysv4.2uw2*)
14724 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14725 hardcode_direct_F77=yes
14726 hardcode_minus_L_F77=no
14727 hardcode_shlibpath_var_F77=no
14728 hardcode_runpath_var=yes
14729 runpath_var=LD_RUN_PATH
14730 ;;
14731
14732 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14733 no_undefined_flag_F77='${wl}-z ${wl}text'
14734 if test "$GCC" = yes; then
14735 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14736 else
14737 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14738 fi
14739 runpath_var='LD_RUN_PATH'
14740 hardcode_shlibpath_var_F77=no
14741 ;;
14742
14743 sysv5*)
14744 no_undefined_flag_F77=' -z text'
14745 # $CC -shared without GNU ld will not create a library from C++
14746 # object files and a static libstdc++, better avoid it by now
14747 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14748 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14749 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14750 hardcode_libdir_flag_spec_F77=
14751 hardcode_shlibpath_var_F77=no
14752 runpath_var='LD_RUN_PATH'
14753 ;;
14754
14755 uts4*)
14756 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14757 hardcode_libdir_flag_spec_F77='-L$libdir'
14758 hardcode_shlibpath_var_F77=no
14759 ;;
14760
14761 *)
14762 ld_shlibs_F77=no
14763 ;;
14764 esac
14765 fi
14766
14767echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14768echo "${ECHO_T}$ld_shlibs_F77" >&6
14769test "$ld_shlibs_F77" = no && can_build_shared=no
14770
14771variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14772if test "$GCC" = yes; then
14773 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14774fi
14775
14776#
14777# Do we need to explicitly link libc?
14778#
14779case "x$archive_cmds_need_lc_F77" in
14780x|xyes)
14781 # Assume -lc should be added
14782 archive_cmds_need_lc_F77=yes
14783
14784 if test "$enable_shared" = yes && test "$GCC" = yes; then
14785 case $archive_cmds_F77 in
14786 *'~'*)
14787 # FIXME: we may have to deal with multi-command sequences.
14788 ;;
14789 '$CC '*)
14790 # Test whether the compiler implicitly links with -lc since on some
14791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14792 # to ld, don't add -lc before -lgcc.
14793 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14794echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14795 $rm conftest*
14796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14797
14798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799 (eval $ac_compile) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } 2>conftest.err; then
14803 soname=conftest
14804 lib=conftest
14805 libobjs=conftest.$ac_objext
14806 deplibs=
14807 wl=$lt_prog_compiler_wl_F77
14808 compiler_flags=-v
14809 linker_flags=-v
14810 verstring=
14811 output_objdir=.
14812 libname=conftest
14813 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14814 allow_undefined_flag_F77=
14815 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14816 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }
14820 then
14821 archive_cmds_need_lc_F77=no
14822 else
14823 archive_cmds_need_lc_F77=yes
14824 fi
14825 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14826 else
14827 cat conftest.err 1>&5
14828 fi
14829 $rm conftest*
14830 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14831echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14832 ;;
14833 esac
14834 fi
14835 ;;
14836esac
14837
14838echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14839echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14840library_names_spec=
14841libname_spec='lib$name'
14842soname_spec=
14843shrext_cmds=".so"
14844postinstall_cmds=
14845postuninstall_cmds=
14846finish_cmds=
14847finish_eval=
14848shlibpath_var=
14849shlibpath_overrides_runpath=unknown
14850version_type=none
14851dynamic_linker="$host_os ld.so"
14852sys_lib_dlsearch_path_spec="/lib /usr/lib"
14853if test "$GCC" = yes; then
14854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14855 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14856 # if the path contains ";" then we assume it to be the separator
14857 # otherwise default to the standard path separator (i.e. ":") - it is
14858 # assumed that no part of a normal pathname contains ";" but that should
14859 # okay in the real world where ";" in dirpaths is itself problematic.
14860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14861 else
14862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14863 fi
14864else
14865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14866fi
14867need_lib_prefix=unknown
14868hardcode_into_libs=no
14869
14870# when you set need_version to no, make sure it does not cause -set_version
14871# flags to be left without arguments
14872need_version=unknown
14873
14874case $host_os in
14875aix3*)
14876 version_type=linux
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14878 shlibpath_var=LIBPATH
14879
14880 # AIX 3 has no versioning support, so we append a major version to the name.
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 ;;
14883
14884aix4* | aix5*)
14885 version_type=linux
14886 need_lib_prefix=no
14887 need_version=no
14888 hardcode_into_libs=yes
14889 if test "$host_cpu" = ia64; then
14890 # AIX 5 supports IA64
14891 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 else
14894 # With GCC up to 2.95.x, collect2 would create an import file
14895 # for dependence libraries. The import file would start with
14896 # the line `#! .'. This would cause the generated library to
14897 # depend on `.', always an invalid library. This was fixed in
14898 # development snapshots of GCC prior to 3.0.
14899 case $host_os in
14900 aix4 | aix4.[01] | aix4.[01].*)
14901 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14902 echo ' yes '
14903 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14904 :
14905 else
14906 can_build_shared=no
14907 fi
14908 ;;
14909 esac
14910 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14911 # soname into executable. Probably we can add versioning support to
14912 # collect2, so additional links can be useful in future.
14913 if test "$aix_use_runtimelinking" = yes; then
14914 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14915 # instead of lib<name>.a to let people know that these are not
14916 # typical AIX shared libraries.
14917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918 else
14919 # We preserve .a as extension for shared libraries through AIX4.2
14920 # and later when we are not doing run time linking.
14921 library_names_spec='${libname}${release}.a $libname.a'
14922 soname_spec='${libname}${release}${shared_ext}$major'
14923 fi
14924 shlibpath_var=LIBPATH
14925 fi
14926 ;;
14927
14928amigaos*)
14929 library_names_spec='$libname.ixlibrary $libname.a'
14930 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14931 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'
14932 ;;
14933
14934beos*)
14935 library_names_spec='${libname}${shared_ext}'
14936 dynamic_linker="$host_os ld.so"
14937 shlibpath_var=LIBRARY_PATH
14938 ;;
14939
14940bsdi4*)
14941 version_type=linux
14942 need_version=no
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944 soname_spec='${libname}${release}${shared_ext}$major'
14945 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14946 shlibpath_var=LD_LIBRARY_PATH
14947 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14948 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14949 # the default ld.so.conf also contains /usr/contrib/lib and
14950 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14951 # libtool to hard-code these into programs
14952 ;;
14953
14954cygwin* | mingw* | pw32*)
14955 version_type=windows
14956 shrext_cmds=".dll"
14957 need_version=no
14958 need_lib_prefix=no
14959
14960 case $GCC,$host_os in
14961 yes,cygwin* | yes,mingw* | yes,pw32*)
14962 library_names_spec='$libname.dll.a'
14963 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14964 postinstall_cmds='base_file=`basename \${file}`~
14965 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14966 dldir=$destdir/`dirname \$dlpath`~
14967 test -d \$dldir || mkdir -p \$dldir~
14968 $install_prog $dir/$dlname \$dldir/$dlname'
14969 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14970 dlpath=$dir/\$dldll~
14971 $rm \$dlpath'
14972 shlibpath_overrides_runpath=yes
14973
14974 case $host_os in
14975 cygwin*)
14976 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14977 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14978 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14979 ;;
14980 mingw*)
14981 # MinGW DLLs use traditional 'lib' prefix
14982 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14983 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14984 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14985 # It is most probably a Windows format PATH printed by
14986 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14987 # path with ; separators, and with drive letters. We can handle the
14988 # drive letters (cygwin fileutils understands them), so leave them,
14989 # especially as we might pass files found there to a mingw objdump,
14990 # which wouldn't understand a cygwinified path. Ahh.
14991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14992 else
14993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14994 fi
14995 ;;
14996 pw32*)
14997 # pw32 DLLs use 'pw' prefix rather than 'lib'
14998 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14999 ;;
15000 esac
15001 ;;
15002
15003 *)
15004 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15005 ;;
15006 esac
15007 dynamic_linker='Win32 ld.exe'
15008 # FIXME: first we should search . and the directory the executable is in
15009 shlibpath_var=PATH
15010 ;;
15011
15012darwin* | rhapsody*)
15013 dynamic_linker="$host_os dyld"
15014 version_type=darwin
15015 need_lib_prefix=no
15016 need_version=no
15017 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15018 soname_spec='${libname}${release}${major}$shared_ext'
15019 shlibpath_overrides_runpath=yes
15020 shlibpath_var=DYLD_LIBRARY_PATH
15021 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15022 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15023 if test "$GCC" = yes; then
15024 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"`
15025 else
15026 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15027 fi
15028 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15029 ;;
15030
15031dgux*)
15032 version_type=linux
15033 need_lib_prefix=no
15034 need_version=no
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 shlibpath_var=LD_LIBRARY_PATH
15038 ;;
15039
15040freebsd1*)
15041 dynamic_linker=no
15042 ;;
15043
15044kfreebsd*-gnu)
15045 version_type=linux
15046 need_lib_prefix=no
15047 need_version=no
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15049 soname_spec='${libname}${release}${shared_ext}$major'
15050 shlibpath_var=LD_LIBRARY_PATH
15051 shlibpath_overrides_runpath=no
15052 hardcode_into_libs=yes
15053 dynamic_linker='GNU ld.so'
15054 ;;
15055
15056freebsd*)
15057 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15058 version_type=freebsd-$objformat
15059 case $version_type in
15060 freebsd-elf*)
15061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15062 need_version=no
15063 need_lib_prefix=no
15064 ;;
15065 freebsd-*)
15066 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15067 need_version=yes
15068 ;;
15069 esac
15070 shlibpath_var=LD_LIBRARY_PATH
15071 case $host_os in
15072 freebsd2*)
15073 shlibpath_overrides_runpath=yes
15074 ;;
15075 freebsd3.01* | freebsdelf3.01*)
15076 shlibpath_overrides_runpath=yes
15077 hardcode_into_libs=yes
15078 ;;
15079 *) # from 3.2 on
15080 shlibpath_overrides_runpath=no
15081 hardcode_into_libs=yes
15082 ;;
15083 esac
15084 ;;
15085
15086gnu*)
15087 version_type=linux
15088 need_lib_prefix=no
15089 need_version=no
15090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15091 soname_spec='${libname}${release}${shared_ext}$major'
15092 shlibpath_var=LD_LIBRARY_PATH
15093 hardcode_into_libs=yes
15094 ;;
15095
15096hpux9* | hpux10* | hpux11*)
15097 # Give a soname corresponding to the major version so that dld.sl refuses to
15098 # link against other versions.
15099 version_type=sunos
15100 need_lib_prefix=no
15101 need_version=no
15102 case "$host_cpu" in
15103 ia64*)
15104 shrext_cmds='.so'
15105 hardcode_into_libs=yes
15106 dynamic_linker="$host_os dld.so"
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15110 soname_spec='${libname}${release}${shared_ext}$major'
15111 if test "X$HPUX_IA64_MODE" = X32; then
15112 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15113 else
15114 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15115 fi
15116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15117 ;;
15118 hppa*64*)
15119 shrext_cmds='.sl'
15120 hardcode_into_libs=yes
15121 dynamic_linker="$host_os dld.sl"
15122 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125 soname_spec='${libname}${release}${shared_ext}$major'
15126 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15128 ;;
15129 *)
15130 shrext_cmds='.sl'
15131 dynamic_linker="$host_os dld.sl"
15132 shlibpath_var=SHLIB_PATH
15133 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 ;;
15137 esac
15138 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15139 postinstall_cmds='chmod 555 $lib'
15140 ;;
15141
15142irix5* | irix6* | nonstopux*)
15143 case $host_os in
15144 nonstopux*) version_type=nonstopux ;;
15145 *)
15146 if test "$lt_cv_prog_gnu_ld" = yes; then
15147 version_type=linux
15148 else
15149 version_type=irix
15150 fi ;;
15151 esac
15152 need_lib_prefix=no
15153 need_version=no
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15156 case $host_os in
15157 irix5* | nonstopux*)
15158 libsuff= shlibsuff=
15159 ;;
15160 *)
15161 case $LD in # libtool.m4 will add one of these switches to LD
15162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15163 libsuff= shlibsuff= libmagic=32-bit;;
15164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15165 libsuff=32 shlibsuff=N32 libmagic=N32;;
15166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15168 *) libsuff= shlibsuff= libmagic=never-match;;
15169 esac
15170 ;;
15171 esac
15172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15173 shlibpath_overrides_runpath=no
15174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15176 hardcode_into_libs=yes
15177 ;;
15178
15179# No shared lib support for Linux oldld, aout, or coff.
15180linux*oldld* | linux*aout* | linux*coff*)
15181 dynamic_linker=no
15182 ;;
15183
15184# This must be Linux ELF.
15185linux*)
15186 version_type=linux
15187 need_lib_prefix=no
15188 need_version=no
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15190 soname_spec='${libname}${release}${shared_ext}$major'
15191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15192 shlibpath_var=LD_LIBRARY_PATH
15193 shlibpath_overrides_runpath=no
15194 # This implies no fast_install, which is unacceptable.
15195 # Some rework will be needed to allow for fast_install
15196 # before this can be enabled.
15197 hardcode_into_libs=yes
15198
15199 # Append ld.so.conf contents to the search path
15200 if test -f /etc/ld.so.conf; then
15201 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15202 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15203 fi
15204
15205 # We used to test for /lib/ld.so.1 and disable shared libraries on
15206 # powerpc, because MkLinux only supported shared libraries with the
15207 # GNU dynamic linker. Since this was broken with cross compilers,
15208 # most powerpc-linux boxes support dynamic linking these days and
15209 # people can always --disable-shared, the test was removed, and we
15210 # assume the GNU/Linux dynamic linker is in use.
15211 dynamic_linker='GNU/Linux ld.so'
15212 ;;
15213
15214netbsdelf*-gnu)
15215 version_type=linux
15216 need_lib_prefix=no
15217 need_version=no
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=no
15222 hardcode_into_libs=yes
15223 dynamic_linker='NetBSD ld.elf_so'
15224 ;;
15225
15226knetbsd*-gnu)
15227 version_type=linux
15228 need_lib_prefix=no
15229 need_version=no
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 shlibpath_overrides_runpath=no
15234 hardcode_into_libs=yes
15235 dynamic_linker='GNU ld.so'
15236 ;;
15237
15238netbsd*)
15239 version_type=sunos
15240 need_lib_prefix=no
15241 need_version=no
15242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15245 dynamic_linker='NetBSD (a.out) ld.so'
15246 else
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15249 dynamic_linker='NetBSD ld.elf_so'
15250 fi
15251 shlibpath_var=LD_LIBRARY_PATH
15252 shlibpath_overrides_runpath=yes
15253 hardcode_into_libs=yes
15254 ;;
15255
15256newsos6)
15257 version_type=linux
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 shlibpath_var=LD_LIBRARY_PATH
15260 shlibpath_overrides_runpath=yes
15261 ;;
15262
15263nto-qnx*)
15264 version_type=linux
15265 need_lib_prefix=no
15266 need_version=no
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 shlibpath_var=LD_LIBRARY_PATH
15270 shlibpath_overrides_runpath=yes
15271 ;;
15272
15273openbsd*)
15274 version_type=sunos
15275 need_lib_prefix=no
15276 need_version=yes
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15281 case $host_os in
15282 openbsd2.[89] | openbsd2.[89].*)
15283 shlibpath_overrides_runpath=no
15284 ;;
15285 *)
15286 shlibpath_overrides_runpath=yes
15287 ;;
15288 esac
15289 else
15290 shlibpath_overrides_runpath=yes
15291 fi
15292 ;;
15293
15294os2*)
15295 libname_spec='$name'
15296 shrext_cmds=".dll"
15297 need_lib_prefix=no
15298 library_names_spec='$libname${shared_ext} $libname.a'
15299 dynamic_linker='OS/2 ld.exe'
15300 shlibpath_var=LIBPATH
15301 ;;
15302
15303osf3* | osf4* | osf5*)
15304 version_type=osf
15305 need_lib_prefix=no
15306 need_version=no
15307 soname_spec='${libname}${release}${shared_ext}$major'
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15311 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15312 ;;
15313
15314sco3.2v5*)
15315 version_type=osf
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 ;;
15320
15321solaris*)
15322 version_type=linux
15323 need_lib_prefix=no
15324 need_version=no
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 shlibpath_var=LD_LIBRARY_PATH
15328 shlibpath_overrides_runpath=yes
15329 hardcode_into_libs=yes
15330 # ldd complains unless libraries are executable
15331 postinstall_cmds='chmod +x $lib'
15332 ;;
15333
15334sunos4*)
15335 version_type=sunos
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15337 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15338 shlibpath_var=LD_LIBRARY_PATH
15339 shlibpath_overrides_runpath=yes
15340 if test "$with_gnu_ld" = yes; then
15341 need_lib_prefix=no
15342 fi
15343 need_version=yes
15344 ;;
15345
15346sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15347 version_type=linux
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 shlibpath_var=LD_LIBRARY_PATH
15351 case $host_vendor in
15352 sni)
15353 shlibpath_overrides_runpath=no
15354 need_lib_prefix=no
15355 export_dynamic_flag_spec='${wl}-Blargedynsym'
15356 runpath_var=LD_RUN_PATH
15357 ;;
15358 siemens)
15359 need_lib_prefix=no
15360 ;;
15361 motorola)
15362 need_lib_prefix=no
15363 need_version=no
15364 shlibpath_overrides_runpath=no
15365 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15366 ;;
15367 esac
15368 ;;
15369
15370sysv4*MP*)
15371 if test -d /usr/nec ;then
15372 version_type=linux
15373 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15374 soname_spec='$libname${shared_ext}.$major'
15375 shlibpath_var=LD_LIBRARY_PATH
15376 fi
15377 ;;
15378
15379uts4*)
15380 version_type=linux
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 ;;
15385
15386*)
15387 dynamic_linker=no
15388 ;;
15389esac
15390echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15391echo "${ECHO_T}$dynamic_linker" >&6
15392test "$dynamic_linker" = no && can_build_shared=no
15393
15394echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15395echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15396hardcode_action_F77=
15397if test -n "$hardcode_libdir_flag_spec_F77" || \
15398 test -n "$runpath_var F77" || \
15399 test "X$hardcode_automatic_F77"="Xyes" ; then
15400
15401 # We can hardcode non-existant directories.
15402 if test "$hardcode_direct_F77" != no &&
15403 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15404 # have to relink, otherwise we might link with an installed library
15405 # when we should be linking with a yet-to-be-installed one
15406 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15407 test "$hardcode_minus_L_F77" != no; then
15408 # Linking always hardcodes the temporary library directory.
15409 hardcode_action_F77=relink
15410 else
15411 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15412 hardcode_action_F77=immediate
15413 fi
15414else
15415 # We cannot hardcode anything, or else we can only hardcode existing
15416 # directories.
15417 hardcode_action_F77=unsupported
15418fi
15419echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15420echo "${ECHO_T}$hardcode_action_F77" >&6
15421
15422if test "$hardcode_action_F77" = relink; then
15423 # Fast installation is not supported
15424 enable_fast_install=no
15425elif test "$shlibpath_overrides_runpath" = yes ||
15426 test "$enable_shared" = no; then
15427 # Fast installation is not necessary
15428 enable_fast_install=needless
15429fi
15430
15431striplib=
15432old_striplib=
15433echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15434echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15435if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15436 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15437 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15438 echo "$as_me:$LINENO: result: yes" >&5
15439echo "${ECHO_T}yes" >&6
15440else
15441# FIXME - insert some real tests, host_os isn't really good enough
15442 case $host_os in
15443 darwin*)
15444 if test -n "$STRIP" ; then
15445 striplib="$STRIP -x"
15446 echo "$as_me:$LINENO: result: yes" >&5
15447echo "${ECHO_T}yes" >&6
15448 else
15449 echo "$as_me:$LINENO: result: no" >&5
15450echo "${ECHO_T}no" >&6
15451fi
15452 ;;
15453 *)
15454 echo "$as_me:$LINENO: result: no" >&5
15455echo "${ECHO_T}no" >&6
15456 ;;
15457 esac
15458fi
15459
15460
15461
15462# The else clause should only fire when bootstrapping the
15463# libtool distribution, otherwise you forgot to ship ltmain.sh
15464# with your package, and you will get complaints that there are
15465# no rules to generate ltmain.sh.
15466if test -f "$ltmain"; then
15467 # See if we are running on zsh, and set the options which allow our commands through
15468 # without removal of \ escapes.
15469 if test -n "${ZSH_VERSION+set}" ; then
15470 setopt NO_GLOB_SUBST
15471 fi
15472 # Now quote all the things that may contain metacharacters while being
15473 # careful not to overquote the AC_SUBSTed values. We take copies of the
15474 # variables and quote the copies for generation of the libtool script.
15475 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15476 SED SHELL STRIP \
15477 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15478 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15479 deplibs_check_method reload_flag reload_cmds need_locks \
15480 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15481 lt_cv_sys_global_symbol_to_c_name_address \
15482 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15483 old_postinstall_cmds old_postuninstall_cmds \
15484 compiler_F77 \
15485 CC_F77 \
15486 LD_F77 \
15487 lt_prog_compiler_wl_F77 \
15488 lt_prog_compiler_pic_F77 \
15489 lt_prog_compiler_static_F77 \
15490 lt_prog_compiler_no_builtin_flag_F77 \
15491 export_dynamic_flag_spec_F77 \
15492 thread_safe_flag_spec_F77 \
15493 whole_archive_flag_spec_F77 \
15494 enable_shared_with_static_runtimes_F77 \
15495 old_archive_cmds_F77 \
15496 old_archive_from_new_cmds_F77 \
15497 predep_objects_F77 \
15498 postdep_objects_F77 \
15499 predeps_F77 \
15500 postdeps_F77 \
15501 compiler_lib_search_path_F77 \
15502 archive_cmds_F77 \
15503 archive_expsym_cmds_F77 \
15504 postinstall_cmds_F77 \
15505 postuninstall_cmds_F77 \
15506 old_archive_from_expsyms_cmds_F77 \
15507 allow_undefined_flag_F77 \
15508 no_undefined_flag_F77 \
15509 export_symbols_cmds_F77 \
15510 hardcode_libdir_flag_spec_F77 \
15511 hardcode_libdir_flag_spec_ld_F77 \
15512 hardcode_libdir_separator_F77 \
15513 hardcode_automatic_F77 \
15514 module_cmds_F77 \
15515 module_expsym_cmds_F77 \
15516 lt_cv_prog_compiler_c_o_F77 \
15517 exclude_expsyms_F77 \
15518 include_expsyms_F77; do
15519
15520 case $var in
15521 old_archive_cmds_F77 | \
15522 old_archive_from_new_cmds_F77 | \
15523 archive_cmds_F77 | \
15524 archive_expsym_cmds_F77 | \
15525 module_cmds_F77 | \
15526 module_expsym_cmds_F77 | \
15527 old_archive_from_expsyms_cmds_F77 | \
15528 export_symbols_cmds_F77 | \
15529 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15530 postinstall_cmds | postuninstall_cmds | \
15531 old_postinstall_cmds | old_postuninstall_cmds | \
15532 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15533 # Double-quote double-evaled strings.
15534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15535 ;;
15536 *)
15537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15538 ;;
15539 esac
15540 done
15541
15542 case $lt_echo in
15543 *'\$0 --fallback-echo"')
15544 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15545 ;;
15546 esac
15547
15548cfgfile="$ofile"
15549
15550 cat <<__EOF__ >> "$cfgfile"
15551# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15552
15553# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15554
15555# Shell to use when invoking shell scripts.
15556SHELL=$lt_SHELL
15557
15558# Whether or not to build shared libraries.
15559build_libtool_libs=$enable_shared
15560
15561# Whether or not to build static libraries.
15562build_old_libs=$enable_static
15563
15564# Whether or not to add -lc for building shared libraries.
15565build_libtool_need_lc=$archive_cmds_need_lc_F77
15566
15567# Whether or not to disallow shared libs when runtime libs are static
15568allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15569
15570# Whether or not to optimize for fast installation.
15571fast_install=$enable_fast_install
15572
15573# The host system.
15574host_alias=$host_alias
15575host=$host
15576
15577# An echo program that does not interpret backslashes.
15578echo=$lt_echo
15579
15580# The archiver.
15581AR=$lt_AR
15582AR_FLAGS=$lt_AR_FLAGS
15583
15584# A C compiler.
15585LTCC=$lt_LTCC
15586
15587# A language-specific compiler.
15588CC=$lt_compiler_F77
15589
15590# Is the compiler the GNU C compiler?
15591with_gcc=$GCC_F77
15592
15593# An ERE matcher.
15594EGREP=$lt_EGREP
15595
15596# The linker used to build libraries.
15597LD=$lt_LD_F77
15598
15599# Whether we need hard or soft links.
15600LN_S=$lt_LN_S
15601
15602# A BSD-compatible nm program.
15603NM=$lt_NM
15604
15605# A symbol stripping program
15606STRIP=$lt_STRIP
15607
15608# Used to examine libraries when file_magic_cmd begins "file"
15609MAGIC_CMD=$MAGIC_CMD
15610
15611# Used on cygwin: DLL creation program.
15612DLLTOOL="$DLLTOOL"
15613
15614# Used on cygwin: object dumper.
15615OBJDUMP="$OBJDUMP"
15616
15617# Used on cygwin: assembler.
15618AS="$AS"
15619
15620# The name of the directory that contains temporary libtool files.
15621objdir=$objdir
15622
15623# How to create reloadable object files.
15624reload_flag=$lt_reload_flag
15625reload_cmds=$lt_reload_cmds
15626
15627# How to pass a linker flag through the compiler.
15628wl=$lt_lt_prog_compiler_wl_F77
15629
15630# Object file suffix (normally "o").
15631objext="$ac_objext"
15632
15633# Old archive suffix (normally "a").
15634libext="$libext"
15635
15636# Shared library suffix (normally ".so").
15637shrext_cmds='$shrext_cmds'
15638
15639# Executable file suffix (normally "").
15640exeext="$exeext"
15641
15642# Additional compiler flags for building library objects.
15643pic_flag=$lt_lt_prog_compiler_pic_F77
15644pic_mode=$pic_mode
15645
15646# What is the maximum length of a command?
15647max_cmd_len=$lt_cv_sys_max_cmd_len
15648
15649# Does compiler simultaneously support -c and -o options?
15650compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15651
15652# Must we lock files when doing compilation ?
15653need_locks=$lt_need_locks
15654
15655# Do we need the lib prefix for modules?
15656need_lib_prefix=$need_lib_prefix
15657
15658# Do we need a version for libraries?
15659need_version=$need_version
15660
15661# Whether dlopen is supported.
15662dlopen_support=$enable_dlopen
15663
15664# Whether dlopen of programs is supported.
15665dlopen_self=$enable_dlopen_self
15666
15667# Whether dlopen of statically linked programs is supported.
15668dlopen_self_static=$enable_dlopen_self_static
15669
15670# Compiler flag to prevent dynamic linking.
15671link_static_flag=$lt_lt_prog_compiler_static_F77
15672
15673# Compiler flag to turn off builtin functions.
15674no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15675
15676# Compiler flag to allow reflexive dlopens.
15677export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15678
15679# Compiler flag to generate shared objects directly from archives.
15680whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15681
15682# Compiler flag to generate thread-safe objects.
15683thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15684
15685# Library versioning type.
15686version_type=$version_type
15687
15688# Format of library name prefix.
15689libname_spec=$lt_libname_spec
15690
15691# List of archive names. First name is the real one, the rest are links.
15692# The last name is the one that the linker finds with -lNAME.
15693library_names_spec=$lt_library_names_spec
15694
15695# The coded name of the library, if different from the real name.
15696soname_spec=$lt_soname_spec
15697
15698# Commands used to build and install an old-style archive.
15699RANLIB=$lt_RANLIB
15700old_archive_cmds=$lt_old_archive_cmds_F77
15701old_postinstall_cmds=$lt_old_postinstall_cmds
15702old_postuninstall_cmds=$lt_old_postuninstall_cmds
15703
15704# Create an old-style archive from a shared archive.
15705old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15706
15707# Create a temporary old-style archive to link instead of a shared archive.
15708old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15709
15710# Commands used to build and install a shared archive.
15711archive_cmds=$lt_archive_cmds_F77
15712archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15713postinstall_cmds=$lt_postinstall_cmds
15714postuninstall_cmds=$lt_postuninstall_cmds
15715
15716# Commands used to build a loadable module (assumed same as above if empty)
15717module_cmds=$lt_module_cmds_F77
15718module_expsym_cmds=$lt_module_expsym_cmds_F77
15719
15720# Commands to strip libraries.
15721old_striplib=$lt_old_striplib
15722striplib=$lt_striplib
15723
15724# Dependencies to place before the objects being linked to create a
15725# shared library.
15726predep_objects=$lt_predep_objects_F77
15727
15728# Dependencies to place after the objects being linked to create a
15729# shared library.
15730postdep_objects=$lt_postdep_objects_F77
15731
15732# Dependencies to place before the objects being linked to create a
15733# shared library.
15734predeps=$lt_predeps_F77
15735
15736# Dependencies to place after the objects being linked to create a
15737# shared library.
15738postdeps=$lt_postdeps_F77
15739
15740# The library search path used internally by the compiler when linking
15741# a shared library.
15742compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15743
15744# Method to check whether dependent libraries are shared objects.
15745deplibs_check_method=$lt_deplibs_check_method
15746
15747# Command to use when deplibs_check_method == file_magic.
15748file_magic_cmd=$lt_file_magic_cmd
15749
15750# Flag that allows shared libraries with undefined symbols to be built.
15751allow_undefined_flag=$lt_allow_undefined_flag_F77
15752
15753# Flag that forces no undefined symbols.
15754no_undefined_flag=$lt_no_undefined_flag_F77
15755
15756# Commands used to finish a libtool library installation in a directory.
15757finish_cmds=$lt_finish_cmds
15758
15759# Same as above, but a single script fragment to be evaled but not shown.
15760finish_eval=$lt_finish_eval
15761
15762# Take the output of nm and produce a listing of raw symbols and C names.
15763global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15764
15765# Transform the output of nm in a proper C declaration
15766global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15767
15768# Transform the output of nm in a C name address pair
15769global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15770
15771# This is the shared library runtime path variable.
15772runpath_var=$runpath_var
15773
15774# This is the shared library path variable.
15775shlibpath_var=$shlibpath_var
15776
15777# Is shlibpath searched before the hard-coded library search path?
15778shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15779
15780# How to hardcode a shared library path into an executable.
15781hardcode_action=$hardcode_action_F77
15782
15783# Whether we should hardcode library paths into libraries.
15784hardcode_into_libs=$hardcode_into_libs
15785
15786# Flag to hardcode \$libdir into a binary during linking.
15787# This must work even if \$libdir does not exist.
15788hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15789
15790# If ld is used when linking, flag to hardcode \$libdir into
15791# a binary during linking. This must work even if \$libdir does
15792# not exist.
15793hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15794
15795# Whether we need a single -rpath flag with a separated argument.
15796hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15797
15798# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15799# resulting binary.
15800hardcode_direct=$hardcode_direct_F77
15801
15802# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15803# resulting binary.
15804hardcode_minus_L=$hardcode_minus_L_F77
15805
15806# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15807# the resulting binary.
15808hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15809
15810# Set to yes if building a shared library automatically hardcodes DIR into the library
15811# and all subsequent libraries and executables linked against it.
15812hardcode_automatic=$hardcode_automatic_F77
15813
15814# Variables whose values should be saved in libtool wrapper scripts and
15815# restored at relink time.
15816variables_saved_for_relink="$variables_saved_for_relink"
15817
15818# Whether libtool must link a program against all its dependency libraries.
15819link_all_deplibs=$link_all_deplibs_F77
15820
15821# Compile-time system search path for libraries
15822sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15823
15824# Run-time system search path for libraries
15825sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15826
15827# Fix the shell variable \$srcfile for the compiler.
15828fix_srcfile_path="$fix_srcfile_path_F77"
15829
15830# Set to yes if exported symbols are required.
15831always_export_symbols=$always_export_symbols_F77
15832
15833# The commands to list exported symbols.
15834export_symbols_cmds=$lt_export_symbols_cmds_F77
15835
15836# The commands to extract the exported symbol list from a shared archive.
15837extract_expsyms_cmds=$lt_extract_expsyms_cmds
15838
15839# Symbols that should not be listed in the preloaded symbols.
15840exclude_expsyms=$lt_exclude_expsyms_F77
15841
15842# Symbols that must always be exported.
15843include_expsyms=$lt_include_expsyms_F77
15844
15845# ### END LIBTOOL TAG CONFIG: $tagname
15846
15847__EOF__
15848
15849
15850else
15851 # If there is no Makefile yet, we rely on a make rule to execute
15852 # `config.status --recheck' to rerun these tests and create the
15853 # libtool script then.
15854 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15855 if test -f "$ltmain_in"; then
15856 test -f Makefile && make "$ltmain"
15857 fi
15858fi
15859
15860
15861ac_ext=c
15862ac_cpp='$CPP $CPPFLAGS'
15863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15865ac_compiler_gnu=$ac_cv_c_compiler_gnu
15866
15867CC="$lt_save_CC"
15868
15869 else
15870 tagname=""
15871 fi
15872 ;;
15873
15874 GCJ)
15875 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15876
15877
15878
15879# Source file extension for Java test sources.
15880ac_ext=java
15881
15882# Object file extension for compiled Java test sources.
15883objext=o
15884objext_GCJ=$objext
15885
15886# Code to be used in simple compile tests
15887lt_simple_compile_test_code="class foo {}\n"
15888
15889# Code to be used in simple link tests
15890lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15891
15892# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15893
15894# If no C compiler was specified, use CC.
15895LTCC=${LTCC-"$CC"}
15896
15897# Allow CC to be a program name with arguments.
15898compiler=$CC
15899
15900
15901# Allow CC to be a program name with arguments.
15902lt_save_CC="$CC"
15903CC=${GCJ-"gcj"}
15904compiler=$CC
15905compiler_GCJ=$CC
15906
15907# GCJ did not exist at the time GCC didn't implicitly link libc in.
15908archive_cmds_need_lc_GCJ=no
15909
15910
15911lt_prog_compiler_no_builtin_flag_GCJ=
15912
15913if test "$GCC" = yes; then
15914 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15915
15916
15917echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15918echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15919if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15921else
15922 lt_cv_prog_compiler_rtti_exceptions=no
15923 ac_outfile=conftest.$ac_objext
15924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15925 lt_compiler_flag="-fno-rtti -fno-exceptions"
15926 # Insert the option either (1) after the last *FLAGS variable, or
15927 # (2) before a word containing "conftest.", or (3) at the end.
15928 # Note that $ac_compile itself does not contain backslashes and begins
15929 # with a dollar sign (not a hyphen), so the echo should work correctly.
15930 # The option is referenced via a variable to avoid confusing sed.
15931 lt_compile=`echo "$ac_compile" | $SED \
15932 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15934 -e 's:$: $lt_compiler_flag:'`
15935 (eval echo "\"\$as_me:15935: $lt_compile\"" >&5)
15936 (eval "$lt_compile" 2>conftest.err)
15937 ac_status=$?
15938 cat conftest.err >&5
15939 echo "$as_me:15939: \$? = $ac_status" >&5
15940 if (exit $ac_status) && test -s "$ac_outfile"; then
15941 # The compiler can only warn and ignore the option if not recognized
15942 # So say no if there are warnings
15943 if test ! -s conftest.err; then
15944 lt_cv_prog_compiler_rtti_exceptions=yes
15945 fi
15946 fi
15947 $rm conftest*
15948
15949fi
15950echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15951echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15952
15953if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15954 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15955else
15956 :
15957fi
15958
15959fi
15960
15961lt_prog_compiler_wl_GCJ=
15962lt_prog_compiler_pic_GCJ=
15963lt_prog_compiler_static_GCJ=
15964
15965echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15966echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15967
15968 if test "$GCC" = yes; then
15969 lt_prog_compiler_wl_GCJ='-Wl,'
15970 lt_prog_compiler_static_GCJ='-static'
15971
15972 case $host_os in
15973 aix*)
15974 # All AIX code is PIC.
15975 if test "$host_cpu" = ia64; then
15976 # AIX 5 now supports IA64 processor
15977 lt_prog_compiler_static_GCJ='-Bstatic'
15978 fi
15979 ;;
15980
15981 amigaos*)
15982 # FIXME: we need at least 68020 code to build shared libraries, but
15983 # adding the `-m68020' flag to GCC prevents building anything better,
15984 # like `-m68040'.
15985 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15986 ;;
15987
15988 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15989 # PIC is the default for these OSes.
15990 ;;
15991
15992 mingw* | pw32* | os2*)
15993 # This hack is so that the source file can tell whether it is being
15994 # built for inclusion in a dll (and should export symbols for example).
15995 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15996 ;;
15997
15998 darwin* | rhapsody*)
15999 # PIC is the default on this platform
16000 # Common symbols not allowed in MH_DYLIB files
16001 lt_prog_compiler_pic_GCJ='-fno-common'
16002 ;;
16003
16004 msdosdjgpp*)
16005 # Just because we use GCC doesn't mean we suddenly get shared libraries
16006 # on systems that don't support them.
16007 lt_prog_compiler_can_build_shared_GCJ=no
16008 enable_shared=no
16009 ;;
16010
16011 sysv4*MP*)
16012 if test -d /usr/nec; then
16013 lt_prog_compiler_pic_GCJ=-Kconform_pic
16014 fi
16015 ;;
16016
16017 hpux*)
16018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16019 # not for PA HP-UX.
16020 case "$host_cpu" in
16021 hppa*64*|ia64*)
16022 # +Z the default
16023 ;;
16024 *)
16025 lt_prog_compiler_pic_GCJ='-fPIC'
16026 ;;
16027 esac
16028 ;;
16029
16030 *)
16031 lt_prog_compiler_pic_GCJ='-fPIC'
16032 ;;
16033 esac
16034 else
16035 # PORTME Check for flag to pass linker flags through the system compiler.
16036 case $host_os in
16037 aix*)
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 if test "$host_cpu" = ia64; then
16040 # AIX 5 now supports IA64 processor
16041 lt_prog_compiler_static_GCJ='-Bstatic'
16042 else
16043 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16044 fi
16045 ;;
16046
16047 mingw* | pw32* | os2*)
16048 # This hack is so that the source file can tell whether it is being
16049 # built for inclusion in a dll (and should export symbols for example).
16050 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16051 ;;
16052
16053 hpux9* | hpux10* | hpux11*)
16054 lt_prog_compiler_wl_GCJ='-Wl,'
16055 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16056 # not for PA HP-UX.
16057 case "$host_cpu" in
16058 hppa*64*|ia64*)
16059 # +Z the default
16060 ;;
16061 *)
16062 lt_prog_compiler_pic_GCJ='+Z'
16063 ;;
16064 esac
16065 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16066 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16067 ;;
16068
16069 irix5* | irix6* | nonstopux*)
16070 lt_prog_compiler_wl_GCJ='-Wl,'
16071 # PIC (with -KPIC) is the default.
16072 lt_prog_compiler_static_GCJ='-non_shared'
16073 ;;
16074
16075 newsos6)
16076 lt_prog_compiler_pic_GCJ='-KPIC'
16077 lt_prog_compiler_static_GCJ='-Bstatic'
16078 ;;
16079
16080 linux*)
16081 case $CC in
16082 icc* | ecc*)
16083 lt_prog_compiler_wl_GCJ='-Wl,'
16084 lt_prog_compiler_pic_GCJ='-KPIC'
16085 lt_prog_compiler_static_GCJ='-static'
16086 ;;
16087 ccc*)
16088 lt_prog_compiler_wl_GCJ='-Wl,'
16089 # All Alpha code is PIC.
16090 lt_prog_compiler_static_GCJ='-non_shared'
16091 ;;
16092 esac
16093 ;;
16094
16095 osf3* | osf4* | osf5*)
16096 lt_prog_compiler_wl_GCJ='-Wl,'
16097 # All OSF/1 code is PIC.
16098 lt_prog_compiler_static_GCJ='-non_shared'
16099 ;;
16100
16101 sco3.2v5*)
16102 lt_prog_compiler_pic_GCJ='-Kpic'
16103 lt_prog_compiler_static_GCJ='-dn'
16104 ;;
16105
16106 solaris*)
16107 lt_prog_compiler_wl_GCJ='-Wl,'
16108 lt_prog_compiler_pic_GCJ='-KPIC'
16109 lt_prog_compiler_static_GCJ='-Bstatic'
16110 ;;
16111
16112 sunos4*)
16113 lt_prog_compiler_wl_GCJ='-Qoption ld '
16114 lt_prog_compiler_pic_GCJ='-PIC'
16115 lt_prog_compiler_static_GCJ='-Bstatic'
16116 ;;
16117
16118 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16119 lt_prog_compiler_wl_GCJ='-Wl,'
16120 lt_prog_compiler_pic_GCJ='-KPIC'
16121 lt_prog_compiler_static_GCJ='-Bstatic'
16122 ;;
16123
16124 sysv4*MP*)
16125 if test -d /usr/nec ;then
16126 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16127 lt_prog_compiler_static_GCJ='-Bstatic'
16128 fi
16129 ;;
16130
16131 uts4*)
16132 lt_prog_compiler_pic_GCJ='-pic'
16133 lt_prog_compiler_static_GCJ='-Bstatic'
16134 ;;
16135
16136 *)
16137 lt_prog_compiler_can_build_shared_GCJ=no
16138 ;;
16139 esac
16140 fi
16141
16142echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16143echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16144
16145#
16146# Check to make sure the PIC flag actually works.
16147#
16148if test -n "$lt_prog_compiler_pic_GCJ"; then
16149
16150echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16151echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16152if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16154else
16155 lt_prog_compiler_pic_works_GCJ=no
16156 ac_outfile=conftest.$ac_objext
16157 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16158 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16159 # Insert the option either (1) after the last *FLAGS variable, or
16160 # (2) before a word containing "conftest.", or (3) at the end.
16161 # Note that $ac_compile itself does not contain backslashes and begins
16162 # with a dollar sign (not a hyphen), so the echo should work correctly.
16163 # The option is referenced via a variable to avoid confusing sed.
16164 lt_compile=`echo "$ac_compile" | $SED \
16165 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16167 -e 's:$: $lt_compiler_flag:'`
16168 (eval echo "\"\$as_me:16168: $lt_compile\"" >&5)
16169 (eval "$lt_compile" 2>conftest.err)
16170 ac_status=$?
16171 cat conftest.err >&5
16172 echo "$as_me:16172: \$? = $ac_status" >&5
16173 if (exit $ac_status) && test -s "$ac_outfile"; then
16174 # The compiler can only warn and ignore the option if not recognized
16175 # So say no if there are warnings
16176 if test ! -s conftest.err; then
16177 lt_prog_compiler_pic_works_GCJ=yes
16178 fi
16179 fi
16180 $rm conftest*
16181
16182fi
16183echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16184echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16185
16186if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16187 case $lt_prog_compiler_pic_GCJ in
16188 "" | " "*) ;;
16189 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16190 esac
16191else
16192 lt_prog_compiler_pic_GCJ=
16193 lt_prog_compiler_can_build_shared_GCJ=no
16194fi
16195
16196fi
16197case "$host_os" in
16198 # For platforms which do not support PIC, -DPIC is meaningless:
16199 *djgpp*)
16200 lt_prog_compiler_pic_GCJ=
16201 ;;
16202 *)
16203 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16204 ;;
16205esac
16206
16207echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16208echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16209if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16211else
16212 lt_cv_prog_compiler_c_o_GCJ=no
16213 $rm -r conftest 2>/dev/null
16214 mkdir conftest
16215 cd conftest
16216 mkdir out
16217 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16218
16219 lt_compiler_flag="-o out/conftest2.$ac_objext"
16220 # Insert the option either (1) after the last *FLAGS variable, or
16221 # (2) before a word containing "conftest.", or (3) at the end.
16222 # Note that $ac_compile itself does not contain backslashes and begins
16223 # with a dollar sign (not a hyphen), so the echo should work correctly.
16224 lt_compile=`echo "$ac_compile" | $SED \
16225 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16227 -e 's:$: $lt_compiler_flag:'`
16228 (eval echo "\"\$as_me:16228: $lt_compile\"" >&5)
16229 (eval "$lt_compile" 2>out/conftest.err)
16230 ac_status=$?
16231 cat out/conftest.err >&5
16232 echo "$as_me:16232: \$? = $ac_status" >&5
16233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16234 then
16235 # The compiler can only warn and ignore the option if not recognized
16236 # So say no if there are warnings
16237 if test ! -s out/conftest.err; then
16238 lt_cv_prog_compiler_c_o_GCJ=yes
16239 fi
16240 fi
16241 chmod u+w .
16242 $rm conftest*
16243 # SGI C++ compiler will create directory out/ii_files/ for
16244 # template instantiation
16245 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16246 $rm out/* && rmdir out
16247 cd ..
16248 rmdir conftest
16249 $rm conftest*
16250
16251fi
16252echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16253echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16254
16255
16256hard_links="nottested"
16257if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16258 # do not overwrite the value of need_locks provided by the user
16259 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16260echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16261 hard_links=yes
16262 $rm conftest*
16263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16264 touch conftest.a
16265 ln conftest.a conftest.b 2>&5 || hard_links=no
16266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16267 echo "$as_me:$LINENO: result: $hard_links" >&5
16268echo "${ECHO_T}$hard_links" >&6
16269 if test "$hard_links" = no; then
16270 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16271echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16272 need_locks=warn
16273 fi
16274else
16275 need_locks=no
16276fi
16277
16278echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16279echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16280
16281 runpath_var=
16282 allow_undefined_flag_GCJ=
16283 enable_shared_with_static_runtimes_GCJ=no
16284 archive_cmds_GCJ=
16285 archive_expsym_cmds_GCJ=
16286 old_archive_From_new_cmds_GCJ=
16287 old_archive_from_expsyms_cmds_GCJ=
16288 export_dynamic_flag_spec_GCJ=
16289 whole_archive_flag_spec_GCJ=
16290 thread_safe_flag_spec_GCJ=
16291 hardcode_libdir_flag_spec_GCJ=
16292 hardcode_libdir_flag_spec_ld_GCJ=
16293 hardcode_libdir_separator_GCJ=
16294 hardcode_direct_GCJ=no
16295 hardcode_minus_L_GCJ=no
16296 hardcode_shlibpath_var_GCJ=unsupported
16297 link_all_deplibs_GCJ=unknown
16298 hardcode_automatic_GCJ=no
16299 module_cmds_GCJ=
16300 module_expsym_cmds_GCJ=
16301 always_export_symbols_GCJ=no
16302 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16303 # include_expsyms should be a list of space-separated symbols to be *always*
16304 # included in the symbol list
16305 include_expsyms_GCJ=
16306 # exclude_expsyms can be an extended regexp of symbols to exclude
16307 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16309 # as well as any symbol that contains `d'.
16310 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16312 # platforms (ab)use it in PIC code, but their linkers get confused if
16313 # the symbol is explicitly referenced. Since portable code cannot
16314 # rely on this symbol name, it's probably fine to never include it in
16315 # preloaded symbol tables.
16316 extract_expsyms_cmds=
16317
16318 case $host_os in
16319 cygwin* | mingw* | pw32*)
16320 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16321 # When not using gcc, we currently assume that we are using
16322 # Microsoft Visual C++.
16323 if test "$GCC" != yes; then
16324 with_gnu_ld=no
16325 fi
16326 ;;
16327 openbsd*)
16328 with_gnu_ld=no
16329 ;;
16330 esac
16331
16332 ld_shlibs_GCJ=yes
16333 if test "$with_gnu_ld" = yes; then
16334 # If archive_cmds runs LD, not CC, wlarc should be empty
16335 wlarc='${wl}'
16336
16337 # See if GNU ld supports shared libraries.
16338 case $host_os in
16339 aix3* | aix4* | aix5*)
16340 # On AIX/PPC, the GNU linker is very broken
16341 if test "$host_cpu" != ia64; then
16342 ld_shlibs_GCJ=no
16343 cat <<EOF 1>&2
16344
16345*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16346*** to be unable to reliably create shared libraries on AIX.
16347*** Therefore, libtool is disabling shared libraries support. If you
16348*** really care for shared libraries, you may want to modify your PATH
16349*** so that a non-GNU linker is found, and then restart.
16350
16351EOF
16352 fi
16353 ;;
16354
16355 amigaos*)
16356 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)'
16357 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16358 hardcode_minus_L_GCJ=yes
16359
16360 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16361 # that the semantics of dynamic libraries on AmigaOS, at least up
16362 # to version 4, is to share data among multiple programs linked
16363 # with the same dynamic library. Since this doesn't match the
16364 # behavior of shared libraries on other platforms, we can't use
16365 # them.
16366 ld_shlibs_GCJ=no
16367 ;;
16368
16369 beos*)
16370 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16371 allow_undefined_flag_GCJ=unsupported
16372 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16373 # support --undefined. This deserves some investigation. FIXME
16374 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16375 else
16376 ld_shlibs_GCJ=no
16377 fi
16378 ;;
16379
16380 cygwin* | mingw* | pw32*)
16381 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16382 # as there is no search path for DLLs.
16383 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16384 allow_undefined_flag_GCJ=unsupported
16385 always_export_symbols_GCJ=no
16386 enable_shared_with_static_runtimes_GCJ=yes
16387 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16388
16389 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16390 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16391 # If the export-symbols file already is a .def file (1st line
16392 # is EXPORTS), use it as is; otherwise, prepend...
16393 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16394 cp $export_symbols $output_objdir/$soname.def;
16395 else
16396 echo EXPORTS > $output_objdir/$soname.def;
16397 cat $export_symbols >> $output_objdir/$soname.def;
16398 fi~
16399 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16400 else
16401 ld_shlibs=no
16402 fi
16403 ;;
16404
16405 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16407 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16408 wlarc=
16409 else
16410 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16411 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16412 fi
16413 ;;
16414
16415 solaris* | sysv5*)
16416 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16417 ld_shlibs_GCJ=no
16418 cat <<EOF 1>&2
16419
16420*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16421*** create shared libraries on Solaris systems. Therefore, libtool
16422*** is disabling shared libraries support. We urge you to upgrade GNU
16423*** binutils to release 2.9.1 or newer. Another option is to modify
16424*** your PATH or compiler configuration so that the native linker is
16425*** used, and then restart.
16426
16427EOF
16428 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16429 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16430 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16431 else
16432 ld_shlibs_GCJ=no
16433 fi
16434 ;;
16435
16436 sunos4*)
16437 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16438 wlarc=
16439 hardcode_direct_GCJ=yes
16440 hardcode_shlibpath_var_GCJ=no
16441 ;;
16442
16443 linux*)
16444 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16445 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16446 archive_cmds_GCJ="$tmp_archive_cmds"
16447 supports_anon_versioning=no
16448 case `$LD -v 2>/dev/null` in
16449 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16450 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16451 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16452 *\ 2.11.*) ;; # other 2.11 versions
16453 *) supports_anon_versioning=yes ;;
16454 esac
16455 if test $supports_anon_versioning = yes; then
16456 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16457cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16458$echo "local: *; };" >> $output_objdir/$libname.ver~
16459 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16460 else
16461 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16462 fi
16463 link_all_deplibs_GCJ=no
16464 else
16465 ld_shlibs_GCJ=no
16466 fi
16467 ;;
16468
16469 *)
16470 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16471 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16472 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16473 else
16474 ld_shlibs_GCJ=no
16475 fi
16476 ;;
16477 esac
16478
16479 if test "$ld_shlibs_GCJ" = yes; then
16480 runpath_var=LD_RUN_PATH
16481 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16482 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16483 # ancient GNU ld didn't support --whole-archive et. al.
16484 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16485 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16486 else
16487 whole_archive_flag_spec_GCJ=
16488 fi
16489 fi
16490 else
16491 # PORTME fill in a description of your system's linker (not GNU ld)
16492 case $host_os in
16493 aix3*)
16494 allow_undefined_flag_GCJ=unsupported
16495 always_export_symbols_GCJ=yes
16496 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'
16497 # Note: this linker hardcodes the directories in LIBPATH if there
16498 # are no directories specified by -L.
16499 hardcode_minus_L_GCJ=yes
16500 if test "$GCC" = yes && test -z "$link_static_flag"; then
16501 # Neither direct hardcoding nor static linking is supported with a
16502 # broken collect2.
16503 hardcode_direct_GCJ=unsupported
16504 fi
16505 ;;
16506
16507 aix4* | aix5*)
16508 if test "$host_cpu" = ia64; then
16509 # On IA64, the linker does run time linking by default, so we don't
16510 # have to do anything special.
16511 aix_use_runtimelinking=no
16512 exp_sym_flag='-Bexport'
16513 no_entry_flag=""
16514 else
16515 # If we're using GNU nm, then we don't want the "-C" option.
16516 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16517 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16518 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'
16519 else
16520 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'
16521 fi
16522 aix_use_runtimelinking=no
16523
16524 # Test if we are trying to use run time linking or normal
16525 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16526 # need to do runtime linking.
16527 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16528 for ld_flag in $LDFLAGS; do
16529 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16530 aix_use_runtimelinking=yes
16531 break
16532 fi
16533 done
16534 esac
16535
16536 exp_sym_flag='-bexport'
16537 no_entry_flag='-bnoentry'
16538 fi
16539
16540 # When large executables or shared objects are built, AIX ld can
16541 # have problems creating the table of contents. If linking a library
16542 # or program results in "error TOC overflow" add -mminimal-toc to
16543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16545
16546 archive_cmds_GCJ=''
16547 hardcode_direct_GCJ=yes
16548 hardcode_libdir_separator_GCJ=':'
16549 link_all_deplibs_GCJ=yes
16550
16551 if test "$GCC" = yes; then
16552 case $host_os in aix4.012|aix4.012.*)
16553 # We only want to do this on AIX 4.2 and lower, the check
16554 # below for broken collect2 doesn't work under 4.3+
16555 collect2name=`${CC} -print-prog-name=collect2`
16556 if test -f "$collect2name" && \
16557 strings "$collect2name" | grep resolve_lib_name >/dev/null
16558 then
16559 # We have reworked collect2
16560 hardcode_direct_GCJ=yes
16561 else
16562 # We have old collect2
16563 hardcode_direct_GCJ=unsupported
16564 # It fails to find uninstalled libraries when the uninstalled
16565 # path is not listed in the libpath. Setting hardcode_minus_L
16566 # to unsupported forces relinking
16567 hardcode_minus_L_GCJ=yes
16568 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16569 hardcode_libdir_separator_GCJ=
16570 fi
16571 esac
16572 shared_flag='-shared'
16573 else
16574 # not using gcc
16575 if test "$host_cpu" = ia64; then
16576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16577 # chokes on -Wl,-G. The following line is correct:
16578 shared_flag='-G'
16579 else
16580 if test "$aix_use_runtimelinking" = yes; then
16581 shared_flag='${wl}-G'
16582 else
16583 shared_flag='${wl}-bM:SRE'
16584 fi
16585 fi
16586 fi
16587
16588 # It seems that -bexpall does not export symbols beginning with
16589 # underscore (_), so it is better to generate a list of symbols to export.
16590 always_export_symbols_GCJ=yes
16591 if test "$aix_use_runtimelinking" = yes; then
16592 # Warning - without using the other runtime loading flags (-brtl),
16593 # -berok will link without error, but may produce a broken library.
16594 allow_undefined_flag_GCJ='-berok'
16595 # Determine the default libpath from the value encoded in an empty executable.
16596 cat >conftest.$ac_ext <<_ACEOF
16597/* confdefs.h. */
16598_ACEOF
16599cat confdefs.h >>conftest.$ac_ext
16600cat >>conftest.$ac_ext <<_ACEOF
16601/* end confdefs.h. */
16602
16603int
16604main ()
16605{
16606
16607 ;
16608 return 0;
16609}
16610_ACEOF
16611rm -f conftest.$ac_objext conftest$ac_exeext
16612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613 (eval $ac_link) 2>conftest.er1
16614 ac_status=$?
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; } &&
16626 { ac_try='test -s conftest$ac_exeext'
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16629 ac_status=$?
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }; then
16632
16633aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16634}'`
16635# Check for a 64-bit object if we didn't find anything.
16636if 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; }
16637}'`; fi
16638else
16639 echo "$as_me: failed program was:" >&5
16640sed 's/^/| /' conftest.$ac_ext >&5
16641
16642fi
16643rm -f conftest.err conftest.$ac_objext \
16644 conftest$ac_exeext conftest.$ac_ext
16645if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16646
16647 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16648 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"
16649 else
16650 if test "$host_cpu" = ia64; then
16651 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16652 allow_undefined_flag_GCJ="-z nodefs"
16653 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"
16654 else
16655 # Determine the default libpath from the value encoded in an empty executable.
16656 cat >conftest.$ac_ext <<_ACEOF
16657/* confdefs.h. */
16658_ACEOF
16659cat confdefs.h >>conftest.$ac_ext
16660cat >>conftest.$ac_ext <<_ACEOF
16661/* end confdefs.h. */
16662
16663int
16664main ()
16665{
16666
16667 ;
16668 return 0;
16669}
16670_ACEOF
16671rm -f conftest.$ac_objext conftest$ac_exeext
16672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16673 (eval $ac_link) 2>conftest.er1
16674 ac_status=$?
16675 grep -v '^ *+' conftest.er1 >conftest.err
16676 rm -f conftest.er1
16677 cat conftest.err >&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16683 ac_status=$?
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try='test -s conftest$ac_exeext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692
16693aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16694}'`
16695# Check for a 64-bit object if we didn't find anything.
16696if 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; }
16697}'`; fi
16698else
16699 echo "$as_me: failed program was:" >&5
16700sed 's/^/| /' conftest.$ac_ext >&5
16701
16702fi
16703rm -f conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16705if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16706
16707 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16708 # Warning - without using the other run time loading flags,
16709 # -berok will link without error, but may produce a broken library.
16710 no_undefined_flag_GCJ=' ${wl}-bernotok'
16711 allow_undefined_flag_GCJ=' ${wl}-berok'
16712 # -bexpall does not export symbols beginning with underscore (_)
16713 always_export_symbols_GCJ=yes
16714 # Exported symbols can be pulled into shared objects from archives
16715 whole_archive_flag_spec_GCJ=' '
16716 archive_cmds_need_lc_GCJ=yes
16717 # This is similar to how AIX traditionally builds it's shared libraries.
16718 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'
16719 fi
16720 fi
16721 ;;
16722
16723 amigaos*)
16724 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)'
16725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16726 hardcode_minus_L_GCJ=yes
16727 # see comment about different semantics on the GNU ld section
16728 ld_shlibs_GCJ=no
16729 ;;
16730
16731 bsdi4*)
16732 export_dynamic_flag_spec_GCJ=-rdynamic
16733 ;;
16734
16735 cygwin* | mingw* | pw32*)
16736 # When not using gcc, we currently assume that we are using
16737 # Microsoft Visual C++.
16738 # hardcode_libdir_flag_spec is actually meaningless, as there is
16739 # no search path for DLLs.
16740 hardcode_libdir_flag_spec_GCJ=' '
16741 allow_undefined_flag_GCJ=unsupported
16742 # Tell ltmain to make .lib files, not .a files.
16743 libext=lib
16744 # Tell ltmain to make .dll files, not .so files.
16745 shrext_cmds=".dll"
16746 # FIXME: Setting linknames here is a bad hack.
16747 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16748 # The linker will automatically build a .lib file if we build a DLL.
16749 old_archive_From_new_cmds_GCJ='true'
16750 # FIXME: Should let the user specify the lib program.
16751 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16752 fix_srcfile_path='`cygpath -w "$srcfile"`'
16753 enable_shared_with_static_runtimes_GCJ=yes
16754 ;;
16755
16756 darwin* | rhapsody*)
16757 if test "$GXX" = yes ; then
16758 archive_cmds_need_lc_GCJ=no
16759 case "$host_os" in
16760 rhapsody* | darwin1.[012])
16761 allow_undefined_flag_GCJ='-undefined suppress'
16762 ;;
16763 *) # Darwin 1.3 on
16764 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16765 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16766 else
16767 case ${MACOSX_DEPLOYMENT_TARGET} in
16768 10.[012])
16769 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16770 ;;
16771 10.*)
16772 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16773 ;;
16774 esac
16775 fi
16776 ;;
16777 esac
16778 lt_int_apple_cc_single_mod=no
16779 output_verbose_link_cmd='echo'
16780 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16781 lt_int_apple_cc_single_mod=yes
16782 fi
16783 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16784 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16785 else
16786 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'
16787 fi
16788 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16789 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16790 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16791 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}'
16792 else
16793 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}'
16794 fi
16795 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}'
16796 hardcode_direct_GCJ=no
16797 hardcode_automatic_GCJ=yes
16798 hardcode_shlibpath_var_GCJ=unsupported
16799 whole_archive_flag_spec_GCJ='-all_load $convenience'
16800 link_all_deplibs_GCJ=yes
16801 else
16802 ld_shlibs_GCJ=no
16803 fi
16804 ;;
16805
16806 dgux*)
16807 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16809 hardcode_shlibpath_var_GCJ=no
16810 ;;
16811
16812 freebsd1*)
16813 ld_shlibs_GCJ=no
16814 ;;
16815
16816 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16817 # support. Future versions do this automatically, but an explicit c++rt0.o
16818 # does not break anything, and helps significantly (at the cost of a little
16819 # extra space).
16820 freebsd2.2*)
16821 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16822 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16823 hardcode_direct_GCJ=yes
16824 hardcode_shlibpath_var_GCJ=no
16825 ;;
16826
16827 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16828 freebsd2*)
16829 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16830 hardcode_direct_GCJ=yes
16831 hardcode_minus_L_GCJ=yes
16832 hardcode_shlibpath_var_GCJ=no
16833 ;;
16834
16835 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16836 freebsd* | kfreebsd*-gnu)
16837 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16838 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16839 hardcode_direct_GCJ=yes
16840 hardcode_shlibpath_var_GCJ=no
16841 ;;
16842
16843 hpux9*)
16844 if test "$GCC" = yes; then
16845 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'
16846 else
16847 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'
16848 fi
16849 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16850 hardcode_libdir_separator_GCJ=:
16851 hardcode_direct_GCJ=yes
16852
16853 # hardcode_minus_L: Not really in the search PATH,
16854 # but as the default location of the library.
16855 hardcode_minus_L_GCJ=yes
16856 export_dynamic_flag_spec_GCJ='${wl}-E'
16857 ;;
16858
16859 hpux10* | hpux11*)
16860 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16861 case "$host_cpu" in
16862 hppa*64*|ia64*)
16863 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16864 ;;
16865 *)
16866 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16867 ;;
16868 esac
16869 else
16870 case "$host_cpu" in
16871 hppa*64*|ia64*)
16872 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16873 ;;
16874 *)
16875 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16876 ;;
16877 esac
16878 fi
16879 if test "$with_gnu_ld" = no; then
16880 case "$host_cpu" in
16881 hppa*64*)
16882 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16883 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16884 hardcode_libdir_separator_GCJ=:
16885 hardcode_direct_GCJ=no
16886 hardcode_shlibpath_var_GCJ=no
16887 ;;
16888 ia64*)
16889 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16890 hardcode_direct_GCJ=no
16891 hardcode_shlibpath_var_GCJ=no
16892
16893 # hardcode_minus_L: Not really in the search PATH,
16894 # but as the default location of the library.
16895 hardcode_minus_L_GCJ=yes
16896 ;;
16897 *)
16898 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16899 hardcode_libdir_separator_GCJ=:
16900 hardcode_direct_GCJ=yes
16901 export_dynamic_flag_spec_GCJ='${wl}-E'
16902
16903 # hardcode_minus_L: Not really in the search PATH,
16904 # but as the default location of the library.
16905 hardcode_minus_L_GCJ=yes
16906 ;;
16907 esac
16908 fi
16909 ;;
16910
16911 irix5* | irix6* | nonstopux*)
16912 if test "$GCC" = yes; then
16913 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'
16914 else
16915 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'
16916 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16917 fi
16918 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16919 hardcode_libdir_separator_GCJ=:
16920 link_all_deplibs_GCJ=yes
16921 ;;
16922
16923 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16925 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16926 else
16927 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16928 fi
16929 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16930 hardcode_direct_GCJ=yes
16931 hardcode_shlibpath_var_GCJ=no
16932 ;;
16933
16934 newsos6)
16935 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16936 hardcode_direct_GCJ=yes
16937 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16938 hardcode_libdir_separator_GCJ=:
16939 hardcode_shlibpath_var_GCJ=no
16940 ;;
16941
16942 openbsd*)
16943 hardcode_direct_GCJ=yes
16944 hardcode_shlibpath_var_GCJ=no
16945 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16946 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16947 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16948 export_dynamic_flag_spec_GCJ='${wl}-E'
16949 else
16950 case $host_os in
16951 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16952 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16953 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16954 ;;
16955 *)
16956 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16957 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16958 ;;
16959 esac
16960 fi
16961 ;;
16962
16963 os2*)
16964 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16965 hardcode_minus_L_GCJ=yes
16966 allow_undefined_flag_GCJ=unsupported
16967 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'
16968 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16969 ;;
16970
16971 osf3*)
16972 if test "$GCC" = yes; then
16973 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16974 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'
16975 else
16976 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16977 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'
16978 fi
16979 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16980 hardcode_libdir_separator_GCJ=:
16981 ;;
16982
16983 osf4* | osf5*) # as osf3* with the addition of -msym flag
16984 if test "$GCC" = yes; then
16985 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16986 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'
16987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16988 else
16989 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16990 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'
16991 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~
16992 $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'
16993
16994 # Both c and cxx compiler support -rpath directly
16995 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16996 fi
16997 hardcode_libdir_separator_GCJ=:
16998 ;;
16999
17000 sco3.2v5*)
17001 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17002 hardcode_shlibpath_var_GCJ=no
17003 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17004 runpath_var=LD_RUN_PATH
17005 hardcode_runpath_var=yes
17006 ;;
17007
17008 solaris*)
17009 no_undefined_flag_GCJ=' -z text'
17010 if test "$GCC" = yes; then
17011 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17012 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17013 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17014 else
17015 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17016 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17018 fi
17019 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17020 hardcode_shlibpath_var_GCJ=no
17021 case $host_os in
17022 solaris2.[0-5] | solaris2.[0-5].*) ;;
17023 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17024 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17025 esac
17026 link_all_deplibs_GCJ=yes
17027 ;;
17028
17029 sunos4*)
17030 if test "x$host_vendor" = xsequent; then
17031 # Use $CC to link under sequent, because it throws in some extra .o
17032 # files that make .init and .fini sections work.
17033 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17034 else
17035 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17036 fi
17037 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17038 hardcode_direct_GCJ=yes
17039 hardcode_minus_L_GCJ=yes
17040 hardcode_shlibpath_var_GCJ=no
17041 ;;
17042
17043 sysv4)
17044 case $host_vendor in
17045 sni)
17046 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17047 hardcode_direct_GCJ=yes # is this really true???
17048 ;;
17049 siemens)
17050 ## LD is ld it makes a PLAMLIB
17051 ## CC just makes a GrossModule.
17052 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17053 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17054 hardcode_direct_GCJ=no
17055 ;;
17056 motorola)
17057 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17058 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17059 ;;
17060 esac
17061 runpath_var='LD_RUN_PATH'
17062 hardcode_shlibpath_var_GCJ=no
17063 ;;
17064
17065 sysv4.3*)
17066 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17067 hardcode_shlibpath_var_GCJ=no
17068 export_dynamic_flag_spec_GCJ='-Bexport'
17069 ;;
17070
17071 sysv4*MP*)
17072 if test -d /usr/nec; then
17073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17074 hardcode_shlibpath_var_GCJ=no
17075 runpath_var=LD_RUN_PATH
17076 hardcode_runpath_var=yes
17077 ld_shlibs_GCJ=yes
17078 fi
17079 ;;
17080
17081 sysv4.2uw2*)
17082 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17083 hardcode_direct_GCJ=yes
17084 hardcode_minus_L_GCJ=no
17085 hardcode_shlibpath_var_GCJ=no
17086 hardcode_runpath_var=yes
17087 runpath_var=LD_RUN_PATH
17088 ;;
17089
17090 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17091 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17092 if test "$GCC" = yes; then
17093 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17094 else
17095 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17096 fi
17097 runpath_var='LD_RUN_PATH'
17098 hardcode_shlibpath_var_GCJ=no
17099 ;;
17100
17101 sysv5*)
17102 no_undefined_flag_GCJ=' -z text'
17103 # $CC -shared without GNU ld will not create a library from C++
17104 # object files and a static libstdc++, better avoid it by now
17105 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17107 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17108 hardcode_libdir_flag_spec_GCJ=
17109 hardcode_shlibpath_var_GCJ=no
17110 runpath_var='LD_RUN_PATH'
17111 ;;
17112
17113 uts4*)
17114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17115 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17116 hardcode_shlibpath_var_GCJ=no
17117 ;;
17118
17119 *)
17120 ld_shlibs_GCJ=no
17121 ;;
17122 esac
17123 fi
17124
17125echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17126echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17127test "$ld_shlibs_GCJ" = no && can_build_shared=no
17128
17129variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17130if test "$GCC" = yes; then
17131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17132fi
17133
17134#
17135# Do we need to explicitly link libc?
17136#
17137case "x$archive_cmds_need_lc_GCJ" in
17138x|xyes)
17139 # Assume -lc should be added
17140 archive_cmds_need_lc_GCJ=yes
17141
17142 if test "$enable_shared" = yes && test "$GCC" = yes; then
17143 case $archive_cmds_GCJ in
17144 *'~'*)
17145 # FIXME: we may have to deal with multi-command sequences.
17146 ;;
17147 '$CC '*)
17148 # Test whether the compiler implicitly links with -lc since on some
17149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17150 # to ld, don't add -lc before -lgcc.
17151 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17152echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17153 $rm conftest*
17154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17155
17156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17157 (eval $ac_compile) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } 2>conftest.err; then
17161 soname=conftest
17162 lib=conftest
17163 libobjs=conftest.$ac_objext
17164 deplibs=
17165 wl=$lt_prog_compiler_wl_GCJ
17166 compiler_flags=-v
17167 linker_flags=-v
17168 verstring=
17169 output_objdir=.
17170 libname=conftest
17171 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17172 allow_undefined_flag_GCJ=
17173 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17174 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }
17178 then
17179 archive_cmds_need_lc_GCJ=no
17180 else
17181 archive_cmds_need_lc_GCJ=yes
17182 fi
17183 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17184 else
17185 cat conftest.err 1>&5
17186 fi
17187 $rm conftest*
17188 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17189echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17190 ;;
17191 esac
17192 fi
17193 ;;
17194esac
17195
17196echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17197echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17198library_names_spec=
17199libname_spec='lib$name'
17200soname_spec=
17201shrext_cmds=".so"
17202postinstall_cmds=
17203postuninstall_cmds=
17204finish_cmds=
17205finish_eval=
17206shlibpath_var=
17207shlibpath_overrides_runpath=unknown
17208version_type=none
17209dynamic_linker="$host_os ld.so"
17210sys_lib_dlsearch_path_spec="/lib /usr/lib"
17211if test "$GCC" = yes; then
17212 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17213 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17214 # if the path contains ";" then we assume it to be the separator
17215 # otherwise default to the standard path separator (i.e. ":") - it is
17216 # assumed that no part of a normal pathname contains ";" but that should
17217 # okay in the real world where ";" in dirpaths is itself problematic.
17218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17219 else
17220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17221 fi
17222else
17223 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17224fi
17225need_lib_prefix=unknown
17226hardcode_into_libs=no
17227
17228# when you set need_version to no, make sure it does not cause -set_version
17229# flags to be left without arguments
17230need_version=unknown
17231
17232case $host_os in
17233aix3*)
17234 version_type=linux
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17236 shlibpath_var=LIBPATH
17237
17238 # AIX 3 has no versioning support, so we append a major version to the name.
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 ;;
17241
17242aix4* | aix5*)
17243 version_type=linux
17244 need_lib_prefix=no
17245 need_version=no
17246 hardcode_into_libs=yes
17247 if test "$host_cpu" = ia64; then
17248 # AIX 5 supports IA64
17249 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17250 shlibpath_var=LD_LIBRARY_PATH
17251 else
17252 # With GCC up to 2.95.x, collect2 would create an import file
17253 # for dependence libraries. The import file would start with
17254 # the line `#! .'. This would cause the generated library to
17255 # depend on `.', always an invalid library. This was fixed in
17256 # development snapshots of GCC prior to 3.0.
17257 case $host_os in
17258 aix4 | aix4.[01] | aix4.[01].*)
17259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17260 echo ' yes '
17261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17262 :
17263 else
17264 can_build_shared=no
17265 fi
17266 ;;
17267 esac
17268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17269 # soname into executable. Probably we can add versioning support to
17270 # collect2, so additional links can be useful in future.
17271 if test "$aix_use_runtimelinking" = yes; then
17272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17273 # instead of lib<name>.a to let people know that these are not
17274 # typical AIX shared libraries.
17275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276 else
17277 # We preserve .a as extension for shared libraries through AIX4.2
17278 # and later when we are not doing run time linking.
17279 library_names_spec='${libname}${release}.a $libname.a'
17280 soname_spec='${libname}${release}${shared_ext}$major'
17281 fi
17282 shlibpath_var=LIBPATH
17283 fi
17284 ;;
17285
17286amigaos*)
17287 library_names_spec='$libname.ixlibrary $libname.a'
17288 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17289 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'
17290 ;;
17291
17292beos*)
17293 library_names_spec='${libname}${shared_ext}'
17294 dynamic_linker="$host_os ld.so"
17295 shlibpath_var=LIBRARY_PATH
17296 ;;
17297
17298bsdi4*)
17299 version_type=linux
17300 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17307 # the default ld.so.conf also contains /usr/contrib/lib and
17308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17309 # libtool to hard-code these into programs
17310 ;;
17311
17312cygwin* | mingw* | pw32*)
17313 version_type=windows
17314 shrext_cmds=".dll"
17315 need_version=no
17316 need_lib_prefix=no
17317
17318 case $GCC,$host_os in
17319 yes,cygwin* | yes,mingw* | yes,pw32*)
17320 library_names_spec='$libname.dll.a'
17321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17322 postinstall_cmds='base_file=`basename \${file}`~
17323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17324 dldir=$destdir/`dirname \$dlpath`~
17325 test -d \$dldir || mkdir -p \$dldir~
17326 $install_prog $dir/$dlname \$dldir/$dlname'
17327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17328 dlpath=$dir/\$dldll~
17329 $rm \$dlpath'
17330 shlibpath_overrides_runpath=yes
17331
17332 case $host_os in
17333 cygwin*)
17334 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17335 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17336 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17337 ;;
17338 mingw*)
17339 # MinGW DLLs use traditional 'lib' prefix
17340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17342 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17343 # It is most probably a Windows format PATH printed by
17344 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17345 # path with ; separators, and with drive letters. We can handle the
17346 # drive letters (cygwin fileutils understands them), so leave them,
17347 # especially as we might pass files found there to a mingw objdump,
17348 # which wouldn't understand a cygwinified path. Ahh.
17349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17350 else
17351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17352 fi
17353 ;;
17354 pw32*)
17355 # pw32 DLLs use 'pw' prefix rather than 'lib'
17356 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17357 ;;
17358 esac
17359 ;;
17360
17361 *)
17362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17363 ;;
17364 esac
17365 dynamic_linker='Win32 ld.exe'
17366 # FIXME: first we should search . and the directory the executable is in
17367 shlibpath_var=PATH
17368 ;;
17369
17370darwin* | rhapsody*)
17371 dynamic_linker="$host_os dyld"
17372 version_type=darwin
17373 need_lib_prefix=no
17374 need_version=no
17375 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17376 soname_spec='${libname}${release}${major}$shared_ext'
17377 shlibpath_overrides_runpath=yes
17378 shlibpath_var=DYLD_LIBRARY_PATH
17379 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17380 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17381 if test "$GCC" = yes; then
17382 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"`
17383 else
17384 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17385 fi
17386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17387 ;;
17388
17389dgux*)
17390 version_type=linux
17391 need_lib_prefix=no
17392 need_version=no
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 ;;
17397
17398freebsd1*)
17399 dynamic_linker=no
17400 ;;
17401
17402kfreebsd*-gnu)
17403 version_type=linux
17404 need_lib_prefix=no
17405 need_version=no
17406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17407 soname_spec='${libname}${release}${shared_ext}$major'
17408 shlibpath_var=LD_LIBRARY_PATH
17409 shlibpath_overrides_runpath=no
17410 hardcode_into_libs=yes
17411 dynamic_linker='GNU ld.so'
17412 ;;
17413
17414freebsd*)
17415 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17416 version_type=freebsd-$objformat
17417 case $version_type in
17418 freebsd-elf*)
17419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17420 need_version=no
17421 need_lib_prefix=no
17422 ;;
17423 freebsd-*)
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17425 need_version=yes
17426 ;;
17427 esac
17428 shlibpath_var=LD_LIBRARY_PATH
17429 case $host_os in
17430 freebsd2*)
17431 shlibpath_overrides_runpath=yes
17432 ;;
17433 freebsd3.01* | freebsdelf3.01*)
17434 shlibpath_overrides_runpath=yes
17435 hardcode_into_libs=yes
17436 ;;
17437 *) # from 3.2 on
17438 shlibpath_overrides_runpath=no
17439 hardcode_into_libs=yes
17440 ;;
17441 esac
17442 ;;
17443
17444gnu*)
17445 version_type=linux
17446 need_lib_prefix=no
17447 need_version=no
17448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17449 soname_spec='${libname}${release}${shared_ext}$major'
17450 shlibpath_var=LD_LIBRARY_PATH
17451 hardcode_into_libs=yes
17452 ;;
17453
17454hpux9* | hpux10* | hpux11*)
17455 # Give a soname corresponding to the major version so that dld.sl refuses to
17456 # link against other versions.
17457 version_type=sunos
17458 need_lib_prefix=no
17459 need_version=no
17460 case "$host_cpu" in
17461 ia64*)
17462 shrext_cmds='.so'
17463 hardcode_into_libs=yes
17464 dynamic_linker="$host_os dld.so"
17465 shlibpath_var=LD_LIBRARY_PATH
17466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17468 soname_spec='${libname}${release}${shared_ext}$major'
17469 if test "X$HPUX_IA64_MODE" = X32; then
17470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17471 else
17472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17473 fi
17474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17475 ;;
17476 hppa*64*)
17477 shrext_cmds='.sl'
17478 hardcode_into_libs=yes
17479 dynamic_linker="$host_os dld.sl"
17480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17483 soname_spec='${libname}${release}${shared_ext}$major'
17484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17486 ;;
17487 *)
17488 shrext_cmds='.sl'
17489 dynamic_linker="$host_os dld.sl"
17490 shlibpath_var=SHLIB_PATH
17491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17493 soname_spec='${libname}${release}${shared_ext}$major'
17494 ;;
17495 esac
17496 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17497 postinstall_cmds='chmod 555 $lib'
17498 ;;
17499
17500irix5* | irix6* | nonstopux*)
17501 case $host_os in
17502 nonstopux*) version_type=nonstopux ;;
17503 *)
17504 if test "$lt_cv_prog_gnu_ld" = yes; then
17505 version_type=linux
17506 else
17507 version_type=irix
17508 fi ;;
17509 esac
17510 need_lib_prefix=no
17511 need_version=no
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17514 case $host_os in
17515 irix5* | nonstopux*)
17516 libsuff= shlibsuff=
17517 ;;
17518 *)
17519 case $LD in # libtool.m4 will add one of these switches to LD
17520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17521 libsuff= shlibsuff= libmagic=32-bit;;
17522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17523 libsuff=32 shlibsuff=N32 libmagic=N32;;
17524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17526 *) libsuff= shlibsuff= libmagic=never-match;;
17527 esac
17528 ;;
17529 esac
17530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17531 shlibpath_overrides_runpath=no
17532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17534 hardcode_into_libs=yes
17535 ;;
17536
17537# No shared lib support for Linux oldld, aout, or coff.
17538linux*oldld* | linux*aout* | linux*coff*)
17539 dynamic_linker=no
17540 ;;
17541
17542# This must be Linux ELF.
17543linux*)
17544 version_type=linux
17545 need_lib_prefix=no
17546 need_version=no
17547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17548 soname_spec='${libname}${release}${shared_ext}$major'
17549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17550 shlibpath_var=LD_LIBRARY_PATH
17551 shlibpath_overrides_runpath=no
17552 # This implies no fast_install, which is unacceptable.
17553 # Some rework will be needed to allow for fast_install
17554 # before this can be enabled.
17555 hardcode_into_libs=yes
17556
17557 # Append ld.so.conf contents to the search path
17558 if test -f /etc/ld.so.conf; then
17559 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17561 fi
17562
17563 # We used to test for /lib/ld.so.1 and disable shared libraries on
17564 # powerpc, because MkLinux only supported shared libraries with the
17565 # GNU dynamic linker. Since this was broken with cross compilers,
17566 # most powerpc-linux boxes support dynamic linking these days and
17567 # people can always --disable-shared, the test was removed, and we
17568 # assume the GNU/Linux dynamic linker is in use.
17569 dynamic_linker='GNU/Linux ld.so'
17570 ;;
17571
17572netbsdelf*-gnu)
17573 version_type=linux
17574 need_lib_prefix=no
17575 need_version=no
17576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17577 soname_spec='${libname}${release}${shared_ext}$major'
17578 shlibpath_var=LD_LIBRARY_PATH
17579 shlibpath_overrides_runpath=no
17580 hardcode_into_libs=yes
17581 dynamic_linker='NetBSD ld.elf_so'
17582 ;;
17583
17584knetbsd*-gnu)
17585 version_type=linux
17586 need_lib_prefix=no
17587 need_version=no
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17589 soname_spec='${libname}${release}${shared_ext}$major'
17590 shlibpath_var=LD_LIBRARY_PATH
17591 shlibpath_overrides_runpath=no
17592 hardcode_into_libs=yes
17593 dynamic_linker='GNU ld.so'
17594 ;;
17595
17596netbsd*)
17597 version_type=sunos
17598 need_lib_prefix=no
17599 need_version=no
17600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17603 dynamic_linker='NetBSD (a.out) ld.so'
17604 else
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17606 soname_spec='${libname}${release}${shared_ext}$major'
17607 dynamic_linker='NetBSD ld.elf_so'
17608 fi
17609 shlibpath_var=LD_LIBRARY_PATH
17610 shlibpath_overrides_runpath=yes
17611 hardcode_into_libs=yes
17612 ;;
17613
17614newsos6)
17615 version_type=linux
17616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17617 shlibpath_var=LD_LIBRARY_PATH
17618 shlibpath_overrides_runpath=yes
17619 ;;
17620
17621nto-qnx*)
17622 version_type=linux
17623 need_lib_prefix=no
17624 need_version=no
17625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17626 soname_spec='${libname}${release}${shared_ext}$major'
17627 shlibpath_var=LD_LIBRARY_PATH
17628 shlibpath_overrides_runpath=yes
17629 ;;
17630
17631openbsd*)
17632 version_type=sunos
17633 need_lib_prefix=no
17634 need_version=yes
17635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17637 shlibpath_var=LD_LIBRARY_PATH
17638 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17639 case $host_os in
17640 openbsd2.[89] | openbsd2.[89].*)
17641 shlibpath_overrides_runpath=no
17642 ;;
17643 *)
17644 shlibpath_overrides_runpath=yes
17645 ;;
17646 esac
17647 else
17648 shlibpath_overrides_runpath=yes
17649 fi
17650 ;;
17651
17652os2*)
17653 libname_spec='$name'
17654 shrext_cmds=".dll"
17655 need_lib_prefix=no
17656 library_names_spec='$libname${shared_ext} $libname.a'
17657 dynamic_linker='OS/2 ld.exe'
17658 shlibpath_var=LIBPATH
17659 ;;
17660
17661osf3* | osf4* | osf5*)
17662 version_type=osf
17663 need_lib_prefix=no
17664 need_version=no
17665 soname_spec='${libname}${release}${shared_ext}$major'
17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17667 shlibpath_var=LD_LIBRARY_PATH
17668 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17669 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17670 ;;
17671
17672sco3.2v5*)
17673 version_type=osf
17674 soname_spec='${libname}${release}${shared_ext}$major'
17675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17676 shlibpath_var=LD_LIBRARY_PATH
17677 ;;
17678
17679solaris*)
17680 version_type=linux
17681 need_lib_prefix=no
17682 need_version=no
17683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684 soname_spec='${libname}${release}${shared_ext}$major'
17685 shlibpath_var=LD_LIBRARY_PATH
17686 shlibpath_overrides_runpath=yes
17687 hardcode_into_libs=yes
17688 # ldd complains unless libraries are executable
17689 postinstall_cmds='chmod +x $lib'
17690 ;;
17691
17692sunos4*)
17693 version_type=sunos
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17695 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17696 shlibpath_var=LD_LIBRARY_PATH
17697 shlibpath_overrides_runpath=yes
17698 if test "$with_gnu_ld" = yes; then
17699 need_lib_prefix=no
17700 fi
17701 need_version=yes
17702 ;;
17703
17704sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17705 version_type=linux
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17707 soname_spec='${libname}${release}${shared_ext}$major'
17708 shlibpath_var=LD_LIBRARY_PATH
17709 case $host_vendor in
17710 sni)
17711 shlibpath_overrides_runpath=no
17712 need_lib_prefix=no
17713 export_dynamic_flag_spec='${wl}-Blargedynsym'
17714 runpath_var=LD_RUN_PATH
17715 ;;
17716 siemens)
17717 need_lib_prefix=no
17718 ;;
17719 motorola)
17720 need_lib_prefix=no
17721 need_version=no
17722 shlibpath_overrides_runpath=no
17723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17724 ;;
17725 esac
17726 ;;
17727
17728sysv4*MP*)
17729 if test -d /usr/nec ;then
17730 version_type=linux
17731 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17732 soname_spec='$libname${shared_ext}.$major'
17733 shlibpath_var=LD_LIBRARY_PATH
17734 fi
17735 ;;
17736
17737uts4*)
17738 version_type=linux
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740 soname_spec='${libname}${release}${shared_ext}$major'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 ;;
17743
17744*)
17745 dynamic_linker=no
17746 ;;
17747esac
17748echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17749echo "${ECHO_T}$dynamic_linker" >&6
17750test "$dynamic_linker" = no && can_build_shared=no
17751
17752echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17753echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17754hardcode_action_GCJ=
17755if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17756 test -n "$runpath_var GCJ" || \
17757 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17758
17759 # We can hardcode non-existant directories.
17760 if test "$hardcode_direct_GCJ" != no &&
17761 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17762 # have to relink, otherwise we might link with an installed library
17763 # when we should be linking with a yet-to-be-installed one
17764 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17765 test "$hardcode_minus_L_GCJ" != no; then
17766 # Linking always hardcodes the temporary library directory.
17767 hardcode_action_GCJ=relink
17768 else
17769 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17770 hardcode_action_GCJ=immediate
17771 fi
17772else
17773 # We cannot hardcode anything, or else we can only hardcode existing
17774 # directories.
17775 hardcode_action_GCJ=unsupported
17776fi
17777echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17778echo "${ECHO_T}$hardcode_action_GCJ" >&6
17779
17780if test "$hardcode_action_GCJ" = relink; then
17781 # Fast installation is not supported
17782 enable_fast_install=no
17783elif test "$shlibpath_overrides_runpath" = yes ||
17784 test "$enable_shared" = no; then
17785 # Fast installation is not necessary
17786 enable_fast_install=needless
17787fi
17788
17789striplib=
17790old_striplib=
17791echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17792echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17793if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17794 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17795 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17796 echo "$as_me:$LINENO: result: yes" >&5
17797echo "${ECHO_T}yes" >&6
17798else
17799# FIXME - insert some real tests, host_os isn't really good enough
17800 case $host_os in
17801 darwin*)
17802 if test -n "$STRIP" ; then
17803 striplib="$STRIP -x"
17804 echo "$as_me:$LINENO: result: yes" >&5
17805echo "${ECHO_T}yes" >&6
17806 else
17807 echo "$as_me:$LINENO: result: no" >&5
17808echo "${ECHO_T}no" >&6
17809fi
17810 ;;
17811 *)
17812 echo "$as_me:$LINENO: result: no" >&5
17813echo "${ECHO_T}no" >&6
17814 ;;
17815 esac
17816fi
17817
17818if test "x$enable_dlopen" != xyes; then
17819 enable_dlopen=unknown
17820 enable_dlopen_self=unknown
17821 enable_dlopen_self_static=unknown
17822else
17823 lt_cv_dlopen=no
17824 lt_cv_dlopen_libs=
17825
17826 case $host_os in
17827 beos*)
17828 lt_cv_dlopen="load_add_on"
17829 lt_cv_dlopen_libs=
17830 lt_cv_dlopen_self=yes
17831 ;;
17832
17833 mingw* | pw32*)
17834 lt_cv_dlopen="LoadLibrary"
17835 lt_cv_dlopen_libs=
17836 ;;
17837
17838 cygwin*)
17839 lt_cv_dlopen="dlopen"
17840 lt_cv_dlopen_libs=
17841 ;;
17842
17843 darwin*)
17844 # if libdl is installed we need to link against it
17845 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17846echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17847if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17849else
17850 ac_check_lib_save_LIBS=$LIBS
17851LIBS="-ldl $LIBS"
17852cat >conftest.$ac_ext <<_ACEOF
17853/* confdefs.h. */
17854_ACEOF
17855cat confdefs.h >>conftest.$ac_ext
17856cat >>conftest.$ac_ext <<_ACEOF
17857/* end confdefs.h. */
17858
17859/* Override any gcc2 internal prototype to avoid an error. */
17860#ifdef __cplusplus
17861extern "C"
17862#endif
17863/* We use char because int might match the return type of a gcc2
17864 builtin and then its argument prototype would still apply. */
17865char dlopen ();
17866int
17867main ()
17868{
17869dlopen ();
17870 ;
17871 return 0;
17872}
17873_ACEOF
17874rm -f conftest.$ac_objext conftest$ac_exeext
17875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17876 (eval $ac_link) 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885 (eval $ac_try) 2>&5
17886 ac_status=$?
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; } &&
17889 { ac_try='test -s conftest$ac_exeext'
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; }; then
17895 ac_cv_lib_dl_dlopen=yes
17896else
17897 echo "$as_me: failed program was:" >&5
17898sed 's/^/| /' conftest.$ac_ext >&5
17899
17900ac_cv_lib_dl_dlopen=no
17901fi
17902rm -f conftest.err conftest.$ac_objext \
17903 conftest$ac_exeext conftest.$ac_ext
17904LIBS=$ac_check_lib_save_LIBS
17905fi
17906echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17907echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17908if test $ac_cv_lib_dl_dlopen = yes; then
17909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17910else
17911
17912 lt_cv_dlopen="dyld"
17913 lt_cv_dlopen_libs=
17914 lt_cv_dlopen_self=yes
17915
17916fi
17917
17918 ;;
17919
17920 *)
17921 echo "$as_me:$LINENO: checking for shl_load" >&5
17922echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17923if test "${ac_cv_func_shl_load+set}" = set; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17925else
17926 cat >conftest.$ac_ext <<_ACEOF
17927/* confdefs.h. */
17928_ACEOF
17929cat confdefs.h >>conftest.$ac_ext
17930cat >>conftest.$ac_ext <<_ACEOF
17931/* end confdefs.h. */
17932/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17934#define shl_load innocuous_shl_load
17935
17936/* System header to define __stub macros and hopefully few prototypes,
17937 which can conflict with char shl_load (); below.
17938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17939 <limits.h> exists even on freestanding compilers. */
17940
17941#ifdef __STDC__
17942# include <limits.h>
17943#else
17944# include <assert.h>
17945#endif
17946
17947#undef shl_load
17948
17949/* Override any gcc2 internal prototype to avoid an error. */
17950#ifdef __cplusplus
17951extern "C"
17952{
17953#endif
17954/* We use char because int might match the return type of a gcc2
17955 builtin and then its argument prototype would still apply. */
17956char shl_load ();
17957/* The GNU C library defines this for functions which it implements
17958 to always fail with ENOSYS. Some functions are actually named
17959 something starting with __ and the normal name is an alias. */
17960#if defined (__stub_shl_load) || defined (__stub___shl_load)
17961choke me
17962#else
17963char (*f) () = shl_load;
17964#endif
17965#ifdef __cplusplus
17966}
17967#endif
17968
17969int
17970main ()
17971{
17972return f != shl_load;
17973 ;
17974 return 0;
17975}
17976_ACEOF
17977rm -f conftest.$ac_objext conftest$ac_exeext
17978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17979 (eval $ac_link) 2>conftest.er1
17980 ac_status=$?
17981 grep -v '^ *+' conftest.er1 >conftest.err
17982 rm -f conftest.er1
17983 cat conftest.err >&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); } &&
17986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; } &&
17992 { ac_try='test -s conftest$ac_exeext'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 ac_cv_func_shl_load=yes
17999else
18000 echo "$as_me: failed program was:" >&5
18001sed 's/^/| /' conftest.$ac_ext >&5
18002
18003ac_cv_func_shl_load=no
18004fi
18005rm -f conftest.err conftest.$ac_objext \
18006 conftest$ac_exeext conftest.$ac_ext
18007fi
18008echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18009echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18010if test $ac_cv_func_shl_load = yes; then
18011 lt_cv_dlopen="shl_load"
18012else
18013 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18014echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18015if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18016 echo $ECHO_N "(cached) $ECHO_C" >&6
18017else
18018 ac_check_lib_save_LIBS=$LIBS
18019LIBS="-ldld $LIBS"
18020cat >conftest.$ac_ext <<_ACEOF
18021/* confdefs.h. */
18022_ACEOF
18023cat confdefs.h >>conftest.$ac_ext
18024cat >>conftest.$ac_ext <<_ACEOF
18025/* end confdefs.h. */
18026
18027/* Override any gcc2 internal prototype to avoid an error. */
18028#ifdef __cplusplus
18029extern "C"
18030#endif
18031/* We use char because int might match the return type of a gcc2
18032 builtin and then its argument prototype would still apply. */
18033char shl_load ();
18034int
18035main ()
18036{
18037shl_load ();
18038 ;
18039 return 0;
18040}
18041_ACEOF
18042rm -f conftest.$ac_objext conftest$ac_exeext
18043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18044 (eval $ac_link) 2>conftest.er1
18045 ac_status=$?
18046 grep -v '^ *+' conftest.er1 >conftest.err
18047 rm -f conftest.er1
18048 cat conftest.err >&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
18051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; } &&
18057 { ac_try='test -s conftest$ac_exeext'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; }; then
18063 ac_cv_lib_dld_shl_load=yes
18064else
18065 echo "$as_me: failed program was:" >&5
18066sed 's/^/| /' conftest.$ac_ext >&5
18067
18068ac_cv_lib_dld_shl_load=no
18069fi
18070rm -f conftest.err conftest.$ac_objext \
18071 conftest$ac_exeext conftest.$ac_ext
18072LIBS=$ac_check_lib_save_LIBS
18073fi
18074echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18075echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18076if test $ac_cv_lib_dld_shl_load = yes; then
18077 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18078else
18079 echo "$as_me:$LINENO: checking for dlopen" >&5
18080echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18081if test "${ac_cv_func_dlopen+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18083else
18084 cat >conftest.$ac_ext <<_ACEOF
18085/* confdefs.h. */
18086_ACEOF
18087cat confdefs.h >>conftest.$ac_ext
18088cat >>conftest.$ac_ext <<_ACEOF
18089/* end confdefs.h. */
18090/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18092#define dlopen innocuous_dlopen
18093
18094/* System header to define __stub macros and hopefully few prototypes,
18095 which can conflict with char dlopen (); below.
18096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18097 <limits.h> exists even on freestanding compilers. */
18098
18099#ifdef __STDC__
18100# include <limits.h>
18101#else
18102# include <assert.h>
18103#endif
18104
18105#undef dlopen
18106
18107/* Override any gcc2 internal prototype to avoid an error. */
18108#ifdef __cplusplus
18109extern "C"
18110{
18111#endif
18112/* We use char because int might match the return type of a gcc2
18113 builtin and then its argument prototype would still apply. */
18114char dlopen ();
18115/* The GNU C library defines this for functions which it implements
18116 to always fail with ENOSYS. Some functions are actually named
18117 something starting with __ and the normal name is an alias. */
18118#if defined (__stub_dlopen) || defined (__stub___dlopen)
18119choke me
18120#else
18121char (*f) () = dlopen;
18122#endif
18123#ifdef __cplusplus
18124}
18125#endif
18126
18127int
18128main ()
18129{
18130return f != dlopen;
18131 ;
18132 return 0;
18133}
18134_ACEOF
18135rm -f conftest.$ac_objext conftest$ac_exeext
18136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18137 (eval $ac_link) 2>conftest.er1
18138 ac_status=$?
18139 grep -v '^ *+' conftest.er1 >conftest.err
18140 rm -f conftest.er1
18141 cat conftest.err >&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } &&
18144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest$ac_exeext'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 ac_cv_func_dlopen=yes
18157else
18158 echo "$as_me: failed program was:" >&5
18159sed 's/^/| /' conftest.$ac_ext >&5
18160
18161ac_cv_func_dlopen=no
18162fi
18163rm -f conftest.err conftest.$ac_objext \
18164 conftest$ac_exeext conftest.$ac_ext
18165fi
18166echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18167echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18168if test $ac_cv_func_dlopen = yes; then
18169 lt_cv_dlopen="dlopen"
18170else
18171 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18172echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18173if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18175else
18176 ac_check_lib_save_LIBS=$LIBS
18177LIBS="-ldl $LIBS"
18178cat >conftest.$ac_ext <<_ACEOF
18179/* confdefs.h. */
18180_ACEOF
18181cat confdefs.h >>conftest.$ac_ext
18182cat >>conftest.$ac_ext <<_ACEOF
18183/* end confdefs.h. */
18184
18185/* Override any gcc2 internal prototype to avoid an error. */
18186#ifdef __cplusplus
18187extern "C"
18188#endif
18189/* We use char because int might match the return type of a gcc2
18190 builtin and then its argument prototype would still apply. */
18191char dlopen ();
18192int
18193main ()
18194{
18195dlopen ();
18196 ;
18197 return 0;
18198}
18199_ACEOF
18200rm -f conftest.$ac_objext conftest$ac_exeext
18201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18202 (eval $ac_link) 2>conftest.er1
18203 ac_status=$?
18204 grep -v '^ *+' conftest.er1 >conftest.err
18205 rm -f conftest.er1
18206 cat conftest.err >&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } &&
18209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest$ac_exeext'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_cv_lib_dl_dlopen=yes
18222else
18223 echo "$as_me: failed program was:" >&5
18224sed 's/^/| /' conftest.$ac_ext >&5
18225
18226ac_cv_lib_dl_dlopen=no
18227fi
18228rm -f conftest.err conftest.$ac_objext \
18229 conftest$ac_exeext conftest.$ac_ext
18230LIBS=$ac_check_lib_save_LIBS
18231fi
18232echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18233echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18234if test $ac_cv_lib_dl_dlopen = yes; then
18235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18236else
18237 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18238echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18239if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18241else
18242 ac_check_lib_save_LIBS=$LIBS
18243LIBS="-lsvld $LIBS"
18244cat >conftest.$ac_ext <<_ACEOF
18245/* confdefs.h. */
18246_ACEOF
18247cat confdefs.h >>conftest.$ac_ext
18248cat >>conftest.$ac_ext <<_ACEOF
18249/* end confdefs.h. */
18250
18251/* Override any gcc2 internal prototype to avoid an error. */
18252#ifdef __cplusplus
18253extern "C"
18254#endif
18255/* We use char because int might match the return type of a gcc2
18256 builtin and then its argument prototype would still apply. */
18257char dlopen ();
18258int
18259main ()
18260{
18261dlopen ();
18262 ;
18263 return 0;
18264}
18265_ACEOF
18266rm -f conftest.$ac_objext conftest$ac_exeext
18267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18268 (eval $ac_link) 2>conftest.er1
18269 ac_status=$?
18270 grep -v '^ *+' conftest.er1 >conftest.err
18271 rm -f conftest.er1
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try='test -s conftest$ac_exeext'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; }; then
18287 ac_cv_lib_svld_dlopen=yes
18288else
18289 echo "$as_me: failed program was:" >&5
18290sed 's/^/| /' conftest.$ac_ext >&5
18291
18292ac_cv_lib_svld_dlopen=no
18293fi
18294rm -f conftest.err conftest.$ac_objext \
18295 conftest$ac_exeext conftest.$ac_ext
18296LIBS=$ac_check_lib_save_LIBS
18297fi
18298echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18299echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18300if test $ac_cv_lib_svld_dlopen = yes; then
18301 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18302else
18303 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18304echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18305if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18307else
18308 ac_check_lib_save_LIBS=$LIBS
18309LIBS="-ldld $LIBS"
18310cat >conftest.$ac_ext <<_ACEOF
18311/* confdefs.h. */
18312_ACEOF
18313cat confdefs.h >>conftest.$ac_ext
18314cat >>conftest.$ac_ext <<_ACEOF
18315/* end confdefs.h. */
18316
18317/* Override any gcc2 internal prototype to avoid an error. */
18318#ifdef __cplusplus
18319extern "C"
18320#endif
18321/* We use char because int might match the return type of a gcc2
18322 builtin and then its argument prototype would still apply. */
18323char dld_link ();
18324int
18325main ()
18326{
18327dld_link ();
18328 ;
18329 return 0;
18330}
18331_ACEOF
18332rm -f conftest.$ac_objext conftest$ac_exeext
18333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18334 (eval $ac_link) 2>conftest.er1
18335 ac_status=$?
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
18341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest$ac_exeext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_cv_lib_dld_dld_link=yes
18354else
18355 echo "$as_me: failed program was:" >&5
18356sed 's/^/| /' conftest.$ac_ext >&5
18357
18358ac_cv_lib_dld_dld_link=no
18359fi
18360rm -f conftest.err conftest.$ac_objext \
18361 conftest$ac_exeext conftest.$ac_ext
18362LIBS=$ac_check_lib_save_LIBS
18363fi
18364echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18365echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18366if test $ac_cv_lib_dld_dld_link = yes; then
18367 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18368fi
18369
18370
18371fi
18372
18373
18374fi
18375
18376
18377fi
18378
18379
18380fi
18381
18382
18383fi
18384
18385 ;;
18386 esac
18387
18388 if test "x$lt_cv_dlopen" != xno; then
18389 enable_dlopen=yes
18390 else
18391 enable_dlopen=no
18392 fi
18393
18394 case $lt_cv_dlopen in
18395 dlopen)
18396 save_CPPFLAGS="$CPPFLAGS"
18397 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18398
18399 save_LDFLAGS="$LDFLAGS"
18400 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18401
18402 save_LIBS="$LIBS"
18403 LIBS="$lt_cv_dlopen_libs $LIBS"
18404
18405 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18406echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18407if test "${lt_cv_dlopen_self+set}" = set; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18409else
18410 if test "$cross_compiling" = yes; then :
18411 lt_cv_dlopen_self=cross
18412else
18413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18414 lt_status=$lt_dlunknown
18415 cat > conftest.$ac_ext <<EOF
18416#line 18416 "configure"
18417#include "confdefs.h"
18418
18419#if HAVE_DLFCN_H
18420#include <dlfcn.h>
18421#endif
18422
18423#include <stdio.h>
18424
18425#ifdef RTLD_GLOBAL
18426# define LT_DLGLOBAL RTLD_GLOBAL
18427#else
18428# ifdef DL_GLOBAL
18429# define LT_DLGLOBAL DL_GLOBAL
18430# else
18431# define LT_DLGLOBAL 0
18432# endif
18433#endif
18434
18435/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18436 find out it does not work in some platform. */
18437#ifndef LT_DLLAZY_OR_NOW
18438# ifdef RTLD_LAZY
18439# define LT_DLLAZY_OR_NOW RTLD_LAZY
18440# else
18441# ifdef DL_LAZY
18442# define LT_DLLAZY_OR_NOW DL_LAZY
18443# else
18444# ifdef RTLD_NOW
18445# define LT_DLLAZY_OR_NOW RTLD_NOW
18446# else
18447# ifdef DL_NOW
18448# define LT_DLLAZY_OR_NOW DL_NOW
18449# else
18450# define LT_DLLAZY_OR_NOW 0
18451# endif
18452# endif
18453# endif
18454# endif
18455#endif
18456
18457#ifdef __cplusplus
18458extern "C" void exit (int);
18459#endif
18460
18461void fnord() { int i=42;}
18462int main ()
18463{
18464 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18465 int status = $lt_dlunknown;
18466
18467 if (self)
18468 {
18469 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18470 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18471 /* dlclose (self); */
18472 }
18473
18474 exit (status);
18475}
18476EOF
18477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18478 (eval $ac_link) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18482 (./conftest; exit; ) 2>/dev/null
18483 lt_status=$?
18484 case x$lt_status in
18485 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18486 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18487 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18488 esac
18489 else :
18490 # compilation failed
18491 lt_cv_dlopen_self=no
18492 fi
18493fi
18494rm -fr conftest*
18495
18496
18497fi
18498echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18499echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18500
18501 if test "x$lt_cv_dlopen_self" = xyes; then
18502 LDFLAGS="$LDFLAGS $link_static_flag"
18503 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18504echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18505if test "${lt_cv_dlopen_self_static+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507else
18508 if test "$cross_compiling" = yes; then :
18509 lt_cv_dlopen_self_static=cross
18510else
18511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18512 lt_status=$lt_dlunknown
18513 cat > conftest.$ac_ext <<EOF
18514#line 18514 "configure"
18515#include "confdefs.h"
18516
18517#if HAVE_DLFCN_H
18518#include <dlfcn.h>
18519#endif
18520
18521#include <stdio.h>
18522
18523#ifdef RTLD_GLOBAL
18524# define LT_DLGLOBAL RTLD_GLOBAL
18525#else
18526# ifdef DL_GLOBAL
18527# define LT_DLGLOBAL DL_GLOBAL
18528# else
18529# define LT_DLGLOBAL 0
18530# endif
18531#endif
18532
18533/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18534 find out it does not work in some platform. */
18535#ifndef LT_DLLAZY_OR_NOW
18536# ifdef RTLD_LAZY
18537# define LT_DLLAZY_OR_NOW RTLD_LAZY
18538# else
18539# ifdef DL_LAZY
18540# define LT_DLLAZY_OR_NOW DL_LAZY
18541# else
18542# ifdef RTLD_NOW
18543# define LT_DLLAZY_OR_NOW RTLD_NOW
18544# else
18545# ifdef DL_NOW
18546# define LT_DLLAZY_OR_NOW DL_NOW
18547# else
18548# define LT_DLLAZY_OR_NOW 0
18549# endif
18550# endif
18551# endif
18552# endif
18553#endif
18554
18555#ifdef __cplusplus
18556extern "C" void exit (int);
18557#endif
18558
18559void fnord() { int i=42;}
18560int main ()
18561{
18562 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18563 int status = $lt_dlunknown;
18564
18565 if (self)
18566 {
18567 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18568 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18569 /* dlclose (self); */
18570 }
18571
18572 exit (status);
18573}
18574EOF
18575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18576 (eval $ac_link) 2>&5
18577 ac_status=$?
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18580 (./conftest; exit; ) 2>/dev/null
18581 lt_status=$?
18582 case x$lt_status in
18583 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18584 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18585 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18586 esac
18587 else :
18588 # compilation failed
18589 lt_cv_dlopen_self_static=no
18590 fi
18591fi
18592rm -fr conftest*
18593
18594
18595fi
18596echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18597echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18598 fi
18599
18600 CPPFLAGS="$save_CPPFLAGS"
18601 LDFLAGS="$save_LDFLAGS"
18602 LIBS="$save_LIBS"
18603 ;;
18604 esac
18605
18606 case $lt_cv_dlopen_self in
18607 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18608 *) enable_dlopen_self=unknown ;;
18609 esac
18610
18611 case $lt_cv_dlopen_self_static in
18612 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18613 *) enable_dlopen_self_static=unknown ;;
18614 esac
18615fi
18616
18617
18618# The else clause should only fire when bootstrapping the
18619# libtool distribution, otherwise you forgot to ship ltmain.sh
18620# with your package, and you will get complaints that there are
18621# no rules to generate ltmain.sh.
18622if test -f "$ltmain"; then
18623 # See if we are running on zsh, and set the options which allow our commands through
18624 # without removal of \ escapes.
18625 if test -n "${ZSH_VERSION+set}" ; then
18626 setopt NO_GLOB_SUBST
18627 fi
18628 # Now quote all the things that may contain metacharacters while being
18629 # careful not to overquote the AC_SUBSTed values. We take copies of the
18630 # variables and quote the copies for generation of the libtool script.
18631 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18632 SED SHELL STRIP \
18633 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18634 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18635 deplibs_check_method reload_flag reload_cmds need_locks \
18636 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18637 lt_cv_sys_global_symbol_to_c_name_address \
18638 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18639 old_postinstall_cmds old_postuninstall_cmds \
18640 compiler_GCJ \
18641 CC_GCJ \
18642 LD_GCJ \
18643 lt_prog_compiler_wl_GCJ \
18644 lt_prog_compiler_pic_GCJ \
18645 lt_prog_compiler_static_GCJ \
18646 lt_prog_compiler_no_builtin_flag_GCJ \
18647 export_dynamic_flag_spec_GCJ \
18648 thread_safe_flag_spec_GCJ \
18649 whole_archive_flag_spec_GCJ \
18650 enable_shared_with_static_runtimes_GCJ \
18651 old_archive_cmds_GCJ \
18652 old_archive_from_new_cmds_GCJ \
18653 predep_objects_GCJ \
18654 postdep_objects_GCJ \
18655 predeps_GCJ \
18656 postdeps_GCJ \
18657 compiler_lib_search_path_GCJ \
18658 archive_cmds_GCJ \
18659 archive_expsym_cmds_GCJ \
18660 postinstall_cmds_GCJ \
18661 postuninstall_cmds_GCJ \
18662 old_archive_from_expsyms_cmds_GCJ \
18663 allow_undefined_flag_GCJ \
18664 no_undefined_flag_GCJ \
18665 export_symbols_cmds_GCJ \
18666 hardcode_libdir_flag_spec_GCJ \
18667 hardcode_libdir_flag_spec_ld_GCJ \
18668 hardcode_libdir_separator_GCJ \
18669 hardcode_automatic_GCJ \
18670 module_cmds_GCJ \
18671 module_expsym_cmds_GCJ \
18672 lt_cv_prog_compiler_c_o_GCJ \
18673 exclude_expsyms_GCJ \
18674 include_expsyms_GCJ; do
18675
18676 case $var in
18677 old_archive_cmds_GCJ | \
18678 old_archive_from_new_cmds_GCJ | \
18679 archive_cmds_GCJ | \
18680 archive_expsym_cmds_GCJ | \
18681 module_cmds_GCJ | \
18682 module_expsym_cmds_GCJ | \
18683 old_archive_from_expsyms_cmds_GCJ | \
18684 export_symbols_cmds_GCJ | \
18685 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18686 postinstall_cmds | postuninstall_cmds | \
18687 old_postinstall_cmds | old_postuninstall_cmds | \
18688 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18689 # Double-quote double-evaled strings.
18690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18691 ;;
18692 *)
18693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18694 ;;
18695 esac
18696 done
18697
18698 case $lt_echo in
18699 *'\$0 --fallback-echo"')
18700 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18701 ;;
18702 esac
18703
18704cfgfile="$ofile"
18705
18706 cat <<__EOF__ >> "$cfgfile"
18707# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18708
18709# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18710
18711# Shell to use when invoking shell scripts.
18712SHELL=$lt_SHELL
18713
18714# Whether or not to build shared libraries.
18715build_libtool_libs=$enable_shared
18716
18717# Whether or not to build static libraries.
18718build_old_libs=$enable_static
18719
18720# Whether or not to add -lc for building shared libraries.
18721build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18722
18723# Whether or not to disallow shared libs when runtime libs are static
18724allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18725
18726# Whether or not to optimize for fast installation.
18727fast_install=$enable_fast_install
18728
18729# The host system.
18730host_alias=$host_alias
18731host=$host
18732
18733# An echo program that does not interpret backslashes.
18734echo=$lt_echo
18735
18736# The archiver.
18737AR=$lt_AR
18738AR_FLAGS=$lt_AR_FLAGS
18739
18740# A C compiler.
18741LTCC=$lt_LTCC
18742
18743# A language-specific compiler.
18744CC=$lt_compiler_GCJ
18745
18746# Is the compiler the GNU C compiler?
18747with_gcc=$GCC_GCJ
18748
18749# An ERE matcher.
18750EGREP=$lt_EGREP
18751
18752# The linker used to build libraries.
18753LD=$lt_LD_GCJ
18754
18755# Whether we need hard or soft links.
18756LN_S=$lt_LN_S
18757
18758# A BSD-compatible nm program.
18759NM=$lt_NM
18760
18761# A symbol stripping program
18762STRIP=$lt_STRIP
18763
18764# Used to examine libraries when file_magic_cmd begins "file"
18765MAGIC_CMD=$MAGIC_CMD
18766
18767# Used on cygwin: DLL creation program.
18768DLLTOOL="$DLLTOOL"
18769
18770# Used on cygwin: object dumper.
18771OBJDUMP="$OBJDUMP"
18772
18773# Used on cygwin: assembler.
18774AS="$AS"
18775
18776# The name of the directory that contains temporary libtool files.
18777objdir=$objdir
18778
18779# How to create reloadable object files.
18780reload_flag=$lt_reload_flag
18781reload_cmds=$lt_reload_cmds
18782
18783# How to pass a linker flag through the compiler.
18784wl=$lt_lt_prog_compiler_wl_GCJ
18785
18786# Object file suffix (normally "o").
18787objext="$ac_objext"
18788
18789# Old archive suffix (normally "a").
18790libext="$libext"
18791
18792# Shared library suffix (normally ".so").
18793shrext_cmds='$shrext_cmds'
18794
18795# Executable file suffix (normally "").
18796exeext="$exeext"
18797
18798# Additional compiler flags for building library objects.
18799pic_flag=$lt_lt_prog_compiler_pic_GCJ
18800pic_mode=$pic_mode
18801
18802# What is the maximum length of a command?
18803max_cmd_len=$lt_cv_sys_max_cmd_len
18804
18805# Does compiler simultaneously support -c and -o options?
18806compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18807
18808# Must we lock files when doing compilation ?
18809need_locks=$lt_need_locks
18810
18811# Do we need the lib prefix for modules?
18812need_lib_prefix=$need_lib_prefix
18813
18814# Do we need a version for libraries?
18815need_version=$need_version
18816
18817# Whether dlopen is supported.
18818dlopen_support=$enable_dlopen
18819
18820# Whether dlopen of programs is supported.
18821dlopen_self=$enable_dlopen_self
18822
18823# Whether dlopen of statically linked programs is supported.
18824dlopen_self_static=$enable_dlopen_self_static
18825
18826# Compiler flag to prevent dynamic linking.
18827link_static_flag=$lt_lt_prog_compiler_static_GCJ
18828
18829# Compiler flag to turn off builtin functions.
18830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18831
18832# Compiler flag to allow reflexive dlopens.
18833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18834
18835# Compiler flag to generate shared objects directly from archives.
18836whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18837
18838# Compiler flag to generate thread-safe objects.
18839thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18840
18841# Library versioning type.
18842version_type=$version_type
18843
18844# Format of library name prefix.
18845libname_spec=$lt_libname_spec
18846
18847# List of archive names. First name is the real one, the rest are links.
18848# The last name is the one that the linker finds with -lNAME.
18849library_names_spec=$lt_library_names_spec
18850
18851# The coded name of the library, if different from the real name.
18852soname_spec=$lt_soname_spec
18853
18854# Commands used to build and install an old-style archive.
18855RANLIB=$lt_RANLIB
18856old_archive_cmds=$lt_old_archive_cmds_GCJ
18857old_postinstall_cmds=$lt_old_postinstall_cmds
18858old_postuninstall_cmds=$lt_old_postuninstall_cmds
18859
18860# Create an old-style archive from a shared archive.
18861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18862
18863# Create a temporary old-style archive to link instead of a shared archive.
18864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18865
18866# Commands used to build and install a shared archive.
18867archive_cmds=$lt_archive_cmds_GCJ
18868archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18869postinstall_cmds=$lt_postinstall_cmds
18870postuninstall_cmds=$lt_postuninstall_cmds
18871
18872# Commands used to build a loadable module (assumed same as above if empty)
18873module_cmds=$lt_module_cmds_GCJ
18874module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18875
18876# Commands to strip libraries.
18877old_striplib=$lt_old_striplib
18878striplib=$lt_striplib
18879
18880# Dependencies to place before the objects being linked to create a
18881# shared library.
18882predep_objects=$lt_predep_objects_GCJ
18883
18884# Dependencies to place after the objects being linked to create a
18885# shared library.
18886postdep_objects=$lt_postdep_objects_GCJ
18887
18888# Dependencies to place before the objects being linked to create a
18889# shared library.
18890predeps=$lt_predeps_GCJ
18891
18892# Dependencies to place after the objects being linked to create a
18893# shared library.
18894postdeps=$lt_postdeps_GCJ
18895
18896# The library search path used internally by the compiler when linking
18897# a shared library.
18898compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18899
18900# Method to check whether dependent libraries are shared objects.
18901deplibs_check_method=$lt_deplibs_check_method
18902
18903# Command to use when deplibs_check_method == file_magic.
18904file_magic_cmd=$lt_file_magic_cmd
18905
18906# Flag that allows shared libraries with undefined symbols to be built.
18907allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18908
18909# Flag that forces no undefined symbols.
18910no_undefined_flag=$lt_no_undefined_flag_GCJ
18911
18912# Commands used to finish a libtool library installation in a directory.
18913finish_cmds=$lt_finish_cmds
18914
18915# Same as above, but a single script fragment to be evaled but not shown.
18916finish_eval=$lt_finish_eval
18917
18918# Take the output of nm and produce a listing of raw symbols and C names.
18919global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18920
18921# Transform the output of nm in a proper C declaration
18922global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18923
18924# Transform the output of nm in a C name address pair
18925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18926
18927# This is the shared library runtime path variable.
18928runpath_var=$runpath_var
18929
18930# This is the shared library path variable.
18931shlibpath_var=$shlibpath_var
18932
18933# Is shlibpath searched before the hard-coded library search path?
18934shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18935
18936# How to hardcode a shared library path into an executable.
18937hardcode_action=$hardcode_action_GCJ
18938
18939# Whether we should hardcode library paths into libraries.
18940hardcode_into_libs=$hardcode_into_libs
18941
18942# Flag to hardcode \$libdir into a binary during linking.
18943# This must work even if \$libdir does not exist.
18944hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18945
18946# If ld is used when linking, flag to hardcode \$libdir into
18947# a binary during linking. This must work even if \$libdir does
18948# not exist.
18949hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18950
18951# Whether we need a single -rpath flag with a separated argument.
18952hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18953
18954# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18955# resulting binary.
18956hardcode_direct=$hardcode_direct_GCJ
18957
18958# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18959# resulting binary.
18960hardcode_minus_L=$hardcode_minus_L_GCJ
18961
18962# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18963# the resulting binary.
18964hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18965
18966# Set to yes if building a shared library automatically hardcodes DIR into the library
18967# and all subsequent libraries and executables linked against it.
18968hardcode_automatic=$hardcode_automatic_GCJ
18969
18970# Variables whose values should be saved in libtool wrapper scripts and
18971# restored at relink time.
18972variables_saved_for_relink="$variables_saved_for_relink"
18973
18974# Whether libtool must link a program against all its dependency libraries.
18975link_all_deplibs=$link_all_deplibs_GCJ
18976
18977# Compile-time system search path for libraries
18978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18979
18980# Run-time system search path for libraries
18981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18982
18983# Fix the shell variable \$srcfile for the compiler.
18984fix_srcfile_path="$fix_srcfile_path_GCJ"
18985
18986# Set to yes if exported symbols are required.
18987always_export_symbols=$always_export_symbols_GCJ
18988
18989# The commands to list exported symbols.
18990export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18991
18992# The commands to extract the exported symbol list from a shared archive.
18993extract_expsyms_cmds=$lt_extract_expsyms_cmds
18994
18995# Symbols that should not be listed in the preloaded symbols.
18996exclude_expsyms=$lt_exclude_expsyms_GCJ
18997
18998# Symbols that must always be exported.
18999include_expsyms=$lt_include_expsyms_GCJ
19000
19001# ### END LIBTOOL TAG CONFIG: $tagname
19002
19003__EOF__
19004
19005
19006else
19007 # If there is no Makefile yet, we rely on a make rule to execute
19008 # `config.status --recheck' to rerun these tests and create the
19009 # libtool script then.
19010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19011 if test -f "$ltmain_in"; then
19012 test -f Makefile && make "$ltmain"
19013 fi
19014fi
19015
19016
19017ac_ext=c
19018ac_cpp='$CPP $CPPFLAGS'
19019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19021ac_compiler_gnu=$ac_cv_c_compiler_gnu
19022
19023CC="$lt_save_CC"
19024
19025 else
19026 tagname=""
19027 fi
19028 ;;
19029
19030 RC)
19031
19032
19033
19034# Source file extension for RC test sources.
19035ac_ext=rc
19036
19037# Object file extension for compiled RC test sources.
19038objext=o
19039objext_RC=$objext
19040
19041# Code to be used in simple compile tests
19042lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19043
19044# Code to be used in simple link tests
19045lt_simple_link_test_code="$lt_simple_compile_test_code"
19046
19047# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19048
19049# If no C compiler was specified, use CC.
19050LTCC=${LTCC-"$CC"}
19051
19052# Allow CC to be a program name with arguments.
19053compiler=$CC
19054
19055
19056# Allow CC to be a program name with arguments.
19057lt_save_CC="$CC"
19058CC=${RC-"windres"}
19059compiler=$CC
19060compiler_RC=$CC
19061lt_cv_prog_compiler_c_o_RC=yes
19062
19063# The else clause should only fire when bootstrapping the
19064# libtool distribution, otherwise you forgot to ship ltmain.sh
19065# with your package, and you will get complaints that there are
19066# no rules to generate ltmain.sh.
19067if test -f "$ltmain"; then
19068 # See if we are running on zsh, and set the options which allow our commands through
19069 # without removal of \ escapes.
19070 if test -n "${ZSH_VERSION+set}" ; then
19071 setopt NO_GLOB_SUBST
19072 fi
19073 # Now quote all the things that may contain metacharacters while being
19074 # careful not to overquote the AC_SUBSTed values. We take copies of the
19075 # variables and quote the copies for generation of the libtool script.
19076 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19077 SED SHELL STRIP \
19078 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19079 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19080 deplibs_check_method reload_flag reload_cmds need_locks \
19081 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19082 lt_cv_sys_global_symbol_to_c_name_address \
19083 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19084 old_postinstall_cmds old_postuninstall_cmds \
19085 compiler_RC \
19086 CC_RC \
19087 LD_RC \
19088 lt_prog_compiler_wl_RC \
19089 lt_prog_compiler_pic_RC \
19090 lt_prog_compiler_static_RC \
19091 lt_prog_compiler_no_builtin_flag_RC \
19092 export_dynamic_flag_spec_RC \
19093 thread_safe_flag_spec_RC \
19094 whole_archive_flag_spec_RC \
19095 enable_shared_with_static_runtimes_RC \
19096 old_archive_cmds_RC \
19097 old_archive_from_new_cmds_RC \
19098 predep_objects_RC \
19099 postdep_objects_RC \
19100 predeps_RC \
19101 postdeps_RC \
19102 compiler_lib_search_path_RC \
19103 archive_cmds_RC \
19104 archive_expsym_cmds_RC \
19105 postinstall_cmds_RC \
19106 postuninstall_cmds_RC \
19107 old_archive_from_expsyms_cmds_RC \
19108 allow_undefined_flag_RC \
19109 no_undefined_flag_RC \
19110 export_symbols_cmds_RC \
19111 hardcode_libdir_flag_spec_RC \
19112 hardcode_libdir_flag_spec_ld_RC \
19113 hardcode_libdir_separator_RC \
19114 hardcode_automatic_RC \
19115 module_cmds_RC \
19116 module_expsym_cmds_RC \
19117 lt_cv_prog_compiler_c_o_RC \
19118 exclude_expsyms_RC \
19119 include_expsyms_RC; do
19120
19121 case $var in
19122 old_archive_cmds_RC | \
19123 old_archive_from_new_cmds_RC | \
19124 archive_cmds_RC | \
19125 archive_expsym_cmds_RC | \
19126 module_cmds_RC | \
19127 module_expsym_cmds_RC | \
19128 old_archive_from_expsyms_cmds_RC | \
19129 export_symbols_cmds_RC | \
19130 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19131 postinstall_cmds | postuninstall_cmds | \
19132 old_postinstall_cmds | old_postuninstall_cmds | \
19133 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19134 # Double-quote double-evaled strings.
19135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19136 ;;
19137 *)
19138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19139 ;;
19140 esac
19141 done
19142
19143 case $lt_echo in
19144 *'\$0 --fallback-echo"')
19145 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19146 ;;
19147 esac
19148
19149cfgfile="$ofile"
19150
19151 cat <<__EOF__ >> "$cfgfile"
19152# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19153
19154# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19155
19156# Shell to use when invoking shell scripts.
19157SHELL=$lt_SHELL
19158
19159# Whether or not to build shared libraries.
19160build_libtool_libs=$enable_shared
19161
19162# Whether or not to build static libraries.
19163build_old_libs=$enable_static
19164
19165# Whether or not to add -lc for building shared libraries.
19166build_libtool_need_lc=$archive_cmds_need_lc_RC
19167
19168# Whether or not to disallow shared libs when runtime libs are static
19169allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19170
19171# Whether or not to optimize for fast installation.
19172fast_install=$enable_fast_install
19173
19174# The host system.
19175host_alias=$host_alias
19176host=$host
19177
19178# An echo program that does not interpret backslashes.
19179echo=$lt_echo
19180
19181# The archiver.
19182AR=$lt_AR
19183AR_FLAGS=$lt_AR_FLAGS
19184
19185# A C compiler.
19186LTCC=$lt_LTCC
19187
19188# A language-specific compiler.
19189CC=$lt_compiler_RC
19190
19191# Is the compiler the GNU C compiler?
19192with_gcc=$GCC_RC
19193
19194# An ERE matcher.
19195EGREP=$lt_EGREP
19196
19197# The linker used to build libraries.
19198LD=$lt_LD_RC
19199
19200# Whether we need hard or soft links.
19201LN_S=$lt_LN_S
19202
19203# A BSD-compatible nm program.
19204NM=$lt_NM
19205
19206# A symbol stripping program
19207STRIP=$lt_STRIP
19208
19209# Used to examine libraries when file_magic_cmd begins "file"
19210MAGIC_CMD=$MAGIC_CMD
19211
19212# Used on cygwin: DLL creation program.
19213DLLTOOL="$DLLTOOL"
19214
19215# Used on cygwin: object dumper.
19216OBJDUMP="$OBJDUMP"
19217
19218# Used on cygwin: assembler.
19219AS="$AS"
19220
19221# The name of the directory that contains temporary libtool files.
19222objdir=$objdir
19223
19224# How to create reloadable object files.
19225reload_flag=$lt_reload_flag
19226reload_cmds=$lt_reload_cmds
19227
19228# How to pass a linker flag through the compiler.
19229wl=$lt_lt_prog_compiler_wl_RC
19230
19231# Object file suffix (normally "o").
19232objext="$ac_objext"
19233
19234# Old archive suffix (normally "a").
19235libext="$libext"
19236
19237# Shared library suffix (normally ".so").
19238shrext_cmds='$shrext_cmds'
19239
19240# Executable file suffix (normally "").
19241exeext="$exeext"
19242
19243# Additional compiler flags for building library objects.
19244pic_flag=$lt_lt_prog_compiler_pic_RC
19245pic_mode=$pic_mode
19246
19247# What is the maximum length of a command?
19248max_cmd_len=$lt_cv_sys_max_cmd_len
19249
19250# Does compiler simultaneously support -c and -o options?
19251compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19252
19253# Must we lock files when doing compilation ?
19254need_locks=$lt_need_locks
19255
19256# Do we need the lib prefix for modules?
19257need_lib_prefix=$need_lib_prefix
19258
19259# Do we need a version for libraries?
19260need_version=$need_version
19261
19262# Whether dlopen is supported.
19263dlopen_support=$enable_dlopen
19264
19265# Whether dlopen of programs is supported.
19266dlopen_self=$enable_dlopen_self
19267
19268# Whether dlopen of statically linked programs is supported.
19269dlopen_self_static=$enable_dlopen_self_static
19270
19271# Compiler flag to prevent dynamic linking.
19272link_static_flag=$lt_lt_prog_compiler_static_RC
19273
19274# Compiler flag to turn off builtin functions.
19275no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19276
19277# Compiler flag to allow reflexive dlopens.
19278export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19279
19280# Compiler flag to generate shared objects directly from archives.
19281whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19282
19283# Compiler flag to generate thread-safe objects.
19284thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19285
19286# Library versioning type.
19287version_type=$version_type
19288
19289# Format of library name prefix.
19290libname_spec=$lt_libname_spec
19291
19292# List of archive names. First name is the real one, the rest are links.
19293# The last name is the one that the linker finds with -lNAME.
19294library_names_spec=$lt_library_names_spec
19295
19296# The coded name of the library, if different from the real name.
19297soname_spec=$lt_soname_spec
19298
19299# Commands used to build and install an old-style archive.
19300RANLIB=$lt_RANLIB
19301old_archive_cmds=$lt_old_archive_cmds_RC
19302old_postinstall_cmds=$lt_old_postinstall_cmds
19303old_postuninstall_cmds=$lt_old_postuninstall_cmds
19304
19305# Create an old-style archive from a shared archive.
19306old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19307
19308# Create a temporary old-style archive to link instead of a shared archive.
19309old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19310
19311# Commands used to build and install a shared archive.
19312archive_cmds=$lt_archive_cmds_RC
19313archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19314postinstall_cmds=$lt_postinstall_cmds
19315postuninstall_cmds=$lt_postuninstall_cmds
19316
19317# Commands used to build a loadable module (assumed same as above if empty)
19318module_cmds=$lt_module_cmds_RC
19319module_expsym_cmds=$lt_module_expsym_cmds_RC
19320
19321# Commands to strip libraries.
19322old_striplib=$lt_old_striplib
19323striplib=$lt_striplib
19324
19325# Dependencies to place before the objects being linked to create a
19326# shared library.
19327predep_objects=$lt_predep_objects_RC
19328
19329# Dependencies to place after the objects being linked to create a
19330# shared library.
19331postdep_objects=$lt_postdep_objects_RC
19332
19333# Dependencies to place before the objects being linked to create a
19334# shared library.
19335predeps=$lt_predeps_RC
19336
19337# Dependencies to place after the objects being linked to create a
19338# shared library.
19339postdeps=$lt_postdeps_RC
19340
19341# The library search path used internally by the compiler when linking
19342# a shared library.
19343compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19344
19345# Method to check whether dependent libraries are shared objects.
19346deplibs_check_method=$lt_deplibs_check_method
19347
19348# Command to use when deplibs_check_method == file_magic.
19349file_magic_cmd=$lt_file_magic_cmd
19350
19351# Flag that allows shared libraries with undefined symbols to be built.
19352allow_undefined_flag=$lt_allow_undefined_flag_RC
19353
19354# Flag that forces no undefined symbols.
19355no_undefined_flag=$lt_no_undefined_flag_RC
19356
19357# Commands used to finish a libtool library installation in a directory.
19358finish_cmds=$lt_finish_cmds
19359
19360# Same as above, but a single script fragment to be evaled but not shown.
19361finish_eval=$lt_finish_eval
19362
19363# Take the output of nm and produce a listing of raw symbols and C names.
19364global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19365
19366# Transform the output of nm in a proper C declaration
19367global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19368
19369# Transform the output of nm in a C name address pair
19370global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19371
19372# This is the shared library runtime path variable.
19373runpath_var=$runpath_var
19374
19375# This is the shared library path variable.
19376shlibpath_var=$shlibpath_var
19377
19378# Is shlibpath searched before the hard-coded library search path?
19379shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19380
19381# How to hardcode a shared library path into an executable.
19382hardcode_action=$hardcode_action_RC
19383
19384# Whether we should hardcode library paths into libraries.
19385hardcode_into_libs=$hardcode_into_libs
19386
19387# Flag to hardcode \$libdir into a binary during linking.
19388# This must work even if \$libdir does not exist.
19389hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19390
19391# If ld is used when linking, flag to hardcode \$libdir into
19392# a binary during linking. This must work even if \$libdir does
19393# not exist.
19394hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19395
19396# Whether we need a single -rpath flag with a separated argument.
19397hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19398
19399# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19400# resulting binary.
19401hardcode_direct=$hardcode_direct_RC
19402
19403# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19404# resulting binary.
19405hardcode_minus_L=$hardcode_minus_L_RC
19406
19407# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19408# the resulting binary.
19409hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19410
19411# Set to yes if building a shared library automatically hardcodes DIR into the library
19412# and all subsequent libraries and executables linked against it.
19413hardcode_automatic=$hardcode_automatic_RC
19414
19415# Variables whose values should be saved in libtool wrapper scripts and
19416# restored at relink time.
19417variables_saved_for_relink="$variables_saved_for_relink"
19418
19419# Whether libtool must link a program against all its dependency libraries.
19420link_all_deplibs=$link_all_deplibs_RC
19421
19422# Compile-time system search path for libraries
19423sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19424
19425# Run-time system search path for libraries
19426sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19427
19428# Fix the shell variable \$srcfile for the compiler.
19429fix_srcfile_path="$fix_srcfile_path_RC"
19430
19431# Set to yes if exported symbols are required.
19432always_export_symbols=$always_export_symbols_RC
19433
19434# The commands to list exported symbols.
19435export_symbols_cmds=$lt_export_symbols_cmds_RC
19436
19437# The commands to extract the exported symbol list from a shared archive.
19438extract_expsyms_cmds=$lt_extract_expsyms_cmds
19439
19440# Symbols that should not be listed in the preloaded symbols.
19441exclude_expsyms=$lt_exclude_expsyms_RC
19442
19443# Symbols that must always be exported.
19444include_expsyms=$lt_include_expsyms_RC
19445
19446# ### END LIBTOOL TAG CONFIG: $tagname
19447
19448__EOF__
19449
19450
19451else
19452 # If there is no Makefile yet, we rely on a make rule to execute
19453 # `config.status --recheck' to rerun these tests and create the
19454 # libtool script then.
19455 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19456 if test -f "$ltmain_in"; then
19457 test -f Makefile && make "$ltmain"
19458 fi
19459fi
19460
19461
19462ac_ext=c
19463ac_cpp='$CPP $CPPFLAGS'
19464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466ac_compiler_gnu=$ac_cv_c_compiler_gnu
19467
19468CC="$lt_save_CC"
19469
19470 ;;
19471
19472 *)
19473 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19474echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19475 { (exit 1); exit 1; }; }
19476 ;;
19477 esac
19478
19479 # Append the new tag name to the list of available tags.
19480 if test -n "$tagname" ; then
19481 available_tags="$available_tags $tagname"
19482 fi
19483 fi
19484 done
19485 IFS="$lt_save_ifs"
19486
19487 # Now substitute the updated list of available tags.
19488 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19489 mv "${ofile}T" "$ofile"
19490 chmod +x "$ofile"
19491 else
19492 rm -f "${ofile}T"
19493 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19494echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19495 { (exit 1); exit 1; }; }
19496 fi
19497fi
19498
19499
19500
19501# This can be used to rebuild libtool when needed
19502LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19503
19504# Always use our own libtool.
19505LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19506
19507# Prevent multiple expansion
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535ac_header_dirent=no
19536for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19537 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19538echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19539echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19540if eval "test \"\${$as_ac_Header+set}\" = set"; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19542else
19543 cat >conftest.$ac_ext <<_ACEOF
19544/* confdefs.h. */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h. */
19549#include <sys/types.h>
19550#include <$ac_hdr>
19551
19552int
19553main ()
19554{
19555if ((DIR *) 0)
19556return 0;
19557 ;
19558 return 0;
19559}
19560_ACEOF
19561rm -f conftest.$ac_objext
19562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563 (eval $ac_compile) 2>conftest.er1
19564 ac_status=$?
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
19570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } &&
19576 { ac_try='test -s conftest.$ac_objext'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582 eval "$as_ac_Header=yes"
19583else
19584 echo "$as_me: failed program was:" >&5
19585sed 's/^/| /' conftest.$ac_ext >&5
19586
19587eval "$as_ac_Header=no"
19588fi
19589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19590fi
19591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19593if test `eval echo '${'$as_ac_Header'}'` = yes; then
19594 cat >>confdefs.h <<_ACEOF
19595#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19596_ACEOF
19597
19598ac_header_dirent=$ac_hdr; break
19599fi
19600
19601done
19602# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19603if test $ac_header_dirent = dirent.h; then
19604 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19605echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19606if test "${ac_cv_search_opendir+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19608else
19609 ac_func_search_save_LIBS=$LIBS
19610ac_cv_search_opendir=no
19611cat >conftest.$ac_ext <<_ACEOF
19612/* confdefs.h. */
19613_ACEOF
19614cat confdefs.h >>conftest.$ac_ext
19615cat >>conftest.$ac_ext <<_ACEOF
19616/* end confdefs.h. */
19617
19618/* Override any gcc2 internal prototype to avoid an error. */
19619#ifdef __cplusplus
19620extern "C"
19621#endif
19622/* We use char because int might match the return type of a gcc2
19623 builtin and then its argument prototype would still apply. */
19624char opendir ();
19625int
19626main ()
19627{
19628opendir ();
19629 ;
19630 return 0;
19631}
19632_ACEOF
19633rm -f conftest.$ac_objext conftest$ac_exeext
19634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19635 (eval $ac_link) 2>conftest.er1
19636 ac_status=$?
19637 grep -v '^ *+' conftest.er1 >conftest.err
19638 rm -f conftest.er1
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
19642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest$ac_exeext'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; }; then
19654 ac_cv_search_opendir="none required"
19655else
19656 echo "$as_me: failed program was:" >&5
19657sed 's/^/| /' conftest.$ac_ext >&5
19658
19659fi
19660rm -f conftest.err conftest.$ac_objext \
19661 conftest$ac_exeext conftest.$ac_ext
19662if test "$ac_cv_search_opendir" = no; then
19663 for ac_lib in dir; do
19664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19665 cat >conftest.$ac_ext <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671
19672/* Override any gcc2 internal prototype to avoid an error. */
19673#ifdef __cplusplus
19674extern "C"
19675#endif
19676/* We use char because int might match the return type of a gcc2
19677 builtin and then its argument prototype would still apply. */
19678char opendir ();
19679int
19680main ()
19681{
19682opendir ();
19683 ;
19684 return 0;
19685}
19686_ACEOF
19687rm -f conftest.$ac_objext conftest$ac_exeext
19688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19689 (eval $ac_link) 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; } &&
19702 { ac_try='test -s conftest$ac_exeext'
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19708 ac_cv_search_opendir="-l$ac_lib"
19709break
19710else
19711 echo "$as_me: failed program was:" >&5
19712sed 's/^/| /' conftest.$ac_ext >&5
19713
19714fi
19715rm -f conftest.err conftest.$ac_objext \
19716 conftest$ac_exeext conftest.$ac_ext
19717 done
19718fi
19719LIBS=$ac_func_search_save_LIBS
19720fi
19721echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19722echo "${ECHO_T}$ac_cv_search_opendir" >&6
19723if test "$ac_cv_search_opendir" != no; then
19724 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19725
19726fi
19727
19728else
19729 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19730echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19731if test "${ac_cv_search_opendir+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19733else
19734 ac_func_search_save_LIBS=$LIBS
19735ac_cv_search_opendir=no
19736cat >conftest.$ac_ext <<_ACEOF
19737/* confdefs.h. */
19738_ACEOF
19739cat confdefs.h >>conftest.$ac_ext
19740cat >>conftest.$ac_ext <<_ACEOF
19741/* end confdefs.h. */
19742
19743/* Override any gcc2 internal prototype to avoid an error. */
19744#ifdef __cplusplus
19745extern "C"
19746#endif
19747/* We use char because int might match the return type of a gcc2
19748 builtin and then its argument prototype would still apply. */
19749char opendir ();
19750int
19751main ()
19752{
19753opendir ();
19754 ;
19755 return 0;
19756}
19757_ACEOF
19758rm -f conftest.$ac_objext conftest$ac_exeext
19759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19760 (eval $ac_link) 2>conftest.er1
19761 ac_status=$?
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -f conftest.er1
19764 cat conftest.err >&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769 (eval $ac_try) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; } &&
19773 { ac_try='test -s conftest$ac_exeext'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_cv_search_opendir="none required"
19780else
19781 echo "$as_me: failed program was:" >&5
19782sed 's/^/| /' conftest.$ac_ext >&5
19783
19784fi
19785rm -f conftest.err conftest.$ac_objext \
19786 conftest$ac_exeext conftest.$ac_ext
19787if test "$ac_cv_search_opendir" = no; then
19788 for ac_lib in x; do
19789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19790 cat >conftest.$ac_ext <<_ACEOF
19791/* confdefs.h. */
19792_ACEOF
19793cat confdefs.h >>conftest.$ac_ext
19794cat >>conftest.$ac_ext <<_ACEOF
19795/* end confdefs.h. */
19796
19797/* Override any gcc2 internal prototype to avoid an error. */
19798#ifdef __cplusplus
19799extern "C"
19800#endif
19801/* We use char because int might match the return type of a gcc2
19802 builtin and then its argument prototype would still apply. */
19803char opendir ();
19804int
19805main ()
19806{
19807opendir ();
19808 ;
19809 return 0;
19810}
19811_ACEOF
19812rm -f conftest.$ac_objext conftest$ac_exeext
19813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19814 (eval $ac_link) 2>conftest.er1
19815 ac_status=$?
19816 grep -v '^ *+' conftest.er1 >conftest.err
19817 rm -f conftest.er1
19818 cat conftest.err >&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } &&
19821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; } &&
19827 { ac_try='test -s conftest$ac_exeext'
19828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 ac_cv_search_opendir="-l$ac_lib"
19834break
19835else
19836 echo "$as_me: failed program was:" >&5
19837sed 's/^/| /' conftest.$ac_ext >&5
19838
19839fi
19840rm -f conftest.err conftest.$ac_objext \
19841 conftest$ac_exeext conftest.$ac_ext
19842 done
19843fi
19844LIBS=$ac_func_search_save_LIBS
19845fi
19846echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19847echo "${ECHO_T}$ac_cv_search_opendir" >&6
19848if test "$ac_cv_search_opendir" != no; then
19849 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19850
19851fi
19852
19853fi
19854
19855# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
19856if test "${enable_ltdl_install+set}" = set; then
19857 enableval="$enable_ltdl_install"
19858
19859fi;
19860
19861
19862
19863if test x"${enable_ltdl_install-no}" != xno; then
19864 INSTALL_LTDL_TRUE=
19865 INSTALL_LTDL_FALSE='#'
19866else
19867 INSTALL_LTDL_TRUE='#'
19868 INSTALL_LTDL_FALSE=
19869fi
19870
19871
19872
19873if test x"${enable_ltdl_convenience-no}" != xno; then
19874 CONVENIENCE_LTDL_TRUE=
19875 CONVENIENCE_LTDL_FALSE='#'
19876else
19877 CONVENIENCE_LTDL_TRUE='#'
19878 CONVENIENCE_LTDL_FALSE=
19879fi
19880
19881
19882
19883echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19884echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
19885if test "${libltdl_cv_shlibext+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19887else
19888
19889module=yes
19890eval libltdl_cv_shlibext=$shrext_cmds
19891
19892fi
19893echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19894echo "${ECHO_T}$libltdl_cv_shlibext" >&6
19895if test -n "$libltdl_cv_shlibext"; then
19896
19897cat >>confdefs.h <<_ACEOF
19898#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19899_ACEOF
19900
19901fi
19902
19903
19904echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19905echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
19906if test "${libltdl_cv_shlibpath_var+set}" = set; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19908else
19909 libltdl_cv_shlibpath_var="$shlibpath_var"
19910fi
19911echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19912echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
19913if test -n "$libltdl_cv_shlibpath_var"; then
19914
19915cat >>confdefs.h <<_ACEOF
19916#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19917_ACEOF
19918
19919fi
19920
19921
19922echo "$as_me:$LINENO: checking for the default library search path" >&5
19923echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
19924if test "${libltdl_cv_sys_search_path+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19926else
19927 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19928fi
19929echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19930echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
19931if test -n "$libltdl_cv_sys_search_path"; then
19932 sys_search_path=
19933 for dir in $libltdl_cv_sys_search_path; do
19934 if test -z "$sys_search_path"; then
19935 sys_search_path="$dir"
19936 else
19937 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19938 fi
19939 done
19940
19941cat >>confdefs.h <<_ACEOF
19942#define LTDL_SYSSEARCHPATH "$sys_search_path"
19943_ACEOF
19944
19945fi
19946
19947echo "$as_me:$LINENO: checking for objdir" >&5
19948echo $ECHO_N "checking for objdir... $ECHO_C" >&6
19949if test "${libltdl_cv_objdir+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951else
19952 libltdl_cv_objdir="$objdir"
19953 if test -n "$objdir"; then
19954 :
19955 else
19956 rm -f .libs 2>/dev/null
19957 mkdir .libs 2>/dev/null
19958 if test -d .libs; then
19959 libltdl_cv_objdir=.libs
19960 else
19961 # MS-DOS does not allow filenames that begin with a dot.
19962 libltdl_cv_objdir=_libs
19963 fi
19964 rmdir .libs 2>/dev/null
19965 fi
19966
19967fi
19968echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19969echo "${ECHO_T}$libltdl_cv_objdir" >&6
19970
19971cat >>confdefs.h <<_ACEOF
19972#define LTDL_OBJDIR "$libltdl_cv_objdir/"
19973_ACEOF
19974
19975
19976
19977echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19978echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
19979if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19981else
19982 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19983 libltdl_cv_preloaded_symbols=yes
19984 else
19985 libltdl_cv_preloaded_symbols=no
19986 fi
19987
19988fi
19989echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19990echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
19991if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19992
19993cat >>confdefs.h <<\_ACEOF
19994#define HAVE_PRELOADED_SYMBOLS 1
19995_ACEOF
19996
19997fi
19998
19999LIBADD_DL=
20000
20001ac_ext=c
20002ac_cpp='$CPP $CPPFLAGS'
20003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20005ac_compiler_gnu=$ac_cv_c_compiler_gnu
20006
20007
20008echo "$as_me:$LINENO: checking for shl_load" >&5
20009echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20010if test "${ac_cv_func_shl_load+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20012else
20013 cat >conftest.$ac_ext <<_ACEOF
20014/* confdefs.h. */
20015_ACEOF
20016cat confdefs.h >>conftest.$ac_ext
20017cat >>conftest.$ac_ext <<_ACEOF
20018/* end confdefs.h. */
20019/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20021#define shl_load innocuous_shl_load
20022
20023/* System header to define __stub macros and hopefully few prototypes,
20024 which can conflict with char shl_load (); below.
20025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20026 <limits.h> exists even on freestanding compilers. */
20027
20028#ifdef __STDC__
20029# include <limits.h>
20030#else
20031# include <assert.h>
20032#endif
20033
20034#undef shl_load
20035
20036/* Override any gcc2 internal prototype to avoid an error. */
20037#ifdef __cplusplus
20038extern "C"
20039{
20040#endif
20041/* We use char because int might match the return type of a gcc2
20042 builtin and then its argument prototype would still apply. */
20043char shl_load ();
20044/* The GNU C library defines this for functions which it implements
20045 to always fail with ENOSYS. Some functions are actually named
20046 something starting with __ and the normal name is an alias. */
20047#if defined (__stub_shl_load) || defined (__stub___shl_load)
20048choke me
20049#else
20050char (*f) () = shl_load;
20051#endif
20052#ifdef __cplusplus
20053}
20054#endif
20055
20056int
20057main ()
20058{
20059return f != shl_load;
20060 ;
20061 return 0;
20062}
20063_ACEOF
20064rm -f conftest.$ac_objext conftest$ac_exeext
20065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20066 (eval $ac_link) 2>conftest.er1
20067 ac_status=$?
20068 grep -v '^ *+' conftest.er1 >conftest.err
20069 rm -f conftest.er1
20070 cat conftest.err >&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); } &&
20073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; } &&
20079 { ac_try='test -s conftest$ac_exeext'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20082 ac_status=$?
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085 ac_cv_func_shl_load=yes
20086else
20087 echo "$as_me: failed program was:" >&5
20088sed 's/^/| /' conftest.$ac_ext >&5
20089
20090ac_cv_func_shl_load=no
20091fi
20092rm -f conftest.err conftest.$ac_objext \
20093 conftest$ac_exeext conftest.$ac_ext
20094fi
20095echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20096echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20097if test $ac_cv_func_shl_load = yes; then
20098
20099cat >>confdefs.h <<\_ACEOF
20100#define HAVE_SHL_LOAD 1
20101_ACEOF
20102
20103else
20104 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20105echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20106if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20108else
20109 ac_check_lib_save_LIBS=$LIBS
20110LIBS="-ldld $LIBS"
20111cat >conftest.$ac_ext <<_ACEOF
20112/* confdefs.h. */
20113_ACEOF
20114cat confdefs.h >>conftest.$ac_ext
20115cat >>conftest.$ac_ext <<_ACEOF
20116/* end confdefs.h. */
20117
20118/* Override any gcc2 internal prototype to avoid an error. */
20119#ifdef __cplusplus
20120extern "C"
20121#endif
20122/* We use char because int might match the return type of a gcc2
20123 builtin and then its argument prototype would still apply. */
20124char shl_load ();
20125int
20126main ()
20127{
20128shl_load ();
20129 ;
20130 return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext conftest$ac_exeext
20134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135 (eval $ac_link) 2>conftest.er1
20136 ac_status=$?
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest$ac_exeext'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 ac_cv_lib_dld_shl_load=yes
20155else
20156 echo "$as_me: failed program was:" >&5
20157sed 's/^/| /' conftest.$ac_ext >&5
20158
20159ac_cv_lib_dld_shl_load=no
20160fi
20161rm -f conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20163LIBS=$ac_check_lib_save_LIBS
20164fi
20165echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20166echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20167if test $ac_cv_lib_dld_shl_load = yes; then
20168
20169cat >>confdefs.h <<\_ACEOF
20170#define HAVE_SHL_LOAD 1
20171_ACEOF
20172
20173 LIBADD_DL="$LIBADD_DL -ldld"
20174else
20175 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20176echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20177if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179else
20180 ac_check_lib_save_LIBS=$LIBS
20181LIBS="-ldl $LIBS"
20182cat >conftest.$ac_ext <<_ACEOF
20183/* confdefs.h. */
20184_ACEOF
20185cat confdefs.h >>conftest.$ac_ext
20186cat >>conftest.$ac_ext <<_ACEOF
20187/* end confdefs.h. */
20188
20189/* Override any gcc2 internal prototype to avoid an error. */
20190#ifdef __cplusplus
20191extern "C"
20192#endif
20193/* We use char because int might match the return type of a gcc2
20194 builtin and then its argument prototype would still apply. */
20195char dlopen ();
20196int
20197main ()
20198{
20199dlopen ();
20200 ;
20201 return 0;
20202}
20203_ACEOF
20204rm -f conftest.$ac_objext conftest$ac_exeext
20205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20206 (eval $ac_link) 2>conftest.er1
20207 ac_status=$?
20208 grep -v '^ *+' conftest.er1 >conftest.err
20209 rm -f conftest.er1
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } &&
20213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; } &&
20219 { ac_try='test -s conftest$ac_exeext'
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20225 ac_cv_lib_dl_dlopen=yes
20226else
20227 echo "$as_me: failed program was:" >&5
20228sed 's/^/| /' conftest.$ac_ext >&5
20229
20230ac_cv_lib_dl_dlopen=no
20231fi
20232rm -f conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20234LIBS=$ac_check_lib_save_LIBS
20235fi
20236echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20237echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20238if test $ac_cv_lib_dl_dlopen = yes; then
20239
20240cat >>confdefs.h <<\_ACEOF
20241#define HAVE_LIBDL 1
20242_ACEOF
20243
20244 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20245else
20246 cat >conftest.$ac_ext <<_ACEOF
20247/* confdefs.h. */
20248_ACEOF
20249cat confdefs.h >>conftest.$ac_ext
20250cat >>conftest.$ac_ext <<_ACEOF
20251/* end confdefs.h. */
20252#if HAVE_DLFCN_H
20253# include <dlfcn.h>
20254#endif
20255
20256int
20257main ()
20258{
20259dlopen(0, 0);
20260 ;
20261 return 0;
20262}
20263_ACEOF
20264rm -f conftest.$ac_objext conftest$ac_exeext
20265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20266 (eval $ac_link) 2>conftest.er1
20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
20273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; } &&
20279 { ac_try='test -s conftest$ac_exeext'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20285
20286cat >>confdefs.h <<\_ACEOF
20287#define HAVE_LIBDL 1
20288_ACEOF
20289 libltdl_cv_func_dlopen="yes"
20290else
20291 echo "$as_me: failed program was:" >&5
20292sed 's/^/| /' conftest.$ac_ext >&5
20293
20294echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20295echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20296if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20298else
20299 ac_check_lib_save_LIBS=$LIBS
20300LIBS="-lsvld $LIBS"
20301cat >conftest.$ac_ext <<_ACEOF
20302/* confdefs.h. */
20303_ACEOF
20304cat confdefs.h >>conftest.$ac_ext
20305cat >>conftest.$ac_ext <<_ACEOF
20306/* end confdefs.h. */
20307
20308/* Override any gcc2 internal prototype to avoid an error. */
20309#ifdef __cplusplus
20310extern "C"
20311#endif
20312/* We use char because int might match the return type of a gcc2
20313 builtin and then its argument prototype would still apply. */
20314char dlopen ();
20315int
20316main ()
20317{
20318dlopen ();
20319 ;
20320 return 0;
20321}
20322_ACEOF
20323rm -f conftest.$ac_objext conftest$ac_exeext
20324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325 (eval $ac_link) 2>conftest.er1
20326 ac_status=$?
20327 grep -v '^ *+' conftest.er1 >conftest.err
20328 rm -f conftest.er1
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } &&
20332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334 (eval $ac_try) 2>&5
20335 ac_status=$?
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; } &&
20338 { ac_try='test -s conftest$ac_exeext'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 ac_cv_lib_svld_dlopen=yes
20345else
20346 echo "$as_me: failed program was:" >&5
20347sed 's/^/| /' conftest.$ac_ext >&5
20348
20349ac_cv_lib_svld_dlopen=no
20350fi
20351rm -f conftest.err conftest.$ac_objext \
20352 conftest$ac_exeext conftest.$ac_ext
20353LIBS=$ac_check_lib_save_LIBS
20354fi
20355echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20356echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20357if test $ac_cv_lib_svld_dlopen = yes; then
20358
20359cat >>confdefs.h <<\_ACEOF
20360#define HAVE_LIBDL 1
20361_ACEOF
20362
20363 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20364else
20365 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20366echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20367if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20369else
20370 ac_check_lib_save_LIBS=$LIBS
20371LIBS="-ldld $LIBS"
20372cat >conftest.$ac_ext <<_ACEOF
20373/* confdefs.h. */
20374_ACEOF
20375cat confdefs.h >>conftest.$ac_ext
20376cat >>conftest.$ac_ext <<_ACEOF
20377/* end confdefs.h. */
20378
20379/* Override any gcc2 internal prototype to avoid an error. */
20380#ifdef __cplusplus
20381extern "C"
20382#endif
20383/* We use char because int might match the return type of a gcc2
20384 builtin and then its argument prototype would still apply. */
20385char dld_link ();
20386int
20387main ()
20388{
20389dld_link ();
20390 ;
20391 return 0;
20392}
20393_ACEOF
20394rm -f conftest.$ac_objext conftest$ac_exeext
20395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20396 (eval $ac_link) 2>conftest.er1
20397 ac_status=$?
20398 grep -v '^ *+' conftest.er1 >conftest.err
20399 rm -f conftest.er1
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
20403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; } &&
20409 { ac_try='test -s conftest$ac_exeext'
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; }; then
20415 ac_cv_lib_dld_dld_link=yes
20416else
20417 echo "$as_me: failed program was:" >&5
20418sed 's/^/| /' conftest.$ac_ext >&5
20419
20420ac_cv_lib_dld_dld_link=no
20421fi
20422rm -f conftest.err conftest.$ac_objext \
20423 conftest$ac_exeext conftest.$ac_ext
20424LIBS=$ac_check_lib_save_LIBS
20425fi
20426echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20427echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20428if test $ac_cv_lib_dld_dld_link = yes; then
20429
20430cat >>confdefs.h <<\_ACEOF
20431#define HAVE_DLD 1
20432_ACEOF
20433
20434 LIBADD_DL="$LIBADD_DL -ldld"
20435else
20436 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20437echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
20438if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440else
20441 cat >conftest.$ac_ext <<_ACEOF
20442/* confdefs.h. */
20443_ACEOF
20444cat confdefs.h >>conftest.$ac_ext
20445cat >>conftest.$ac_ext <<_ACEOF
20446/* end confdefs.h. */
20447/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20449#define _dyld_func_lookup innocuous__dyld_func_lookup
20450
20451/* System header to define __stub macros and hopefully few prototypes,
20452 which can conflict with char _dyld_func_lookup (); below.
20453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20454 <limits.h> exists even on freestanding compilers. */
20455
20456#ifdef __STDC__
20457# include <limits.h>
20458#else
20459# include <assert.h>
20460#endif
20461
20462#undef _dyld_func_lookup
20463
20464/* Override any gcc2 internal prototype to avoid an error. */
20465#ifdef __cplusplus
20466extern "C"
20467{
20468#endif
20469/* We use char because int might match the return type of a gcc2
20470 builtin and then its argument prototype would still apply. */
20471char _dyld_func_lookup ();
20472/* The GNU C library defines this for functions which it implements
20473 to always fail with ENOSYS. Some functions are actually named
20474 something starting with __ and the normal name is an alias. */
20475#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
20476choke me
20477#else
20478char (*f) () = _dyld_func_lookup;
20479#endif
20480#ifdef __cplusplus
20481}
20482#endif
20483
20484int
20485main ()
20486{
20487return f != _dyld_func_lookup;
20488 ;
20489 return 0;
20490}
20491_ACEOF
20492rm -f conftest.$ac_objext conftest$ac_exeext
20493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20494 (eval $ac_link) 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } &&
20501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; } &&
20507 { ac_try='test -s conftest$ac_exeext'
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20510 ac_status=$?
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20513 ac_cv_func__dyld_func_lookup=yes
20514else
20515 echo "$as_me: failed program was:" >&5
20516sed 's/^/| /' conftest.$ac_ext >&5
20517
20518ac_cv_func__dyld_func_lookup=no
20519fi
20520rm -f conftest.err conftest.$ac_objext \
20521 conftest$ac_exeext conftest.$ac_ext
20522fi
20523echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20524echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
20525if test $ac_cv_func__dyld_func_lookup = yes; then
20526
20527cat >>confdefs.h <<\_ACEOF
20528#define HAVE_DYLD 1
20529_ACEOF
20530
20531fi
20532
20533
20534fi
20535
20536
20537fi
20538
20539
20540fi
20541rm -f conftest.err conftest.$ac_objext \
20542 conftest$ac_exeext conftest.$ac_ext
20543
20544fi
20545
20546
20547fi
20548
20549
20550fi
20551
20552
20553if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20554then
20555 lt_save_LIBS="$LIBS"
20556 LIBS="$LIBS $LIBADD_DL"
20557
20558for ac_func in dlerror
20559do
20560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20561echo "$as_me:$LINENO: checking for $ac_func" >&5
20562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20563if eval "test \"\${$as_ac_var+set}\" = set"; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20565else
20566 cat >conftest.$ac_ext <<_ACEOF
20567/* confdefs.h. */
20568_ACEOF
20569cat confdefs.h >>conftest.$ac_ext
20570cat >>conftest.$ac_ext <<_ACEOF
20571/* end confdefs.h. */
20572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20574#define $ac_func innocuous_$ac_func
20575
20576/* System header to define __stub macros and hopefully few prototypes,
20577 which can conflict with char $ac_func (); below.
20578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20579 <limits.h> exists even on freestanding compilers. */
20580
20581#ifdef __STDC__
20582# include <limits.h>
20583#else
20584# include <assert.h>
20585#endif
20586
20587#undef $ac_func
20588
20589/* Override any gcc2 internal prototype to avoid an error. */
20590#ifdef __cplusplus
20591extern "C"
20592{
20593#endif
20594/* We use char because int might match the return type of a gcc2
20595 builtin and then its argument prototype would still apply. */
20596char $ac_func ();
20597/* The GNU C library defines this for functions which it implements
20598 to always fail with ENOSYS. Some functions are actually named
20599 something starting with __ and the normal name is an alias. */
20600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20601choke me
20602#else
20603char (*f) () = $ac_func;
20604#endif
20605#ifdef __cplusplus
20606}
20607#endif
20608
20609int
20610main ()
20611{
20612return f != $ac_func;
20613 ;
20614 return 0;
20615}
20616_ACEOF
20617rm -f conftest.$ac_objext conftest$ac_exeext
20618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619 (eval $ac_link) 2>conftest.er1
20620 ac_status=$?
20621 grep -v '^ *+' conftest.er1 >conftest.err
20622 rm -f conftest.er1
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } &&
20626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628 (eval $ac_try) 2>&5
20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; } &&
20632 { ac_try='test -s conftest$ac_exeext'
20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634 (eval $ac_try) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; }; then
20638 eval "$as_ac_var=yes"
20639else
20640 echo "$as_me: failed program was:" >&5
20641sed 's/^/| /' conftest.$ac_ext >&5
20642
20643eval "$as_ac_var=no"
20644fi
20645rm -f conftest.err conftest.$ac_objext \
20646 conftest$ac_exeext conftest.$ac_ext
20647fi
20648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20650if test `eval echo '${'$as_ac_var'}'` = yes; then
20651 cat >>confdefs.h <<_ACEOF
20652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20653_ACEOF
20654
20655fi
20656done
20657
20658 LIBS="$lt_save_LIBS"
20659fi
20660ac_ext=c
20661ac_cpp='$CPP $CPPFLAGS'
20662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20664ac_compiler_gnu=$ac_cv_c_compiler_gnu
20665
20666
20667
20668echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20669echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
20670if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672else
20673 ac_cv_sys_symbol_underscore=no
20674 cat > conftest.$ac_ext <<EOF
20675void nm_test_func(){}
20676int main(){nm_test_func;return 0;}
20677EOF
20678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20679 (eval $ac_compile) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; then
20683 # Now try to grab the symbols.
20684 ac_nlist=conftest.nm
20685 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20686 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } && test -s "$ac_nlist"; then
20690 # See whether the symbols have a leading underscore.
20691 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20692 ac_cv_sys_symbol_underscore=yes
20693 else
20694 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20695 :
20696 else
20697 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20698 fi
20699 fi
20700 else
20701 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20702 fi
20703 else
20704 echo "configure: failed program was:" >&5
20705 cat conftest.c >&5
20706 fi
20707 rm -rf conftest*
20708
20709fi
20710echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20711echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
20712
20713
20714if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20715 if test x"$libltdl_cv_func_dlopen" = xyes ||
20716 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20717 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20718echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
20719if test "${libltdl_cv_need_uscore+set}" = set; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20721else
20722 libltdl_cv_need_uscore=unknown
20723 save_LIBS="$LIBS"
20724 LIBS="$LIBS $LIBADD_DL"
20725 if test "$cross_compiling" = yes; then :
20726 libltdl_cv_need_uscore=cross
20727else
20728 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20729 lt_status=$lt_dlunknown
20730 cat > conftest.$ac_ext <<EOF
20731#line 20731 "configure"
20732#include "confdefs.h"
20733
20734#if HAVE_DLFCN_H
20735#include <dlfcn.h>
20736#endif
20737
20738#include <stdio.h>
20739
20740#ifdef RTLD_GLOBAL
20741# define LT_DLGLOBAL RTLD_GLOBAL
20742#else
20743# ifdef DL_GLOBAL
20744# define LT_DLGLOBAL DL_GLOBAL
20745# else
20746# define LT_DLGLOBAL 0
20747# endif
20748#endif
20749
20750/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20751 find out it does not work in some platform. */
20752#ifndef LT_DLLAZY_OR_NOW
20753# ifdef RTLD_LAZY
20754# define LT_DLLAZY_OR_NOW RTLD_LAZY
20755# else
20756# ifdef DL_LAZY
20757# define LT_DLLAZY_OR_NOW DL_LAZY
20758# else
20759# ifdef RTLD_NOW
20760# define LT_DLLAZY_OR_NOW RTLD_NOW
20761# else
20762# ifdef DL_NOW
20763# define LT_DLLAZY_OR_NOW DL_NOW
20764# else
20765# define LT_DLLAZY_OR_NOW 0
20766# endif
20767# endif
20768# endif
20769# endif
20770#endif
20771
20772#ifdef __cplusplus
20773extern "C" void exit (int);
20774#endif
20775
20776void fnord() { int i=42;}
20777int main ()
20778{
20779 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20780 int status = $lt_dlunknown;
20781
20782 if (self)
20783 {
20784 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20785 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20786 /* dlclose (self); */
20787 }
20788
20789 exit (status);
20790}
20791EOF
20792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20793 (eval $ac_link) 2>&5
20794 ac_status=$?
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20797 (./conftest; exit; ) 2>/dev/null
20798 lt_status=$?
20799 case x$lt_status in
20800 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20801 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20802 x$lt_unknown|x*) ;;
20803 esac
20804 else :
20805 # compilation failed
20806
20807 fi
20808fi
20809rm -fr conftest*
20810
20811 LIBS="$save_LIBS"
20812
20813fi
20814echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20815echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
20816 fi
20817fi
20818
20819if test x"$libltdl_cv_need_uscore" = xyes; then
20820
20821cat >>confdefs.h <<\_ACEOF
20822#define NEED_USCORE 1
20823_ACEOF
20824
20825fi
20826
20827
20828echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20829echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
20830if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20832else
20833 # PORTME does your system automatically load deplibs for dlopen?
20834 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20835 # For now, we just catch OSes we know something about -- in the
20836 # future, we'll try test this programmatically.
20837 libltdl_cv_sys_dlopen_deplibs=unknown
20838 case "$host_os" in
20839 aix3*|aix4.1.*|aix4.2.*)
20840 # Unknown whether this is true for these versions of AIX, but
20841 # we want this `case' here to explicitly catch those versions.
20842 libltdl_cv_sys_dlopen_deplibs=unknown
20843 ;;
20844 aix[45]*)
20845 libltdl_cv_sys_dlopen_deplibs=yes
20846 ;;
20847 darwin*)
20848 # Assuming the user has installed a libdl from somewhere, this is true
20849 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20850 libltdl_cv_sys_dlopen_deplibs=yes
20851 ;;
20852 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
20853 # GNU and its variants, using gnu ld.so (Glibc)
20854 libltdl_cv_sys_dlopen_deplibs=yes
20855 ;;
20856 hpux10*|hpux11*)
20857 libltdl_cv_sys_dlopen_deplibs=yes
20858 ;;
20859 irix[12345]*|irix6.[01]*)
20860 # Catch all versions of IRIX before 6.2, and indicate that we don't
20861 # know how it worked for any of those versions.
20862 libltdl_cv_sys_dlopen_deplibs=unknown
20863 ;;
20864 irix*)
20865 # The case above catches anything before 6.2, and it's known that
20866 # at 6.2 and later dlopen does load deplibs.
20867 libltdl_cv_sys_dlopen_deplibs=yes
20868 ;;
20869 netbsd* | netbsdelf*-gnu)
20870 libltdl_cv_sys_dlopen_deplibs=yes
20871 ;;
20872 openbsd*)
20873 libltdl_cv_sys_dlopen_deplibs=yes
20874 ;;
20875 osf[1234]*)
20876 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20877 # it did *not* use an RPATH in a shared library to find objects the
20878 # library depends on, so we explictly say `no'.
20879 libltdl_cv_sys_dlopen_deplibs=no
20880 ;;
20881 osf5.0|osf5.0a|osf5.1)
20882 # dlopen *does* load deplibs and with the right loader patch applied
20883 # it even uses RPATH in a shared library to search for shared objects
20884 # that the library depends on, but there's no easy way to know if that
20885 # patch is installed. Since this is the case, all we can really
20886 # say is unknown -- it depends on the patch being installed. If
20887 # it is, this changes to `yes'. Without it, it would be `no'.
20888 libltdl_cv_sys_dlopen_deplibs=unknown
20889 ;;
20890 osf*)
20891 # the two cases above should catch all versions of osf <= 5.1. Read
20892 # the comments above for what we know about them.
20893 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20894 # is used to find them so we can finally say `yes'.
20895 libltdl_cv_sys_dlopen_deplibs=yes
20896 ;;
20897 solaris*)
20898 libltdl_cv_sys_dlopen_deplibs=yes
20899 ;;
20900 esac
20901
20902fi
20903echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20904echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
20905if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20906
20907cat >>confdefs.h <<\_ACEOF
20908#define LTDL_DLOPEN_DEPLIBS 1
20909_ACEOF
20910
20911fi
20912
20913
20914for ac_header in argz.h
20915do
20916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20917if eval "test \"\${$as_ac_Header+set}\" = set"; then
20918 echo "$as_me:$LINENO: checking for $ac_header" >&5
20919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20920if eval "test \"\${$as_ac_Header+set}\" = set"; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6
20922fi
20923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20925else
20926 # Is the header compilable?
20927echo "$as_me:$LINENO: checking $ac_header usability" >&5
20928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20929cat >conftest.$ac_ext <<_ACEOF
20930/* confdefs.h. */
20931_ACEOF
20932cat confdefs.h >>conftest.$ac_ext
20933cat >>conftest.$ac_ext <<_ACEOF
20934/* end confdefs.h. */
20935$ac_includes_default
20936#include <$ac_header>
20937_ACEOF
20938rm -f conftest.$ac_objext
20939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20940 (eval $ac_compile) 2>conftest.er1
20941 ac_status=$?
20942 grep -v '^ *+' conftest.er1 >conftest.err
20943 rm -f conftest.er1
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } &&
20947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; } &&
20953 { ac_try='test -s conftest.$ac_objext'
20954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955 (eval $ac_try) 2>&5
20956 ac_status=$?
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; }; then
20959 ac_header_compiler=yes
20960else
20961 echo "$as_me: failed program was:" >&5
20962sed 's/^/| /' conftest.$ac_ext >&5
20963
20964ac_header_compiler=no
20965fi
20966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20967echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20968echo "${ECHO_T}$ac_header_compiler" >&6
20969
20970# Is the header present?
20971echo "$as_me:$LINENO: checking $ac_header presence" >&5
20972echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20973cat >conftest.$ac_ext <<_ACEOF
20974/* confdefs.h. */
20975_ACEOF
20976cat confdefs.h >>conftest.$ac_ext
20977cat >>conftest.$ac_ext <<_ACEOF
20978/* end confdefs.h. */
20979#include <$ac_header>
20980_ACEOF
20981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20983 ac_status=$?
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } >/dev/null; then
20989 if test -s conftest.err; then
20990 ac_cpp_err=$ac_c_preproc_warn_flag
20991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20992 else
20993 ac_cpp_err=
20994 fi
20995else
20996 ac_cpp_err=yes
20997fi
20998if test -z "$ac_cpp_err"; then
20999 ac_header_preproc=yes
21000else
21001 echo "$as_me: failed program was:" >&5
21002sed 's/^/| /' conftest.$ac_ext >&5
21003
21004 ac_header_preproc=no
21005fi
21006rm -f conftest.err conftest.$ac_ext
21007echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21008echo "${ECHO_T}$ac_header_preproc" >&6
21009
21010# So? What about this header?
21011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21012 yes:no: )
21013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21014echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21016echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21017 ac_header_preproc=yes
21018 ;;
21019 no:yes:* )
21020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21021echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21023echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21025echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21027echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21029echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21031echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21032 (
21033 cat <<\_ASBOX
21034## ---------------------------------- ##
21035## Report this to bug-libtool@gnu.org ##
21036## ---------------------------------- ##
21037_ASBOX
21038 ) |
21039 sed "s/^/$as_me: WARNING: /" >&2
21040 ;;
21041esac
21042echo "$as_me:$LINENO: checking for $ac_header" >&5
21043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21044if eval "test \"\${$as_ac_Header+set}\" = set"; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21046else
21047 eval "$as_ac_Header=\$ac_header_preproc"
21048fi
21049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21051
21052fi
21053if test `eval echo '${'$as_ac_Header'}'` = yes; then
21054 cat >>confdefs.h <<_ACEOF
21055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21056_ACEOF
21057
21058fi
21059
21060done
21061
21062
21063echo "$as_me:$LINENO: checking for error_t" >&5
21064echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21065if test "${ac_cv_type_error_t+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21067else
21068 cat >conftest.$ac_ext <<_ACEOF
21069/* confdefs.h. */
21070_ACEOF
21071cat confdefs.h >>conftest.$ac_ext
21072cat >>conftest.$ac_ext <<_ACEOF
21073/* end confdefs.h. */
21074#if HAVE_ARGZ_H
21075# include <argz.h>
21076#endif
21077
21078int
21079main ()
21080{
21081if ((error_t *) 0)
21082 return 0;
21083if (sizeof (error_t))
21084 return 0;
21085 ;
21086 return 0;
21087}
21088_ACEOF
21089rm -f conftest.$ac_objext
21090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091 (eval $ac_compile) 2>conftest.er1
21092 ac_status=$?
21093 grep -v '^ *+' conftest.er1 >conftest.err
21094 rm -f conftest.er1
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } &&
21098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100 (eval $ac_try) 2>&5
21101 ac_status=$?
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; } &&
21104 { ac_try='test -s conftest.$ac_objext'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; }; then
21110 ac_cv_type_error_t=yes
21111else
21112 echo "$as_me: failed program was:" >&5
21113sed 's/^/| /' conftest.$ac_ext >&5
21114
21115ac_cv_type_error_t=no
21116fi
21117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21118fi
21119echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21120echo "${ECHO_T}$ac_cv_type_error_t" >&6
21121if test $ac_cv_type_error_t = yes; then
21122
21123cat >>confdefs.h <<_ACEOF
21124#define HAVE_ERROR_T 1
21125_ACEOF
21126
21127
21128else
21129
21130cat >>confdefs.h <<\_ACEOF
21131#define error_t int
21132_ACEOF
21133
21134fi
21135
21136
21137
21138
21139
21140
21141
21142for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21143do
21144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21145echo "$as_me:$LINENO: checking for $ac_func" >&5
21146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21147if eval "test \"\${$as_ac_var+set}\" = set"; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149else
21150 cat >conftest.$ac_ext <<_ACEOF
21151/* confdefs.h. */
21152_ACEOF
21153cat confdefs.h >>conftest.$ac_ext
21154cat >>conftest.$ac_ext <<_ACEOF
21155/* end confdefs.h. */
21156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21158#define $ac_func innocuous_$ac_func
21159
21160/* System header to define __stub macros and hopefully few prototypes,
21161 which can conflict with char $ac_func (); below.
21162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21163 <limits.h> exists even on freestanding compilers. */
21164
21165#ifdef __STDC__
21166# include <limits.h>
21167#else
21168# include <assert.h>
21169#endif
21170
21171#undef $ac_func
21172
21173/* Override any gcc2 internal prototype to avoid an error. */
21174#ifdef __cplusplus
21175extern "C"
21176{
21177#endif
21178/* We use char because int might match the return type of a gcc2
21179 builtin and then its argument prototype would still apply. */
21180char $ac_func ();
21181/* The GNU C library defines this for functions which it implements
21182 to always fail with ENOSYS. Some functions are actually named
21183 something starting with __ and the normal name is an alias. */
21184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21185choke me
21186#else
21187char (*f) () = $ac_func;
21188#endif
21189#ifdef __cplusplus
21190}
21191#endif
21192
21193int
21194main ()
21195{
21196return f != $ac_func;
21197 ;
21198 return 0;
21199}
21200_ACEOF
21201rm -f conftest.$ac_objext conftest$ac_exeext
21202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21203 (eval $ac_link) 2>conftest.er1
21204 ac_status=$?
21205 grep -v '^ *+' conftest.er1 >conftest.err
21206 rm -f conftest.er1
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212 (eval $ac_try) 2>&5
21213 ac_status=$?
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; } &&
21216 { ac_try='test -s conftest$ac_exeext'
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21219 ac_status=$?
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; }; then
21222 eval "$as_ac_var=yes"
21223else
21224 echo "$as_me: failed program was:" >&5
21225sed 's/^/| /' conftest.$ac_ext >&5
21226
21227eval "$as_ac_var=no"
21228fi
21229rm -f conftest.err conftest.$ac_objext \
21230 conftest$ac_exeext conftest.$ac_ext
21231fi
21232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21233echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21234if test `eval echo '${'$as_ac_var'}'` = yes; then
21235 cat >>confdefs.h <<_ACEOF
21236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21237_ACEOF
21238
21239fi
21240done
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21270 stdio.h unistd.h
21271do
21272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21273if eval "test \"\${$as_ac_Header+set}\" = set"; then
21274 echo "$as_me:$LINENO: checking for $ac_header" >&5
21275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21276if eval "test \"\${$as_ac_Header+set}\" = set"; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21278fi
21279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21281else
21282 # Is the header compilable?
21283echo "$as_me:$LINENO: checking $ac_header usability" >&5
21284echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21285cat >conftest.$ac_ext <<_ACEOF
21286/* confdefs.h. */
21287_ACEOF
21288cat confdefs.h >>conftest.$ac_ext
21289cat >>conftest.$ac_ext <<_ACEOF
21290/* end confdefs.h. */
21291$ac_includes_default
21292#include <$ac_header>
21293_ACEOF
21294rm -f conftest.$ac_objext
21295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21296 (eval $ac_compile) 2>conftest.er1
21297 ac_status=$?
21298 grep -v '^ *+' conftest.er1 >conftest.err
21299 rm -f conftest.er1
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } &&
21303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; } &&
21309 { ac_try='test -s conftest.$ac_objext'
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; }; then
21315 ac_header_compiler=yes
21316else
21317 echo "$as_me: failed program was:" >&5
21318sed 's/^/| /' conftest.$ac_ext >&5
21319
21320ac_header_compiler=no
21321fi
21322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21323echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21324echo "${ECHO_T}$ac_header_compiler" >&6
21325
21326# Is the header present?
21327echo "$as_me:$LINENO: checking $ac_header presence" >&5
21328echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21329cat >conftest.$ac_ext <<_ACEOF
21330/* confdefs.h. */
21331_ACEOF
21332cat confdefs.h >>conftest.$ac_ext
21333cat >>conftest.$ac_ext <<_ACEOF
21334/* end confdefs.h. */
21335#include <$ac_header>
21336_ACEOF
21337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21339 ac_status=$?
21340 grep -v '^ *+' conftest.er1 >conftest.err
21341 rm -f conftest.er1
21342 cat conftest.err >&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } >/dev/null; then
21345 if test -s conftest.err; then
21346 ac_cpp_err=$ac_c_preproc_warn_flag
21347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21348 else
21349 ac_cpp_err=
21350 fi
21351else
21352 ac_cpp_err=yes
21353fi
21354if test -z "$ac_cpp_err"; then
21355 ac_header_preproc=yes
21356else
21357 echo "$as_me: failed program was:" >&5
21358sed 's/^/| /' conftest.$ac_ext >&5
21359
21360 ac_header_preproc=no
21361fi
21362rm -f conftest.err conftest.$ac_ext
21363echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21364echo "${ECHO_T}$ac_header_preproc" >&6
21365
21366# So? What about this header?
21367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21368 yes:no: )
21369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21370echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21372echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21373 ac_header_preproc=yes
21374 ;;
21375 no:yes:* )
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21377echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21379echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21381echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21383echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21385echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21387echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21388 (
21389 cat <<\_ASBOX
21390## ---------------------------------- ##
21391## Report this to bug-libtool@gnu.org ##
21392## ---------------------------------- ##
21393_ASBOX
21394 ) |
21395 sed "s/^/$as_me: WARNING: /" >&2
21396 ;;
21397esac
21398echo "$as_me:$LINENO: checking for $ac_header" >&5
21399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21400if eval "test \"\${$as_ac_Header+set}\" = set"; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21402else
21403 eval "$as_ac_Header=\$ac_header_preproc"
21404fi
21405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21407
21408fi
21409if test `eval echo '${'$as_ac_Header'}'` = yes; then
21410 cat >>confdefs.h <<_ACEOF
21411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21412_ACEOF
21413
21414fi
21415
21416done
21417
21418
21419
21420
21421
21422for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21423do
21424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21425if eval "test \"\${$as_ac_Header+set}\" = set"; then
21426 echo "$as_me:$LINENO: checking for $ac_header" >&5
21427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21428if eval "test \"\${$as_ac_Header+set}\" = set"; then
21429 echo $ECHO_N "(cached) $ECHO_C" >&6
21430fi
21431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21433else
21434 # Is the header compilable?
21435echo "$as_me:$LINENO: checking $ac_header usability" >&5
21436echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21437cat >conftest.$ac_ext <<_ACEOF
21438/* confdefs.h. */
21439_ACEOF
21440cat confdefs.h >>conftest.$ac_ext
21441cat >>conftest.$ac_ext <<_ACEOF
21442/* end confdefs.h. */
21443$ac_includes_default
21444#include <$ac_header>
21445_ACEOF
21446rm -f conftest.$ac_objext
21447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21448 (eval $ac_compile) 2>conftest.er1
21449 ac_status=$?
21450 grep -v '^ *+' conftest.er1 >conftest.err
21451 rm -f conftest.er1
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } &&
21455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; } &&
21461 { ac_try='test -s conftest.$ac_objext'
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21464 ac_status=$?
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; }; then
21467 ac_header_compiler=yes
21468else
21469 echo "$as_me: failed program was:" >&5
21470sed 's/^/| /' conftest.$ac_ext >&5
21471
21472ac_header_compiler=no
21473fi
21474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21476echo "${ECHO_T}$ac_header_compiler" >&6
21477
21478# Is the header present?
21479echo "$as_me:$LINENO: checking $ac_header presence" >&5
21480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21481cat >conftest.$ac_ext <<_ACEOF
21482/* confdefs.h. */
21483_ACEOF
21484cat confdefs.h >>conftest.$ac_ext
21485cat >>conftest.$ac_ext <<_ACEOF
21486/* end confdefs.h. */
21487#include <$ac_header>
21488_ACEOF
21489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21491 ac_status=$?
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } >/dev/null; then
21497 if test -s conftest.err; then
21498 ac_cpp_err=$ac_c_preproc_warn_flag
21499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21500 else
21501 ac_cpp_err=
21502 fi
21503else
21504 ac_cpp_err=yes
21505fi
21506if test -z "$ac_cpp_err"; then
21507 ac_header_preproc=yes
21508else
21509 echo "$as_me: failed program was:" >&5
21510sed 's/^/| /' conftest.$ac_ext >&5
21511
21512 ac_header_preproc=no
21513fi
21514rm -f conftest.err conftest.$ac_ext
21515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21516echo "${ECHO_T}$ac_header_preproc" >&6
21517
21518# So? What about this header?
21519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21520 yes:no: )
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21525 ac_header_preproc=yes
21526 ;;
21527 no:yes:* )
21528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21531echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21535echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21540 (
21541 cat <<\_ASBOX
21542## ---------------------------------- ##
21543## Report this to bug-libtool@gnu.org ##
21544## ---------------------------------- ##
21545_ASBOX
21546 ) |
21547 sed "s/^/$as_me: WARNING: /" >&2
21548 ;;
21549esac
21550echo "$as_me:$LINENO: checking for $ac_header" >&5
21551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21552if eval "test \"\${$as_ac_Header+set}\" = set"; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21554else
21555 eval "$as_ac_Header=\$ac_header_preproc"
21556fi
21557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21559
21560fi
21561if test `eval echo '${'$as_ac_Header'}'` = yes; then
21562 cat >>confdefs.h <<_ACEOF
21563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21564_ACEOF
21565
21566fi
21567
21568done
21569
21570
21571
21572for ac_header in string.h strings.h
21573do
21574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21575if eval "test \"\${$as_ac_Header+set}\" = set"; then
21576 echo "$as_me:$LINENO: checking for $ac_header" >&5
21577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21578if eval "test \"\${$as_ac_Header+set}\" = set"; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21580fi
21581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21583else
21584 # Is the header compilable?
21585echo "$as_me:$LINENO: checking $ac_header usability" >&5
21586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21587cat >conftest.$ac_ext <<_ACEOF
21588/* confdefs.h. */
21589_ACEOF
21590cat confdefs.h >>conftest.$ac_ext
21591cat >>conftest.$ac_ext <<_ACEOF
21592/* end confdefs.h. */
21593$ac_includes_default
21594#include <$ac_header>
21595_ACEOF
21596rm -f conftest.$ac_objext
21597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21598 (eval $ac_compile) 2>conftest.er1
21599 ac_status=$?
21600 grep -v '^ *+' conftest.er1 >conftest.err
21601 rm -f conftest.er1
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } &&
21605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; } &&
21611 { ac_try='test -s conftest.$ac_objext'
21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613 (eval $ac_try) 2>&5
21614 ac_status=$?
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; }; then
21617 ac_header_compiler=yes
21618else
21619 echo "$as_me: failed program was:" >&5
21620sed 's/^/| /' conftest.$ac_ext >&5
21621
21622ac_header_compiler=no
21623fi
21624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21626echo "${ECHO_T}$ac_header_compiler" >&6
21627
21628# Is the header present?
21629echo "$as_me:$LINENO: checking $ac_header presence" >&5
21630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21631cat >conftest.$ac_ext <<_ACEOF
21632/* confdefs.h. */
21633_ACEOF
21634cat confdefs.h >>conftest.$ac_ext
21635cat >>conftest.$ac_ext <<_ACEOF
21636/* end confdefs.h. */
21637#include <$ac_header>
21638_ACEOF
21639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } >/dev/null; then
21647 if test -s conftest.err; then
21648 ac_cpp_err=$ac_c_preproc_warn_flag
21649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21650 else
21651 ac_cpp_err=
21652 fi
21653else
21654 ac_cpp_err=yes
21655fi
21656if test -z "$ac_cpp_err"; then
21657 ac_header_preproc=yes
21658else
21659 echo "$as_me: failed program was:" >&5
21660sed 's/^/| /' conftest.$ac_ext >&5
21661
21662 ac_header_preproc=no
21663fi
21664rm -f conftest.err conftest.$ac_ext
21665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21666echo "${ECHO_T}$ac_header_preproc" >&6
21667
21668# So? What about this header?
21669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21670 yes:no: )
21671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21675 ac_header_preproc=yes
21676 ;;
21677 no:yes:* )
21678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21690 (
21691 cat <<\_ASBOX
21692## ---------------------------------- ##
21693## Report this to bug-libtool@gnu.org ##
21694## ---------------------------------- ##
21695_ASBOX
21696 ) |
21697 sed "s/^/$as_me: WARNING: /" >&2
21698 ;;
21699esac
21700echo "$as_me:$LINENO: checking for $ac_header" >&5
21701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21702if eval "test \"\${$as_ac_Header+set}\" = set"; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21704else
21705 eval "$as_ac_Header=\$ac_header_preproc"
21706fi
21707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21709
21710fi
21711if test `eval echo '${'$as_ac_Header'}'` = yes; then
21712 cat >>confdefs.h <<_ACEOF
21713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21714_ACEOF
21715 break
21716fi
21717
21718done
21719
21720
21721
21722
21723for ac_func in strchr index
21724do
21725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21726echo "$as_me:$LINENO: checking for $ac_func" >&5
21727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21728if eval "test \"\${$as_ac_var+set}\" = set"; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21730else
21731 cat >conftest.$ac_ext <<_ACEOF
21732/* confdefs.h. */
21733_ACEOF
21734cat confdefs.h >>conftest.$ac_ext
21735cat >>conftest.$ac_ext <<_ACEOF
21736/* end confdefs.h. */
21737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21739#define $ac_func innocuous_$ac_func
21740
21741/* System header to define __stub macros and hopefully few prototypes,
21742 which can conflict with char $ac_func (); below.
21743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21744 <limits.h> exists even on freestanding compilers. */
21745
21746#ifdef __STDC__
21747# include <limits.h>
21748#else
21749# include <assert.h>
21750#endif
21751
21752#undef $ac_func
21753
21754/* Override any gcc2 internal prototype to avoid an error. */
21755#ifdef __cplusplus
21756extern "C"
21757{
21758#endif
21759/* We use char because int might match the return type of a gcc2
21760 builtin and then its argument prototype would still apply. */
21761char $ac_func ();
21762/* The GNU C library defines this for functions which it implements
21763 to always fail with ENOSYS. Some functions are actually named
21764 something starting with __ and the normal name is an alias. */
21765#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21766choke me
21767#else
21768char (*f) () = $ac_func;
21769#endif
21770#ifdef __cplusplus
21771}
21772#endif
21773
21774int
21775main ()
21776{
21777return f != $ac_func;
21778 ;
21779 return 0;
21780}
21781_ACEOF
21782rm -f conftest.$ac_objext conftest$ac_exeext
21783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21784 (eval $ac_link) 2>conftest.er1
21785 ac_status=$?
21786 grep -v '^ *+' conftest.er1 >conftest.err
21787 rm -f conftest.er1
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } &&
21791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21793 (eval $ac_try) 2>&5
21794 ac_status=$?
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); }; } &&
21797 { ac_try='test -s conftest$ac_exeext'
21798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799 (eval $ac_try) 2>&5
21800 ac_status=$?
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; }; then
21803 eval "$as_ac_var=yes"
21804else
21805 echo "$as_me: failed program was:" >&5
21806sed 's/^/| /' conftest.$ac_ext >&5
21807
21808eval "$as_ac_var=no"
21809fi
21810rm -f conftest.err conftest.$ac_objext \
21811 conftest$ac_exeext conftest.$ac_ext
21812fi
21813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21814echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21815if test `eval echo '${'$as_ac_var'}'` = yes; then
21816 cat >>confdefs.h <<_ACEOF
21817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21818_ACEOF
21819 break
21820fi
21821done
21822
21823
21824
21825for ac_func in strrchr rindex
21826do
21827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21828echo "$as_me:$LINENO: checking for $ac_func" >&5
21829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21830if eval "test \"\${$as_ac_var+set}\" = set"; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21832else
21833 cat >conftest.$ac_ext <<_ACEOF
21834/* confdefs.h. */
21835_ACEOF
21836cat confdefs.h >>conftest.$ac_ext
21837cat >>conftest.$ac_ext <<_ACEOF
21838/* end confdefs.h. */
21839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21841#define $ac_func innocuous_$ac_func
21842
21843/* System header to define __stub macros and hopefully few prototypes,
21844 which can conflict with char $ac_func (); below.
21845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21846 <limits.h> exists even on freestanding compilers. */
21847
21848#ifdef __STDC__
21849# include <limits.h>
21850#else
21851# include <assert.h>
21852#endif
21853
21854#undef $ac_func
21855
21856/* Override any gcc2 internal prototype to avoid an error. */
21857#ifdef __cplusplus
21858extern "C"
21859{
21860#endif
21861/* We use char because int might match the return type of a gcc2
21862 builtin and then its argument prototype would still apply. */
21863char $ac_func ();
21864/* The GNU C library defines this for functions which it implements
21865 to always fail with ENOSYS. Some functions are actually named
21866 something starting with __ and the normal name is an alias. */
21867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21868choke me
21869#else
21870char (*f) () = $ac_func;
21871#endif
21872#ifdef __cplusplus
21873}
21874#endif
21875
21876int
21877main ()
21878{
21879return f != $ac_func;
21880 ;
21881 return 0;
21882}
21883_ACEOF
21884rm -f conftest.$ac_objext conftest$ac_exeext
21885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21886 (eval $ac_link) 2>conftest.er1
21887 ac_status=$?
21888 grep -v '^ *+' conftest.er1 >conftest.err
21889 rm -f conftest.er1
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } &&
21893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; } &&
21899 { ac_try='test -s conftest$ac_exeext'
21900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }; }; then
21905 eval "$as_ac_var=yes"
21906else
21907 echo "$as_me: failed program was:" >&5
21908sed 's/^/| /' conftest.$ac_ext >&5
21909
21910eval "$as_ac_var=no"
21911fi
21912rm -f conftest.err conftest.$ac_objext \
21913 conftest$ac_exeext conftest.$ac_ext
21914fi
21915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21917if test `eval echo '${'$as_ac_var'}'` = yes; then
21918 cat >>confdefs.h <<_ACEOF
21919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21920_ACEOF
21921 break
21922fi
21923done
21924
21925
21926
21927for ac_func in memcpy bcopy
21928do
21929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21930echo "$as_me:$LINENO: checking for $ac_func" >&5
21931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21932if eval "test \"\${$as_ac_var+set}\" = set"; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21934else
21935 cat >conftest.$ac_ext <<_ACEOF
21936/* confdefs.h. */
21937_ACEOF
21938cat confdefs.h >>conftest.$ac_ext
21939cat >>conftest.$ac_ext <<_ACEOF
21940/* end confdefs.h. */
21941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21943#define $ac_func innocuous_$ac_func
21944
21945/* System header to define __stub macros and hopefully few prototypes,
21946 which can conflict with char $ac_func (); below.
21947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21948 <limits.h> exists even on freestanding compilers. */
21949
21950#ifdef __STDC__
21951# include <limits.h>
21952#else
21953# include <assert.h>
21954#endif
21955
21956#undef $ac_func
21957
21958/* Override any gcc2 internal prototype to avoid an error. */
21959#ifdef __cplusplus
21960extern "C"
21961{
21962#endif
21963/* We use char because int might match the return type of a gcc2
21964 builtin and then its argument prototype would still apply. */
21965char $ac_func ();
21966/* The GNU C library defines this for functions which it implements
21967 to always fail with ENOSYS. Some functions are actually named
21968 something starting with __ and the normal name is an alias. */
21969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21970choke me
21971#else
21972char (*f) () = $ac_func;
21973#endif
21974#ifdef __cplusplus
21975}
21976#endif
21977
21978int
21979main ()
21980{
21981return f != $ac_func;
21982 ;
21983 return 0;
21984}
21985_ACEOF
21986rm -f conftest.$ac_objext conftest$ac_exeext
21987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21988 (eval $ac_link) 2>conftest.er1
21989 ac_status=$?
21990 grep -v '^ *+' conftest.er1 >conftest.err
21991 rm -f conftest.er1
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } &&
21995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; } &&
22001 { ac_try='test -s conftest$ac_exeext'
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; }; then
22007 eval "$as_ac_var=yes"
22008else
22009 echo "$as_me: failed program was:" >&5
22010sed 's/^/| /' conftest.$ac_ext >&5
22011
22012eval "$as_ac_var=no"
22013fi
22014rm -f conftest.err conftest.$ac_objext \
22015 conftest$ac_exeext conftest.$ac_ext
22016fi
22017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22018echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22019if test `eval echo '${'$as_ac_var'}'` = yes; then
22020 cat >>confdefs.h <<_ACEOF
22021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22022_ACEOF
22023 break
22024fi
22025done
22026
22027
22028
22029for ac_func in memmove strcmp
22030do
22031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22032echo "$as_me:$LINENO: checking for $ac_func" >&5
22033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22034if eval "test \"\${$as_ac_var+set}\" = set"; then
22035 echo $ECHO_N "(cached) $ECHO_C" >&6
22036else
22037 cat >conftest.$ac_ext <<_ACEOF
22038/* confdefs.h. */
22039_ACEOF
22040cat confdefs.h >>conftest.$ac_ext
22041cat >>conftest.$ac_ext <<_ACEOF
22042/* end confdefs.h. */
22043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22045#define $ac_func innocuous_$ac_func
22046
22047/* System header to define __stub macros and hopefully few prototypes,
22048 which can conflict with char $ac_func (); below.
22049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22050 <limits.h> exists even on freestanding compilers. */
22051
22052#ifdef __STDC__
22053# include <limits.h>
22054#else
22055# include <assert.h>
22056#endif
22057
22058#undef $ac_func
22059
22060/* Override any gcc2 internal prototype to avoid an error. */
22061#ifdef __cplusplus
22062extern "C"
22063{
22064#endif
22065/* We use char because int might match the return type of a gcc2
22066 builtin and then its argument prototype would still apply. */
22067char $ac_func ();
22068/* The GNU C library defines this for functions which it implements
22069 to always fail with ENOSYS. Some functions are actually named
22070 something starting with __ and the normal name is an alias. */
22071#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22072choke me
22073#else
22074char (*f) () = $ac_func;
22075#endif
22076#ifdef __cplusplus
22077}
22078#endif
22079
22080int
22081main ()
22082{
22083return f != $ac_func;
22084 ;
22085 return 0;
22086}
22087_ACEOF
22088rm -f conftest.$ac_objext conftest$ac_exeext
22089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22090 (eval $ac_link) 2>conftest.er1
22091 ac_status=$?
22092 grep -v '^ *+' conftest.er1 >conftest.err
22093 rm -f conftest.er1
22094 cat conftest.err >&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); } &&
22097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099 (eval $ac_try) 2>&5
22100 ac_status=$?
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); }; } &&
22103 { ac_try='test -s conftest$ac_exeext'
22104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105 (eval $ac_try) 2>&5
22106 ac_status=$?
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; }; then
22109 eval "$as_ac_var=yes"
22110else
22111 echo "$as_me: failed program was:" >&5
22112sed 's/^/| /' conftest.$ac_ext >&5
22113
22114eval "$as_ac_var=no"
22115fi
22116rm -f conftest.err conftest.$ac_objext \
22117 conftest$ac_exeext conftest.$ac_ext
22118fi
22119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22121if test `eval echo '${'$as_ac_var'}'` = yes; then
22122 cat >>confdefs.h <<_ACEOF
22123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22124_ACEOF
22125
22126fi
22127done
22128
22129
22130
22131
22132for ac_func in closedir opendir readdir
22133do
22134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22135echo "$as_me:$LINENO: checking for $ac_func" >&5
22136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22137if eval "test \"\${$as_ac_var+set}\" = set"; then
22138 echo $ECHO_N "(cached) $ECHO_C" >&6
22139else
22140 cat >conftest.$ac_ext <<_ACEOF
22141/* confdefs.h. */
22142_ACEOF
22143cat confdefs.h >>conftest.$ac_ext
22144cat >>conftest.$ac_ext <<_ACEOF
22145/* end confdefs.h. */
22146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22148#define $ac_func innocuous_$ac_func
22149
22150/* System header to define __stub macros and hopefully few prototypes,
22151 which can conflict with char $ac_func (); below.
22152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22153 <limits.h> exists even on freestanding compilers. */
22154
22155#ifdef __STDC__
22156# include <limits.h>
22157#else
22158# include <assert.h>
22159#endif
22160
22161#undef $ac_func
22162
22163/* Override any gcc2 internal prototype to avoid an error. */
22164#ifdef __cplusplus
22165extern "C"
22166{
22167#endif
22168/* We use char because int might match the return type of a gcc2
22169 builtin and then its argument prototype would still apply. */
22170char $ac_func ();
22171/* The GNU C library defines this for functions which it implements
22172 to always fail with ENOSYS. Some functions are actually named
22173 something starting with __ and the normal name is an alias. */
22174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22175choke me
22176#else
22177char (*f) () = $ac_func;
22178#endif
22179#ifdef __cplusplus
22180}
22181#endif
22182
22183int
22184main ()
22185{
22186return f != $ac_func;
22187 ;
22188 return 0;
22189}
22190_ACEOF
22191rm -f conftest.$ac_objext conftest$ac_exeext
22192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22193 (eval $ac_link) 2>conftest.er1
22194 ac_status=$?
22195 grep -v '^ *+' conftest.er1 >conftest.err
22196 rm -f conftest.er1
22197 cat conftest.err >&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } &&
22200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22203 ac_status=$?
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; } &&
22206 { ac_try='test -s conftest$ac_exeext'
22207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208 (eval $ac_try) 2>&5
22209 ac_status=$?
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }; }; then
22212 eval "$as_ac_var=yes"
22213else
22214 echo "$as_me: failed program was:" >&5
22215sed 's/^/| /' conftest.$ac_ext >&5
22216
22217eval "$as_ac_var=no"
22218fi
22219rm -f conftest.err conftest.$ac_objext \
22220 conftest$ac_exeext conftest.$ac_ext
22221fi
22222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22224if test `eval echo '${'$as_ac_var'}'` = yes; then
22225 cat >>confdefs.h <<_ACEOF
22226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22227_ACEOF
22228
22229fi
22230done
22231
22232
22233
22234
22235## -------- ##
22236## Outputs. ##
22237## -------- ##
22238 ac_config_files="$ac_config_files Makefile"
22239
22240cat >confcache <<\_ACEOF
22241# This file is a shell script that caches the results of configure
22242# tests run on this system so they can be shared between configure
22243# scripts and configure runs, see configure's option --config-cache.
22244# It is not useful on other systems. If it contains results you don't
22245# want to keep, you may remove or edit it.
22246#
22247# config.status only pays attention to the cache file if you give it
22248# the --recheck option to rerun configure.
22249#
22250# `ac_cv_env_foo' variables (set or unset) will be overridden when
22251# loading this file, other *unset* `ac_cv_foo' will be assigned the
22252# following values.
22253
22254_ACEOF
22255
22256# The following way of writing the cache mishandles newlines in values,
22257# but we know of no workaround that is simple, portable, and efficient.
22258# So, don't put newlines in cache variables' values.
22259# Ultrix sh set writes to stderr and can't be redirected directly,
22260# and sets the high bit in the cache file unless we assign to the vars.
22261{
22262 (set) 2>&1 |
22263 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22264 *ac_space=\ *)
22265 # `set' does not quote correctly, so add quotes (double-quote
22266 # substitution turns \\\\ into \\, and sed turns \\ into \).
22267 sed -n \
22268 "s/'/'\\\\''/g;
22269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22270 ;;
22271 *)
22272 # `set' quotes correctly as required by POSIX, so do not add quotes.
22273 sed -n \
22274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22275 ;;
22276 esac;
22277} |
22278 sed '
22279 t clear
22280 : clear
22281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22282 t end
22283 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22284 : end' >>confcache
22285if diff $cache_file confcache >/dev/null 2>&1; then :; else
22286 if test -w $cache_file; then
22287 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22288 cat confcache >$cache_file
22289 else
22290 echo "not updating unwritable cache $cache_file"
22291 fi
22292fi
22293rm -f confcache
22294
22295test "x$prefix" = xNONE && prefix=$ac_default_prefix
22296# Let make expand exec_prefix.
22297test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22298
22299# VPATH may cause trouble with some makes, so we remove $(srcdir),
22300# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22301# trailing colons and then remove the whole line if VPATH becomes empty
22302# (actually we leave an empty line to preserve line numbers).
22303if test "x$srcdir" = x.; then
22304 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22305s/:*\$(srcdir):*/:/;
22306s/:*\${srcdir}:*/:/;
22307s/:*@srcdir@:*/:/;
22308s/^\([^=]*=[ ]*\):*/\1/;
22309s/:*$//;
22310s/^[^=]*=[ ]*$//;
22311}'
22312fi
22313
22314DEFS=-DHAVE_CONFIG_H
22315
22316ac_libobjs=
22317ac_ltlibobjs=
22318for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22319 # 1. Remove the extension, and $U if already installed.
22320 ac_i=`echo "$ac_i" |
22321 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22322 # 2. Add them.
22323 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22324 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22325done
22326LIBOBJS=$ac_libobjs
22327
22328LTLIBOBJS=$ac_ltlibobjs
22329
22330
22331if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22332 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22333Usually this means the macro was only invoked conditionally." >&5
22334echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22335Usually this means the macro was only invoked conditionally." >&2;}
22336 { (exit 1); exit 1; }; }
22337fi
22338if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22339 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22340Usually this means the macro was only invoked conditionally." >&5
22341echo "$as_me: error: conditional \"AMDEP\" was never defined.
22342Usually this means the macro was only invoked conditionally." >&2;}
22343 { (exit 1); exit 1; }; }
22344fi
22345if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22346 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22347Usually this means the macro was only invoked conditionally." >&5
22348echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22349Usually this means the macro was only invoked conditionally." >&2;}
22350 { (exit 1); exit 1; }; }
22351fi
22352if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22353 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22354Usually this means the macro was only invoked conditionally." >&5
22355echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22356Usually this means the macro was only invoked conditionally." >&2;}
22357 { (exit 1); exit 1; }; }
22358fi
22359if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22360 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22361Usually this means the macro was only invoked conditionally." >&5
22362echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22363Usually this means the macro was only invoked conditionally." >&2;}
22364 { (exit 1); exit 1; }; }
22365fi
22366if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22367 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22368Usually this means the macro was only invoked conditionally." >&5
22369echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22370Usually this means the macro was only invoked conditionally." >&2;}
22371 { (exit 1); exit 1; }; }
22372fi
22373
22374: ${CONFIG_STATUS=./config.status}
22375ac_clean_files_save=$ac_clean_files
22376ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22377{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22378echo "$as_me: creating $CONFIG_STATUS" >&6;}
22379cat >$CONFIG_STATUS <<_ACEOF
22380#! $SHELL
22381# Generated by $as_me.
22382# Run this file to recreate the current configuration.
22383# Compiler output produced by configure, useful for debugging
22384# configure, is in config.log if it exists.
22385
22386debug=false
22387ac_cs_recheck=false
22388ac_cs_silent=false
22389SHELL=\${CONFIG_SHELL-$SHELL}
22390_ACEOF
22391
22392cat >>$CONFIG_STATUS <<\_ACEOF
22393## --------------------- ##
22394## M4sh Initialization. ##
22395## --------------------- ##
22396
22397# Be Bourne compatible
22398if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22399 emulate sh
22400 NULLCMD=:
22401 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22402 # is contrary to our usage. Disable this feature.
22403 alias -g '${1+"$@"}'='"$@"'
22404elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22405 set -o posix
22406fi
22407DUALCASE=1; export DUALCASE # for MKS sh
22408
22409# Support unset when possible.
22410if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22411 as_unset=unset
22412else
22413 as_unset=false
22414fi
22415
22416
22417# Work around bugs in pre-3.0 UWIN ksh.
22418$as_unset ENV MAIL MAILPATH
22419PS1='$ '
22420PS2='> '
22421PS4='+ '
22422
22423# NLS nuisances.
22424for as_var in \
22425 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22426 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22427 LC_TELEPHONE LC_TIME
22428do
22429 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22430 eval $as_var=C; export $as_var
22431 else
22432 $as_unset $as_var
22433 fi
22434done
22435
22436# Required to use basename.
22437if expr a : '\(a\)' >/dev/null 2>&1; then
22438 as_expr=expr
22439else
22440 as_expr=false
22441fi
22442
22443if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22444 as_basename=basename
22445else
22446 as_basename=false
22447fi
22448
22449
22450# Name of the executable.
22451as_me=`$as_basename "$0" ||
22452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22453 X"$0" : 'X\(//\)$' \| \
22454 X"$0" : 'X\(/\)$' \| \
22455 . : '\(.\)' 2>/dev/null ||
22456echo X/"$0" |
22457 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22458 /^X\/\(\/\/\)$/{ s//\1/; q; }
22459 /^X\/\(\/\).*/{ s//\1/; q; }
22460 s/.*/./; q'`
22461
22462
22463# PATH needs CR, and LINENO needs CR and PATH.
22464# Avoid depending upon Character Ranges.
22465as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22466as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22467as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22468as_cr_digits='0123456789'
22469as_cr_alnum=$as_cr_Letters$as_cr_digits
22470
22471# The user is always right.
22472if test "${PATH_SEPARATOR+set}" != set; then
22473 echo "#! /bin/sh" >conf$$.sh
22474 echo "exit 0" >>conf$$.sh
22475 chmod +x conf$$.sh
22476 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22477 PATH_SEPARATOR=';'
22478 else
22479 PATH_SEPARATOR=:
22480 fi
22481 rm -f conf$$.sh
22482fi
22483
22484
22485 as_lineno_1=$LINENO
22486 as_lineno_2=$LINENO
22487 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22488 test "x$as_lineno_1" != "x$as_lineno_2" &&
22489 test "x$as_lineno_3" = "x$as_lineno_2" || {
22490 # Find who we are. Look in the path if we contain no path at all
22491 # relative or not.
22492 case $0 in
22493 *[\\/]* ) as_myself=$0 ;;
22494 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22495for as_dir in $PATH
22496do
22497 IFS=$as_save_IFS
22498 test -z "$as_dir" && as_dir=.
22499 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22500done
22501
22502 ;;
22503 esac
22504 # We did not find ourselves, most probably we were run as `sh COMMAND'
22505 # in which case we are not to be found in the path.
22506 if test "x$as_myself" = x; then
22507 as_myself=$0
22508 fi
22509 if test ! -f "$as_myself"; then
22510 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22511echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22512 { (exit 1); exit 1; }; }
22513 fi
22514 case $CONFIG_SHELL in
22515 '')
22516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22517for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22518do
22519 IFS=$as_save_IFS
22520 test -z "$as_dir" && as_dir=.
22521 for as_base in sh bash ksh sh5; do
22522 case $as_dir in
22523 /*)
22524 if ("$as_dir/$as_base" -c '
22525 as_lineno_1=$LINENO
22526 as_lineno_2=$LINENO
22527 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22528 test "x$as_lineno_1" != "x$as_lineno_2" &&
22529 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22530 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22531 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22532 CONFIG_SHELL=$as_dir/$as_base
22533 export CONFIG_SHELL
22534 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22535 fi;;
22536 esac
22537 done
22538done
22539;;
22540 esac
22541
22542 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22543 # uniformly replaced by the line number. The first 'sed' inserts a
22544 # line-number line before each line; the second 'sed' does the real
22545 # work. The second script uses 'N' to pair each line-number line
22546 # with the numbered line, and appends trailing '-' during
22547 # substitution so that $LINENO is not a special case at line end.
22548 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22549 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22550 sed '=' <$as_myself |
22551 sed '
22552 N
22553 s,$,-,
22554 : loop
22555 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22556 t loop
22557 s,-$,,
22558 s,^['$as_cr_digits']*\n,,
22559 ' >$as_me.lineno &&
22560 chmod +x $as_me.lineno ||
22561 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22562echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22563 { (exit 1); exit 1; }; }
22564
22565 # Don't try to exec as it changes $[0], causing all sort of problems
22566 # (the dirname of $[0] is not the place where we might find the
22567 # original and so on. Autoconf is especially sensible to this).
22568 . ./$as_me.lineno
22569 # Exit status is that of the last command.
22570 exit
22571}
22572
22573
22574case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22575 *c*,-n*) ECHO_N= ECHO_C='
22576' ECHO_T=' ' ;;
22577 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22578 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22579esac
22580
22581if expr a : '\(a\)' >/dev/null 2>&1; then
22582 as_expr=expr
22583else
22584 as_expr=false
22585fi
22586
22587rm -f conf$$ conf$$.exe conf$$.file
22588echo >conf$$.file
22589if ln -s conf$$.file conf$$ 2>/dev/null; then
22590 # We could just check for DJGPP; but this test a) works b) is more generic
22591 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22592 if test -f conf$$.exe; then
22593 # Don't use ln at all; we don't have any links
22594 as_ln_s='cp -p'
22595 else
22596 as_ln_s='ln -s'
22597 fi
22598elif ln conf$$.file conf$$ 2>/dev/null; then
22599 as_ln_s=ln
22600else
22601 as_ln_s='cp -p'
22602fi
22603rm -f conf$$ conf$$.exe conf$$.file
22604
22605if mkdir -p . 2>/dev/null; then
22606 as_mkdir_p=:
22607else
22608 test -d ./-p && rmdir ./-p
22609 as_mkdir_p=false
22610fi
22611
22612as_executable_p="test -f"
22613
22614# Sed expression to map a string onto a valid CPP name.
22615as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22616
22617# Sed expression to map a string onto a valid variable name.
22618as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22619
22620
22621# IFS
22622# We need space, tab and new line, in precisely that order.
22623as_nl='
22624'
22625IFS=" $as_nl"
22626
22627# CDPATH.
22628$as_unset CDPATH
22629
22630exec 6>&1
22631
22632# Open the log real soon, to keep \$[0] and so on meaningful, and to
22633# report actual input values of CONFIG_FILES etc. instead of their
22634# values after options handling. Logging --version etc. is OK.
22635exec 5>>config.log
22636{
22637 echo
22638 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22639## Running $as_me. ##
22640_ASBOX
22641} >&5
22642cat >&5 <<_CSEOF
22643
22644This file was extended by libltdl $as_me 1.2, which was
22645generated by GNU Autoconf 2.59. Invocation command line was
22646
22647 CONFIG_FILES = $CONFIG_FILES
22648 CONFIG_HEADERS = $CONFIG_HEADERS
22649 CONFIG_LINKS = $CONFIG_LINKS
22650 CONFIG_COMMANDS = $CONFIG_COMMANDS
22651 $ $0 $@
22652
22653_CSEOF
22654echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22655echo >&5
22656_ACEOF
22657
22658# Files that config.status was made for.
22659if test -n "$ac_config_files"; then
22660 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22661fi
22662
22663if test -n "$ac_config_headers"; then
22664 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22665fi
22666
22667if test -n "$ac_config_links"; then
22668 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22669fi
22670
22671if test -n "$ac_config_commands"; then
22672 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22673fi
22674
22675cat >>$CONFIG_STATUS <<\_ACEOF
22676
22677ac_cs_usage="\
22678\`$as_me' instantiates files from templates according to the
22679current configuration.
22680
22681Usage: $0 [OPTIONS] [FILE]...
22682
22683 -h, --help print this help, then exit
22684 -V, --version print version number, then exit
22685 -q, --quiet do not print progress messages
22686 -d, --debug don't remove temporary files
22687 --recheck update $as_me by reconfiguring in the same conditions
22688 --file=FILE[:TEMPLATE]
22689 instantiate the configuration file FILE
22690 --header=FILE[:TEMPLATE]
22691 instantiate the configuration header FILE
22692
22693Configuration files:
22694$config_files
22695
22696Configuration headers:
22697$config_headers
22698
22699Configuration commands:
22700$config_commands
22701
22702Report bugs to <bug-autoconf@gnu.org>."
22703_ACEOF
22704
22705cat >>$CONFIG_STATUS <<_ACEOF
22706ac_cs_version="\\
22707libltdl config.status 1.2
22708configured by $0, generated by GNU Autoconf 2.59,
22709 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22710
22711Copyright (C) 2003 Free Software Foundation, Inc.
22712This config.status script is free software; the Free Software Foundation
22713gives unlimited permission to copy, distribute and modify it."
22714srcdir=$srcdir
22715INSTALL="$INSTALL"
22716_ACEOF
22717
22718cat >>$CONFIG_STATUS <<\_ACEOF
22719# If no file are specified by the user, then we need to provide default
22720# value. By we need to know if files were specified by the user.
22721ac_need_defaults=:
22722while test $# != 0
22723do
22724 case $1 in
22725 --*=*)
22726 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22727 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22728 ac_shift=:
22729 ;;
22730 -*)
22731 ac_option=$1
22732 ac_optarg=$2
22733 ac_shift=shift
22734 ;;
22735 *) # This is not an option, so the user has probably given explicit
22736 # arguments.
22737 ac_option=$1
22738 ac_need_defaults=false;;
22739 esac
22740
22741 case $ac_option in
22742 # Handling of the options.
22743_ACEOF
22744cat >>$CONFIG_STATUS <<\_ACEOF
22745 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22746 ac_cs_recheck=: ;;
22747 --version | --vers* | -V )
22748 echo "$ac_cs_version"; exit 0 ;;
22749 --he | --h)
22750 # Conflict between --help and --header
22751 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22752Try \`$0 --help' for more information." >&5
22753echo "$as_me: error: ambiguous option: $1
22754Try \`$0 --help' for more information." >&2;}
22755 { (exit 1); exit 1; }; };;
22756 --help | --hel | -h )
22757 echo "$ac_cs_usage"; exit 0 ;;
22758 --debug | --d* | -d )
22759 debug=: ;;
22760 --file | --fil | --fi | --f )
22761 $ac_shift
22762 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22763 ac_need_defaults=false;;
22764 --header | --heade | --head | --hea )
22765 $ac_shift
22766 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22767 ac_need_defaults=false;;
22768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22769 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22770 ac_cs_silent=: ;;
22771
22772 # This is an error.
22773 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22774Try \`$0 --help' for more information." >&5
22775echo "$as_me: error: unrecognized option: $1
22776Try \`$0 --help' for more information." >&2;}
22777 { (exit 1); exit 1; }; } ;;
22778
22779 *) ac_config_targets="$ac_config_targets $1" ;;
22780
22781 esac
22782 shift
22783done
22784
22785ac_configure_extra_args=
22786
22787if $ac_cs_silent; then
22788 exec 6>/dev/null
22789 ac_configure_extra_args="$ac_configure_extra_args --silent"
22790fi
22791
22792_ACEOF
22793cat >>$CONFIG_STATUS <<_ACEOF
22794if \$ac_cs_recheck; then
22795 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22796 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22797fi
22798
22799_ACEOF
22800
22801cat >>$CONFIG_STATUS <<_ACEOF
22802#
22803# INIT-COMMANDS section.
22804#
22805
22806AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22807
22808_ACEOF
22809
22810
22811
22812cat >>$CONFIG_STATUS <<\_ACEOF
22813for ac_config_target in $ac_config_targets
22814do
22815 case "$ac_config_target" in
22816 # Handling of arguments.
22817 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22818 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22819 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
22820 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22821echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22822 { (exit 1); exit 1; }; };;
22823 esac
22824done
22825
22826# If the user did not use the arguments to specify the items to instantiate,
22827# then the envvar interface is used. Set only those that are not.
22828# We use the long form for the default assignment because of an extremely
22829# bizarre bug on SunOS 4.1.3.
22830if $ac_need_defaults; then
22831 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22832 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22833 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22834fi
22835
22836# Have a temporary directory for convenience. Make it in the build tree
22837# simply because there is no reason to put it here, and in addition,
22838# creating and moving files from /tmp can sometimes cause problems.
22839# Create a temporary directory, and hook for its removal unless debugging.
22840$debug ||
22841{
22842 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22843 trap '{ (exit 1); exit 1; }' 1 2 13 15
22844}
22845
22846# Create a (secure) tmp directory for tmp files.
22847
22848{
22849 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22850 test -n "$tmp" && test -d "$tmp"
22851} ||
22852{
22853 tmp=./confstat$$-$RANDOM
22854 (umask 077 && mkdir $tmp)
22855} ||
22856{
22857 echo "$me: cannot create a temporary directory in ." >&2
22858 { (exit 1); exit 1; }
22859}
22860
22861_ACEOF
22862
22863cat >>$CONFIG_STATUS <<_ACEOF
22864
22865#
22866# CONFIG_FILES section.
22867#
22868
22869# No need to generate the scripts if there are no CONFIG_FILES.
22870# This happens for instance when ./config.status config.h
22871if test -n "\$CONFIG_FILES"; then
22872 # Protect against being on the right side of a sed subst in config.status.
22873 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22874 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22875s,@SHELL@,$SHELL,;t t
22876s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22877s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22878s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22879s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22880s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22881s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22882s,@exec_prefix@,$exec_prefix,;t t
22883s,@prefix@,$prefix,;t t
22884s,@program_transform_name@,$program_transform_name,;t t
22885s,@bindir@,$bindir,;t t
22886s,@sbindir@,$sbindir,;t t
22887s,@libexecdir@,$libexecdir,;t t
22888s,@datadir@,$datadir,;t t
22889s,@sysconfdir@,$sysconfdir,;t t
22890s,@sharedstatedir@,$sharedstatedir,;t t
22891s,@localstatedir@,$localstatedir,;t t
22892s,@libdir@,$libdir,;t t
22893s,@includedir@,$includedir,;t t
22894s,@oldincludedir@,$oldincludedir,;t t
22895s,@infodir@,$infodir,;t t
22896s,@mandir@,$mandir,;t t
22897s,@build_alias@,$build_alias,;t t
22898s,@host_alias@,$host_alias,;t t
22899s,@target_alias@,$target_alias,;t t
22900s,@DEFS@,$DEFS,;t t
22901s,@ECHO_C@,$ECHO_C,;t t
22902s,@ECHO_N@,$ECHO_N,;t t
22903s,@ECHO_T@,$ECHO_T,;t t
22904s,@LIBS@,$LIBS,;t t
22905s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22906s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22907s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22908s,@CYGPATH_W@,$CYGPATH_W,;t t
22909s,@PACKAGE@,$PACKAGE,;t t
22910s,@VERSION@,$VERSION,;t t
22911s,@ACLOCAL@,$ACLOCAL,;t t
22912s,@AUTOCONF@,$AUTOCONF,;t t
22913s,@AUTOMAKE@,$AUTOMAKE,;t t
22914s,@AUTOHEADER@,$AUTOHEADER,;t t
22915s,@MAKEINFO@,$MAKEINFO,;t t
22916s,@install_sh@,$install_sh,;t t
22917s,@STRIP@,$STRIP,;t t
22918s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22919s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22920s,@mkdir_p@,$mkdir_p,;t t
22921s,@AWK@,$AWK,;t t
22922s,@SET_MAKE@,$SET_MAKE,;t t
22923s,@am__leading_dot@,$am__leading_dot,;t t
22924s,@AMTAR@,$AMTAR,;t t
22925s,@am__tar@,$am__tar,;t t
22926s,@am__untar@,$am__untar,;t t
22927s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22928s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22929s,@MAINT@,$MAINT,;t t
22930s,@CC@,$CC,;t t
22931s,@CFLAGS@,$CFLAGS,;t t
22932s,@LDFLAGS@,$LDFLAGS,;t t
22933s,@CPPFLAGS@,$CPPFLAGS,;t t
22934s,@ac_ct_CC@,$ac_ct_CC,;t t
22935s,@EXEEXT@,$EXEEXT,;t t
22936s,@OBJEXT@,$OBJEXT,;t t
22937s,@DEPDIR@,$DEPDIR,;t t
22938s,@am__include@,$am__include,;t t
22939s,@am__quote@,$am__quote,;t t
22940s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22941s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22942s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22943s,@CCDEPMODE@,$CCDEPMODE,;t t
22944s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22945s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22946s,@build@,$build,;t t
22947s,@build_cpu@,$build_cpu,;t t
22948s,@build_vendor@,$build_vendor,;t t
22949s,@build_os@,$build_os,;t t
22950s,@host@,$host,;t t
22951s,@host_cpu@,$host_cpu,;t t
22952s,@host_vendor@,$host_vendor,;t t
22953s,@host_os@,$host_os,;t t
22954s,@EGREP@,$EGREP,;t t
22955s,@LN_S@,$LN_S,;t t
22956s,@ECHO@,$ECHO,;t t
22957s,@AR@,$AR,;t t
22958s,@ac_ct_AR@,$ac_ct_AR,;t t
22959s,@RANLIB@,$RANLIB,;t t
22960s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22961s,@DLLTOOL@,$DLLTOOL,;t t
22962s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22963s,@AS@,$AS,;t t
22964s,@ac_ct_AS@,$ac_ct_AS,;t t
22965s,@OBJDUMP@,$OBJDUMP,;t t
22966s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22967s,@CPP@,$CPP,;t t
22968s,@CXX@,$CXX,;t t
22969s,@CXXFLAGS@,$CXXFLAGS,;t t
22970s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22971s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22972s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22973s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22974s,@CXXCPP@,$CXXCPP,;t t
22975s,@F77@,$F77,;t t
22976s,@FFLAGS@,$FFLAGS,;t t
22977s,@ac_ct_F77@,$ac_ct_F77,;t t
22978s,@LIBTOOL@,$LIBTOOL,;t t
22979s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22980s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
22981s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
22982s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
22983s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
22984s,@LIBADD_DL@,$LIBADD_DL,;t t
22985s,@LIBOBJS@,$LIBOBJS,;t t
22986s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22987CEOF
22988
22989_ACEOF
22990
22991 cat >>$CONFIG_STATUS <<\_ACEOF
22992 # Split the substitutions into bite-sized pieces for seds with
22993 # small command number limits, like on Digital OSF/1 and HP-UX.
22994 ac_max_sed_lines=48
22995 ac_sed_frag=1 # Number of current file.
22996 ac_beg=1 # First line for current file.
22997 ac_end=$ac_max_sed_lines # Line after last line for current file.
22998 ac_more_lines=:
22999 ac_sed_cmds=
23000 while $ac_more_lines; do
23001 if test $ac_beg -gt 1; then
23002 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23003 else
23004 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23005 fi
23006 if test ! -s $tmp/subs.frag; then
23007 ac_more_lines=false
23008 else
23009 # The purpose of the label and of the branching condition is to
23010 # speed up the sed processing (if there are no `@' at all, there
23011 # is no need to browse any of the substitutions).
23012 # These are the two extra sed commands mentioned above.
23013 (echo ':t
23014 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23015 if test -z "$ac_sed_cmds"; then
23016 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23017 else
23018 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23019 fi
23020 ac_sed_frag=`expr $ac_sed_frag + 1`
23021 ac_beg=$ac_end
23022 ac_end=`expr $ac_end + $ac_max_sed_lines`
23023 fi
23024 done
23025 if test -z "$ac_sed_cmds"; then
23026 ac_sed_cmds=cat
23027 fi
23028fi # test -n "$CONFIG_FILES"
23029
23030_ACEOF
23031cat >>$CONFIG_STATUS <<\_ACEOF
23032for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23033 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23034 case $ac_file in
23035 - | *:- | *:-:* ) # input from stdin
23036 cat >$tmp/stdin
23037 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23038 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23039 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23040 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23041 * ) ac_file_in=$ac_file.in ;;
23042 esac
23043
23044 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23045 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23046$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23047 X"$ac_file" : 'X\(//\)[^/]' \| \
23048 X"$ac_file" : 'X\(//\)$' \| \
23049 X"$ac_file" : 'X\(/\)' \| \
23050 . : '\(.\)' 2>/dev/null ||
23051echo X"$ac_file" |
23052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23054 /^X\(\/\/\)$/{ s//\1/; q; }
23055 /^X\(\/\).*/{ s//\1/; q; }
23056 s/.*/./; q'`
23057 { if $as_mkdir_p; then
23058 mkdir -p "$ac_dir"
23059 else
23060 as_dir="$ac_dir"
23061 as_dirs=
23062 while test ! -d "$as_dir"; do
23063 as_dirs="$as_dir $as_dirs"
23064 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23065$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23066 X"$as_dir" : 'X\(//\)[^/]' \| \
23067 X"$as_dir" : 'X\(//\)$' \| \
23068 X"$as_dir" : 'X\(/\)' \| \
23069 . : '\(.\)' 2>/dev/null ||
23070echo X"$as_dir" |
23071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23073 /^X\(\/\/\)$/{ s//\1/; q; }
23074 /^X\(\/\).*/{ s//\1/; q; }
23075 s/.*/./; q'`
23076 done
23077 test ! -n "$as_dirs" || mkdir $as_dirs
23078 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23079echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23080 { (exit 1); exit 1; }; }; }
23081
23082 ac_builddir=.
23083
23084if test "$ac_dir" != .; then
23085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23086 # A "../" for each directory in $ac_dir_suffix.
23087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23088else
23089 ac_dir_suffix= ac_top_builddir=
23090fi
23091
23092case $srcdir in
23093 .) # No --srcdir option. We are building in place.
23094 ac_srcdir=.
23095 if test -z "$ac_top_builddir"; then
23096 ac_top_srcdir=.
23097 else
23098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23099 fi ;;
23100 [\\/]* | ?:[\\/]* ) # Absolute path.
23101 ac_srcdir=$srcdir$ac_dir_suffix;
23102 ac_top_srcdir=$srcdir ;;
23103 *) # Relative path.
23104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23106esac
23107
23108# Do not use `cd foo && pwd` to compute absolute paths, because
23109# the directories may not exist.
23110case `pwd` in
23111.) ac_abs_builddir="$ac_dir";;
23112*)
23113 case "$ac_dir" in
23114 .) ac_abs_builddir=`pwd`;;
23115 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23116 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23117 esac;;
23118esac
23119case $ac_abs_builddir in
23120.) ac_abs_top_builddir=${ac_top_builddir}.;;
23121*)
23122 case ${ac_top_builddir}. in
23123 .) ac_abs_top_builddir=$ac_abs_builddir;;
23124 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23125 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23126 esac;;
23127esac
23128case $ac_abs_builddir in
23129.) ac_abs_srcdir=$ac_srcdir;;
23130*)
23131 case $ac_srcdir in
23132 .) ac_abs_srcdir=$ac_abs_builddir;;
23133 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23134 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23135 esac;;
23136esac
23137case $ac_abs_builddir in
23138.) ac_abs_top_srcdir=$ac_top_srcdir;;
23139*)
23140 case $ac_top_srcdir in
23141 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23142 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23143 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23144 esac;;
23145esac
23146
23147
23148 case $INSTALL in
23149 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23150 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23151 esac
23152
23153 # Let's still pretend it is `configure' which instantiates (i.e., don't
23154 # use $as_me), people would be surprised to read:
23155 # /* config.h. Generated by config.status. */
23156 if test x"$ac_file" = x-; then
23157 configure_input=
23158 else
23159 configure_input="$ac_file. "
23160 fi
23161 configure_input=$configure_input"Generated from `echo $ac_file_in |
23162 sed 's,.*/,,'` by configure."
23163
23164 # First look for the input files in the build tree, otherwise in the
23165 # src tree.
23166 ac_file_inputs=`IFS=:
23167 for f in $ac_file_in; do
23168 case $f in
23169 -) echo $tmp/stdin ;;
23170 [\\/$]*)
23171 # Absolute (can't be DOS-style, as IFS=:)
23172 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23173echo "$as_me: error: cannot find input file: $f" >&2;}
23174 { (exit 1); exit 1; }; }
23175 echo "$f";;
23176 *) # Relative
23177 if test -f "$f"; then
23178 # Build tree
23179 echo "$f"
23180 elif test -f "$srcdir/$f"; then
23181 # Source tree
23182 echo "$srcdir/$f"
23183 else
23184 # /dev/null tree
23185 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23186echo "$as_me: error: cannot find input file: $f" >&2;}
23187 { (exit 1); exit 1; }; }
23188 fi;;
23189 esac
23190 done` || { (exit 1); exit 1; }
23191
23192 if test x"$ac_file" != x-; then
23193 { echo "$as_me:$LINENO: creating $ac_file" >&5
23194echo "$as_me: creating $ac_file" >&6;}
23195 rm -f "$ac_file"
23196 fi
23197_ACEOF
23198cat >>$CONFIG_STATUS <<_ACEOF
23199 sed "$ac_vpsub
23200$extrasub
23201_ACEOF
23202cat >>$CONFIG_STATUS <<\_ACEOF
23203:t
23204/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23205s,@configure_input@,$configure_input,;t t
23206s,@srcdir@,$ac_srcdir,;t t
23207s,@abs_srcdir@,$ac_abs_srcdir,;t t
23208s,@top_srcdir@,$ac_top_srcdir,;t t
23209s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23210s,@builddir@,$ac_builddir,;t t
23211s,@abs_builddir@,$ac_abs_builddir,;t t
23212s,@top_builddir@,$ac_top_builddir,;t t
23213s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23214s,@INSTALL@,$ac_INSTALL,;t t
23215" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23216 rm -f $tmp/stdin
23217 if test x"$ac_file" != x-; then
23218 mv $tmp/out $ac_file
23219 else
23220 cat $tmp/out
23221 rm -f $tmp/out
23222 fi
23223
23224done
23225_ACEOF
23226cat >>$CONFIG_STATUS <<\_ACEOF
23227
23228#
23229# CONFIG_HEADER section.
23230#
23231
23232# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23233# NAME is the cpp macro being defined and VALUE is the value it is being given.
23234#
23235# ac_d sets the value in "#define NAME VALUE" lines.
23236ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23237ac_dB='[ ].*$,\1#\2'
23238ac_dC=' '
23239ac_dD=',;t'
23240# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23241ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23242ac_uB='$,\1#\2define\3'
23243ac_uC=' '
23244ac_uD=',;t'
23245
23246for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23247 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23248 case $ac_file in
23249 - | *:- | *:-:* ) # input from stdin
23250 cat >$tmp/stdin
23251 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23253 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23254 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23255 * ) ac_file_in=$ac_file.in ;;
23256 esac
23257
23258 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23259echo "$as_me: creating $ac_file" >&6;}
23260
23261 # First look for the input files in the build tree, otherwise in the
23262 # src tree.
23263 ac_file_inputs=`IFS=:
23264 for f in $ac_file_in; do
23265 case $f in
23266 -) echo $tmp/stdin ;;
23267 [\\/$]*)
23268 # Absolute (can't be DOS-style, as IFS=:)
23269 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23270echo "$as_me: error: cannot find input file: $f" >&2;}
23271 { (exit 1); exit 1; }; }
23272 # Do quote $f, to prevent DOS paths from being IFS'd.
23273 echo "$f";;
23274 *) # Relative
23275 if test -f "$f"; then
23276 # Build tree
23277 echo "$f"
23278 elif test -f "$srcdir/$f"; then
23279 # Source tree
23280 echo "$srcdir/$f"
23281 else
23282 # /dev/null tree
23283 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23284echo "$as_me: error: cannot find input file: $f" >&2;}
23285 { (exit 1); exit 1; }; }
23286 fi;;
23287 esac
23288 done` || { (exit 1); exit 1; }
23289 # Remove the trailing spaces.
23290 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23291
23292_ACEOF
23293
23294# Transform confdefs.h into two sed scripts, `conftest.defines' and
23295# `conftest.undefs', that substitutes the proper values into
23296# config.h.in to produce config.h. The first handles `#define'
23297# templates, and the second `#undef' templates.
23298# And first: Protect against being on the right side of a sed subst in
23299# config.status. Protect against being in an unquoted here document
23300# in config.status.
23301rm -f conftest.defines conftest.undefs
23302# Using a here document instead of a string reduces the quoting nightmare.
23303# Putting comments in sed scripts is not portable.
23304#
23305# `end' is used to avoid that the second main sed command (meant for
23306# 0-ary CPP macros) applies to n-ary macro definitions.
23307# See the Autoconf documentation for `clear'.
23308cat >confdef2sed.sed <<\_ACEOF
23309s/[\\&,]/\\&/g
23310s,[\\$`],\\&,g
23311t clear
23312: clear
23313s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23314t end
23315s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23316: end
23317_ACEOF
23318# If some macros were called several times there might be several times
23319# the same #defines, which is useless. Nevertheless, we may not want to
23320# sort them, since we want the *last* AC-DEFINE to be honored.
23321uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23322sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23323rm -f confdef2sed.sed
23324
23325# This sed command replaces #undef with comments. This is necessary, for
23326# example, in the case of _POSIX_SOURCE, which is predefined and required
23327# on some systems where configure will not decide to define it.
23328cat >>conftest.undefs <<\_ACEOF
23329s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23330_ACEOF
23331
23332# Break up conftest.defines because some shells have a limit on the size
23333# of here documents, and old seds have small limits too (100 cmds).
23334echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23335echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23336echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23337echo ' :' >>$CONFIG_STATUS
23338rm -f conftest.tail
23339while grep . conftest.defines >/dev/null
23340do
23341 # Write a limited-size here document to $tmp/defines.sed.
23342 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23343 # Speed up: don't consider the non `#define' lines.
23344 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23345 # Work around the forget-to-reset-the-flag bug.
23346 echo 't clr' >>$CONFIG_STATUS
23347 echo ': clr' >>$CONFIG_STATUS
23348 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23349 echo 'CEOF
23350 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23351 rm -f $tmp/in
23352 mv $tmp/out $tmp/in
23353' >>$CONFIG_STATUS
23354 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23355 rm -f conftest.defines
23356 mv conftest.tail conftest.defines
23357done
23358rm -f conftest.defines
23359echo ' fi # grep' >>$CONFIG_STATUS
23360echo >>$CONFIG_STATUS
23361
23362# Break up conftest.undefs because some shells have a limit on the size
23363# of here documents, and old seds have small limits too (100 cmds).
23364echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23365rm -f conftest.tail
23366while grep . conftest.undefs >/dev/null
23367do
23368 # Write a limited-size here document to $tmp/undefs.sed.
23369 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23370 # Speed up: don't consider the non `#undef'
23371 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23372 # Work around the forget-to-reset-the-flag bug.
23373 echo 't clr' >>$CONFIG_STATUS
23374 echo ': clr' >>$CONFIG_STATUS
23375 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23376 echo 'CEOF
23377 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23378 rm -f $tmp/in
23379 mv $tmp/out $tmp/in
23380' >>$CONFIG_STATUS
23381 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23382 rm -f conftest.undefs
23383 mv conftest.tail conftest.undefs
23384done
23385rm -f conftest.undefs
23386
23387cat >>$CONFIG_STATUS <<\_ACEOF
23388 # Let's still pretend it is `configure' which instantiates (i.e., don't
23389 # use $as_me), people would be surprised to read:
23390 # /* config.h. Generated by config.status. */
23391 if test x"$ac_file" = x-; then
23392 echo "/* Generated by configure. */" >$tmp/config.h
23393 else
23394 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23395 fi
23396 cat $tmp/in >>$tmp/config.h
23397 rm -f $tmp/in
23398 if test x"$ac_file" != x-; then
23399 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23400 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23401echo "$as_me: $ac_file is unchanged" >&6;}
23402 else
23403 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23404$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23405 X"$ac_file" : 'X\(//\)[^/]' \| \
23406 X"$ac_file" : 'X\(//\)$' \| \
23407 X"$ac_file" : 'X\(/\)' \| \
23408 . : '\(.\)' 2>/dev/null ||
23409echo X"$ac_file" |
23410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23412 /^X\(\/\/\)$/{ s//\1/; q; }
23413 /^X\(\/\).*/{ s//\1/; q; }
23414 s/.*/./; q'`
23415 { if $as_mkdir_p; then
23416 mkdir -p "$ac_dir"
23417 else
23418 as_dir="$ac_dir"
23419 as_dirs=
23420 while test ! -d "$as_dir"; do
23421 as_dirs="$as_dir $as_dirs"
23422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23423$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23424 X"$as_dir" : 'X\(//\)[^/]' \| \
23425 X"$as_dir" : 'X\(//\)$' \| \
23426 X"$as_dir" : 'X\(/\)' \| \
23427 . : '\(.\)' 2>/dev/null ||
23428echo X"$as_dir" |
23429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23431 /^X\(\/\/\)$/{ s//\1/; q; }
23432 /^X\(\/\).*/{ s//\1/; q; }
23433 s/.*/./; q'`
23434 done
23435 test ! -n "$as_dirs" || mkdir $as_dirs
23436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23437echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23438 { (exit 1); exit 1; }; }; }
23439
23440 rm -f $ac_file
23441 mv $tmp/config.h $ac_file
23442 fi
23443 else
23444 cat $tmp/config.h
23445 rm -f $tmp/config.h
23446 fi
23447# Compute $ac_file's index in $config_headers.
23448_am_stamp_count=1
23449for _am_header in $config_headers :; do
23450 case $_am_header in
23451 $ac_file | $ac_file:* )
23452 break ;;
23453 * )
23454 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23455 esac
23456done
23457echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23458$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23459 X$ac_file : 'X\(//\)[^/]' \| \
23460 X$ac_file : 'X\(//\)$' \| \
23461 X$ac_file : 'X\(/\)' \| \
23462 . : '\(.\)' 2>/dev/null ||
23463echo X$ac_file |
23464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23466 /^X\(\/\/\)$/{ s//\1/; q; }
23467 /^X\(\/\).*/{ s//\1/; q; }
23468 s/.*/./; q'`/stamp-h$_am_stamp_count
23469done
23470_ACEOF
23471cat >>$CONFIG_STATUS <<\_ACEOF
23472
23473#
23474# CONFIG_COMMANDS section.
23475#
23476for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23477 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23478 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23479 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23480$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23481 X"$ac_dest" : 'X\(//\)[^/]' \| \
23482 X"$ac_dest" : 'X\(//\)$' \| \
23483 X"$ac_dest" : 'X\(/\)' \| \
23484 . : '\(.\)' 2>/dev/null ||
23485echo X"$ac_dest" |
23486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23488 /^X\(\/\/\)$/{ s//\1/; q; }
23489 /^X\(\/\).*/{ s//\1/; q; }
23490 s/.*/./; q'`
23491 { if $as_mkdir_p; then
23492 mkdir -p "$ac_dir"
23493 else
23494 as_dir="$ac_dir"
23495 as_dirs=
23496 while test ! -d "$as_dir"; do
23497 as_dirs="$as_dir $as_dirs"
23498 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23499$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23500 X"$as_dir" : 'X\(//\)[^/]' \| \
23501 X"$as_dir" : 'X\(//\)$' \| \
23502 X"$as_dir" : 'X\(/\)' \| \
23503 . : '\(.\)' 2>/dev/null ||
23504echo X"$as_dir" |
23505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23507 /^X\(\/\/\)$/{ s//\1/; q; }
23508 /^X\(\/\).*/{ s//\1/; q; }
23509 s/.*/./; q'`
23510 done
23511 test ! -n "$as_dirs" || mkdir $as_dirs
23512 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23513echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23514 { (exit 1); exit 1; }; }; }
23515
23516 ac_builddir=.
23517
23518if test "$ac_dir" != .; then
23519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23520 # A "../" for each directory in $ac_dir_suffix.
23521 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23522else
23523 ac_dir_suffix= ac_top_builddir=
23524fi
23525
23526case $srcdir in
23527 .) # No --srcdir option. We are building in place.
23528 ac_srcdir=.
23529 if test -z "$ac_top_builddir"; then
23530 ac_top_srcdir=.
23531 else
23532 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23533 fi ;;
23534 [\\/]* | ?:[\\/]* ) # Absolute path.
23535 ac_srcdir=$srcdir$ac_dir_suffix;
23536 ac_top_srcdir=$srcdir ;;
23537 *) # Relative path.
23538 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23539 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23540esac
23541
23542# Do not use `cd foo && pwd` to compute absolute paths, because
23543# the directories may not exist.
23544case `pwd` in
23545.) ac_abs_builddir="$ac_dir";;
23546*)
23547 case "$ac_dir" in
23548 .) ac_abs_builddir=`pwd`;;
23549 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23550 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23551 esac;;
23552esac
23553case $ac_abs_builddir in
23554.) ac_abs_top_builddir=${ac_top_builddir}.;;
23555*)
23556 case ${ac_top_builddir}. in
23557 .) ac_abs_top_builddir=$ac_abs_builddir;;
23558 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23559 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23560 esac;;
23561esac
23562case $ac_abs_builddir in
23563.) ac_abs_srcdir=$ac_srcdir;;
23564*)
23565 case $ac_srcdir in
23566 .) ac_abs_srcdir=$ac_abs_builddir;;
23567 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23568 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23569 esac;;
23570esac
23571case $ac_abs_builddir in
23572.) ac_abs_top_srcdir=$ac_top_srcdir;;
23573*)
23574 case $ac_top_srcdir in
23575 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23576 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23577 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23578 esac;;
23579esac
23580
23581
23582 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23583echo "$as_me: executing $ac_dest commands" >&6;}
23584 case $ac_dest in
23585 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23586 # Strip MF so we end up with the name of the file.
23587 mf=`echo "$mf" | sed -e 's/:.*$//'`
23588 # Check whether this is an Automake generated Makefile or not.
23589 # We used to match only the files named `Makefile.in', but
23590 # some people rename them; so instead we look at the file content.
23591 # Grep'ing the first line is not enough: some people post-process
23592 # each Makefile.in and add a new line on top of each file to say so.
23593 # So let's grep whole file.
23594 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23595 dirpart=`(dirname "$mf") 2>/dev/null ||
23596$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23597 X"$mf" : 'X\(//\)[^/]' \| \
23598 X"$mf" : 'X\(//\)$' \| \
23599 X"$mf" : 'X\(/\)' \| \
23600 . : '\(.\)' 2>/dev/null ||
23601echo X"$mf" |
23602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23604 /^X\(\/\/\)$/{ s//\1/; q; }
23605 /^X\(\/\).*/{ s//\1/; q; }
23606 s/.*/./; q'`
23607 else
23608 continue
23609 fi
23610 # Extract the definition of DEPDIR, am__include, and am__quote
23611 # from the Makefile without running `make'.
23612 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23613 test -z "$DEPDIR" && continue
23614 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23615 test -z "am__include" && continue
23616 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23617 # When using ansi2knr, U may be empty or an underscore; expand it
23618 U=`sed -n 's/^U = //p' < "$mf"`
23619 # Find all dependency output files, they are included files with
23620 # $(DEPDIR) in their names. We invoke sed twice because it is the
23621 # simplest approach to changing $(DEPDIR) to its actual value in the
23622 # expansion.
23623 for file in `sed -n "
23624 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23625 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23626 # Make sure the directory exists.
23627 test -f "$dirpart/$file" && continue
23628 fdir=`(dirname "$file") 2>/dev/null ||
23629$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23630 X"$file" : 'X\(//\)[^/]' \| \
23631 X"$file" : 'X\(//\)$' \| \
23632 X"$file" : 'X\(/\)' \| \
23633 . : '\(.\)' 2>/dev/null ||
23634echo X"$file" |
23635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23637 /^X\(\/\/\)$/{ s//\1/; q; }
23638 /^X\(\/\).*/{ s//\1/; q; }
23639 s/.*/./; q'`
23640 { if $as_mkdir_p; then
23641 mkdir -p $dirpart/$fdir
23642 else
23643 as_dir=$dirpart/$fdir
23644 as_dirs=
23645 while test ! -d "$as_dir"; do
23646 as_dirs="$as_dir $as_dirs"
23647 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23648$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23649 X"$as_dir" : 'X\(//\)[^/]' \| \
23650 X"$as_dir" : 'X\(//\)$' \| \
23651 X"$as_dir" : 'X\(/\)' \| \
23652 . : '\(.\)' 2>/dev/null ||
23653echo X"$as_dir" |
23654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23656 /^X\(\/\/\)$/{ s//\1/; q; }
23657 /^X\(\/\).*/{ s//\1/; q; }
23658 s/.*/./; q'`
23659 done
23660 test ! -n "$as_dirs" || mkdir $as_dirs
23661 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23662echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23663 { (exit 1); exit 1; }; }; }
23664
23665 # echo "creating $dirpart/$file"
23666 echo '# dummy' > "$dirpart/$file"
23667 done
23668done
23669 ;;
23670 esac
23671done
23672_ACEOF
23673
23674cat >>$CONFIG_STATUS <<\_ACEOF
23675
23676{ (exit 0); exit 0; }
23677_ACEOF
23678chmod +x $CONFIG_STATUS
23679ac_clean_files=$ac_clean_files_save
23680
23681
23682# configure is writing to config.log, and then calls config.status.
23683# config.status does its own redirection, appending to config.log.
23684# Unfortunately, on DOS this fails, as config.log is still kept open
23685# by configure, so config.status won't be able to write to it; its
23686# output is simply discarded. So we exec the FD to /dev/null,
23687# effectively closing config.log, so it can be properly (re)opened and
23688# appended to by config.status. When coming back to configure, we
23689# need to make the FD available again.
23690if test "$no_create" != yes; then
23691 ac_cs_success=:
23692 ac_config_status_args=
23693 test "$silent" = yes &&
23694 ac_config_status_args="$ac_config_status_args --quiet"
23695 exec 5>/dev/null
23696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23697 exec 5>>config.log
23698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23699 # would make configure fail if this is the last instruction.
23700 $ac_cs_success || { (exit 1); exit 1; }
23701fi
23702