VirtualBox

source: vbox/trunk/src/libs/libxslt-1.1.22/configure@ 14437

最後變更 在這個檔案從14437是 7296,由 vboxsync 提交於 17 年 前

Added libxslt-1.1.22 sources.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Date Revision Author Id
檔案大小: 758.3 KB
 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274$*
275EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete. It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="libxslt/xslt.c"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBXSLT_MAJOR_VERSION LIBXSLT_MINOR_VERSION LIBXSLT_MICRO_VERSION LIBXSLT_VERSION LIBXSLT_VERSION_INFO LIBXSLT_VERSION_NUMBER LIBXSLT_VERSION_EXTRA LIBXSLT_MAJOR_MINOR_VERSION LIBEXSLT_MAJOR_VERSION LIBEXSLT_MINOR_VERSION LIBEXSLT_MICRO_VERSION LIBEXSLT_VERSION LIBEXSLT_VERSION_INFO LIBEXSLT_VERSION_NUMBER LIBEXSLT_VERSION_EXTRA 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 HTML_DIR 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 CPP RM MV TAR EGREP SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WITH_TRIO PERL WITH_PERL_TRUE WITH_PERL_FALSE PYTHON WITH_PYTHON_TRUE WITH_PYTHON_FALSE pythondir PYTHON_SUBDIR LIBGCRYPT_CONFIG WITH_CRYPTO LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS STATIC_BINARIES WITH_XSLT_DEBUG WITH_MEM_DEBUG WITH_DEBUGGER LIBXML_SRC LIBXML_REQUIRED_VERSION WITH_MODULES WITH_MODULES_TRUE WITH_MODULES_FALSE LIBXSLT_DEFAULT_PLUGINS_PATH WIN32_EXTRA_LIBADD WIN32_EXTRA_LDFLAGS XSLTPROCDV PYTHONSODV XML_CONFIG LIBXML_LIBS LIBXML_CFLAGS PYTHON_VERSION PYTHON_INCLUDES PYTHON_SITE_PACKAGES XSLT_LIBDIR XSLT_INCLUDEDIR XSLT_LIBS EXSLT_LIBDIR EXSLT_INCLUDEDIR EXSLT_LIBS EXTRA_LIBS M_LIBS RELDATE LIBOBJS LTLIBOBJS'
467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case $ac_option in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
590
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
739
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
752
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
779
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
783 ;;
784
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
795 *)
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 ;;
802
803 esac
804done
805
806if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879else
880 ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
889 fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE. See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977 cat <<_ACEOF
978Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004_ACEOF
1005
1006 cat <<\_ACEOF
1007
1008Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035
1036Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-html-dir=PATH path to installed docs
1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1041 --with-pic try to use only PIC/non-PIC objects [default=use
1042 both]
1043 --with-tags[=TAGS]
1044 include additional configurations [automatic]
1045 --with-python=DIR Build Python bindings if found
1046 --with-crypto Add crypto support to exslt (on)
1047 --with-debug Add the debugging code (on)
1048 --with-mem-debug Add the memory debugging module (off)
1049 --with-debugger Add the debugging support (on)
1050 --with-libxml-prefix=PFX Specify location of libxml config
1051 --with-libxml-include-prefix=PFX Specify location of libxml headers
1052 --with-libxml-libs-prefix=PFX Specify location of libxml libs
1053 --with-libxml-src=DIR For libxml thats not installed yet (sets all three above)
1054 --with-plugins Add plugin extension support (on)
1055
1056Some influential environment variables:
1057 CC C compiler command
1058 CFLAGS C compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CPP C preprocessor
1064 CXX C++ compiler command
1065 CXXFLAGS C++ compiler flags
1066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
1069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112 case "$ac_dir" in
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130 case $ac_srcdir in
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 esac;;
1144esac
1145
1146 cd $ac_dir
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1149 echo
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1152 echo
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1156 echo
1157 $ac_configure --help
1158 else
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 fi
1161 cd $ac_popdir
1162 done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167 cat <<\_ACEOF
1168
1169Copyright (C) 2003 Free Software Foundation, Inc.
1170This configure script is free software; the Free Software Foundation
1171gives unlimited permission to copy, distribute and modify it.
1172_ACEOF
1173 exit 0
1174fi
1175exec 5>config.log
1176cat >&5 <<_ACEOF
1177This file contains any messages produced by compilers while
1178running configure, to aid debugging if configure makes a mistake.
1179
1180It was created by $as_me, which was
1181generated by GNU Autoconf 2.59. Invocation command line was
1182
1183 $ $0 $@
1184
1185_ACEOF
1186{
1187cat <<_ASUNAME
1188## --------- ##
1189## Platform. ##
1190## --------- ##
1191
1192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200
1201/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208
1209_ASUNAME
1210
1211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212for as_dir in $PATH
1213do
1214 IFS=$as_save_IFS
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1217done
1218
1219} >&5
1220
1221cat >&5 <<_ACEOF
1222
1223
1224## ----------- ##
1225## Core tests. ##
1226## ----------- ##
1227
1228_ACEOF
1229
1230
1231# Keep a trace of the command line.
1232# Strip out --no-create and --no-recursion so they do not pile up.
1233# Strip out --silent because we don't want to record it for future runs.
1234# Also quote any args containing shell meta-characters.
1235# Make two passes to allow for proper duplicate-argument suppression.
1236ac_configure_args=
1237ac_configure_args0=
1238ac_configure_args1=
1239ac_sep=
1240ac_must_keep_next=false
1241for ac_pass in 1 2
1242do
1243 for ac_arg
1244 do
1245 case $ac_arg in
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 continue ;;
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 esac
1253 case $ac_pass in
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 2)
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1259 else
1260 case $ac_arg in
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 esac
1268 ;;
1269 -* ) ac_must_keep_next=true ;;
1270 esac
1271 fi
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1274 ac_sep=" "
1275 ;;
1276 esac
1277 done
1278done
1279$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282# When interrupted or exit'd, cleanup temporary files, and complete
1283# config.log. We remove comments because anyway the quotes in there
1284# would cause problems or look ugly.
1285# WARNING: Be sure not to use single quotes in there, as some shells,
1286# such as our DU 5.0 friend, will then `close' the trap.
1287trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1289 {
1290 echo
1291
1292 cat <<\_ASBOX
1293## ---------------- ##
1294## Cache variables. ##
1295## ---------------- ##
1296_ASBOX
1297 echo
1298 # The following way of writing the cache mishandles newlines in values,
1299{
1300 (set) 2>&1 |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 *ac_space=\ *)
1303 sed -n \
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 ;;
1307 *)
1308 sed -n \
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 ;;
1311 esac;
1312}
1313 echo
1314
1315 cat <<\_ASBOX
1316## ----------------- ##
1317## Output variables. ##
1318## ----------------- ##
1319_ASBOX
1320 echo
1321 for ac_var in $ac_subst_vars
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327
1328 if test -n "$ac_subst_files"; then
1329 cat <<\_ASBOX
1330## ------------- ##
1331## Output files. ##
1332## ------------- ##
1333_ASBOX
1334 echo
1335 for ac_var in $ac_subst_files
1336 do
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1339 done | sort
1340 echo
1341 fi
1342
1343 if test -s confdefs.h; then
1344 cat <<\_ASBOX
1345## ----------- ##
1346## confdefs.h. ##
1347## ----------- ##
1348_ASBOX
1349 echo
1350 sed "/^$/d" confdefs.h | sort
1351 echo
1352 fi
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1356 } >&5
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 exit $exit_status
1360 ' 0
1361for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363done
1364ac_signal=0
1365
1366# confdefs.h avoids OS command line length limits that DEFS can exceed.
1367rm -rf conftest* confdefs.h
1368# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369echo >confdefs.h
1370
1371# Predefined preprocessor variables.
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_NAME "$PACKAGE_NAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_VERSION "$PACKAGE_VERSION"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_STRING "$PACKAGE_STRING"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395_ACEOF
1396
1397
1398# Let the site file select an alternate cache file if it wants to.
1399# Prefer explicitly selected file to automatically selected ones.
1400if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 else
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 fi
1406fi
1407for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1412 . "$ac_site_file"
1413 fi
1414done
1415
1416if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421echo "$as_me: loading cache $cache_file" >&6;}
1422 case $cache_file in
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1425 esac
1426 fi
1427else
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429echo "$as_me: creating cache $cache_file" >&6;}
1430 >$cache_file
1431fi
1432
1433# Check that the precious variables saved in the cache have kept the same
1434# value.
1435ac_cache_corrupted=false
1436for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1443 set,)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,set)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,);;
1452 *)
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1461 fi;;
1462 esac
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1465 case $ac_new_val in
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1469 esac
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 esac
1474 fi
1475done
1476if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1482fi
1483
1484ac_ext=c
1485ac_cpp='$CPP $CPPFLAGS'
1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508 ac_config_headers="$ac_config_headers config.h"
1509
1510ac_aux_dir=
1511for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1512 if test -f $ac_dir/install-sh; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/install-sh -c"
1515 break
1516 elif test -f $ac_dir/install.sh; then
1517 ac_aux_dir=$ac_dir
1518 ac_install_sh="$ac_aux_dir/install.sh -c"
1519 break
1520 elif test -f $ac_dir/shtool; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/shtool install -c"
1523 break
1524 fi
1525done
1526if test -z "$ac_aux_dir"; then
1527 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1528echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1529 { (exit 1); exit 1; }; }
1530fi
1531ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1532ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1533ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1534
1535# Make sure we can run config.sub.
1536$ac_config_sub sun4 >/dev/null 2>&1 ||
1537 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1538echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1539 { (exit 1); exit 1; }; }
1540
1541echo "$as_me:$LINENO: checking build system type" >&5
1542echo $ECHO_N "checking build system type... $ECHO_C" >&6
1543if test "${ac_cv_build+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1545else
1546 ac_cv_build_alias=$build_alias
1547test -z "$ac_cv_build_alias" &&
1548 ac_cv_build_alias=`$ac_config_guess`
1549test -z "$ac_cv_build_alias" &&
1550 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1551echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1552 { (exit 1); exit 1; }; }
1553ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1555echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1557
1558fi
1559echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1560echo "${ECHO_T}$ac_cv_build" >&6
1561build=$ac_cv_build
1562build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565
1566
1567echo "$as_me:$LINENO: checking host system type" >&5
1568echo $ECHO_N "checking host system type... $ECHO_C" >&6
1569if test "${ac_cv_host+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571else
1572 ac_cv_host_alias=$host_alias
1573test -z "$ac_cv_host_alias" &&
1574 ac_cv_host_alias=$ac_cv_build_alias
1575ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1577echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580fi
1581echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1582echo "${ECHO_T}$ac_cv_host" >&6
1583host=$ac_cv_host
1584host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589
1590LIBXSLT_MAJOR_VERSION=1
1591LIBXSLT_MINOR_VERSION=1
1592LIBXSLT_MICRO_VERSION=22
1593PACKAGE=libxslt
1594LIBEXSLT_MAJOR_VERSION=0
1595LIBEXSLT_MINOR_VERSION=8
1596LIBEXSLT_MICRO_VERSION=13
1597LIBXML_REQUIRED_VERSION=2.6.27
1598
1599
1600LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VERSION
1601LIBXSLT_VERSION_INFO=`expr $LIBXSLT_MAJOR_VERSION + $LIBXSLT_MINOR_VERSION`:$LIBXSLT_MICRO_VERSION:$LIBXSLT_MINOR_VERSION
1602
1603LIBXSLT_VERSION_NUMBER=`expr $LIBXSLT_MAJOR_VERSION \* 10000 + $LIBXSLT_MINOR_VERSION \* 100 + $LIBXSLT_MICRO_VERSION`
1604LIBXSLT_MAJOR_MINOR_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION
1605
1606if test -f CVS/Entries; then
1607 extra=`grep ChangeLog CVS/Entries | grep -v LIBXSLT | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
1608 echo extra=$extra
1609 if test "$extra" != ""
1610 then
1611 LIBXSLT_VERSION_EXTRA="-CVS$extra"
1612 fi
1613else if test -d .svn ; then
1614 extra=`svn info | grep Revision | sed 's+Revision: ++'`
1615 echo extra=$extra
1616 if test "$extra" != ""
1617 then
1618 LIBXSLT_VERSION_EXTRA="-SVN$extra"
1619 fi
1620fi
1621fi
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633LIBEXSLT_VERSION=$LIBEXSLT_MAJOR_VERSION.$LIBEXSLT_MINOR_VERSION.$LIBEXSLT_MICRO_VERSION
1634LIBEXSLT_VERSION_INFO=`expr $LIBEXSLT_MAJOR_VERSION + $LIBEXSLT_MINOR_VERSION`:$LIBEXSLT_MICRO_VERSION:$LIBEXSLT_MINOR_VERSION
1635
1636LIBEXSLT_VERSION_NUMBER=`expr $LIBEXSLT_MAJOR_VERSION \* 10000 + $LIBEXSLT_MINOR_VERSION \* 100 + $LIBEXSLT_MICRO_VERSION`
1637
1638if test -f CVS/Entries; then
1639 LIBEXSLT_VERSION_EXTRA=-CVS`grep ChangeLog CVS/Entries | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
1640fi
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650VERSION=${LIBXSLT_VERSION}
1651
1652am__api_version="1.9"
1653# Find a good install program. We prefer a C program (faster),
1654# so one script is as good as another. But avoid the broken or
1655# incompatible versions:
1656# SysV /etc/install, /usr/sbin/install
1657# SunOS /usr/etc/install
1658# IRIX /sbin/install
1659# AIX /bin/install
1660# AmigaOS /C/install, which installs bootblocks on floppy discs
1661# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1662# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1663# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1664# OS/2's system install, which has a completely different semantic
1665# ./install, which can be erroneously created by make from ./install.sh.
1666echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1667echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1668if test -z "$INSTALL"; then
1669if test "${ac_cv_path_install+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 # Account for people who put trailing slashes in PATH elements.
1678case $as_dir/ in
1679 ./ | .// | /cC/* | \
1680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1681 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1682 /usr/ucb/* ) ;;
1683 *)
1684 # OSF1 and SCO ODT 3.0 have their own names for install.
1685 # Don't use installbsd from OSF since it installs stuff as root
1686 # by default.
1687 for ac_prog in ginstall scoinst install; do
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1690 if test $ac_prog = install &&
1691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1692 # AIX install. It has an incompatible calling convention.
1693 :
1694 elif test $ac_prog = install &&
1695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1696 # program-specific install script used by HP pwplus--don't use.
1697 :
1698 else
1699 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1700 break 3
1701 fi
1702 fi
1703 done
1704 done
1705 ;;
1706esac
1707done
1708
1709
1710fi
1711 if test "${ac_cv_path_install+set}" = set; then
1712 INSTALL=$ac_cv_path_install
1713 else
1714 # As a last resort, use the slow shell script. We don't cache a
1715 # path for INSTALL within a source directory, because that will
1716 # break other packages using the cache if that directory is
1717 # removed, or if the path is relative.
1718 INSTALL=$ac_install_sh
1719 fi
1720fi
1721echo "$as_me:$LINENO: result: $INSTALL" >&5
1722echo "${ECHO_T}$INSTALL" >&6
1723
1724# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1725# It thinks the first close brace ends the variable substitution.
1726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1727
1728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1729
1730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1731
1732echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1733echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1734# Just in case
1735sleep 1
1736echo timestamp > conftest.file
1737# Do `set' in a subshell so we don't clobber the current shell's
1738# arguments. Must try -L first in case configure is actually a
1739# symlink; some systems play weird games with the mod time of symlinks
1740# (eg FreeBSD returns the mod time of the symlink's containing
1741# directory).
1742if (
1743 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1744 if test "$*" = "X"; then
1745 # -L didn't work.
1746 set X `ls -t $srcdir/configure conftest.file`
1747 fi
1748 rm -f conftest.file
1749 if test "$*" != "X $srcdir/configure conftest.file" \
1750 && test "$*" != "X conftest.file $srcdir/configure"; then
1751
1752 # If neither matched, then we have a broken ls. This can happen
1753 # if, for instance, CONFIG_SHELL is bash and it inherits a
1754 # broken ls alias from the environment. This has actually
1755 # happened. Such a system could not be considered "sane".
1756 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1757alias in your environment" >&5
1758echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1759alias in your environment" >&2;}
1760 { (exit 1); exit 1; }; }
1761 fi
1762
1763 test "$2" = conftest.file
1764 )
1765then
1766 # Ok.
1767 :
1768else
1769 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1770Check your system clock" >&5
1771echo "$as_me: error: newly created file is older than distributed files!
1772Check your system clock" >&2;}
1773 { (exit 1); exit 1; }; }
1774fi
1775echo "$as_me:$LINENO: result: yes" >&5
1776echo "${ECHO_T}yes" >&6
1777test "$program_prefix" != NONE &&
1778 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1779# Use a double $ so make ignores it.
1780test "$program_suffix" != NONE &&
1781 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1782# Double any \ or $. echo might interpret backslashes.
1783# By default was `s,x,x', remove it if useless.
1784cat <<\_ACEOF >conftest.sed
1785s/[\\$]/&&/g;s/;s,x,x,$//
1786_ACEOF
1787program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1788rm conftest.sed
1789
1790# expand $ac_aux_dir to an absolute path
1791am_aux_dir=`cd $ac_aux_dir && pwd`
1792
1793test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1794# Use eval to expand $SHELL
1795if eval "$MISSING --run true"; then
1796 am_missing_run="$MISSING --run "
1797else
1798 am_missing_run=
1799 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1800echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1801fi
1802
1803if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1804 # We used to keeping the `.' as first argument, in order to
1805 # allow $(mkdir_p) to be used without argument. As in
1806 # $(mkdir_p) $(somedir)
1807 # where $(somedir) is conditionally defined. However this is wrong
1808 # for two reasons:
1809 # 1. if the package is installed by a user who cannot write `.'
1810 # make install will fail,
1811 # 2. the above comment should most certainly read
1812 # $(mkdir_p) $(DESTDIR)$(somedir)
1813 # so it does not work when $(somedir) is undefined and
1814 # $(DESTDIR) is not.
1815 # To support the latter case, we have to write
1816 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1817 # so the `.' trick is pointless.
1818 mkdir_p='mkdir -p --'
1819else
1820 # On NextStep and OpenStep, the `mkdir' command does not
1821 # recognize any option. It will interpret all options as
1822 # directories to create, and then abort because `.' already
1823 # exists.
1824 for d in ./-p ./--version;
1825 do
1826 test -d $d && rmdir $d
1827 done
1828 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1829 if test -f "$ac_aux_dir/mkinstalldirs"; then
1830 mkdir_p='$(mkinstalldirs)'
1831 else
1832 mkdir_p='$(install_sh) -d'
1833 fi
1834fi
1835
1836for ac_prog in gawk mawk nawk awk
1837do
1838 # Extract the first word of "$ac_prog", so it can be a program name with args.
1839set dummy $ac_prog; ac_word=$2
1840echo "$as_me:$LINENO: checking for $ac_word" >&5
1841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842if test "${ac_cv_prog_AWK+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844else
1845 if test -n "$AWK"; then
1846 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1847else
1848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849for as_dir in $PATH
1850do
1851 IFS=$as_save_IFS
1852 test -z "$as_dir" && as_dir=.
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_AWK="$ac_prog"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 break 2
1858 fi
1859done
1860done
1861
1862fi
1863fi
1864AWK=$ac_cv_prog_AWK
1865if test -n "$AWK"; then
1866 echo "$as_me:$LINENO: result: $AWK" >&5
1867echo "${ECHO_T}$AWK" >&6
1868else
1869 echo "$as_me:$LINENO: result: no" >&5
1870echo "${ECHO_T}no" >&6
1871fi
1872
1873 test -n "$AWK" && break
1874done
1875
1876echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1877echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1878set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1879if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881else
1882 cat >conftest.make <<\_ACEOF
1883all:
1884 @echo 'ac_maketemp="$(MAKE)"'
1885_ACEOF
1886# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1887eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1888if test -n "$ac_maketemp"; then
1889 eval ac_cv_prog_make_${ac_make}_set=yes
1890else
1891 eval ac_cv_prog_make_${ac_make}_set=no
1892fi
1893rm -f conftest.make
1894fi
1895if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1896 echo "$as_me:$LINENO: result: yes" >&5
1897echo "${ECHO_T}yes" >&6
1898 SET_MAKE=
1899else
1900 echo "$as_me:$LINENO: result: no" >&5
1901echo "${ECHO_T}no" >&6
1902 SET_MAKE="MAKE=${MAKE-make}"
1903fi
1904
1905rm -rf .tst 2>/dev/null
1906mkdir .tst 2>/dev/null
1907if test -d .tst; then
1908 am__leading_dot=.
1909else
1910 am__leading_dot=_
1911fi
1912rmdir .tst 2>/dev/null
1913
1914# test to see if srcdir already configured
1915if test "`cd $srcdir && pwd`" != "`pwd`" &&
1916 test -f $srcdir/config.status; then
1917 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1918echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1919 { (exit 1); exit 1; }; }
1920fi
1921
1922# test whether we have cygpath
1923if test -z "$CYGPATH_W"; then
1924 if (cygpath --version) >/dev/null 2>/dev/null; then
1925 CYGPATH_W='cygpath -w'
1926 else
1927 CYGPATH_W=echo
1928 fi
1929fi
1930
1931
1932# Define the identity of the package.
1933 PACKAGE=$PACKAGE
1934 VERSION=$VERSION
1935
1936
1937cat >>confdefs.h <<_ACEOF
1938#define PACKAGE "$PACKAGE"
1939_ACEOF
1940
1941
1942cat >>confdefs.h <<_ACEOF
1943#define VERSION "$VERSION"
1944_ACEOF
1945
1946# Some tools Automake needs.
1947
1948ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1949
1950
1951AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1952
1953
1954AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1955
1956
1957AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1958
1959
1960MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1961
1962install_sh=${install_sh-"$am_aux_dir/install-sh"}
1963
1964# Installed binaries are usually stripped using `strip' when the user
1965# run `make install-strip'. However `strip' might not be the right
1966# tool to use in cross-compilation environments, therefore Automake
1967# will honor the `STRIP' environment variable to overrule this program.
1968if test "$cross_compiling" != no; then
1969 if test -n "$ac_tool_prefix"; then
1970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1971set dummy ${ac_tool_prefix}strip; ac_word=$2
1972echo "$as_me:$LINENO: checking for $ac_word" >&5
1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974if test "${ac_cv_prog_STRIP+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
1977 if test -n "$STRIP"; then
1978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1979else
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 break 2
1990 fi
1991done
1992done
1993
1994fi
1995fi
1996STRIP=$ac_cv_prog_STRIP
1997if test -n "$STRIP"; then
1998 echo "$as_me:$LINENO: result: $STRIP" >&5
1999echo "${ECHO_T}$STRIP" >&6
2000else
2001 echo "$as_me:$LINENO: result: no" >&5
2002echo "${ECHO_T}no" >&6
2003fi
2004
2005fi
2006if test -z "$ac_cv_prog_STRIP"; then
2007 ac_ct_STRIP=$STRIP
2008 # Extract the first word of "strip", so it can be a program name with args.
2009set dummy strip; 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_ac_ct_STRIP+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015 if test -n "$ac_ct_STRIP"; then
2016 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 break 2
2028 fi
2029done
2030done
2031
2032 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2033fi
2034fi
2035ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2036if test -n "$ac_ct_STRIP"; then
2037 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2038echo "${ECHO_T}$ac_ct_STRIP" >&6
2039else
2040 echo "$as_me:$LINENO: result: no" >&5
2041echo "${ECHO_T}no" >&6
2042fi
2043
2044 STRIP=$ac_ct_STRIP
2045else
2046 STRIP="$ac_cv_prog_STRIP"
2047fi
2048
2049fi
2050INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2051
2052# We need awk for the "check" target. The system "awk" is bad on
2053# some platforms.
2054# Always define AMTAR for backward compatibility.
2055
2056AMTAR=${AMTAR-"${am_missing_run}tar"}
2057
2058am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2059
2060
2061
2062
2063
2064
2065# AM_MAINTAINER_MODE
2066
2067
2068# Check whether --with-html-dir or --without-html-dir was given.
2069if test "${with_html_dir+set}" = set; then
2070 withval="$with_html_dir"
2071
2072fi;
2073
2074
2075if test "x$with_html_dir" = "x" ; then
2076 HTML_DIR='$(prefix)/doc'
2077else
2078 HTML_DIR=$with_html_dir
2079fi
2080
2081
2082
2083DEPDIR="${am__leading_dot}deps"
2084
2085 ac_config_commands="$ac_config_commands depfiles"
2086
2087
2088am_make=${MAKE-make}
2089cat > confinc << 'END'
2090am__doit:
2091 @echo done
2092.PHONY: am__doit
2093END
2094# If we don't find an include directive, just comment out the code.
2095echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2096echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2097am__include="#"
2098am__quote=
2099_am_result=none
2100# First try GNU make style include.
2101echo "include confinc" > confmf
2102# We grep out `Entering directory' and `Leaving directory'
2103# messages which can occur if `w' ends up in MAKEFLAGS.
2104# In particular we don't look at `^make:' because GNU make might
2105# be invoked under some other name (usually "gmake"), in which
2106# case it prints its new name instead of `make'.
2107if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2108 am__include=include
2109 am__quote=
2110 _am_result=GNU
2111fi
2112# Now try BSD make style include.
2113if test "$am__include" = "#"; then
2114 echo '.include "confinc"' > confmf
2115 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2116 am__include=.include
2117 am__quote="\""
2118 _am_result=BSD
2119 fi
2120fi
2121
2122
2123echo "$as_me:$LINENO: result: $_am_result" >&5
2124echo "${ECHO_T}$_am_result" >&6
2125rm -f confinc confmf
2126
2127# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2128if test "${enable_dependency_tracking+set}" = set; then
2129 enableval="$enable_dependency_tracking"
2130
2131fi;
2132if test "x$enable_dependency_tracking" != xno; then
2133 am_depcomp="$ac_aux_dir/depcomp"
2134 AMDEPBACKSLASH='\'
2135fi
2136
2137
2138if test "x$enable_dependency_tracking" != xno; then
2139 AMDEP_TRUE=
2140 AMDEP_FALSE='#'
2141else
2142 AMDEP_TRUE='#'
2143 AMDEP_FALSE=
2144fi
2145
2146
2147
2148ac_ext=c
2149ac_cpp='$CPP $CPPFLAGS'
2150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2152ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153if test -n "$ac_tool_prefix"; then
2154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2155set dummy ${ac_tool_prefix}gcc; ac_word=$2
2156echo "$as_me:$LINENO: checking for $ac_word" >&5
2157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158if test "${ac_cv_prog_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160else
2161 if test -n "$CC"; then
2162 ac_cv_prog_CC="$CC" # Let the user override the test.
2163else
2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2174 fi
2175done
2176done
2177
2178fi
2179fi
2180CC=$ac_cv_prog_CC
2181if test -n "$CC"; then
2182 echo "$as_me:$LINENO: result: $CC" >&5
2183echo "${ECHO_T}$CC" >&6
2184else
2185 echo "$as_me:$LINENO: result: no" >&5
2186echo "${ECHO_T}no" >&6
2187fi
2188
2189fi
2190if test -z "$ac_cv_prog_CC"; then
2191 ac_ct_CC=$CC
2192 # Extract the first word of "gcc", so it can be a program name with args.
2193set dummy gcc; ac_word=$2
2194echo "$as_me:$LINENO: checking for $ac_word" >&5
2195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199 if test -n "$ac_ct_CC"; then
2200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2201else
2202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203for as_dir in $PATH
2204do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_ac_ct_CC="gcc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2212 fi
2213done
2214done
2215
2216fi
2217fi
2218ac_ct_CC=$ac_cv_prog_ac_ct_CC
2219if test -n "$ac_ct_CC"; then
2220 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2221echo "${ECHO_T}$ac_ct_CC" >&6
2222else
2223 echo "$as_me:$LINENO: result: no" >&5
2224echo "${ECHO_T}no" >&6
2225fi
2226
2227 CC=$ac_ct_CC
2228else
2229 CC="$ac_cv_prog_CC"
2230fi
2231
2232if test -z "$CC"; then
2233 if test -n "$ac_tool_prefix"; then
2234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2235set dummy ${ac_tool_prefix}cc; ac_word=$2
2236echo "$as_me:$LINENO: checking for $ac_word" >&5
2237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238if test "${ac_cv_prog_CC+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2240else
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2243else
2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251 ac_cv_prog_CC="${ac_tool_prefix}cc"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 break 2
2254 fi
2255done
2256done
2257
2258fi
2259fi
2260CC=$ac_cv_prog_CC
2261if test -n "$CC"; then
2262 echo "$as_me:$LINENO: result: $CC" >&5
2263echo "${ECHO_T}$CC" >&6
2264else
2265 echo "$as_me:$LINENO: result: no" >&5
2266echo "${ECHO_T}no" >&6
2267fi
2268
2269fi
2270if test -z "$ac_cv_prog_CC"; then
2271 ac_ct_CC=$CC
2272 # Extract the first word of "cc", so it can be a program name with args.
2273set dummy cc; ac_word=$2
2274echo "$as_me:$LINENO: checking for $ac_word" >&5
2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281else
2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH
2284do
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289 ac_cv_prog_ac_ct_CC="cc"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
2292 fi
2293done
2294done
2295
2296fi
2297fi
2298ac_ct_CC=$ac_cv_prog_ac_ct_CC
2299if test -n "$ac_ct_CC"; then
2300 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2301echo "${ECHO_T}$ac_ct_CC" >&6
2302else
2303 echo "$as_me:$LINENO: result: no" >&5
2304echo "${ECHO_T}no" >&6
2305fi
2306
2307 CC=$ac_ct_CC
2308else
2309 CC="$ac_cv_prog_CC"
2310fi
2311
2312fi
2313if test -z "$CC"; then
2314 # Extract the first word of "cc", so it can be a program name with args.
2315set dummy cc; ac_word=$2
2316echo "$as_me:$LINENO: checking for $ac_word" >&5
2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2318if test "${ac_cv_prog_CC+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321 if test -n "$CC"; then
2322 ac_cv_prog_CC="$CC" # Let the user override the test.
2323else
2324 ac_prog_rejected=no
2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2333 ac_prog_rejected=yes
2334 continue
2335 fi
2336 ac_cv_prog_CC="cc"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340done
2341done
2342
2343if test $ac_prog_rejected = yes; then
2344 # We found a bogon in the path, so make sure we never use it.
2345 set dummy $ac_cv_prog_CC
2346 shift
2347 if test $# != 0; then
2348 # We chose a different compiler from the bogus one.
2349 # However, it has the same basename, so the bogon will be chosen
2350 # first if we set CC to just the basename; use the full file name.
2351 shift
2352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2353 fi
2354fi
2355fi
2356fi
2357CC=$ac_cv_prog_CC
2358if test -n "$CC"; then
2359 echo "$as_me:$LINENO: result: $CC" >&5
2360echo "${ECHO_T}$CC" >&6
2361else
2362 echo "$as_me:$LINENO: result: no" >&5
2363echo "${ECHO_T}no" >&6
2364fi
2365
2366fi
2367if test -z "$CC"; then
2368 if test -n "$ac_tool_prefix"; then
2369 for ac_prog in cl
2370 do
2371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2372set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2373echo "$as_me:$LINENO: checking for $ac_word" >&5
2374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375if test "${ac_cv_prog_CC+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378 if test -n "$CC"; then
2379 ac_cv_prog_CC="$CC" # Let the user override the test.
2380else
2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH
2383do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2388 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2391 fi
2392done
2393done
2394
2395fi
2396fi
2397CC=$ac_cv_prog_CC
2398if test -n "$CC"; then
2399 echo "$as_me:$LINENO: result: $CC" >&5
2400echo "${ECHO_T}$CC" >&6
2401else
2402 echo "$as_me:$LINENO: result: no" >&5
2403echo "${ECHO_T}no" >&6
2404fi
2405
2406 test -n "$CC" && break
2407 done
2408fi
2409if test -z "$CC"; then
2410 ac_ct_CC=$CC
2411 for ac_prog in cl
2412do
2413 # Extract the first word of "$ac_prog", so it can be a program name with args.
2414set dummy $ac_prog; ac_word=$2
2415echo "$as_me:$LINENO: checking for $ac_word" >&5
2416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2417if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419else
2420 if test -n "$ac_ct_CC"; then
2421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2430 ac_cv_prog_ac_ct_CC="$ac_prog"
2431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434done
2435done
2436
2437fi
2438fi
2439ac_ct_CC=$ac_cv_prog_ac_ct_CC
2440if test -n "$ac_ct_CC"; then
2441 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2442echo "${ECHO_T}$ac_ct_CC" >&6
2443else
2444 echo "$as_me:$LINENO: result: no" >&5
2445echo "${ECHO_T}no" >&6
2446fi
2447
2448 test -n "$ac_ct_CC" && break
2449done
2450
2451 CC=$ac_ct_CC
2452fi
2453
2454fi
2455
2456
2457test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2458See \`config.log' for more details." >&5
2459echo "$as_me: error: no acceptable C compiler found in \$PATH
2460See \`config.log' for more details." >&2;}
2461 { (exit 1); exit 1; }; }
2462
2463# Provide some information about the compiler.
2464echo "$as_me:$LINENO:" \
2465 "checking for C compiler version" >&5
2466ac_compiler=`set X $ac_compile; echo $2`
2467{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2468 (eval $ac_compiler --version </dev/null >&5) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }
2472{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2473 (eval $ac_compiler -v </dev/null >&5) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }
2477{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2478 (eval $ac_compiler -V </dev/null >&5) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }
2482
2483cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h. */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h. */
2489
2490int
2491main ()
2492{
2493
2494 ;
2495 return 0;
2496}
2497_ACEOF
2498ac_clean_files_save=$ac_clean_files
2499ac_clean_files="$ac_clean_files a.out a.exe b.out"
2500# Try to create an executable without -o first, disregard a.out.
2501# It will help us diagnose broken compilers, and finding out an intuition
2502# of exeext.
2503echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2504echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2505ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2506if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2507 (eval $ac_link_default) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; then
2511 # Find the output, starting from the most likely. This scheme is
2512# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2513# resort.
2514
2515# Be careful to initialize this variable, since it used to be cached.
2516# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2517ac_cv_exeext=
2518# b.out is created by i960 compilers.
2519for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2520do
2521 test -f "$ac_file" || continue
2522 case $ac_file in
2523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2524 ;;
2525 conftest.$ac_ext )
2526 # This is the source file.
2527 ;;
2528 [ab].out )
2529 # We found the default executable, but exeext='' is most
2530 # certainly right.
2531 break;;
2532 *.* )
2533 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2534 # FIXME: I believe we export ac_cv_exeext for Libtool,
2535 # but it would be cool to find out if it's true. Does anybody
2536 # maintain Libtool? --akim.
2537 export ac_cv_exeext
2538 break;;
2539 * )
2540 break;;
2541 esac
2542done
2543else
2544 echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2548See \`config.log' for more details." >&5
2549echo "$as_me: error: C compiler cannot create executables
2550See \`config.log' for more details." >&2;}
2551 { (exit 77); exit 77; }; }
2552fi
2553
2554ac_exeext=$ac_cv_exeext
2555echo "$as_me:$LINENO: result: $ac_file" >&5
2556echo "${ECHO_T}$ac_file" >&6
2557
2558# Check the compiler produces executables we can run. If not, either
2559# the compiler is broken, or we cross compile.
2560echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2561echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2562# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2563# If not cross compiling, check that we can run a simple program.
2564if test "$cross_compiling" != yes; then
2565 if { ac_try='./$ac_file'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 cross_compiling=no
2572 else
2573 if test "$cross_compiling" = maybe; then
2574 cross_compiling=yes
2575 else
2576 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2577If you meant to cross compile, use \`--host'.
2578See \`config.log' for more details." >&5
2579echo "$as_me: error: cannot run C compiled programs.
2580If you meant to cross compile, use \`--host'.
2581See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2583 fi
2584 fi
2585fi
2586echo "$as_me:$LINENO: result: yes" >&5
2587echo "${ECHO_T}yes" >&6
2588
2589rm -f a.out a.exe conftest$ac_cv_exeext b.out
2590ac_clean_files=$ac_clean_files_save
2591# Check the compiler produces executables we can run. If not, either
2592# the compiler is broken, or we cross compile.
2593echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2594echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2595echo "$as_me:$LINENO: result: $cross_compiling" >&5
2596echo "${ECHO_T}$cross_compiling" >&6
2597
2598echo "$as_me:$LINENO: checking for suffix of executables" >&5
2599echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2601 (eval $ac_link) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; then
2605 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2606# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2607# work properly (i.e., refer to `conftest.exe'), while it won't with
2608# `rm'.
2609for ac_file in conftest.exe conftest conftest.*; do
2610 test -f "$ac_file" || continue
2611 case $ac_file in
2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2613 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2614 export ac_cv_exeext
2615 break;;
2616 * ) break;;
2617 esac
2618done
2619else
2620 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2621See \`config.log' for more details." >&5
2622echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2623See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }
2625fi
2626
2627rm -f conftest$ac_cv_exeext
2628echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2629echo "${ECHO_T}$ac_cv_exeext" >&6
2630
2631rm -f conftest.$ac_ext
2632EXEEXT=$ac_cv_exeext
2633ac_exeext=$EXEEXT
2634echo "$as_me:$LINENO: checking for suffix of object files" >&5
2635echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2636if test "${ac_cv_objext+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639 cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h. */
2645
2646int
2647main ()
2648{
2649
2650 ;
2651 return 0;
2652}
2653_ACEOF
2654rm -f conftest.o conftest.obj
2655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; then
2660 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2661 case $ac_file in
2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2663 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2664 break;;
2665 esac
2666done
2667else
2668 echo "$as_me: failed program was:" >&5
2669sed 's/^/| /' conftest.$ac_ext >&5
2670
2671{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2672See \`config.log' for more details." >&5
2673echo "$as_me: error: cannot compute suffix of object files: cannot compile
2674See \`config.log' for more details." >&2;}
2675 { (exit 1); exit 1; }; }
2676fi
2677
2678rm -f conftest.$ac_cv_objext conftest.$ac_ext
2679fi
2680echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2681echo "${ECHO_T}$ac_cv_objext" >&6
2682OBJEXT=$ac_cv_objext
2683ac_objext=$OBJEXT
2684echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2685echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2686if test "${ac_cv_c_compiler_gnu+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2688else
2689 cat >conftest.$ac_ext <<_ACEOF
2690/* confdefs.h. */
2691_ACEOF
2692cat confdefs.h >>conftest.$ac_ext
2693cat >>conftest.$ac_ext <<_ACEOF
2694/* end confdefs.h. */
2695
2696int
2697main ()
2698{
2699#ifndef __GNUC__
2700 choke me
2701#endif
2702
2703 ;
2704 return 0;
2705}
2706_ACEOF
2707rm -f conftest.$ac_objext
2708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>conftest.er1
2710 ac_status=$?
2711 grep -v '^ *+' conftest.er1 >conftest.err
2712 rm -f conftest.er1
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -z "$ac_c_werror_flag"
2717 || test ! -s conftest.err'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 ac_compiler_gnu=yes
2730else
2731 echo "$as_me: failed program was:" >&5
2732sed 's/^/| /' conftest.$ac_ext >&5
2733
2734ac_compiler_gnu=no
2735fi
2736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2737ac_cv_c_compiler_gnu=$ac_compiler_gnu
2738
2739fi
2740echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2741echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2742GCC=`test $ac_compiler_gnu = yes && echo yes`
2743ac_test_CFLAGS=${CFLAGS+set}
2744ac_save_CFLAGS=$CFLAGS
2745CFLAGS="-g"
2746echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2747echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2748if test "${ac_cv_prog_cc_g+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2750else
2751 cat >conftest.$ac_ext <<_ACEOF
2752/* confdefs.h. */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h. */
2757
2758int
2759main ()
2760{
2761
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext
2767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_c_werror_flag"
2776 || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest.$ac_objext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
2788 ac_cv_prog_cc_g=yes
2789else
2790 echo "$as_me: failed program was:" >&5
2791sed 's/^/| /' conftest.$ac_ext >&5
2792
2793ac_cv_prog_cc_g=no
2794fi
2795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796fi
2797echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2798echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2799if test "$ac_test_CFLAGS" = set; then
2800 CFLAGS=$ac_save_CFLAGS
2801elif test $ac_cv_prog_cc_g = yes; then
2802 if test "$GCC" = yes; then
2803 CFLAGS="-g -O2"
2804 else
2805 CFLAGS="-g"
2806 fi
2807else
2808 if test "$GCC" = yes; then
2809 CFLAGS="-O2"
2810 else
2811 CFLAGS=
2812 fi
2813fi
2814echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2815echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2816if test "${ac_cv_prog_cc_stdc+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 ac_cv_prog_cc_stdc=no
2820ac_save_CC=$CC
2821cat >conftest.$ac_ext <<_ACEOF
2822/* confdefs.h. */
2823_ACEOF
2824cat confdefs.h >>conftest.$ac_ext
2825cat >>conftest.$ac_ext <<_ACEOF
2826/* end confdefs.h. */
2827#include <stdarg.h>
2828#include <stdio.h>
2829#include <sys/types.h>
2830#include <sys/stat.h>
2831/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2832struct buf { int x; };
2833FILE * (*rcsopen) (struct buf *, struct stat *, int);
2834static char *e (p, i)
2835 char **p;
2836 int i;
2837{
2838 return p[i];
2839}
2840static char *f (char * (*g) (char **, int), char **p, ...)
2841{
2842 char *s;
2843 va_list v;
2844 va_start (v,p);
2845 s = g (p, va_arg (v,int));
2846 va_end (v);
2847 return s;
2848}
2849
2850/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2851 function prototypes and stuff, but not '\xHH' hex character constants.
2852 These don't provoke an error unfortunately, instead are silently treated
2853 as 'x'. The following induces an error, until -std1 is added to get
2854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2855 array size at least. It's necessary to write '\x00'==0 to get something
2856 that's true only with -std1. */
2857int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2858
2859int test (int i, double x);
2860struct s1 {int (*f) (int a);};
2861struct s2 {int (*f) (double a);};
2862int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2863int argc;
2864char **argv;
2865int
2866main ()
2867{
2868return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873# Don't try gcc -ansi; that turns off useful extensions and
2874# breaks some systems' header files.
2875# AIX -qlanglvl=ansi
2876# Ultrix and OSF/1 -std1
2877# HP-UX 10.20 and later -Ae
2878# HP-UX older versions -Aa -D_HPUX_SOURCE
2879# SVR4 -Xc -D__EXTENSIONS__
2880for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2881do
2882 CC="$ac_save_CC $ac_arg"
2883 rm -f conftest.$ac_objext
2884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2885 (eval $ac_compile) 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } &&
2892 { ac_try='test -z "$ac_c_werror_flag"
2893 || test ! -s conftest.err'
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); }; } &&
2899 { ac_try='test -s conftest.$ac_objext'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 (eval $ac_try) 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; }; then
2905 ac_cv_prog_cc_stdc=$ac_arg
2906break
2907else
2908 echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911fi
2912rm -f conftest.err conftest.$ac_objext
2913done
2914rm -f conftest.$ac_ext conftest.$ac_objext
2915CC=$ac_save_CC
2916
2917fi
2918
2919case "x$ac_cv_prog_cc_stdc" in
2920 x|xno)
2921 echo "$as_me:$LINENO: result: none needed" >&5
2922echo "${ECHO_T}none needed" >&6 ;;
2923 *)
2924 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2925echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2926 CC="$CC $ac_cv_prog_cc_stdc" ;;
2927esac
2928
2929# Some people use a C++ compiler to compile C. Since we use `exit',
2930# in C++ we need to declare it. In case someone uses the same compiler
2931# for both compiling C and C++ we need to have the C++ compiler decide
2932# the declaration of exit, since it's the most demanding environment.
2933cat >conftest.$ac_ext <<_ACEOF
2934#ifndef __cplusplus
2935 choke me
2936#endif
2937_ACEOF
2938rm -f conftest.$ac_objext
2939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940 (eval $ac_compile) 2>conftest.er1
2941 ac_status=$?
2942 grep -v '^ *+' conftest.er1 >conftest.err
2943 rm -f conftest.er1
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } &&
2947 { ac_try='test -z "$ac_c_werror_flag"
2948 || test ! -s conftest.err'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 (eval $ac_try) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 for ac_declaration in \
2961 '' \
2962 'extern "C" void std::exit (int) throw (); using std::exit;' \
2963 'extern "C" void std::exit (int); using std::exit;' \
2964 'extern "C" void exit (int) throw ();' \
2965 'extern "C" void exit (int);' \
2966 'void exit (int);'
2967do
2968 cat >conftest.$ac_ext <<_ACEOF
2969/* confdefs.h. */
2970_ACEOF
2971cat confdefs.h >>conftest.$ac_ext
2972cat >>conftest.$ac_ext <<_ACEOF
2973/* end confdefs.h. */
2974$ac_declaration
2975#include <stdlib.h>
2976int
2977main ()
2978{
2979exit (42);
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext
2985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986 (eval $ac_compile) 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -z "$ac_c_werror_flag"
2994 || test ! -s conftest.err'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; } &&
3000 { ac_try='test -s conftest.$ac_objext'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 (eval $ac_try) 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3006 :
3007else
3008 echo "$as_me: failed program was:" >&5
3009sed 's/^/| /' conftest.$ac_ext >&5
3010
3011continue
3012fi
3013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3014 cat >conftest.$ac_ext <<_ACEOF
3015/* confdefs.h. */
3016_ACEOF
3017cat confdefs.h >>conftest.$ac_ext
3018cat >>conftest.$ac_ext <<_ACEOF
3019/* end confdefs.h. */
3020$ac_declaration
3021int
3022main ()
3023{
3024exit (42);
3025 ;
3026 return 0;
3027}
3028_ACEOF
3029rm -f conftest.$ac_objext
3030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3031 (eval $ac_compile) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_c_werror_flag"
3039 || test ! -s conftest.err'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 break
3052else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056fi
3057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058done
3059rm -f conftest*
3060if test -n "$ac_declaration"; then
3061 echo '#ifdef __cplusplus' >>confdefs.h
3062 echo $ac_declaration >>confdefs.h
3063 echo '#endif' >>confdefs.h
3064fi
3065
3066else
3067 echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070fi
3071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077
3078depcc="$CC" am_compiler_list=
3079
3080echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3081echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3082if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084else
3085 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3086 # We make a subdir and do the tests there. Otherwise we can end up
3087 # making bogus files that we don't know about and never remove. For
3088 # instance it was reported that on HP-UX the gcc test will end up
3089 # making a dummy file named `D' -- because `-MD' means `put the output
3090 # in D'.
3091 mkdir conftest.dir
3092 # Copy depcomp to subdir because otherwise we won't find it if we're
3093 # using a relative directory.
3094 cp "$am_depcomp" conftest.dir
3095 cd conftest.dir
3096 # We will build objects and dependencies in a subdirectory because
3097 # it helps to detect inapplicable dependency modes. For instance
3098 # both Tru64's cc and ICC support -MD to output dependencies as a
3099 # side effect of compilation, but ICC will put the dependencies in
3100 # the current directory while Tru64 will put them in the object
3101 # directory.
3102 mkdir sub
3103
3104 am_cv_CC_dependencies_compiler_type=none
3105 if test "$am_compiler_list" = ""; then
3106 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3107 fi
3108 for depmode in $am_compiler_list; do
3109 # Setup a source with many dependencies, because some compilers
3110 # like to wrap large dependency lists on column 80 (with \), and
3111 # we should not choose a depcomp mode which is confused by this.
3112 #
3113 # We need to recreate these files for each test, as the compiler may
3114 # overwrite some of them when testing with obscure command lines.
3115 # This happens at least with the AIX C compiler.
3116 : > sub/conftest.c
3117 for i in 1 2 3 4 5 6; do
3118 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3119 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3120 # Solaris 8's {/usr,}/bin/sh.
3121 touch sub/conftst$i.h
3122 done
3123 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3124
3125 case $depmode in
3126 nosideeffect)
3127 # after this tag, mechanisms are not by side-effect, so they'll
3128 # only be used when explicitly requested
3129 if test "x$enable_dependency_tracking" = xyes; then
3130 continue
3131 else
3132 break
3133 fi
3134 ;;
3135 none) break ;;
3136 esac
3137 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3138 # mode. It turns out that the SunPro C++ compiler does not properly
3139 # handle `-M -o', and we need to detect this.
3140 if depmode=$depmode \
3141 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3142 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3143 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3144 >/dev/null 2>conftest.err &&
3145 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3146 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3147 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3148 # icc doesn't choke on unknown options, it will just issue warnings
3149 # or remarks (even with -Werror). So we grep stderr for any message
3150 # that says an option was ignored or not supported.
3151 # When given -MP, icc 7.0 and 7.1 complain thusly:
3152 # icc: Command line warning: ignoring option '-M'; no argument required
3153 # The diagnosis changed in icc 8.0:
3154 # icc: Command line remark: option '-MP' not supported
3155 if (grep 'ignoring option' conftest.err ||
3156 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3157 am_cv_CC_dependencies_compiler_type=$depmode
3158 break
3159 fi
3160 fi
3161 done
3162
3163 cd ..
3164 rm -rf conftest.dir
3165else
3166 am_cv_CC_dependencies_compiler_type=none
3167fi
3168
3169fi
3170echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3171echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3172CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3173
3174
3175
3176if
3177 test "x$enable_dependency_tracking" != xno \
3178 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3179 am__fastdepCC_TRUE=
3180 am__fastdepCC_FALSE='#'
3181else
3182 am__fastdepCC_TRUE='#'
3183 am__fastdepCC_FALSE=
3184fi
3185
3186
3187
3188
3189 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3190echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3191if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193else
3194 ac_check_lib_save_LIBS=$LIBS
3195LIBS="-lcposix $LIBS"
3196cat >conftest.$ac_ext <<_ACEOF
3197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
3202
3203/* Override any gcc2 internal prototype to avoid an error. */
3204#ifdef __cplusplus
3205extern "C"
3206#endif
3207/* We use char because int might match the return type of a gcc2
3208 builtin and then its argument prototype would still apply. */
3209char strerror ();
3210int
3211main ()
3212{
3213strerror ();
3214 ;
3215 return 0;
3216}
3217_ACEOF
3218rm -f conftest.$ac_objext conftest$ac_exeext
3219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3220 (eval $ac_link) 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } &&
3227 { ac_try='test -z "$ac_c_werror_flag"
3228 || test ! -s conftest.err'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest$ac_exeext'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 ac_cv_lib_cposix_strerror=yes
3241else
3242 echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
3244
3245ac_cv_lib_cposix_strerror=no
3246fi
3247rm -f conftest.err conftest.$ac_objext \
3248 conftest$ac_exeext conftest.$ac_ext
3249LIBS=$ac_check_lib_save_LIBS
3250fi
3251echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3252echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3253if test $ac_cv_lib_cposix_strerror = yes; then
3254 LIBS="$LIBS -lcposix"
3255fi
3256
3257
3258
3259ac_ext=c
3260ac_cpp='$CPP $CPPFLAGS'
3261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3266set dummy ${ac_tool_prefix}gcc; ac_word=$2
3267echo "$as_me:$LINENO: checking for $ac_word" >&5
3268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269if test "${ac_cv_prog_CC+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC="$CC" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286done
3287done
3288
3289fi
3290fi
3291CC=$ac_cv_prog_CC
3292if test -n "$CC"; then
3293 echo "$as_me:$LINENO: result: $CC" >&5
3294echo "${ECHO_T}$CC" >&6
3295else
3296 echo "$as_me:$LINENO: result: no" >&5
3297echo "${ECHO_T}no" >&6
3298fi
3299
3300fi
3301if test -z "$ac_cv_prog_CC"; then
3302 ac_ct_CC=$CC
3303 # Extract the first word of "gcc", so it can be a program name with args.
3304set dummy gcc; ac_word=$2
3305echo "$as_me:$LINENO: checking for $ac_word" >&5
3306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309else
3310 if test -n "$ac_ct_CC"; then
3311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_ac_ct_CC="gcc"
3321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3323 fi
3324done
3325done
3326
3327fi
3328fi
3329ac_ct_CC=$ac_cv_prog_ac_ct_CC
3330if test -n "$ac_ct_CC"; then
3331 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3332echo "${ECHO_T}$ac_ct_CC" >&6
3333else
3334 echo "$as_me:$LINENO: result: no" >&5
3335echo "${ECHO_T}no" >&6
3336fi
3337
3338 CC=$ac_ct_CC
3339else
3340 CC="$ac_cv_prog_CC"
3341fi
3342
3343if test -z "$CC"; then
3344 if test -n "$ac_tool_prefix"; then
3345 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3346set dummy ${ac_tool_prefix}cc; ac_word=$2
3347echo "$as_me:$LINENO: checking for $ac_word" >&5
3348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349if test "${ac_cv_prog_CC+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351else
3352 if test -n "$CC"; then
3353 ac_cv_prog_CC="$CC" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_CC="${ac_tool_prefix}cc"
3363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 break 2
3365 fi
3366done
3367done
3368
3369fi
3370fi
3371CC=$ac_cv_prog_CC
3372if test -n "$CC"; then
3373 echo "$as_me:$LINENO: result: $CC" >&5
3374echo "${ECHO_T}$CC" >&6
3375else
3376 echo "$as_me:$LINENO: result: no" >&5
3377echo "${ECHO_T}no" >&6
3378fi
3379
3380fi
3381if test -z "$ac_cv_prog_CC"; then
3382 ac_ct_CC=$CC
3383 # Extract the first word of "cc", so it can be a program name with args.
3384set dummy cc; ac_word=$2
3385echo "$as_me:$LINENO: checking for $ac_word" >&5
3386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3387if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389else
3390 if test -n "$ac_ct_CC"; then
3391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3392else
3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394for as_dir in $PATH
3395do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_ac_ct_CC="cc"
3401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404done
3405done
3406
3407fi
3408fi
3409ac_ct_CC=$ac_cv_prog_ac_ct_CC
3410if test -n "$ac_ct_CC"; then
3411 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3412echo "${ECHO_T}$ac_ct_CC" >&6
3413else
3414 echo "$as_me:$LINENO: result: no" >&5
3415echo "${ECHO_T}no" >&6
3416fi
3417
3418 CC=$ac_ct_CC
3419else
3420 CC="$ac_cv_prog_CC"
3421fi
3422
3423fi
3424if test -z "$CC"; then
3425 # Extract the first word of "cc", so it can be a program name with args.
3426set dummy cc; ac_word=$2
3427echo "$as_me:$LINENO: checking for $ac_word" >&5
3428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429if test "${ac_cv_prog_CC+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431else
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3434else
3435 ac_prog_rejected=no
3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3444 ac_prog_rejected=yes
3445 continue
3446 fi
3447 ac_cv_prog_CC="cc"
3448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 break 2
3450 fi
3451done
3452done
3453
3454if test $ac_prog_rejected = yes; then
3455 # We found a bogon in the path, so make sure we never use it.
3456 set dummy $ac_cv_prog_CC
3457 shift
3458 if test $# != 0; then
3459 # We chose a different compiler from the bogus one.
3460 # However, it has the same basename, so the bogon will be chosen
3461 # first if we set CC to just the basename; use the full file name.
3462 shift
3463 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3464 fi
3465fi
3466fi
3467fi
3468CC=$ac_cv_prog_CC
3469if test -n "$CC"; then
3470 echo "$as_me:$LINENO: result: $CC" >&5
3471echo "${ECHO_T}$CC" >&6
3472else
3473 echo "$as_me:$LINENO: result: no" >&5
3474echo "${ECHO_T}no" >&6
3475fi
3476
3477fi
3478if test -z "$CC"; then
3479 if test -n "$ac_tool_prefix"; then
3480 for ac_prog in cl
3481 do
3482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3484echo "$as_me:$LINENO: checking for $ac_word" >&5
3485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3486if test "${ac_cv_prog_CC+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488else
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC="$CC" # Let the user override the test.
3491else
3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493for as_dir in $PATH
3494do
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3502 fi
3503done
3504done
3505
3506fi
3507fi
3508CC=$ac_cv_prog_CC
3509if test -n "$CC"; then
3510 echo "$as_me:$LINENO: result: $CC" >&5
3511echo "${ECHO_T}$CC" >&6
3512else
3513 echo "$as_me:$LINENO: result: no" >&5
3514echo "${ECHO_T}no" >&6
3515fi
3516
3517 test -n "$CC" && break
3518 done
3519fi
3520if test -z "$CC"; then
3521 ac_ct_CC=$CC
3522 for ac_prog in cl
3523do
3524 # Extract the first word of "$ac_prog", so it can be a program name with args.
3525set dummy $ac_prog; ac_word=$2
3526echo "$as_me:$LINENO: checking for $ac_word" >&5
3527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531 if test -n "$ac_ct_CC"; then
3532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3533else
3534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535for as_dir in $PATH
3536do
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_ac_ct_CC="$ac_prog"
3542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3544 fi
3545done
3546done
3547
3548fi
3549fi
3550ac_ct_CC=$ac_cv_prog_ac_ct_CC
3551if test -n "$ac_ct_CC"; then
3552 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3553echo "${ECHO_T}$ac_ct_CC" >&6
3554else
3555 echo "$as_me:$LINENO: result: no" >&5
3556echo "${ECHO_T}no" >&6
3557fi
3558
3559 test -n "$ac_ct_CC" && break
3560done
3561
3562 CC=$ac_ct_CC
3563fi
3564
3565fi
3566
3567
3568test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3569See \`config.log' for more details." >&5
3570echo "$as_me: error: no acceptable C compiler found in \$PATH
3571See \`config.log' for more details." >&2;}
3572 { (exit 1); exit 1; }; }
3573
3574# Provide some information about the compiler.
3575echo "$as_me:$LINENO:" \
3576 "checking for C compiler version" >&5
3577ac_compiler=`set X $ac_compile; echo $2`
3578{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3579 (eval $ac_compiler --version </dev/null >&5) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }
3583{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3584 (eval $ac_compiler -v </dev/null >&5) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }
3588{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3589 (eval $ac_compiler -V </dev/null >&5) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }
3593
3594echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3595echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3596if test "${ac_cv_c_compiler_gnu+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598else
3599 cat >conftest.$ac_ext <<_ACEOF
3600/* confdefs.h. */
3601_ACEOF
3602cat confdefs.h >>conftest.$ac_ext
3603cat >>conftest.$ac_ext <<_ACEOF
3604/* end confdefs.h. */
3605
3606int
3607main ()
3608{
3609#ifndef __GNUC__
3610 choke me
3611#endif
3612
3613 ;
3614 return 0;
3615}
3616_ACEOF
3617rm -f conftest.$ac_objext
3618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -z "$ac_c_werror_flag"
3627 || test ! -s conftest.err'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; } &&
3633 { ac_try='test -s conftest.$ac_objext'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3639 ac_compiler_gnu=yes
3640else
3641 echo "$as_me: failed program was:" >&5
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644ac_compiler_gnu=no
3645fi
3646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647ac_cv_c_compiler_gnu=$ac_compiler_gnu
3648
3649fi
3650echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3651echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3652GCC=`test $ac_compiler_gnu = yes && echo yes`
3653ac_test_CFLAGS=${CFLAGS+set}
3654ac_save_CFLAGS=$CFLAGS
3655CFLAGS="-g"
3656echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3657echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3658if test "${ac_cv_prog_cc_g+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660else
3661 cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h. */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h. */
3667
3668int
3669main ()
3670{
3671
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676rm -f conftest.$ac_objext
3677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>conftest.er1
3679 ac_status=$?
3680 grep -v '^ *+' conftest.er1 >conftest.err
3681 rm -f conftest.er1
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -z "$ac_c_werror_flag"
3686 || test ! -s conftest.err'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 (eval $ac_try) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest.$ac_objext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 ac_cv_prog_cc_g=yes
3699else
3700 echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
3703ac_cv_prog_cc_g=no
3704fi
3705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706fi
3707echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3708echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3709if test "$ac_test_CFLAGS" = set; then
3710 CFLAGS=$ac_save_CFLAGS
3711elif test $ac_cv_prog_cc_g = yes; then
3712 if test "$GCC" = yes; then
3713 CFLAGS="-g -O2"
3714 else
3715 CFLAGS="-g"
3716 fi
3717else
3718 if test "$GCC" = yes; then
3719 CFLAGS="-O2"
3720 else
3721 CFLAGS=
3722 fi
3723fi
3724echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3725echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3726if test "${ac_cv_prog_cc_stdc+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728else
3729 ac_cv_prog_cc_stdc=no
3730ac_save_CC=$CC
3731cat >conftest.$ac_ext <<_ACEOF
3732/* confdefs.h. */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
3736/* end confdefs.h. */
3737#include <stdarg.h>
3738#include <stdio.h>
3739#include <sys/types.h>
3740#include <sys/stat.h>
3741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3742struct buf { int x; };
3743FILE * (*rcsopen) (struct buf *, struct stat *, int);
3744static char *e (p, i)
3745 char **p;
3746 int i;
3747{
3748 return p[i];
3749}
3750static char *f (char * (*g) (char **, int), char **p, ...)
3751{
3752 char *s;
3753 va_list v;
3754 va_start (v,p);
3755 s = g (p, va_arg (v,int));
3756 va_end (v);
3757 return s;
3758}
3759
3760/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3761 function prototypes and stuff, but not '\xHH' hex character constants.
3762 These don't provoke an error unfortunately, instead are silently treated
3763 as 'x'. The following induces an error, until -std1 is added to get
3764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3765 array size at least. It's necessary to write '\x00'==0 to get something
3766 that's true only with -std1. */
3767int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3768
3769int test (int i, double x);
3770struct s1 {int (*f) (int a);};
3771struct s2 {int (*f) (double a);};
3772int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3773int argc;
3774char **argv;
3775int
3776main ()
3777{
3778return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3779 ;
3780 return 0;
3781}
3782_ACEOF
3783# Don't try gcc -ansi; that turns off useful extensions and
3784# breaks some systems' header files.
3785# AIX -qlanglvl=ansi
3786# Ultrix and OSF/1 -std1
3787# HP-UX 10.20 and later -Ae
3788# HP-UX older versions -Aa -D_HPUX_SOURCE
3789# SVR4 -Xc -D__EXTENSIONS__
3790for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3791do
3792 CC="$ac_save_CC $ac_arg"
3793 rm -f conftest.$ac_objext
3794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3795 (eval $ac_compile) 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } &&
3802 { ac_try='test -z "$ac_c_werror_flag"
3803 || test ! -s conftest.err'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 (eval $ac_try) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; } &&
3809 { ac_try='test -s conftest.$ac_objext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_cv_prog_cc_stdc=$ac_arg
3816break
3817else
3818 echo "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
3820
3821fi
3822rm -f conftest.err conftest.$ac_objext
3823done
3824rm -f conftest.$ac_ext conftest.$ac_objext
3825CC=$ac_save_CC
3826
3827fi
3828
3829case "x$ac_cv_prog_cc_stdc" in
3830 x|xno)
3831 echo "$as_me:$LINENO: result: none needed" >&5
3832echo "${ECHO_T}none needed" >&6 ;;
3833 *)
3834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3835echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3836 CC="$CC $ac_cv_prog_cc_stdc" ;;
3837esac
3838
3839# Some people use a C++ compiler to compile C. Since we use `exit',
3840# in C++ we need to declare it. In case someone uses the same compiler
3841# for both compiling C and C++ we need to have the C++ compiler decide
3842# the declaration of exit, since it's the most demanding environment.
3843cat >conftest.$ac_ext <<_ACEOF
3844#ifndef __cplusplus
3845 choke me
3846#endif
3847_ACEOF
3848rm -f conftest.$ac_objext
3849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try='test -z "$ac_c_werror_flag"
3858 || test ! -s conftest.err'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; } &&
3864 { ac_try='test -s conftest.$ac_objext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866 (eval $ac_try) 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 for ac_declaration in \
3871 '' \
3872 'extern "C" void std::exit (int) throw (); using std::exit;' \
3873 'extern "C" void std::exit (int); using std::exit;' \
3874 'extern "C" void exit (int) throw ();' \
3875 'extern "C" void exit (int);' \
3876 'void exit (int);'
3877do
3878 cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h. */
3884$ac_declaration
3885#include <stdlib.h>
3886int
3887main ()
3888{
3889exit (42);
3890 ;
3891 return 0;
3892}
3893_ACEOF
3894rm -f conftest.$ac_objext
3895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3896 (eval $ac_compile) 2>conftest.er1
3897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } &&
3903 { ac_try='test -z "$ac_c_werror_flag"
3904 || test ! -s conftest.err'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 (eval $ac_try) 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; } &&
3910 { ac_try='test -s conftest.$ac_objext'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 (eval $ac_try) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 :
3917else
3918 echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921continue
3922fi
3923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3924 cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
3930$ac_declaration
3931int
3932main ()
3933{
3934exit (42);
3935 ;
3936 return 0;
3937}
3938_ACEOF
3939rm -f conftest.$ac_objext
3940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3941 (eval $ac_compile) 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } &&
3948 { ac_try='test -z "$ac_c_werror_flag"
3949 || test ! -s conftest.err'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; } &&
3955 { ac_try='test -s conftest.$ac_objext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
3961 break
3962else
3963 echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
3966fi
3967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3968done
3969rm -f conftest*
3970if test -n "$ac_declaration"; then
3971 echo '#ifdef __cplusplus' >>confdefs.h
3972 echo $ac_declaration >>confdefs.h
3973 echo '#endif' >>confdefs.h
3974fi
3975
3976else
3977 echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980fi
3981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3982ac_ext=c
3983ac_cpp='$CPP $CPPFLAGS'
3984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987
3988depcc="$CC" am_compiler_list=
3989
3990echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3991echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3992if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994else
3995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3996 # We make a subdir and do the tests there. Otherwise we can end up
3997 # making bogus files that we don't know about and never remove. For
3998 # instance it was reported that on HP-UX the gcc test will end up
3999 # making a dummy file named `D' -- because `-MD' means `put the output
4000 # in D'.
4001 mkdir conftest.dir
4002 # Copy depcomp to subdir because otherwise we won't find it if we're
4003 # using a relative directory.
4004 cp "$am_depcomp" conftest.dir
4005 cd conftest.dir
4006 # We will build objects and dependencies in a subdirectory because
4007 # it helps to detect inapplicable dependency modes. For instance
4008 # both Tru64's cc and ICC support -MD to output dependencies as a
4009 # side effect of compilation, but ICC will put the dependencies in
4010 # the current directory while Tru64 will put them in the object
4011 # directory.
4012 mkdir sub
4013
4014 am_cv_CC_dependencies_compiler_type=none
4015 if test "$am_compiler_list" = ""; then
4016 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4017 fi
4018 for depmode in $am_compiler_list; do
4019 # Setup a source with many dependencies, because some compilers
4020 # like to wrap large dependency lists on column 80 (with \), and
4021 # we should not choose a depcomp mode which is confused by this.
4022 #
4023 # We need to recreate these files for each test, as the compiler may
4024 # overwrite some of them when testing with obscure command lines.
4025 # This happens at least with the AIX C compiler.
4026 : > sub/conftest.c
4027 for i in 1 2 3 4 5 6; do
4028 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4029 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4030 # Solaris 8's {/usr,}/bin/sh.
4031 touch sub/conftst$i.h
4032 done
4033 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4034
4035 case $depmode in
4036 nosideeffect)
4037 # after this tag, mechanisms are not by side-effect, so they'll
4038 # only be used when explicitly requested
4039 if test "x$enable_dependency_tracking" = xyes; then
4040 continue
4041 else
4042 break
4043 fi
4044 ;;
4045 none) break ;;
4046 esac
4047 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4048 # mode. It turns out that the SunPro C++ compiler does not properly
4049 # handle `-M -o', and we need to detect this.
4050 if depmode=$depmode \
4051 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4053 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4054 >/dev/null 2>conftest.err &&
4055 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4056 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4057 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4058 # icc doesn't choke on unknown options, it will just issue warnings
4059 # or remarks (even with -Werror). So we grep stderr for any message
4060 # that says an option was ignored or not supported.
4061 # When given -MP, icc 7.0 and 7.1 complain thusly:
4062 # icc: Command line warning: ignoring option '-M'; no argument required
4063 # The diagnosis changed in icc 8.0:
4064 # icc: Command line remark: option '-MP' not supported
4065 if (grep 'ignoring option' conftest.err ||
4066 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4067 am_cv_CC_dependencies_compiler_type=$depmode
4068 break
4069 fi
4070 fi
4071 done
4072
4073 cd ..
4074 rm -rf conftest.dir
4075else
4076 am_cv_CC_dependencies_compiler_type=none
4077fi
4078
4079fi
4080echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4081echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4082CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4083
4084
4085
4086if
4087 test "x$enable_dependency_tracking" != xno \
4088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4089 am__fastdepCC_TRUE=
4090 am__fastdepCC_FALSE='#'
4091else
4092 am__fastdepCC_TRUE='#'
4093 am__fastdepCC_FALSE=
4094fi
4095
4096
4097# Find a good install program. We prefer a C program (faster),
4098# so one script is as good as another. But avoid the broken or
4099# incompatible versions:
4100# SysV /etc/install, /usr/sbin/install
4101# SunOS /usr/etc/install
4102# IRIX /sbin/install
4103# AIX /bin/install
4104# AmigaOS /C/install, which installs bootblocks on floppy discs
4105# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4106# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4107# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4108# OS/2's system install, which has a completely different semantic
4109# ./install, which can be erroneously created by make from ./install.sh.
4110echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4111echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4112if test -z "$INSTALL"; then
4113if test "${ac_cv_path_install+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 # Account for people who put trailing slashes in PATH elements.
4122case $as_dir/ in
4123 ./ | .// | /cC/* | \
4124 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4125 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4126 /usr/ucb/* ) ;;
4127 *)
4128 # OSF1 and SCO ODT 3.0 have their own names for install.
4129 # Don't use installbsd from OSF since it installs stuff as root
4130 # by default.
4131 for ac_prog in ginstall scoinst install; do
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4134 if test $ac_prog = install &&
4135 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4136 # AIX install. It has an incompatible calling convention.
4137 :
4138 elif test $ac_prog = install &&
4139 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4140 # program-specific install script used by HP pwplus--don't use.
4141 :
4142 else
4143 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4144 break 3
4145 fi
4146 fi
4147 done
4148 done
4149 ;;
4150esac
4151done
4152
4153
4154fi
4155 if test "${ac_cv_path_install+set}" = set; then
4156 INSTALL=$ac_cv_path_install
4157 else
4158 # As a last resort, use the slow shell script. We don't cache a
4159 # path for INSTALL within a source directory, because that will
4160 # break other packages using the cache if that directory is
4161 # removed, or if the path is relative.
4162 INSTALL=$ac_install_sh
4163 fi
4164fi
4165echo "$as_me:$LINENO: result: $INSTALL" >&5
4166echo "${ECHO_T}$INSTALL" >&6
4167
4168# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4169# It thinks the first close brace ends the variable substitution.
4170test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4171
4172test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4173
4174test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4175
4176ac_ext=c
4177ac_cpp='$CPP $CPPFLAGS'
4178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4182echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4183# On Suns, sometimes $CPP names a directory.
4184if test -n "$CPP" && test -d "$CPP"; then
4185 CPP=
4186fi
4187if test -z "$CPP"; then
4188 if test "${ac_cv_prog_CPP+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191 # Double quotes because CPP needs to be expanded
4192 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4193 do
4194 ac_preproc_ok=false
4195for ac_c_preproc_warn_flag in '' yes
4196do
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat >conftest.$ac_ext <<_ACEOF
4204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h. */
4209#ifdef __STDC__
4210# include <limits.h>
4211#else
4212# include <assert.h>
4213#endif
4214 Syntax error
4215_ACEOF
4216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } >/dev/null; then
4224 if test -s conftest.err; then
4225 ac_cpp_err=$ac_c_preproc_warn_flag
4226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4227 else
4228 ac_cpp_err=
4229 fi
4230else
4231 ac_cpp_err=yes
4232fi
4233if test -z "$ac_cpp_err"; then
4234 :
4235else
4236 echo "$as_me: failed program was:" >&5
4237sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 # Broken: fails on valid input.
4240continue
4241fi
4242rm -f conftest.err conftest.$ac_ext
4243
4244 # OK, works on sane cases. Now check whether non-existent headers
4245 # can be detected and how.
4246 cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
4252#include <ac_nonexistent.h>
4253_ACEOF
4254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } >/dev/null; then
4262 if test -s conftest.err; then
4263 ac_cpp_err=$ac_c_preproc_warn_flag
4264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4265 else
4266 ac_cpp_err=
4267 fi
4268else
4269 ac_cpp_err=yes
4270fi
4271if test -z "$ac_cpp_err"; then
4272 # Broken: success on invalid input.
4273continue
4274else
4275 echo "$as_me: failed program was:" >&5
4276sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 # Passes both tests.
4279ac_preproc_ok=:
4280break
4281fi
4282rm -f conftest.err conftest.$ac_ext
4283
4284done
4285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286rm -f conftest.err conftest.$ac_ext
4287if $ac_preproc_ok; then
4288 break
4289fi
4290
4291 done
4292 ac_cv_prog_CPP=$CPP
4293
4294fi
4295 CPP=$ac_cv_prog_CPP
4296else
4297 ac_cv_prog_CPP=$CPP
4298fi
4299echo "$as_me:$LINENO: result: $CPP" >&5
4300echo "${ECHO_T}$CPP" >&6
4301ac_preproc_ok=false
4302for ac_c_preproc_warn_flag in '' yes
4303do
4304 # Use a header file that comes with gcc, so configuring glibc
4305 # with a fresh cross-compiler works.
4306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4307 # <limits.h> exists even on freestanding compilers.
4308 # On the NeXT, cc -E runs the code through the compiler's parser,
4309 # not just through cpp. "Syntax error" is here to catch this case.
4310 cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316#ifdef __STDC__
4317# include <limits.h>
4318#else
4319# include <assert.h>
4320#endif
4321 Syntax error
4322_ACEOF
4323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4325 ac_status=$?
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } >/dev/null; then
4331 if test -s conftest.err; then
4332 ac_cpp_err=$ac_c_preproc_warn_flag
4333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4334 else
4335 ac_cpp_err=
4336 fi
4337else
4338 ac_cpp_err=yes
4339fi
4340if test -z "$ac_cpp_err"; then
4341 :
4342else
4343 echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 # Broken: fails on valid input.
4347continue
4348fi
4349rm -f conftest.err conftest.$ac_ext
4350
4351 # OK, works on sane cases. Now check whether non-existent headers
4352 # can be detected and how.
4353 cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h. */
4355_ACEOF
4356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
4358/* end confdefs.h. */
4359#include <ac_nonexistent.h>
4360_ACEOF
4361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } >/dev/null; then
4369 if test -s conftest.err; then
4370 ac_cpp_err=$ac_c_preproc_warn_flag
4371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4372 else
4373 ac_cpp_err=
4374 fi
4375else
4376 ac_cpp_err=yes
4377fi
4378if test -z "$ac_cpp_err"; then
4379 # Broken: success on invalid input.
4380continue
4381else
4382 echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 # Passes both tests.
4386ac_preproc_ok=:
4387break
4388fi
4389rm -f conftest.err conftest.$ac_ext
4390
4391done
4392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393rm -f conftest.err conftest.$ac_ext
4394if $ac_preproc_ok; then
4395 :
4396else
4397 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4398See \`config.log' for more details." >&5
4399echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4400See \`config.log' for more details." >&2;}
4401 { (exit 1); exit 1; }; }
4402fi
4403
4404ac_ext=c
4405ac_cpp='$CPP $CPPFLAGS'
4406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410# Extract the first word of "rm", so it can be a program name with args.
4411set dummy rm; ac_word=$2
4412echo "$as_me:$LINENO: checking for $ac_word" >&5
4413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4414if test "${ac_cv_path_RM+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416else
4417 case $RM in
4418 [\\/]* | ?:[\\/]*)
4419 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4420 ;;
4421 *)
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433done
4434done
4435
4436 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
4437 ;;
4438esac
4439fi
4440RM=$ac_cv_path_RM
4441
4442if test -n "$RM"; then
4443 echo "$as_me:$LINENO: result: $RM" >&5
4444echo "${ECHO_T}$RM" >&6
4445else
4446 echo "$as_me:$LINENO: result: no" >&5
4447echo "${ECHO_T}no" >&6
4448fi
4449
4450# Extract the first word of "mv", so it can be a program name with args.
4451set dummy mv; ac_word=$2
4452echo "$as_me:$LINENO: checking for $ac_word" >&5
4453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454if test "${ac_cv_path_MV+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456else
4457 case $MV in
4458 [\\/]* | ?:[\\/]*)
4459 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4460 ;;
4461 *)
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473done
4474done
4475
4476 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4477 ;;
4478esac
4479fi
4480MV=$ac_cv_path_MV
4481
4482if test -n "$MV"; then
4483 echo "$as_me:$LINENO: result: $MV" >&5
4484echo "${ECHO_T}$MV" >&6
4485else
4486 echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6
4488fi
4489
4490# Extract the first word of "tar", so it can be a program name with args.
4491set dummy tar; ac_word=$2
4492echo "$as_me:$LINENO: checking for $ac_word" >&5
4493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4494if test "${ac_cv_path_TAR+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497 case $TAR in
4498 [\\/]* | ?:[\\/]*)
4499 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4500 ;;
4501 *)
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4512 fi
4513done
4514done
4515
4516 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4517 ;;
4518esac
4519fi
4520TAR=$ac_cv_path_TAR
4521
4522if test -n "$TAR"; then
4523 echo "$as_me:$LINENO: result: $TAR" >&5
4524echo "${ECHO_T}$TAR" >&6
4525else
4526 echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6
4528fi
4529
4530
4531
4532echo "$as_me:$LINENO: checking for egrep" >&5
4533echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4534if test "${ac_cv_prog_egrep+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4538 then ac_cv_prog_egrep='grep -E'
4539 else ac_cv_prog_egrep='egrep'
4540 fi
4541fi
4542echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4543echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4544 EGREP=$ac_cv_prog_egrep
4545
4546
4547echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4548echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4549if test "${ac_cv_header_stdc+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552 cat >conftest.$ac_ext <<_ACEOF
4553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
4558#include <stdlib.h>
4559#include <stdarg.h>
4560#include <string.h>
4561#include <float.h>
4562
4563int
4564main ()
4565{
4566
4567 ;
4568 return 0;
4569}
4570_ACEOF
4571rm -f conftest.$ac_objext
4572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573 (eval $ac_compile) 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -z "$ac_c_werror_flag"
4581 || test ! -s conftest.err'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; } &&
4587 { ac_try='test -s conftest.$ac_objext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 (eval $ac_try) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 ac_cv_header_stdc=yes
4594else
4595 echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598ac_cv_header_stdc=no
4599fi
4600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4601
4602if test $ac_cv_header_stdc = yes; then
4603 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4604 cat >conftest.$ac_ext <<_ACEOF
4605/* confdefs.h. */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h. */
4610#include <string.h>
4611
4612_ACEOF
4613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614 $EGREP "memchr" >/dev/null 2>&1; then
4615 :
4616else
4617 ac_cv_header_stdc=no
4618fi
4619rm -f conftest*
4620
4621fi
4622
4623if test $ac_cv_header_stdc = yes; then
4624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4625 cat >conftest.$ac_ext <<_ACEOF
4626/* confdefs.h. */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h. */
4631#include <stdlib.h>
4632
4633_ACEOF
4634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635 $EGREP "free" >/dev/null 2>&1; then
4636 :
4637else
4638 ac_cv_header_stdc=no
4639fi
4640rm -f conftest*
4641
4642fi
4643
4644if test $ac_cv_header_stdc = yes; then
4645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4646 if test "$cross_compiling" = yes; then
4647 :
4648else
4649 cat >conftest.$ac_ext <<_ACEOF
4650/* confdefs.h. */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>conftest.$ac_ext <<_ACEOF
4654/* end confdefs.h. */
4655#include <ctype.h>
4656#if ((' ' & 0x0FF) == 0x020)
4657# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4658# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4659#else
4660# define ISLOWER(c) \
4661 (('a' <= (c) && (c) <= 'i') \
4662 || ('j' <= (c) && (c) <= 'r') \
4663 || ('s' <= (c) && (c) <= 'z'))
4664# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4665#endif
4666
4667#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4668int
4669main ()
4670{
4671 int i;
4672 for (i = 0; i < 256; i++)
4673 if (XOR (islower (i), ISLOWER (i))
4674 || toupper (i) != TOUPPER (i))
4675 exit(2);
4676 exit (0);
4677}
4678_ACEOF
4679rm -f conftest$ac_exeext
4680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 :
4691else
4692 echo "$as_me: program exited with status $ac_status" >&5
4693echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696( exit $ac_status )
4697ac_cv_header_stdc=no
4698fi
4699rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4700fi
4701fi
4702fi
4703echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4704echo "${ECHO_T}$ac_cv_header_stdc" >&6
4705if test $ac_cv_header_stdc = yes; then
4706
4707cat >>confdefs.h <<\_ACEOF
4708#define STDC_HEADERS 1
4709_ACEOF
4710
4711fi
4712
4713# Check whether --enable-shared or --disable-shared was given.
4714if test "${enable_shared+set}" = set; then
4715 enableval="$enable_shared"
4716 p=${PACKAGE-default}
4717 case $enableval in
4718 yes) enable_shared=yes ;;
4719 no) enable_shared=no ;;
4720 *)
4721 enable_shared=no
4722 # Look at the argument we got. We use all the common list separators.
4723 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4724 for pkg in $enableval; do
4725 IFS="$lt_save_ifs"
4726 if test "X$pkg" = "X$p"; then
4727 enable_shared=yes
4728 fi
4729 done
4730 IFS="$lt_save_ifs"
4731 ;;
4732 esac
4733else
4734 enable_shared=yes
4735fi;
4736
4737# Check whether --enable-static or --disable-static was given.
4738if test "${enable_static+set}" = set; then
4739 enableval="$enable_static"
4740 p=${PACKAGE-default}
4741 case $enableval in
4742 yes) enable_static=yes ;;
4743 no) enable_static=no ;;
4744 *)
4745 enable_static=no
4746 # Look at the argument we got. We use all the common list separators.
4747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4748 for pkg in $enableval; do
4749 IFS="$lt_save_ifs"
4750 if test "X$pkg" = "X$p"; then
4751 enable_static=yes
4752 fi
4753 done
4754 IFS="$lt_save_ifs"
4755 ;;
4756 esac
4757else
4758 enable_static=yes
4759fi;
4760
4761# Check whether --enable-fast-install or --disable-fast-install was given.
4762if test "${enable_fast_install+set}" = set; then
4763 enableval="$enable_fast_install"
4764 p=${PACKAGE-default}
4765 case $enableval in
4766 yes) enable_fast_install=yes ;;
4767 no) enable_fast_install=no ;;
4768 *)
4769 enable_fast_install=no
4770 # Look at the argument we got. We use all the common list separators.
4771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4772 for pkg in $enableval; do
4773 IFS="$lt_save_ifs"
4774 if test "X$pkg" = "X$p"; then
4775 enable_fast_install=yes
4776 fi
4777 done
4778 IFS="$lt_save_ifs"
4779 ;;
4780 esac
4781else
4782 enable_fast_install=yes
4783fi;
4784
4785echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4786echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4787if test "${lt_cv_path_SED+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789else
4790 # Loop through the user's path and test for sed and gsed.
4791# Then use that list of sed's as ones to test for truncation.
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for lt_ac_prog in sed gsed; do
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4800 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4801 fi
4802 done
4803 done
4804done
4805IFS=$as_save_IFS
4806lt_ac_max=0
4807lt_ac_count=0
4808# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4809# along with /bin/sed that truncates output.
4810for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4811 test ! -f $lt_ac_sed && continue
4812 cat /dev/null > conftest.in
4813 lt_ac_count=0
4814 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4815 # Check for GNU sed and select it if it is found.
4816 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4817 lt_cv_path_SED=$lt_ac_sed
4818 break
4819 fi
4820 while true; do
4821 cat conftest.in conftest.in >conftest.tmp
4822 mv conftest.tmp conftest.in
4823 cp conftest.in conftest.nl
4824 echo >>conftest.nl
4825 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4826 cmp -s conftest.out conftest.nl || break
4827 # 10000 chars as input seems more than enough
4828 test $lt_ac_count -gt 10 && break
4829 lt_ac_count=`expr $lt_ac_count + 1`
4830 if test $lt_ac_count -gt $lt_ac_max; then
4831 lt_ac_max=$lt_ac_count
4832 lt_cv_path_SED=$lt_ac_sed
4833 fi
4834 done
4835done
4836
4837fi
4838
4839SED=$lt_cv_path_SED
4840
4841echo "$as_me:$LINENO: result: $SED" >&5
4842echo "${ECHO_T}$SED" >&6
4843
4844
4845# Check whether --with-gnu-ld or --without-gnu-ld was given.
4846if test "${with_gnu_ld+set}" = set; then
4847 withval="$with_gnu_ld"
4848 test "$withval" = no || with_gnu_ld=yes
4849else
4850 with_gnu_ld=no
4851fi;
4852ac_prog=ld
4853if test "$GCC" = yes; then
4854 # Check if gcc -print-prog-name=ld gives a path.
4855 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4856echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4857 case $host in
4858 *-*-mingw*)
4859 # gcc leaves a trailing carriage return which upsets mingw
4860 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4861 *)
4862 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4863 esac
4864 case $ac_prog in
4865 # Accept absolute paths.
4866 [\\/]* | ?:[\\/]*)
4867 re_direlt='/[^/][^/]*/\.\./'
4868 # Canonicalize the pathname of ld
4869 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4870 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4871 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4872 done
4873 test -z "$LD" && LD="$ac_prog"
4874 ;;
4875 "")
4876 # If it fails, then pretend we aren't using GCC.
4877 ac_prog=ld
4878 ;;
4879 *)
4880 # If it is relative, then search for the first ld in PATH.
4881 with_gnu_ld=unknown
4882 ;;
4883 esac
4884elif test "$with_gnu_ld" = yes; then
4885 echo "$as_me:$LINENO: checking for GNU ld" >&5
4886echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4887else
4888 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4889echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4890fi
4891if test "${lt_cv_path_LD+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893else
4894 if test -z "$LD"; then
4895 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4896 for ac_dir in $PATH; do
4897 IFS="$lt_save_ifs"
4898 test -z "$ac_dir" && ac_dir=.
4899 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4900 lt_cv_path_LD="$ac_dir/$ac_prog"
4901 # Check to see if the program is GNU ld. I'd rather use --version,
4902 # but apparently some variants of GNU ld only accept -v.
4903 # Break only if it was the GNU/non-GNU ld that we prefer.
4904 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4905 *GNU* | *'with BFD'*)
4906 test "$with_gnu_ld" != no && break
4907 ;;
4908 *)
4909 test "$with_gnu_ld" != yes && break
4910 ;;
4911 esac
4912 fi
4913 done
4914 IFS="$lt_save_ifs"
4915else
4916 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4917fi
4918fi
4919
4920LD="$lt_cv_path_LD"
4921if test -n "$LD"; then
4922 echo "$as_me:$LINENO: result: $LD" >&5
4923echo "${ECHO_T}$LD" >&6
4924else
4925 echo "$as_me:$LINENO: result: no" >&5
4926echo "${ECHO_T}no" >&6
4927fi
4928test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4929echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4930 { (exit 1); exit 1; }; }
4931echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4932echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4933if test "${lt_cv_prog_gnu_ld+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935else
4936 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4937case `$LD -v 2>&1 </dev/null` in
4938*GNU* | *'with BFD'*)
4939 lt_cv_prog_gnu_ld=yes
4940 ;;
4941*)
4942 lt_cv_prog_gnu_ld=no
4943 ;;
4944esac
4945fi
4946echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4947echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4948with_gnu_ld=$lt_cv_prog_gnu_ld
4949
4950
4951echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4952echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4953if test "${lt_cv_ld_reload_flag+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956 lt_cv_ld_reload_flag='-r'
4957fi
4958echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4959echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4960reload_flag=$lt_cv_ld_reload_flag
4961case $reload_flag in
4962"" | " "*) ;;
4963*) reload_flag=" $reload_flag" ;;
4964esac
4965reload_cmds='$LD$reload_flag -o $output$reload_objs'
4966case $host_os in
4967 darwin*)
4968 if test "$GCC" = yes; then
4969 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4970 else
4971 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4972 fi
4973 ;;
4974esac
4975
4976echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4977echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4978if test "${lt_cv_path_NM+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980else
4981 if test -n "$NM"; then
4982 # Let the user override the test.
4983 lt_cv_path_NM="$NM"
4984else
4985 lt_nm_to_check="${ac_tool_prefix}nm"
4986 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4987 lt_nm_to_check="$lt_nm_to_check nm"
4988 fi
4989 for lt_tmp_nm in $lt_nm_to_check; do
4990 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4991 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4992 IFS="$lt_save_ifs"
4993 test -z "$ac_dir" && ac_dir=.
4994 tmp_nm="$ac_dir/$lt_tmp_nm"
4995 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4996 # Check to see if the nm accepts a BSD-compat flag.
4997 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4998 # nm: unknown option "B" ignored
4999 # Tru64's nm complains that /dev/null is an invalid object file
5000 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5001 */dev/null* | *'Invalid file or object type'*)
5002 lt_cv_path_NM="$tmp_nm -B"
5003 break
5004 ;;
5005 *)
5006 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5007 */dev/null*)
5008 lt_cv_path_NM="$tmp_nm -p"
5009 break
5010 ;;
5011 *)
5012 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5013 continue # so that we can try to find one that supports BSD flags
5014 ;;
5015 esac
5016 ;;
5017 esac
5018 fi
5019 done
5020 IFS="$lt_save_ifs"
5021 done
5022 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5023fi
5024fi
5025echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5026echo "${ECHO_T}$lt_cv_path_NM" >&6
5027NM="$lt_cv_path_NM"
5028
5029echo "$as_me:$LINENO: checking whether ln -s works" >&5
5030echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5031LN_S=$as_ln_s
5032if test "$LN_S" = "ln -s"; then
5033 echo "$as_me:$LINENO: result: yes" >&5
5034echo "${ECHO_T}yes" >&6
5035else
5036 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5037echo "${ECHO_T}no, using $LN_S" >&6
5038fi
5039
5040echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5041echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5042if test "${lt_cv_deplibs_check_method+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044else
5045 lt_cv_file_magic_cmd='$MAGIC_CMD'
5046lt_cv_file_magic_test_file=
5047lt_cv_deplibs_check_method='unknown'
5048# Need to set the preceding variable on all platforms that support
5049# interlibrary dependencies.
5050# 'none' -- dependencies not supported.
5051# `unknown' -- same as none, but documents that we really don't know.
5052# 'pass_all' -- all dependencies passed with no checks.
5053# 'test_compile' -- check by making test program.
5054# 'file_magic [[regex]]' -- check by looking for files in library path
5055# which responds to the $file_magic_cmd with a given extended regex.
5056# If you have `file' or equivalent on your system and you're not sure
5057# whether `pass_all' will *always* work, you probably want this one.
5058
5059case $host_os in
5060aix4* | aix5*)
5061 lt_cv_deplibs_check_method=pass_all
5062 ;;
5063
5064beos*)
5065 lt_cv_deplibs_check_method=pass_all
5066 ;;
5067
5068bsdi[45]*)
5069 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5070 lt_cv_file_magic_cmd='/usr/bin/file -L'
5071 lt_cv_file_magic_test_file=/shlib/libc.so
5072 ;;
5073
5074cygwin*)
5075 # func_win32_libid is a shell function defined in ltmain.sh
5076 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5077 lt_cv_file_magic_cmd='func_win32_libid'
5078 ;;
5079
5080mingw* | pw32*)
5081 # Base MSYS/MinGW do not provide the 'file' command needed by
5082 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5083 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5084 lt_cv_file_magic_cmd='$OBJDUMP -f'
5085 ;;
5086
5087darwin* | rhapsody*)
5088 lt_cv_deplibs_check_method=pass_all
5089 ;;
5090
5091freebsd* | kfreebsd*-gnu | dragonfly*)
5092 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5093 case $host_cpu in
5094 i*86 )
5095 # Not sure whether the presence of OpenBSD here was a mistake.
5096 # Let's accept both of them until this is cleared up.
5097 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5098 lt_cv_file_magic_cmd=/usr/bin/file
5099 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5100 ;;
5101 esac
5102 else
5103 lt_cv_deplibs_check_method=pass_all
5104 fi
5105 ;;
5106
5107gnu*)
5108 lt_cv_deplibs_check_method=pass_all
5109 ;;
5110
5111hpux10.20* | hpux11*)
5112 lt_cv_file_magic_cmd=/usr/bin/file
5113 case $host_cpu in
5114 ia64*)
5115 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5116 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5117 ;;
5118 hppa*64*)
5119 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]'
5120 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5121 ;;
5122 *)
5123 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5124 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5125 ;;
5126 esac
5127 ;;
5128
5129interix3*)
5130 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5132 ;;
5133
5134irix5* | irix6* | nonstopux*)
5135 case $LD in
5136 *-32|*"-32 ") libmagic=32-bit;;
5137 *-n32|*"-n32 ") libmagic=N32;;
5138 *-64|*"-64 ") libmagic=64-bit;;
5139 *) libmagic=never-match;;
5140 esac
5141 lt_cv_deplibs_check_method=pass_all
5142 ;;
5143
5144# This must be Linux ELF.
5145linux*)
5146 lt_cv_deplibs_check_method=pass_all
5147 ;;
5148
5149netbsd*)
5150 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5152 else
5153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5154 fi
5155 ;;
5156
5157newos6*)
5158 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5159 lt_cv_file_magic_cmd=/usr/bin/file
5160 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5161 ;;
5162
5163nto-qnx*)
5164 lt_cv_deplibs_check_method=unknown
5165 ;;
5166
5167openbsd*)
5168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5170 else
5171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5172 fi
5173 ;;
5174
5175osf3* | osf4* | osf5*)
5176 lt_cv_deplibs_check_method=pass_all
5177 ;;
5178
5179solaris*)
5180 lt_cv_deplibs_check_method=pass_all
5181 ;;
5182
5183sysv4 | sysv4.3*)
5184 case $host_vendor in
5185 motorola)
5186 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]'
5187 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5188 ;;
5189 ncr)
5190 lt_cv_deplibs_check_method=pass_all
5191 ;;
5192 sequent)
5193 lt_cv_file_magic_cmd='/bin/file'
5194 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5195 ;;
5196 sni)
5197 lt_cv_file_magic_cmd='/bin/file'
5198 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5199 lt_cv_file_magic_test_file=/lib/libc.so
5200 ;;
5201 siemens)
5202 lt_cv_deplibs_check_method=pass_all
5203 ;;
5204 pc)
5205 lt_cv_deplibs_check_method=pass_all
5206 ;;
5207 esac
5208 ;;
5209
5210sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5211 lt_cv_deplibs_check_method=pass_all
5212 ;;
5213esac
5214
5215fi
5216echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5217echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5218file_magic_cmd=$lt_cv_file_magic_cmd
5219deplibs_check_method=$lt_cv_deplibs_check_method
5220test -z "$deplibs_check_method" && deplibs_check_method=unknown
5221
5222
5223
5224
5225# If no C compiler was specified, use CC.
5226LTCC=${LTCC-"$CC"}
5227
5228# If no C compiler flags were specified, use CFLAGS.
5229LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5230
5231# Allow CC to be a program name with arguments.
5232compiler=$CC
5233
5234# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5235if test "${enable_libtool_lock+set}" = set; then
5236 enableval="$enable_libtool_lock"
5237
5238fi;
5239test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5240
5241# Some flags need to be propagated to the compiler or linker for good
5242# libtool support.
5243case $host in
5244ia64-*-hpux*)
5245 # Find out which ABI we are using.
5246 echo 'int i;' > conftest.$ac_ext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5248 (eval $ac_compile) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; then
5252 case `/usr/bin/file conftest.$ac_objext` in
5253 *ELF-32*)
5254 HPUX_IA64_MODE="32"
5255 ;;
5256 *ELF-64*)
5257 HPUX_IA64_MODE="64"
5258 ;;
5259 esac
5260 fi
5261 rm -rf conftest*
5262 ;;
5263*-*-irix6*)
5264 # Find out which ABI we are using.
5265 echo '#line 5265 "configure"' > conftest.$ac_ext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; then
5271 if test "$lt_cv_prog_gnu_ld" = yes; then
5272 case `/usr/bin/file conftest.$ac_objext` in
5273 *32-bit*)
5274 LD="${LD-ld} -melf32bsmip"
5275 ;;
5276 *N32*)
5277 LD="${LD-ld} -melf32bmipn32"
5278 ;;
5279 *64-bit*)
5280 LD="${LD-ld} -melf64bmip"
5281 ;;
5282 esac
5283 else
5284 case `/usr/bin/file conftest.$ac_objext` in
5285 *32-bit*)
5286 LD="${LD-ld} -32"
5287 ;;
5288 *N32*)
5289 LD="${LD-ld} -n32"
5290 ;;
5291 *64-bit*)
5292 LD="${LD-ld} -64"
5293 ;;
5294 esac
5295 fi
5296 fi
5297 rm -rf conftest*
5298 ;;
5299
5300x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5301 # Find out which ABI we are using.
5302 echo 'int i;' > conftest.$ac_ext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304 (eval $ac_compile) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; then
5308 case `/usr/bin/file conftest.o` in
5309 *32-bit*)
5310 case $host in
5311 x86_64-*linux*)
5312 LD="${LD-ld} -m elf_i386"
5313 ;;
5314 ppc64-*linux*|powerpc64-*linux*)
5315 LD="${LD-ld} -m elf32ppclinux"
5316 ;;
5317 s390x-*linux*)
5318 LD="${LD-ld} -m elf_s390"
5319 ;;
5320 sparc64-*linux*)
5321 LD="${LD-ld} -m elf32_sparc"
5322 ;;
5323 esac
5324 ;;
5325 *64-bit*)
5326 case $host in
5327 x86_64-*linux*)
5328 LD="${LD-ld} -m elf_x86_64"
5329 ;;
5330 ppc*-*linux*|powerpc*-*linux*)
5331 LD="${LD-ld} -m elf64ppc"
5332 ;;
5333 s390*-*linux*)
5334 LD="${LD-ld} -m elf64_s390"
5335 ;;
5336 sparc*-*linux*)
5337 LD="${LD-ld} -m elf64_sparc"
5338 ;;
5339 esac
5340 ;;
5341 esac
5342 fi
5343 rm -rf conftest*
5344 ;;
5345
5346*-*-sco3.2v5*)
5347 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5348 SAVE_CFLAGS="$CFLAGS"
5349 CFLAGS="$CFLAGS -belf"
5350 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5351echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5352if test "${lt_cv_cc_needs_belf+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 ac_ext=c
5356ac_cpp='$CPP $CPPFLAGS'
5357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360
5361 cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h. */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h. */
5367
5368int
5369main ()
5370{
5371
5372 ;
5373 return 0;
5374}
5375_ACEOF
5376rm -f conftest.$ac_objext conftest$ac_exeext
5377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5378 (eval $ac_link) 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -z "$ac_c_werror_flag"
5386 || test ! -s conftest.err'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 (eval $ac_try) 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; } &&
5392 { ac_try='test -s conftest$ac_exeext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 (eval $ac_try) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 lt_cv_cc_needs_belf=yes
5399else
5400 echo "$as_me: failed program was:" >&5
5401sed 's/^/| /' conftest.$ac_ext >&5
5402
5403lt_cv_cc_needs_belf=no
5404fi
5405rm -f conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5407 ac_ext=c
5408ac_cpp='$CPP $CPPFLAGS'
5409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412
5413fi
5414echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5415echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5416 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5417 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5418 CFLAGS="$SAVE_CFLAGS"
5419 fi
5420 ;;
5421sparc*-*solaris*)
5422 # Find out which ABI we are using.
5423 echo 'int i;' > conftest.$ac_ext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; then
5429 case `/usr/bin/file conftest.o` in
5430 *64-bit*)
5431 case $lt_cv_prog_gnu_ld in
5432 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5433 *) LD="${LD-ld} -64" ;;
5434 esac
5435 ;;
5436 esac
5437 fi
5438 rm -rf conftest*
5439 ;;
5440
5441
5442esac
5443
5444need_locks="$enable_libtool_lock"
5445
5446
5447# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5458 inttypes.h stdint.h unistd.h
5459do
5460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5461echo "$as_me:$LINENO: checking for $ac_header" >&5
5462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 cat >conftest.$ac_ext <<_ACEOF
5467/* confdefs.h. */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h. */
5472$ac_includes_default
5473
5474#include <$ac_header>
5475_ACEOF
5476rm -f conftest.$ac_objext
5477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478 (eval $ac_compile) 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -z "$ac_c_werror_flag"
5486 || test ! -s conftest.err'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 (eval $ac_try) 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; } &&
5492 { ac_try='test -s conftest.$ac_objext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 (eval $ac_try) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 eval "$as_ac_Header=yes"
5499else
5500 echo "$as_me: failed program was:" >&5
5501sed 's/^/| /' conftest.$ac_ext >&5
5502
5503eval "$as_ac_Header=no"
5504fi
5505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5506fi
5507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5508echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5509if test `eval echo '${'$as_ac_Header'}'` = yes; then
5510 cat >>confdefs.h <<_ACEOF
5511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5512_ACEOF
5513
5514fi
5515
5516done
5517
5518
5519
5520for ac_header in dlfcn.h
5521do
5522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5523if eval "test \"\${$as_ac_Header+set}\" = set"; then
5524 echo "$as_me:$LINENO: checking for $ac_header" >&5
5525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5526if eval "test \"\${$as_ac_Header+set}\" = set"; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528fi
5529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5531else
5532 # Is the header compilable?
5533echo "$as_me:$LINENO: checking $ac_header usability" >&5
5534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5535cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h. */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h. */
5541$ac_includes_default
5542#include <$ac_header>
5543_ACEOF
5544rm -f conftest.$ac_objext
5545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } &&
5553 { ac_try='test -z "$ac_c_werror_flag"
5554 || test ! -s conftest.err'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 (eval $ac_try) 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; } &&
5560 { ac_try='test -s conftest.$ac_objext'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 ac_header_compiler=yes
5567else
5568 echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
5571ac_header_compiler=no
5572fi
5573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5574echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5575echo "${ECHO_T}$ac_header_compiler" >&6
5576
5577# Is the header present?
5578echo "$as_me:$LINENO: checking $ac_header presence" >&5
5579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5580cat >conftest.$ac_ext <<_ACEOF
5581/* confdefs.h. */
5582_ACEOF
5583cat confdefs.h >>conftest.$ac_ext
5584cat >>conftest.$ac_ext <<_ACEOF
5585/* end confdefs.h. */
5586#include <$ac_header>
5587_ACEOF
5588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5590 ac_status=$?
5591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } >/dev/null; then
5596 if test -s conftest.err; then
5597 ac_cpp_err=$ac_c_preproc_warn_flag
5598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5599 else
5600 ac_cpp_err=
5601 fi
5602else
5603 ac_cpp_err=yes
5604fi
5605if test -z "$ac_cpp_err"; then
5606 ac_header_preproc=yes
5607else
5608 echo "$as_me: failed program was:" >&5
5609sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 ac_header_preproc=no
5612fi
5613rm -f conftest.err conftest.$ac_ext
5614echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5615echo "${ECHO_T}$ac_header_preproc" >&6
5616
5617# So? What about this header?
5618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5619 yes:no: )
5620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5624 ac_header_preproc=yes
5625 ;;
5626 no:yes:* )
5627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5639 (
5640 cat <<\_ASBOX
5641## ------------------------------------------ ##
5642## Report this to the AC_PACKAGE_NAME lists. ##
5643## ------------------------------------------ ##
5644_ASBOX
5645 ) |
5646 sed "s/^/$as_me: WARNING: /" >&2
5647 ;;
5648esac
5649echo "$as_me:$LINENO: checking for $ac_header" >&5
5650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5651if eval "test \"\${$as_ac_Header+set}\" = set"; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654 eval "$as_ac_Header=\$ac_header_preproc"
5655fi
5656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5658
5659fi
5660if test `eval echo '${'$as_ac_Header'}'` = yes; then
5661 cat >>confdefs.h <<_ACEOF
5662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5663_ACEOF
5664
5665fi
5666
5667done
5668
5669ac_ext=cc
5670ac_cpp='$CXXCPP $CPPFLAGS'
5671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5674if test -n "$ac_tool_prefix"; then
5675 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5676 do
5677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5678set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5679echo "$as_me:$LINENO: checking for $ac_word" >&5
5680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681if test "${ac_cv_prog_CXX+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
5684 if test -n "$CXX"; then
5685 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698done
5699done
5700
5701fi
5702fi
5703CXX=$ac_cv_prog_CXX
5704if test -n "$CXX"; then
5705 echo "$as_me:$LINENO: result: $CXX" >&5
5706echo "${ECHO_T}$CXX" >&6
5707else
5708 echo "$as_me:$LINENO: result: no" >&5
5709echo "${ECHO_T}no" >&6
5710fi
5711
5712 test -n "$CXX" && break
5713 done
5714fi
5715if test -z "$CXX"; then
5716 ac_ct_CXX=$CXX
5717 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5718do
5719 # Extract the first word of "$ac_prog", so it can be a program name with args.
5720set dummy $ac_prog; ac_word=$2
5721echo "$as_me:$LINENO: checking for $ac_word" >&5
5722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5723if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725else
5726 if test -n "$ac_ct_CXX"; then
5727 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5728else
5729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH
5731do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5736 ac_cv_prog_ac_ct_CXX="$ac_prog"
5737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5739 fi
5740done
5741done
5742
5743fi
5744fi
5745ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5746if test -n "$ac_ct_CXX"; then
5747 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5748echo "${ECHO_T}$ac_ct_CXX" >&6
5749else
5750 echo "$as_me:$LINENO: result: no" >&5
5751echo "${ECHO_T}no" >&6
5752fi
5753
5754 test -n "$ac_ct_CXX" && break
5755done
5756test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5757
5758 CXX=$ac_ct_CXX
5759fi
5760
5761
5762# Provide some information about the compiler.
5763echo "$as_me:$LINENO:" \
5764 "checking for C++ compiler version" >&5
5765ac_compiler=`set X $ac_compile; echo $2`
5766{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5767 (eval $ac_compiler --version </dev/null >&5) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }
5771{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5772 (eval $ac_compiler -v </dev/null >&5) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }
5776{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5777 (eval $ac_compiler -V </dev/null >&5) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }
5781
5782echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5783echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5784if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786else
5787 cat >conftest.$ac_ext <<_ACEOF
5788/* confdefs.h. */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h. */
5793
5794int
5795main ()
5796{
5797#ifndef __GNUC__
5798 choke me
5799#endif
5800
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805rm -f conftest.$ac_objext
5806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5807 (eval $ac_compile) 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } &&
5814 { ac_try='test -z "$ac_cxx_werror_flag"
5815 || test ! -s conftest.err'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; } &&
5821 { ac_try='test -s conftest.$ac_objext'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 ac_compiler_gnu=yes
5828else
5829 echo "$as_me: failed program was:" >&5
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832ac_compiler_gnu=no
5833fi
5834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5835ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5836
5837fi
5838echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5839echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5840GXX=`test $ac_compiler_gnu = yes && echo yes`
5841ac_test_CXXFLAGS=${CXXFLAGS+set}
5842ac_save_CXXFLAGS=$CXXFLAGS
5843CXXFLAGS="-g"
5844echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5845echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5846if test "${ac_cv_prog_cxx_g+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849 cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h. */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h. */
5855
5856int
5857main ()
5858{
5859
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_cxx_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_prog_cxx_g=yes
5887else
5888 echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
5890
5891ac_cv_prog_cxx_g=no
5892fi
5893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894fi
5895echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5896echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5897if test "$ac_test_CXXFLAGS" = set; then
5898 CXXFLAGS=$ac_save_CXXFLAGS
5899elif test $ac_cv_prog_cxx_g = yes; then
5900 if test "$GXX" = yes; then
5901 CXXFLAGS="-g -O2"
5902 else
5903 CXXFLAGS="-g"
5904 fi
5905else
5906 if test "$GXX" = yes; then
5907 CXXFLAGS="-O2"
5908 else
5909 CXXFLAGS=
5910 fi
5911fi
5912for ac_declaration in \
5913 '' \
5914 'extern "C" void std::exit (int) throw (); using std::exit;' \
5915 'extern "C" void std::exit (int); using std::exit;' \
5916 'extern "C" void exit (int) throw ();' \
5917 'extern "C" void exit (int);' \
5918 'void exit (int);'
5919do
5920 cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h. */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h. */
5926$ac_declaration
5927#include <stdlib.h>
5928int
5929main ()
5930{
5931exit (42);
5932 ;
5933 return 0;
5934}
5935_ACEOF
5936rm -f conftest.$ac_objext
5937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -z "$ac_cxx_werror_flag"
5946 || test ! -s conftest.err'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 (eval $ac_try) 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; } &&
5952 { ac_try='test -s conftest.$ac_objext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 (eval $ac_try) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 :
5959else
5960 echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963continue
5964fi
5965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966 cat >conftest.$ac_ext <<_ACEOF
5967/* confdefs.h. */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h. */
5972$ac_declaration
5973int
5974main ()
5975{
5976exit (42);
5977 ;
5978 return 0;
5979}
5980_ACEOF
5981rm -f conftest.$ac_objext
5982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_cxx_werror_flag"
5991 || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest.$ac_objext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 break
6004else
6005 echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008fi
6009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010done
6011rm -f conftest*
6012if test -n "$ac_declaration"; then
6013 echo '#ifdef __cplusplus' >>confdefs.h
6014 echo $ac_declaration >>confdefs.h
6015 echo '#endif' >>confdefs.h
6016fi
6017
6018ac_ext=cc
6019ac_cpp='$CXXCPP $CPPFLAGS'
6020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6023
6024depcc="$CXX" am_compiler_list=
6025
6026echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6027echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6028if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030else
6031 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6032 # We make a subdir and do the tests there. Otherwise we can end up
6033 # making bogus files that we don't know about and never remove. For
6034 # instance it was reported that on HP-UX the gcc test will end up
6035 # making a dummy file named `D' -- because `-MD' means `put the output
6036 # in D'.
6037 mkdir conftest.dir
6038 # Copy depcomp to subdir because otherwise we won't find it if we're
6039 # using a relative directory.
6040 cp "$am_depcomp" conftest.dir
6041 cd conftest.dir
6042 # We will build objects and dependencies in a subdirectory because
6043 # it helps to detect inapplicable dependency modes. For instance
6044 # both Tru64's cc and ICC support -MD to output dependencies as a
6045 # side effect of compilation, but ICC will put the dependencies in
6046 # the current directory while Tru64 will put them in the object
6047 # directory.
6048 mkdir sub
6049
6050 am_cv_CXX_dependencies_compiler_type=none
6051 if test "$am_compiler_list" = ""; then
6052 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6053 fi
6054 for depmode in $am_compiler_list; do
6055 # Setup a source with many dependencies, because some compilers
6056 # like to wrap large dependency lists on column 80 (with \), and
6057 # we should not choose a depcomp mode which is confused by this.
6058 #
6059 # We need to recreate these files for each test, as the compiler may
6060 # overwrite some of them when testing with obscure command lines.
6061 # This happens at least with the AIX C compiler.
6062 : > sub/conftest.c
6063 for i in 1 2 3 4 5 6; do
6064 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6065 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6066 # Solaris 8's {/usr,}/bin/sh.
6067 touch sub/conftst$i.h
6068 done
6069 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6070
6071 case $depmode in
6072 nosideeffect)
6073 # after this tag, mechanisms are not by side-effect, so they'll
6074 # only be used when explicitly requested
6075 if test "x$enable_dependency_tracking" = xyes; then
6076 continue
6077 else
6078 break
6079 fi
6080 ;;
6081 none) break ;;
6082 esac
6083 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6084 # mode. It turns out that the SunPro C++ compiler does not properly
6085 # handle `-M -o', and we need to detect this.
6086 if depmode=$depmode \
6087 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6088 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6089 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6090 >/dev/null 2>conftest.err &&
6091 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6092 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6093 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6094 # icc doesn't choke on unknown options, it will just issue warnings
6095 # or remarks (even with -Werror). So we grep stderr for any message
6096 # that says an option was ignored or not supported.
6097 # When given -MP, icc 7.0 and 7.1 complain thusly:
6098 # icc: Command line warning: ignoring option '-M'; no argument required
6099 # The diagnosis changed in icc 8.0:
6100 # icc: Command line remark: option '-MP' not supported
6101 if (grep 'ignoring option' conftest.err ||
6102 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6103 am_cv_CXX_dependencies_compiler_type=$depmode
6104 break
6105 fi
6106 fi
6107 done
6108
6109 cd ..
6110 rm -rf conftest.dir
6111else
6112 am_cv_CXX_dependencies_compiler_type=none
6113fi
6114
6115fi
6116echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6117echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6118CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6119
6120
6121
6122if
6123 test "x$enable_dependency_tracking" != xno \
6124 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6125 am__fastdepCXX_TRUE=
6126 am__fastdepCXX_FALSE='#'
6127else
6128 am__fastdepCXX_TRUE='#'
6129 am__fastdepCXX_FALSE=
6130fi
6131
6132
6133
6134
6135if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6136 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6137 (test "X$CXX" != "Xg++"))) ; then
6138 ac_ext=cc
6139ac_cpp='$CXXCPP $CPPFLAGS'
6140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6143echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6144echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6145if test -z "$CXXCPP"; then
6146 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148else
6149 # Double quotes because CXXCPP needs to be expanded
6150 for CXXCPP in "$CXX -E" "/lib/cpp"
6151 do
6152 ac_preproc_ok=false
6153for ac_cxx_preproc_warn_flag in '' yes
6154do
6155 # Use a header file that comes with gcc, so configuring glibc
6156 # with a fresh cross-compiler works.
6157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6158 # <limits.h> exists even on freestanding compilers.
6159 # On the NeXT, cc -E runs the code through the compiler's parser,
6160 # not just through cpp. "Syntax error" is here to catch this case.
6161 cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167#ifdef __STDC__
6168# include <limits.h>
6169#else
6170# include <assert.h>
6171#endif
6172 Syntax error
6173_ACEOF
6174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } >/dev/null; then
6182 if test -s conftest.err; then
6183 ac_cpp_err=$ac_cxx_preproc_warn_flag
6184 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6185 else
6186 ac_cpp_err=
6187 fi
6188else
6189 ac_cpp_err=yes
6190fi
6191if test -z "$ac_cpp_err"; then
6192 :
6193else
6194 echo "$as_me: failed program was:" >&5
6195sed 's/^/| /' conftest.$ac_ext >&5
6196
6197 # Broken: fails on valid input.
6198continue
6199fi
6200rm -f conftest.err conftest.$ac_ext
6201
6202 # OK, works on sane cases. Now check whether non-existent headers
6203 # can be detected and how.
6204 cat >conftest.$ac_ext <<_ACEOF
6205/* confdefs.h. */
6206_ACEOF
6207cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF
6209/* end confdefs.h. */
6210#include <ac_nonexistent.h>
6211_ACEOF
6212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } >/dev/null; then
6220 if test -s conftest.err; then
6221 ac_cpp_err=$ac_cxx_preproc_warn_flag
6222 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6223 else
6224 ac_cpp_err=
6225 fi
6226else
6227 ac_cpp_err=yes
6228fi
6229if test -z "$ac_cpp_err"; then
6230 # Broken: success on invalid input.
6231continue
6232else
6233 echo "$as_me: failed program was:" >&5
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
6236 # Passes both tests.
6237ac_preproc_ok=:
6238break
6239fi
6240rm -f conftest.err conftest.$ac_ext
6241
6242done
6243# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6244rm -f conftest.err conftest.$ac_ext
6245if $ac_preproc_ok; then
6246 break
6247fi
6248
6249 done
6250 ac_cv_prog_CXXCPP=$CXXCPP
6251
6252fi
6253 CXXCPP=$ac_cv_prog_CXXCPP
6254else
6255 ac_cv_prog_CXXCPP=$CXXCPP
6256fi
6257echo "$as_me:$LINENO: result: $CXXCPP" >&5
6258echo "${ECHO_T}$CXXCPP" >&6
6259ac_preproc_ok=false
6260for ac_cxx_preproc_warn_flag in '' yes
6261do
6262 # Use a header file that comes with gcc, so configuring glibc
6263 # with a fresh cross-compiler works.
6264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6265 # <limits.h> exists even on freestanding compilers.
6266 # On the NeXT, cc -E runs the code through the compiler's parser,
6267 # not just through cpp. "Syntax error" is here to catch this case.
6268 cat >conftest.$ac_ext <<_ACEOF
6269/* confdefs.h. */
6270_ACEOF
6271cat confdefs.h >>conftest.$ac_ext
6272cat >>conftest.$ac_ext <<_ACEOF
6273/* end confdefs.h. */
6274#ifdef __STDC__
6275# include <limits.h>
6276#else
6277# include <assert.h>
6278#endif
6279 Syntax error
6280_ACEOF
6281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } >/dev/null; then
6289 if test -s conftest.err; then
6290 ac_cpp_err=$ac_cxx_preproc_warn_flag
6291 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6292 else
6293 ac_cpp_err=
6294 fi
6295else
6296 ac_cpp_err=yes
6297fi
6298if test -z "$ac_cpp_err"; then
6299 :
6300else
6301 echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 # Broken: fails on valid input.
6305continue
6306fi
6307rm -f conftest.err conftest.$ac_ext
6308
6309 # OK, works on sane cases. Now check whether non-existent headers
6310 # can be detected and how.
6311 cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h. */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
6316/* end confdefs.h. */
6317#include <ac_nonexistent.h>
6318_ACEOF
6319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } >/dev/null; then
6327 if test -s conftest.err; then
6328 ac_cpp_err=$ac_cxx_preproc_warn_flag
6329 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6330 else
6331 ac_cpp_err=
6332 fi
6333else
6334 ac_cpp_err=yes
6335fi
6336if test -z "$ac_cpp_err"; then
6337 # Broken: success on invalid input.
6338continue
6339else
6340 echo "$as_me: failed program was:" >&5
6341sed 's/^/| /' conftest.$ac_ext >&5
6342
6343 # Passes both tests.
6344ac_preproc_ok=:
6345break
6346fi
6347rm -f conftest.err conftest.$ac_ext
6348
6349done
6350# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6351rm -f conftest.err conftest.$ac_ext
6352if $ac_preproc_ok; then
6353 :
6354else
6355 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6356See \`config.log' for more details." >&5
6357echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6358See \`config.log' for more details." >&2;}
6359 { (exit 1); exit 1; }; }
6360fi
6361
6362ac_ext=cc
6363ac_cpp='$CXXCPP $CPPFLAGS'
6364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6367
6368fi
6369
6370
6371ac_ext=f
6372ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6373ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6374ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6375if test -n "$ac_tool_prefix"; then
6376 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6377 do
6378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6379set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6380echo "$as_me:$LINENO: checking for $ac_word" >&5
6381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6382if test "${ac_cv_prog_F77+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384else
6385 if test -n "$F77"; then
6386 ac_cv_prog_F77="$F77" # Let the user override the test.
6387else
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6398 fi
6399done
6400done
6401
6402fi
6403fi
6404F77=$ac_cv_prog_F77
6405if test -n "$F77"; then
6406 echo "$as_me:$LINENO: result: $F77" >&5
6407echo "${ECHO_T}$F77" >&6
6408else
6409 echo "$as_me:$LINENO: result: no" >&5
6410echo "${ECHO_T}no" >&6
6411fi
6412
6413 test -n "$F77" && break
6414 done
6415fi
6416if test -z "$F77"; then
6417 ac_ct_F77=$F77
6418 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6419do
6420 # Extract the first word of "$ac_prog", so it can be a program name with args.
6421set dummy $ac_prog; ac_word=$2
6422echo "$as_me:$LINENO: checking for $ac_word" >&5
6423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6424if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427 if test -n "$ac_ct_F77"; then
6428 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6429else
6430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431for as_dir in $PATH
6432do
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437 ac_cv_prog_ac_ct_F77="$ac_prog"
6438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 break 2
6440 fi
6441done
6442done
6443
6444fi
6445fi
6446ac_ct_F77=$ac_cv_prog_ac_ct_F77
6447if test -n "$ac_ct_F77"; then
6448 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6449echo "${ECHO_T}$ac_ct_F77" >&6
6450else
6451 echo "$as_me:$LINENO: result: no" >&5
6452echo "${ECHO_T}no" >&6
6453fi
6454
6455 test -n "$ac_ct_F77" && break
6456done
6457
6458 F77=$ac_ct_F77
6459fi
6460
6461
6462# Provide some information about the compiler.
6463echo "$as_me:6463:" \
6464 "checking for Fortran 77 compiler version" >&5
6465ac_compiler=`set X $ac_compile; echo $2`
6466{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6467 (eval $ac_compiler --version </dev/null >&5) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }
6471{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6472 (eval $ac_compiler -v </dev/null >&5) 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }
6476{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6477 (eval $ac_compiler -V </dev/null >&5) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }
6481rm -f a.out
6482
6483# If we don't use `.F' as extension, the preprocessor is not run on the
6484# input file. (Note that this only needs to work for GNU compilers.)
6485ac_save_ext=$ac_ext
6486ac_ext=F
6487echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6488echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6489if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491else
6492 cat >conftest.$ac_ext <<_ACEOF
6493 program main
6494#ifndef __GNUC__
6495 choke me
6496#endif
6497
6498 end
6499_ACEOF
6500rm -f conftest.$ac_objext
6501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502 (eval $ac_compile) 2>conftest.er1
6503 ac_status=$?
6504 grep -v '^ *+' conftest.er1 >conftest.err
6505 rm -f conftest.er1
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } &&
6509 { ac_try='test -z "$ac_f77_werror_flag"
6510 || test ! -s conftest.err'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 (eval $ac_try) 2>&5
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; } &&
6516 { ac_try='test -s conftest.$ac_objext'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 (eval $ac_try) 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
6522 ac_compiler_gnu=yes
6523else
6524 echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527ac_compiler_gnu=no
6528fi
6529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6530ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6531
6532fi
6533echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6534echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6535ac_ext=$ac_save_ext
6536ac_test_FFLAGS=${FFLAGS+set}
6537ac_save_FFLAGS=$FFLAGS
6538FFLAGS=
6539echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6540echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6541if test "${ac_cv_prog_f77_g+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6543else
6544 FFLAGS=-g
6545cat >conftest.$ac_ext <<_ACEOF
6546 program main
6547
6548 end
6549_ACEOF
6550rm -f conftest.$ac_objext
6551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552 (eval $ac_compile) 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -z "$ac_f77_werror_flag"
6560 || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_cv_prog_f77_g=yes
6573else
6574 echo "$as_me: failed program was:" >&5
6575sed 's/^/| /' conftest.$ac_ext >&5
6576
6577ac_cv_prog_f77_g=no
6578fi
6579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580
6581fi
6582echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6583echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6584if test "$ac_test_FFLAGS" = set; then
6585 FFLAGS=$ac_save_FFLAGS
6586elif test $ac_cv_prog_f77_g = yes; then
6587 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6588 FFLAGS="-g -O2"
6589 else
6590 FFLAGS="-g"
6591 fi
6592else
6593 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6594 FFLAGS="-O2"
6595 else
6596 FFLAGS=
6597 fi
6598fi
6599
6600G77=`test $ac_compiler_gnu = yes && echo yes`
6601ac_ext=c
6602ac_cpp='$CPP $CPPFLAGS'
6603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606
6607
6608
6609# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6610
6611# find the maximum length of command line arguments
6612echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6613echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6614if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616else
6617 i=0
6618 teststring="ABCD"
6619
6620 case $build_os in
6621 msdosdjgpp*)
6622 # On DJGPP, this test can blow up pretty badly due to problems in libc
6623 # (any single argument exceeding 2000 bytes causes a buffer overrun
6624 # during glob expansion). Even if it were fixed, the result of this
6625 # check would be larger than it should be.
6626 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6627 ;;
6628
6629 gnu*)
6630 # Under GNU Hurd, this test is not required because there is
6631 # no limit to the length of command line arguments.
6632 # Libtool will interpret -1 as no limit whatsoever
6633 lt_cv_sys_max_cmd_len=-1;
6634 ;;
6635
6636 cygwin* | mingw*)
6637 # On Win9x/ME, this test blows up -- it succeeds, but takes
6638 # about 5 minutes as the teststring grows exponentially.
6639 # Worse, since 9x/ME are not pre-emptively multitasking,
6640 # you end up with a "frozen" computer, even though with patience
6641 # the test eventually succeeds (with a max line length of 256k).
6642 # Instead, let's just punt: use the minimum linelength reported by
6643 # all of the supported platforms: 8192 (on NT/2K/XP).
6644 lt_cv_sys_max_cmd_len=8192;
6645 ;;
6646
6647 amigaos*)
6648 # On AmigaOS with pdksh, this test takes hours, literally.
6649 # So we just punt and use a minimum line length of 8192.
6650 lt_cv_sys_max_cmd_len=8192;
6651 ;;
6652
6653 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6654 # This has been around since 386BSD, at least. Likely further.
6655 if test -x /sbin/sysctl; then
6656 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6657 elif test -x /usr/sbin/sysctl; then
6658 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6659 else
6660 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6661 fi
6662 # And add a safety zone
6663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6665 ;;
6666
6667 interix*)
6668 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6669 lt_cv_sys_max_cmd_len=196608
6670 ;;
6671
6672 osf*)
6673 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6674 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6675 # nice to cause kernel panics so lets avoid the loop below.
6676 # First set a reasonable default.
6677 lt_cv_sys_max_cmd_len=16384
6678 #
6679 if test -x /sbin/sysconfig; then
6680 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6681 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6682 esac
6683 fi
6684 ;;
6685 sco3.2v5*)
6686 lt_cv_sys_max_cmd_len=102400
6687 ;;
6688 sysv5* | sco5v6* | sysv4.2uw2*)
6689 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6690 if test -n "$kargmax"; then
6691 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6692 else
6693 lt_cv_sys_max_cmd_len=32768
6694 fi
6695 ;;
6696 *)
6697 # If test is not a shell built-in, we'll probably end up computing a
6698 # maximum length that is only half of the actual maximum length, but
6699 # we can't tell.
6700 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6701 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6702 = "XX$teststring") >/dev/null 2>&1 &&
6703 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6704 lt_cv_sys_max_cmd_len=$new_result &&
6705 test $i != 17 # 1/2 MB should be enough
6706 do
6707 i=`expr $i + 1`
6708 teststring=$teststring$teststring
6709 done
6710 teststring=
6711 # Add a significant safety factor because C++ compilers can tack on massive
6712 # amounts of additional arguments before passing them to the linker.
6713 # It appears as though 1/2 is a usable value.
6714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6715 ;;
6716 esac
6717
6718fi
6719
6720if test -n $lt_cv_sys_max_cmd_len ; then
6721 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6722echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6723else
6724 echo "$as_me:$LINENO: result: none" >&5
6725echo "${ECHO_T}none" >&6
6726fi
6727
6728
6729
6730
6731# Check for command to grab the raw symbol name followed by C symbol from nm.
6732echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6733echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6734if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736else
6737
6738# These are sane defaults that work on at least a few old systems.
6739# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6740
6741# Character class describing NM global symbol codes.
6742symcode='[BCDEGRST]'
6743
6744# Regexp to match symbols that can be accessed directly from C.
6745sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6746
6747# Transform an extracted symbol line into a proper C declaration
6748lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6749
6750# Transform an extracted symbol line into symbol name and symbol address
6751lt_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'"
6752
6753# Define system-specific variables.
6754case $host_os in
6755aix*)
6756 symcode='[BCDT]'
6757 ;;
6758cygwin* | mingw* | pw32*)
6759 symcode='[ABCDGISTW]'
6760 ;;
6761hpux*) # Its linker distinguishes data from code symbols
6762 if test "$host_cpu" = ia64; then
6763 symcode='[ABCDEGRST]'
6764 fi
6765 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6766 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'"
6767 ;;
6768linux*)
6769 if test "$host_cpu" = ia64; then
6770 symcode='[ABCDGIRSTW]'
6771 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6772 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'"
6773 fi
6774 ;;
6775irix* | nonstopux*)
6776 symcode='[BCDEGRST]'
6777 ;;
6778osf*)
6779 symcode='[BCDEGQRST]'
6780 ;;
6781solaris*)
6782 symcode='[BDRT]'
6783 ;;
6784sco3.2v5*)
6785 symcode='[DT]'
6786 ;;
6787sysv4.2uw2*)
6788 symcode='[DT]'
6789 ;;
6790sysv5* | sco5v6* | unixware* | OpenUNIX*)
6791 symcode='[ABDT]'
6792 ;;
6793sysv4)
6794 symcode='[DFNSTU]'
6795 ;;
6796esac
6797
6798# Handle CRLF in mingw tool chain
6799opt_cr=
6800case $build_os in
6801mingw*)
6802 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6803 ;;
6804esac
6805
6806# If we're using GNU nm, then use its standard symbol codes.
6807case `$NM -V 2>&1` in
6808*GNU* | *'with BFD'*)
6809 symcode='[ABCDGIRSTW]' ;;
6810esac
6811
6812# Try without a prefix undercore, then with it.
6813for ac_symprfx in "" "_"; do
6814
6815 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6816 symxfrm="\\1 $ac_symprfx\\2 \\2"
6817
6818 # Write the raw and C identifiers.
6819 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6820
6821 # Check to see that the pipe works correctly.
6822 pipe_works=no
6823
6824 rm -f conftest*
6825 cat > conftest.$ac_ext <<EOF
6826#ifdef __cplusplus
6827extern "C" {
6828#endif
6829char nm_test_var;
6830void nm_test_func(){}
6831#ifdef __cplusplus
6832}
6833#endif
6834int main(){nm_test_var='a';nm_test_func();return(0);}
6835EOF
6836
6837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838 (eval $ac_compile) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; then
6842 # Now try to grab the symbols.
6843 nlist=conftest.nm
6844 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6845 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } && test -s "$nlist"; then
6849 # Try sorting and uniquifying the output.
6850 if sort "$nlist" | uniq > "$nlist"T; then
6851 mv -f "$nlist"T "$nlist"
6852 else
6853 rm -f "$nlist"T
6854 fi
6855
6856 # Make sure that we snagged all the symbols we need.
6857 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6858 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6859 cat <<EOF > conftest.$ac_ext
6860#ifdef __cplusplus
6861extern "C" {
6862#endif
6863
6864EOF
6865 # Now generate the symbol file.
6866 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6867
6868 cat <<EOF >> conftest.$ac_ext
6869#if defined (__STDC__) && __STDC__
6870# define lt_ptr_t void *
6871#else
6872# define lt_ptr_t char *
6873# define const
6874#endif
6875
6876/* The mapping between symbol names and symbols. */
6877const struct {
6878 const char *name;
6879 lt_ptr_t address;
6880}
6881lt_preloaded_symbols[] =
6882{
6883EOF
6884 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6885 cat <<\EOF >> conftest.$ac_ext
6886 {0, (lt_ptr_t) 0}
6887};
6888
6889#ifdef __cplusplus
6890}
6891#endif
6892EOF
6893 # Now try linking the two files.
6894 mv conftest.$ac_objext conftstm.$ac_objext
6895 lt_save_LIBS="$LIBS"
6896 lt_save_CFLAGS="$CFLAGS"
6897 LIBS="conftstm.$ac_objext"
6898 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6904 pipe_works=yes
6905 fi
6906 LIBS="$lt_save_LIBS"
6907 CFLAGS="$lt_save_CFLAGS"
6908 else
6909 echo "cannot find nm_test_func in $nlist" >&5
6910 fi
6911 else
6912 echo "cannot find nm_test_var in $nlist" >&5
6913 fi
6914 else
6915 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6916 fi
6917 else
6918 echo "$progname: failed program was:" >&5
6919 cat conftest.$ac_ext >&5
6920 fi
6921 rm -f conftest* conftst*
6922
6923 # Do not use the global_symbol_pipe unless it works.
6924 if test "$pipe_works" = yes; then
6925 break
6926 else
6927 lt_cv_sys_global_symbol_pipe=
6928 fi
6929done
6930
6931fi
6932
6933if test -z "$lt_cv_sys_global_symbol_pipe"; then
6934 lt_cv_sys_global_symbol_to_cdecl=
6935fi
6936if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6937 echo "$as_me:$LINENO: result: failed" >&5
6938echo "${ECHO_T}failed" >&6
6939else
6940 echo "$as_me:$LINENO: result: ok" >&5
6941echo "${ECHO_T}ok" >&6
6942fi
6943
6944echo "$as_me:$LINENO: checking for objdir" >&5
6945echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6946if test "${lt_cv_objdir+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949 rm -f .libs 2>/dev/null
6950mkdir .libs 2>/dev/null
6951if test -d .libs; then
6952 lt_cv_objdir=.libs
6953else
6954 # MS-DOS does not allow filenames that begin with a dot.
6955 lt_cv_objdir=_libs
6956fi
6957rmdir .libs 2>/dev/null
6958fi
6959echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6960echo "${ECHO_T}$lt_cv_objdir" >&6
6961objdir=$lt_cv_objdir
6962
6963
6964
6965
6966
6967case $host_os in
6968aix3*)
6969 # AIX sometimes has problems with the GCC collect2 program. For some
6970 # reason, if we set the COLLECT_NAMES environment variable, the problems
6971 # vanish in a puff of smoke.
6972 if test "X${COLLECT_NAMES+set}" != Xset; then
6973 COLLECT_NAMES=
6974 export COLLECT_NAMES
6975 fi
6976 ;;
6977esac
6978
6979# Sed substitution that helps us do robust quoting. It backslashifies
6980# metacharacters that are still active within double-quoted strings.
6981Xsed='sed -e 1s/^X//'
6982sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6983
6984# Same as above, but do not quote variable references.
6985double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6986
6987# Sed substitution to delay expansion of an escaped shell variable in a
6988# double_quote_subst'ed string.
6989delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6990
6991# Sed substitution to avoid accidental globbing in evaled expressions
6992no_glob_subst='s/\*/\\\*/g'
6993
6994# Constants:
6995rm="rm -f"
6996
6997# Global variables:
6998default_ofile=libtool
6999can_build_shared=yes
7000
7001# All known linkers require a `.a' archive for static linking (except MSVC,
7002# which needs '.lib').
7003libext=a
7004ltmain="$ac_aux_dir/ltmain.sh"
7005ofile="$default_ofile"
7006with_gnu_ld="$lt_cv_prog_gnu_ld"
7007
7008if test -n "$ac_tool_prefix"; then
7009 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7010set dummy ${ac_tool_prefix}ar; ac_word=$2
7011echo "$as_me:$LINENO: checking for $ac_word" >&5
7012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7013if test "${ac_cv_prog_AR+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7015else
7016 if test -n "$AR"; then
7017 ac_cv_prog_AR="$AR" # Let the user override the test.
7018else
7019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026 ac_cv_prog_AR="${ac_tool_prefix}ar"
7027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 break 2
7029 fi
7030done
7031done
7032
7033fi
7034fi
7035AR=$ac_cv_prog_AR
7036if test -n "$AR"; then
7037 echo "$as_me:$LINENO: result: $AR" >&5
7038echo "${ECHO_T}$AR" >&6
7039else
7040 echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6
7042fi
7043
7044fi
7045if test -z "$ac_cv_prog_AR"; then
7046 ac_ct_AR=$AR
7047 # Extract the first word of "ar", so it can be a program name with args.
7048set dummy ar; ac_word=$2
7049echo "$as_me:$LINENO: checking for $ac_word" >&5
7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7051if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053else
7054 if test -n "$ac_ct_AR"; then
7055 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7056else
7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064 ac_cv_prog_ac_ct_AR="ar"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068done
7069done
7070
7071 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7072fi
7073fi
7074ac_ct_AR=$ac_cv_prog_ac_ct_AR
7075if test -n "$ac_ct_AR"; then
7076 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7077echo "${ECHO_T}$ac_ct_AR" >&6
7078else
7079 echo "$as_me:$LINENO: result: no" >&5
7080echo "${ECHO_T}no" >&6
7081fi
7082
7083 AR=$ac_ct_AR
7084else
7085 AR="$ac_cv_prog_AR"
7086fi
7087
7088if test -n "$ac_tool_prefix"; then
7089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7090set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7091echo "$as_me:$LINENO: checking for $ac_word" >&5
7092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7093if test "${ac_cv_prog_RANLIB+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096 if test -n "$RANLIB"; then
7097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7098else
7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH
7101do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7109 fi
7110done
7111done
7112
7113fi
7114fi
7115RANLIB=$ac_cv_prog_RANLIB
7116if test -n "$RANLIB"; then
7117 echo "$as_me:$LINENO: result: $RANLIB" >&5
7118echo "${ECHO_T}$RANLIB" >&6
7119else
7120 echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6
7122fi
7123
7124fi
7125if test -z "$ac_cv_prog_RANLIB"; then
7126 ac_ct_RANLIB=$RANLIB
7127 # Extract the first word of "ranlib", so it can be a program name with args.
7128set dummy ranlib; ac_word=$2
7129echo "$as_me:$LINENO: checking for $ac_word" >&5
7130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7131if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134 if test -n "$ac_ct_RANLIB"; then
7135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_ac_ct_RANLIB="ranlib"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150
7151 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7152fi
7153fi
7154ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7155if test -n "$ac_ct_RANLIB"; then
7156 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7157echo "${ECHO_T}$ac_ct_RANLIB" >&6
7158else
7159 echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6
7161fi
7162
7163 RANLIB=$ac_ct_RANLIB
7164else
7165 RANLIB="$ac_cv_prog_RANLIB"
7166fi
7167
7168if test -n "$ac_tool_prefix"; then
7169 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7170set dummy ${ac_tool_prefix}strip; ac_word=$2
7171echo "$as_me:$LINENO: checking for $ac_word" >&5
7172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7173if test "${ac_cv_prog_STRIP+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175else
7176 if test -n "$STRIP"; then
7177 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7178else
7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190done
7191done
7192
7193fi
7194fi
7195STRIP=$ac_cv_prog_STRIP
7196if test -n "$STRIP"; then
7197 echo "$as_me:$LINENO: result: $STRIP" >&5
7198echo "${ECHO_T}$STRIP" >&6
7199else
7200 echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6
7202fi
7203
7204fi
7205if test -z "$ac_cv_prog_STRIP"; then
7206 ac_ct_STRIP=$STRIP
7207 # Extract the first word of "strip", so it can be a program name with args.
7208set dummy strip; ac_word=$2
7209echo "$as_me:$LINENO: checking for $ac_word" >&5
7210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7211if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213else
7214 if test -n "$ac_ct_STRIP"; then
7215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7216else
7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_ac_ct_STRIP="strip"
7225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228done
7229done
7230
7231 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7232fi
7233fi
7234ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7235if test -n "$ac_ct_STRIP"; then
7236 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7237echo "${ECHO_T}$ac_ct_STRIP" >&6
7238else
7239 echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6
7241fi
7242
7243 STRIP=$ac_ct_STRIP
7244else
7245 STRIP="$ac_cv_prog_STRIP"
7246fi
7247
7248
7249old_CC="$CC"
7250old_CFLAGS="$CFLAGS"
7251
7252# Set sane defaults for various variables
7253test -z "$AR" && AR=ar
7254test -z "$AR_FLAGS" && AR_FLAGS=cru
7255test -z "$AS" && AS=as
7256test -z "$CC" && CC=cc
7257test -z "$LTCC" && LTCC=$CC
7258test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7259test -z "$DLLTOOL" && DLLTOOL=dlltool
7260test -z "$LD" && LD=ld
7261test -z "$LN_S" && LN_S="ln -s"
7262test -z "$MAGIC_CMD" && MAGIC_CMD=file
7263test -z "$NM" && NM=nm
7264test -z "$SED" && SED=sed
7265test -z "$OBJDUMP" && OBJDUMP=objdump
7266test -z "$RANLIB" && RANLIB=:
7267test -z "$STRIP" && STRIP=:
7268test -z "$ac_objext" && ac_objext=o
7269
7270# Determine commands to create old-style static archives.
7271old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7272old_postinstall_cmds='chmod 644 $oldlib'
7273old_postuninstall_cmds=
7274
7275if test -n "$RANLIB"; then
7276 case $host_os in
7277 openbsd*)
7278 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7279 ;;
7280 *)
7281 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7282 ;;
7283 esac
7284 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7285fi
7286
7287for cc_temp in $compiler""; do
7288 case $cc_temp in
7289 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7290 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7291 \-*) ;;
7292 *) break;;
7293 esac
7294done
7295cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7296
7297
7298# Only perform the check for file, if the check method requires it
7299case $deplibs_check_method in
7300file_magic*)
7301 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7302 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7303echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7304if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307 case $MAGIC_CMD in
7308[\\/*] | ?:[\\/]*)
7309 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7310 ;;
7311*)
7312 lt_save_MAGIC_CMD="$MAGIC_CMD"
7313 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7314 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7315 for ac_dir in $ac_dummy; do
7316 IFS="$lt_save_ifs"
7317 test -z "$ac_dir" && ac_dir=.
7318 if test -f $ac_dir/${ac_tool_prefix}file; then
7319 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7320 if test -n "$file_magic_test_file"; then
7321 case $deplibs_check_method in
7322 "file_magic "*)
7323 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7325 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7326 $EGREP "$file_magic_regex" > /dev/null; then
7327 :
7328 else
7329 cat <<EOF 1>&2
7330
7331*** Warning: the command libtool uses to detect shared libraries,
7332*** $file_magic_cmd, produces output that libtool cannot recognize.
7333*** The result is that libtool may fail to recognize shared libraries
7334*** as such. This will affect the creation of libtool libraries that
7335*** depend on shared libraries, but programs linked with such libtool
7336*** libraries will work regardless of this problem. Nevertheless, you
7337*** may want to report the problem to your system manager and/or to
7338*** [email protected]
7339
7340EOF
7341 fi ;;
7342 esac
7343 fi
7344 break
7345 fi
7346 done
7347 IFS="$lt_save_ifs"
7348 MAGIC_CMD="$lt_save_MAGIC_CMD"
7349 ;;
7350esac
7351fi
7352
7353MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7354if test -n "$MAGIC_CMD"; then
7355 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7356echo "${ECHO_T}$MAGIC_CMD" >&6
7357else
7358 echo "$as_me:$LINENO: result: no" >&5
7359echo "${ECHO_T}no" >&6
7360fi
7361
7362if test -z "$lt_cv_path_MAGIC_CMD"; then
7363 if test -n "$ac_tool_prefix"; then
7364 echo "$as_me:$LINENO: checking for file" >&5
7365echo $ECHO_N "checking for file... $ECHO_C" >&6
7366if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7368else
7369 case $MAGIC_CMD in
7370[\\/*] | ?:[\\/]*)
7371 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7372 ;;
7373*)
7374 lt_save_MAGIC_CMD="$MAGIC_CMD"
7375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7376 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7377 for ac_dir in $ac_dummy; do
7378 IFS="$lt_save_ifs"
7379 test -z "$ac_dir" && ac_dir=.
7380 if test -f $ac_dir/file; then
7381 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7382 if test -n "$file_magic_test_file"; then
7383 case $deplibs_check_method in
7384 "file_magic "*)
7385 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7387 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7388 $EGREP "$file_magic_regex" > /dev/null; then
7389 :
7390 else
7391 cat <<EOF 1>&2
7392
7393*** Warning: the command libtool uses to detect shared libraries,
7394*** $file_magic_cmd, produces output that libtool cannot recognize.
7395*** The result is that libtool may fail to recognize shared libraries
7396*** as such. This will affect the creation of libtool libraries that
7397*** depend on shared libraries, but programs linked with such libtool
7398*** libraries will work regardless of this problem. Nevertheless, you
7399*** may want to report the problem to your system manager and/or to
7400*** [email protected]
7401
7402EOF
7403 fi ;;
7404 esac
7405 fi
7406 break
7407 fi
7408 done
7409 IFS="$lt_save_ifs"
7410 MAGIC_CMD="$lt_save_MAGIC_CMD"
7411 ;;
7412esac
7413fi
7414
7415MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7416if test -n "$MAGIC_CMD"; then
7417 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7418echo "${ECHO_T}$MAGIC_CMD" >&6
7419else
7420 echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6
7422fi
7423
7424 else
7425 MAGIC_CMD=:
7426 fi
7427fi
7428
7429 fi
7430 ;;
7431esac
7432
7433enable_dlopen=no
7434enable_win32_dll=no
7435
7436# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7437if test "${enable_libtool_lock+set}" = set; then
7438 enableval="$enable_libtool_lock"
7439
7440fi;
7441test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7442
7443
7444# Check whether --with-pic or --without-pic was given.
7445if test "${with_pic+set}" = set; then
7446 withval="$with_pic"
7447 pic_mode="$withval"
7448else
7449 pic_mode=default
7450fi;
7451test -z "$pic_mode" && pic_mode=default
7452
7453# Use C for the default configuration in the libtool script
7454tagname=
7455lt_save_CC="$CC"
7456ac_ext=c
7457ac_cpp='$CPP $CPPFLAGS'
7458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
7462
7463# Source file extension for C test sources.
7464ac_ext=c
7465
7466# Object file extension for compiled C test sources.
7467objext=o
7468objext=$objext
7469
7470# Code to be used in simple compile tests
7471lt_simple_compile_test_code="int some_variable = 0;\n"
7472
7473# Code to be used in simple link tests
7474lt_simple_link_test_code='int main(){return(0);}\n'
7475
7476
7477# If no C compiler was specified, use CC.
7478LTCC=${LTCC-"$CC"}
7479
7480# If no C compiler flags were specified, use CFLAGS.
7481LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7482
7483# Allow CC to be a program name with arguments.
7484compiler=$CC
7485
7486
7487# save warnings/boilerplate of simple test code
7488ac_outfile=conftest.$ac_objext
7489printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7490eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7491_lt_compiler_boilerplate=`cat conftest.err`
7492$rm conftest*
7493
7494ac_outfile=conftest.$ac_objext
7495printf "$lt_simple_link_test_code" >conftest.$ac_ext
7496eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7497_lt_linker_boilerplate=`cat conftest.err`
7498$rm conftest*
7499
7500
7501
7502lt_prog_compiler_no_builtin_flag=
7503
7504if test "$GCC" = yes; then
7505 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7506
7507
7508echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7509echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7510if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513 lt_cv_prog_compiler_rtti_exceptions=no
7514 ac_outfile=conftest.$ac_objext
7515 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7516 lt_compiler_flag="-fno-rtti -fno-exceptions"
7517 # Insert the option either (1) after the last *FLAGS variable, or
7518 # (2) before a word containing "conftest.", or (3) at the end.
7519 # Note that $ac_compile itself does not contain backslashes and begins
7520 # with a dollar sign (not a hyphen), so the echo should work correctly.
7521 # The option is referenced via a variable to avoid confusing sed.
7522 lt_compile=`echo "$ac_compile" | $SED \
7523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7525 -e 's:$: $lt_compiler_flag:'`
7526 (eval echo "\"\$as_me:7526: $lt_compile\"" >&5)
7527 (eval "$lt_compile" 2>conftest.err)
7528 ac_status=$?
7529 cat conftest.err >&5
7530 echo "$as_me:7530: \$? = $ac_status" >&5
7531 if (exit $ac_status) && test -s "$ac_outfile"; then
7532 # The compiler can only warn and ignore the option if not recognized
7533 # So say no if there are warnings other than the usual output.
7534 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7537 lt_cv_prog_compiler_rtti_exceptions=yes
7538 fi
7539 fi
7540 $rm conftest*
7541
7542fi
7543echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7544echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7545
7546if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7547 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7548else
7549 :
7550fi
7551
7552fi
7553
7554lt_prog_compiler_wl=
7555lt_prog_compiler_pic=
7556lt_prog_compiler_static=
7557
7558echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7559echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7560
7561 if test "$GCC" = yes; then
7562 lt_prog_compiler_wl='-Wl,'
7563 lt_prog_compiler_static='-static'
7564
7565 case $host_os in
7566 aix*)
7567 # All AIX code is PIC.
7568 if test "$host_cpu" = ia64; then
7569 # AIX 5 now supports IA64 processor
7570 lt_prog_compiler_static='-Bstatic'
7571 fi
7572 ;;
7573
7574 amigaos*)
7575 # FIXME: we need at least 68020 code to build shared libraries, but
7576 # adding the `-m68020' flag to GCC prevents building anything better,
7577 # like `-m68040'.
7578 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7579 ;;
7580
7581 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7582 # PIC is the default for these OSes.
7583 ;;
7584
7585 mingw* | pw32* | os2*)
7586 # This hack is so that the source file can tell whether it is being
7587 # built for inclusion in a dll (and should export symbols for example).
7588 lt_prog_compiler_pic='-DDLL_EXPORT'
7589 ;;
7590
7591 darwin* | rhapsody*)
7592 # PIC is the default on this platform
7593 # Common symbols not allowed in MH_DYLIB files
7594 lt_prog_compiler_pic='-fno-common'
7595 ;;
7596
7597 interix3*)
7598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7599 # Instead, we relocate shared libraries at runtime.
7600 ;;
7601
7602 msdosdjgpp*)
7603 # Just because we use GCC doesn't mean we suddenly get shared libraries
7604 # on systems that don't support them.
7605 lt_prog_compiler_can_build_shared=no
7606 enable_shared=no
7607 ;;
7608
7609 sysv4*MP*)
7610 if test -d /usr/nec; then
7611 lt_prog_compiler_pic=-Kconform_pic
7612 fi
7613 ;;
7614
7615 hpux*)
7616 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7617 # not for PA HP-UX.
7618 case $host_cpu in
7619 hppa*64*|ia64*)
7620 # +Z the default
7621 ;;
7622 *)
7623 lt_prog_compiler_pic='-fPIC'
7624 ;;
7625 esac
7626 ;;
7627
7628 *)
7629 lt_prog_compiler_pic='-fPIC'
7630 ;;
7631 esac
7632 else
7633 # PORTME Check for flag to pass linker flags through the system compiler.
7634 case $host_os in
7635 aix*)
7636 lt_prog_compiler_wl='-Wl,'
7637 if test "$host_cpu" = ia64; then
7638 # AIX 5 now supports IA64 processor
7639 lt_prog_compiler_static='-Bstatic'
7640 else
7641 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7642 fi
7643 ;;
7644 darwin*)
7645 # PIC is the default on this platform
7646 # Common symbols not allowed in MH_DYLIB files
7647 case $cc_basename in
7648 xlc*)
7649 lt_prog_compiler_pic='-qnocommon'
7650 lt_prog_compiler_wl='-Wl,'
7651 ;;
7652 esac
7653 ;;
7654
7655 mingw* | pw32* | os2*)
7656 # This hack is so that the source file can tell whether it is being
7657 # built for inclusion in a dll (and should export symbols for example).
7658 lt_prog_compiler_pic='-DDLL_EXPORT'
7659 ;;
7660
7661 hpux9* | hpux10* | hpux11*)
7662 lt_prog_compiler_wl='-Wl,'
7663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7664 # not for PA HP-UX.
7665 case $host_cpu in
7666 hppa*64*|ia64*)
7667 # +Z the default
7668 ;;
7669 *)
7670 lt_prog_compiler_pic='+Z'
7671 ;;
7672 esac
7673 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7674 lt_prog_compiler_static='${wl}-a ${wl}archive'
7675 ;;
7676
7677 irix5* | irix6* | nonstopux*)
7678 lt_prog_compiler_wl='-Wl,'
7679 # PIC (with -KPIC) is the default.
7680 lt_prog_compiler_static='-non_shared'
7681 ;;
7682
7683 newsos6)
7684 lt_prog_compiler_pic='-KPIC'
7685 lt_prog_compiler_static='-Bstatic'
7686 ;;
7687
7688 linux*)
7689 case $cc_basename in
7690 icc* | ecc*)
7691 lt_prog_compiler_wl='-Wl,'
7692 lt_prog_compiler_pic='-KPIC'
7693 lt_prog_compiler_static='-static'
7694 ;;
7695 pgcc* | pgf77* | pgf90* | pgf95*)
7696 # Portland Group compilers (*not* the Pentium gcc compiler,
7697 # which looks to be a dead project)
7698 lt_prog_compiler_wl='-Wl,'
7699 lt_prog_compiler_pic='-fpic'
7700 lt_prog_compiler_static='-Bstatic'
7701 ;;
7702 ccc*)
7703 lt_prog_compiler_wl='-Wl,'
7704 # All Alpha code is PIC.
7705 lt_prog_compiler_static='-non_shared'
7706 ;;
7707 esac
7708 ;;
7709
7710 osf3* | osf4* | osf5*)
7711 lt_prog_compiler_wl='-Wl,'
7712 # All OSF/1 code is PIC.
7713 lt_prog_compiler_static='-non_shared'
7714 ;;
7715
7716 solaris*)
7717 lt_prog_compiler_pic='-KPIC'
7718 lt_prog_compiler_static='-Bstatic'
7719 case $cc_basename in
7720 f77* | f90* | f95*)
7721 lt_prog_compiler_wl='-Qoption ld ';;
7722 *)
7723 lt_prog_compiler_wl='-Wl,';;
7724 esac
7725 ;;
7726
7727 sunos4*)
7728 lt_prog_compiler_wl='-Qoption ld '
7729 lt_prog_compiler_pic='-PIC'
7730 lt_prog_compiler_static='-Bstatic'
7731 ;;
7732
7733 sysv4 | sysv4.2uw2* | sysv4.3*)
7734 lt_prog_compiler_wl='-Wl,'
7735 lt_prog_compiler_pic='-KPIC'
7736 lt_prog_compiler_static='-Bstatic'
7737 ;;
7738
7739 sysv4*MP*)
7740 if test -d /usr/nec ;then
7741 lt_prog_compiler_pic='-Kconform_pic'
7742 lt_prog_compiler_static='-Bstatic'
7743 fi
7744 ;;
7745
7746 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7747 lt_prog_compiler_wl='-Wl,'
7748 lt_prog_compiler_pic='-KPIC'
7749 lt_prog_compiler_static='-Bstatic'
7750 ;;
7751
7752 unicos*)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_can_build_shared=no
7755 ;;
7756
7757 uts4*)
7758 lt_prog_compiler_pic='-pic'
7759 lt_prog_compiler_static='-Bstatic'
7760 ;;
7761
7762 *)
7763 lt_prog_compiler_can_build_shared=no
7764 ;;
7765 esac
7766 fi
7767
7768echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7769echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7770
7771#
7772# Check to make sure the PIC flag actually works.
7773#
7774if test -n "$lt_prog_compiler_pic"; then
7775
7776echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7777echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7778if test "${lt_prog_compiler_pic_works+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780else
7781 lt_prog_compiler_pic_works=no
7782 ac_outfile=conftest.$ac_objext
7783 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7784 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7785 # Insert the option either (1) after the last *FLAGS variable, or
7786 # (2) before a word containing "conftest.", or (3) at the end.
7787 # Note that $ac_compile itself does not contain backslashes and begins
7788 # with a dollar sign (not a hyphen), so the echo should work correctly.
7789 # The option is referenced via a variable to avoid confusing sed.
7790 lt_compile=`echo "$ac_compile" | $SED \
7791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7793 -e 's:$: $lt_compiler_flag:'`
7794 (eval echo "\"\$as_me:7794: $lt_compile\"" >&5)
7795 (eval "$lt_compile" 2>conftest.err)
7796 ac_status=$?
7797 cat conftest.err >&5
7798 echo "$as_me:7798: \$? = $ac_status" >&5
7799 if (exit $ac_status) && test -s "$ac_outfile"; then
7800 # The compiler can only warn and ignore the option if not recognized
7801 # So say no if there are warnings other than the usual output.
7802 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7804 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7805 lt_prog_compiler_pic_works=yes
7806 fi
7807 fi
7808 $rm conftest*
7809
7810fi
7811echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7812echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7813
7814if test x"$lt_prog_compiler_pic_works" = xyes; then
7815 case $lt_prog_compiler_pic in
7816 "" | " "*) ;;
7817 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7818 esac
7819else
7820 lt_prog_compiler_pic=
7821 lt_prog_compiler_can_build_shared=no
7822fi
7823
7824fi
7825case $host_os in
7826 # For platforms which do not support PIC, -DPIC is meaningless:
7827 *djgpp*)
7828 lt_prog_compiler_pic=
7829 ;;
7830 *)
7831 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7832 ;;
7833esac
7834
7835#
7836# Check to make sure the static flag actually works.
7837#
7838wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7839echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7840echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7841if test "${lt_prog_compiler_static_works+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843else
7844 lt_prog_compiler_static_works=no
7845 save_LDFLAGS="$LDFLAGS"
7846 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7847 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7848 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7849 # The linker can only warn and ignore the option if not recognized
7850 # So say no if there are warnings
7851 if test -s conftest.err; then
7852 # Append any errors to the config.log.
7853 cat conftest.err 1>&5
7854 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7856 if diff conftest.exp conftest.er2 >/dev/null; then
7857 lt_prog_compiler_static_works=yes
7858 fi
7859 else
7860 lt_prog_compiler_static_works=yes
7861 fi
7862 fi
7863 $rm conftest*
7864 LDFLAGS="$save_LDFLAGS"
7865
7866fi
7867echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7868echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7869
7870if test x"$lt_prog_compiler_static_works" = xyes; then
7871 :
7872else
7873 lt_prog_compiler_static=
7874fi
7875
7876
7877echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7878echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7879if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881else
7882 lt_cv_prog_compiler_c_o=no
7883 $rm -r conftest 2>/dev/null
7884 mkdir conftest
7885 cd conftest
7886 mkdir out
7887 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7888
7889 lt_compiler_flag="-o out/conftest2.$ac_objext"
7890 # Insert the option either (1) after the last *FLAGS variable, or
7891 # (2) before a word containing "conftest.", or (3) at the end.
7892 # Note that $ac_compile itself does not contain backslashes and begins
7893 # with a dollar sign (not a hyphen), so the echo should work correctly.
7894 lt_compile=`echo "$ac_compile" | $SED \
7895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7897 -e 's:$: $lt_compiler_flag:'`
7898 (eval echo "\"\$as_me:7898: $lt_compile\"" >&5)
7899 (eval "$lt_compile" 2>out/conftest.err)
7900 ac_status=$?
7901 cat out/conftest.err >&5
7902 echo "$as_me:7902: \$? = $ac_status" >&5
7903 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7904 then
7905 # The compiler can only warn and ignore the option if not recognized
7906 # So say no if there are warnings
7907 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7910 lt_cv_prog_compiler_c_o=yes
7911 fi
7912 fi
7913 chmod u+w . 2>&5
7914 $rm conftest*
7915 # SGI C++ compiler will create directory out/ii_files/ for
7916 # template instantiation
7917 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7918 $rm out/* && rmdir out
7919 cd ..
7920 rmdir conftest
7921 $rm conftest*
7922
7923fi
7924echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7925echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7926
7927
7928hard_links="nottested"
7929if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7930 # do not overwrite the value of need_locks provided by the user
7931 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7932echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7933 hard_links=yes
7934 $rm conftest*
7935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7936 touch conftest.a
7937 ln conftest.a conftest.b 2>&5 || hard_links=no
7938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7939 echo "$as_me:$LINENO: result: $hard_links" >&5
7940echo "${ECHO_T}$hard_links" >&6
7941 if test "$hard_links" = no; then
7942 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7943echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7944 need_locks=warn
7945 fi
7946else
7947 need_locks=no
7948fi
7949
7950echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7951echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7952
7953 runpath_var=
7954 allow_undefined_flag=
7955 enable_shared_with_static_runtimes=no
7956 archive_cmds=
7957 archive_expsym_cmds=
7958 old_archive_From_new_cmds=
7959 old_archive_from_expsyms_cmds=
7960 export_dynamic_flag_spec=
7961 whole_archive_flag_spec=
7962 thread_safe_flag_spec=
7963 hardcode_libdir_flag_spec=
7964 hardcode_libdir_flag_spec_ld=
7965 hardcode_libdir_separator=
7966 hardcode_direct=no
7967 hardcode_minus_L=no
7968 hardcode_shlibpath_var=unsupported
7969 link_all_deplibs=unknown
7970 hardcode_automatic=no
7971 module_cmds=
7972 module_expsym_cmds=
7973 always_export_symbols=no
7974 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7975 # include_expsyms should be a list of space-separated symbols to be *always*
7976 # included in the symbol list
7977 include_expsyms=
7978 # exclude_expsyms can be an extended regexp of symbols to exclude
7979 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7980 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7981 # as well as any symbol that contains `d'.
7982 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7983 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7984 # platforms (ab)use it in PIC code, but their linkers get confused if
7985 # the symbol is explicitly referenced. Since portable code cannot
7986 # rely on this symbol name, it's probably fine to never include it in
7987 # preloaded symbol tables.
7988 extract_expsyms_cmds=
7989 # Just being paranoid about ensuring that cc_basename is set.
7990 for cc_temp in $compiler""; do
7991 case $cc_temp in
7992 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7993 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7994 \-*) ;;
7995 *) break;;
7996 esac
7997done
7998cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7999
8000 case $host_os in
8001 cygwin* | mingw* | pw32*)
8002 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8003 # When not using gcc, we currently assume that we are using
8004 # Microsoft Visual C++.
8005 if test "$GCC" != yes; then
8006 with_gnu_ld=no
8007 fi
8008 ;;
8009 interix*)
8010 # we just hope/assume this is gcc and not c89 (= MSVC++)
8011 with_gnu_ld=yes
8012 ;;
8013 openbsd*)
8014 with_gnu_ld=no
8015 ;;
8016 esac
8017
8018 ld_shlibs=yes
8019 if test "$with_gnu_ld" = yes; then
8020 # If archive_cmds runs LD, not CC, wlarc should be empty
8021 wlarc='${wl}'
8022
8023 # Set some defaults for GNU ld with shared library support. These
8024 # are reset later if shared libraries are not supported. Putting them
8025 # here allows them to be overridden if necessary.
8026 runpath_var=LD_RUN_PATH
8027 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8028 export_dynamic_flag_spec='${wl}--export-dynamic'
8029 # ancient GNU ld didn't support --whole-archive et. al.
8030 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8031 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8032 else
8033 whole_archive_flag_spec=
8034 fi
8035 supports_anon_versioning=no
8036 case `$LD -v 2>/dev/null` in
8037 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8038 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8039 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8040 *\ 2.11.*) ;; # other 2.11 versions
8041 *) supports_anon_versioning=yes ;;
8042 esac
8043
8044 # See if GNU ld supports shared libraries.
8045 case $host_os in
8046 aix3* | aix4* | aix5*)
8047 # On AIX/PPC, the GNU linker is very broken
8048 if test "$host_cpu" != ia64; then
8049 ld_shlibs=no
8050 cat <<EOF 1>&2
8051
8052*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8053*** to be unable to reliably create shared libraries on AIX.
8054*** Therefore, libtool is disabling shared libraries support. If you
8055*** really care for shared libraries, you may want to modify your PATH
8056*** so that a non-GNU linker is found, and then restart.
8057
8058EOF
8059 fi
8060 ;;
8061
8062 amigaos*)
8063 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)'
8064 hardcode_libdir_flag_spec='-L$libdir'
8065 hardcode_minus_L=yes
8066
8067 # Samuel A. Falvo II <[email protected]> reports
8068 # that the semantics of dynamic libraries on AmigaOS, at least up
8069 # to version 4, is to share data among multiple programs linked
8070 # with the same dynamic library. Since this doesn't match the
8071 # behavior of shared libraries on other platforms, we can't use
8072 # them.
8073 ld_shlibs=no
8074 ;;
8075
8076 beos*)
8077 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8078 allow_undefined_flag=unsupported
8079 # Joseph Beckenbach <[email protected]> says some releases of gcc
8080 # support --undefined. This deserves some investigation. FIXME
8081 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8082 else
8083 ld_shlibs=no
8084 fi
8085 ;;
8086
8087 cygwin* | mingw* | pw32*)
8088 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8089 # as there is no search path for DLLs.
8090 hardcode_libdir_flag_spec='-L$libdir'
8091 allow_undefined_flag=unsupported
8092 always_export_symbols=no
8093 enable_shared_with_static_runtimes=yes
8094 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8095
8096 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8098 # If the export-symbols file already is a .def file (1st line
8099 # is EXPORTS), use it as is; otherwise, prepend...
8100 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8101 cp $export_symbols $output_objdir/$soname.def;
8102 else
8103 echo EXPORTS > $output_objdir/$soname.def;
8104 cat $export_symbols >> $output_objdir/$soname.def;
8105 fi~
8106 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8107 else
8108 ld_shlibs=no
8109 fi
8110 ;;
8111
8112 interix3*)
8113 hardcode_direct=no
8114 hardcode_shlibpath_var=no
8115 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8116 export_dynamic_flag_spec='${wl}-E'
8117 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8118 # Instead, shared libraries are loaded at an image base (0x10000000 by
8119 # default) and relocated if they conflict, which is a slow very memory
8120 # consuming and fragmenting process. To avoid this, we pick a random,
8121 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8122 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8124 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8125 ;;
8126
8127 linux*)
8128 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8129 tmp_addflag=
8130 case $cc_basename,$host_cpu in
8131 pgcc*) # Portland Group C compiler
8132 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8133 tmp_addflag=' $pic_flag'
8134 ;;
8135 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8136 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8137 tmp_addflag=' $pic_flag -Mnomain' ;;
8138 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8139 tmp_addflag=' -i_dynamic' ;;
8140 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8141 tmp_addflag=' -i_dynamic -nofor_main' ;;
8142 ifc* | ifort*) # Intel Fortran compiler
8143 tmp_addflag=' -nofor_main' ;;
8144 esac
8145 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146
8147 if test $supports_anon_versioning = yes; then
8148 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8150 $echo "local: *; };" >> $output_objdir/$libname.ver~
8151 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8152 fi
8153 else
8154 ld_shlibs=no
8155 fi
8156 ;;
8157
8158 netbsd*)
8159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8160 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8161 wlarc=
8162 else
8163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8164 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8165 fi
8166 ;;
8167
8168 solaris*)
8169 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8170 ld_shlibs=no
8171 cat <<EOF 1>&2
8172
8173*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8174*** create shared libraries on Solaris systems. Therefore, libtool
8175*** is disabling shared libraries support. We urge you to upgrade GNU
8176*** binutils to release 2.9.1 or newer. Another option is to modify
8177*** your PATH or compiler configuration so that the native linker is
8178*** used, and then restart.
8179
8180EOF
8181 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8184 else
8185 ld_shlibs=no
8186 fi
8187 ;;
8188
8189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8190 case `$LD -v 2>&1` in
8191 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8192 ld_shlibs=no
8193 cat <<_LT_EOF 1>&2
8194
8195*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8196*** reliably create shared libraries on SCO systems. Therefore, libtool
8197*** is disabling shared libraries support. We urge you to upgrade GNU
8198*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8199*** your PATH or compiler configuration so that the native linker is
8200*** used, and then restart.
8201
8202_LT_EOF
8203 ;;
8204 *)
8205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8209 else
8210 ld_shlibs=no
8211 fi
8212 ;;
8213 esac
8214 ;;
8215
8216 sunos4*)
8217 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8218 wlarc=
8219 hardcode_direct=yes
8220 hardcode_shlibpath_var=no
8221 ;;
8222
8223 *)
8224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8227 else
8228 ld_shlibs=no
8229 fi
8230 ;;
8231 esac
8232
8233 if test "$ld_shlibs" = no; then
8234 runpath_var=
8235 hardcode_libdir_flag_spec=
8236 export_dynamic_flag_spec=
8237 whole_archive_flag_spec=
8238 fi
8239 else
8240 # PORTME fill in a description of your system's linker (not GNU ld)
8241 case $host_os in
8242 aix3*)
8243 allow_undefined_flag=unsupported
8244 always_export_symbols=yes
8245 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'
8246 # Note: this linker hardcodes the directories in LIBPATH if there
8247 # are no directories specified by -L.
8248 hardcode_minus_L=yes
8249 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8250 # Neither direct hardcoding nor static linking is supported with a
8251 # broken collect2.
8252 hardcode_direct=unsupported
8253 fi
8254 ;;
8255
8256 aix4* | aix5*)
8257 if test "$host_cpu" = ia64; then
8258 # On IA64, the linker does run time linking by default, so we don't
8259 # have to do anything special.
8260 aix_use_runtimelinking=no
8261 exp_sym_flag='-Bexport'
8262 no_entry_flag=""
8263 else
8264 # If we're using GNU nm, then we don't want the "-C" option.
8265 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8266 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8267 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'
8268 else
8269 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'
8270 fi
8271 aix_use_runtimelinking=no
8272
8273 # Test if we are trying to use run time linking or normal
8274 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8275 # need to do runtime linking.
8276 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8277 for ld_flag in $LDFLAGS; do
8278 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8279 aix_use_runtimelinking=yes
8280 break
8281 fi
8282 done
8283 ;;
8284 esac
8285
8286 exp_sym_flag='-bexport'
8287 no_entry_flag='-bnoentry'
8288 fi
8289
8290 # When large executables or shared objects are built, AIX ld can
8291 # have problems creating the table of contents. If linking a library
8292 # or program results in "error TOC overflow" add -mminimal-toc to
8293 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8294 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8295
8296 archive_cmds=''
8297 hardcode_direct=yes
8298 hardcode_libdir_separator=':'
8299 link_all_deplibs=yes
8300
8301 if test "$GCC" = yes; then
8302 case $host_os in aix4.[012]|aix4.[012].*)
8303 # We only want to do this on AIX 4.2 and lower, the check
8304 # below for broken collect2 doesn't work under 4.3+
8305 collect2name=`${CC} -print-prog-name=collect2`
8306 if test -f "$collect2name" && \
8307 strings "$collect2name" | grep resolve_lib_name >/dev/null
8308 then
8309 # We have reworked collect2
8310 hardcode_direct=yes
8311 else
8312 # We have old collect2
8313 hardcode_direct=unsupported
8314 # It fails to find uninstalled libraries when the uninstalled
8315 # path is not listed in the libpath. Setting hardcode_minus_L
8316 # to unsupported forces relinking
8317 hardcode_minus_L=yes
8318 hardcode_libdir_flag_spec='-L$libdir'
8319 hardcode_libdir_separator=
8320 fi
8321 ;;
8322 esac
8323 shared_flag='-shared'
8324 if test "$aix_use_runtimelinking" = yes; then
8325 shared_flag="$shared_flag "'${wl}-G'
8326 fi
8327 else
8328 # not using gcc
8329 if test "$host_cpu" = ia64; then
8330 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8331 # chokes on -Wl,-G. The following line is correct:
8332 shared_flag='-G'
8333 else
8334 if test "$aix_use_runtimelinking" = yes; then
8335 shared_flag='${wl}-G'
8336 else
8337 shared_flag='${wl}-bM:SRE'
8338 fi
8339 fi
8340 fi
8341
8342 # It seems that -bexpall does not export symbols beginning with
8343 # underscore (_), so it is better to generate a list of symbols to export.
8344 always_export_symbols=yes
8345 if test "$aix_use_runtimelinking" = yes; then
8346 # Warning - without using the other runtime loading flags (-brtl),
8347 # -berok will link without error, but may produce a broken library.
8348 allow_undefined_flag='-berok'
8349 # Determine the default libpath from the value encoded in an empty executable.
8350 cat >conftest.$ac_ext <<_ACEOF
8351/* confdefs.h. */
8352_ACEOF
8353cat confdefs.h >>conftest.$ac_ext
8354cat >>conftest.$ac_ext <<_ACEOF
8355/* end confdefs.h. */
8356
8357int
8358main ()
8359{
8360
8361 ;
8362 return 0;
8363}
8364_ACEOF
8365rm -f conftest.$ac_objext conftest$ac_exeext
8366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387
8388aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8389}'`
8390# Check for a 64-bit object if we didn't find anything.
8391if 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; }
8392}'`; fi
8393else
8394 echo "$as_me: failed program was:" >&5
8395sed 's/^/| /' conftest.$ac_ext >&5
8396
8397fi
8398rm -f conftest.err conftest.$ac_objext \
8399 conftest$ac_exeext conftest.$ac_ext
8400if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8401
8402 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8403 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8404 else
8405 if test "$host_cpu" = ia64; then
8406 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8407 allow_undefined_flag="-z nodefs"
8408 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8409 else
8410 # Determine the default libpath from the value encoded in an empty executable.
8411 cat >conftest.$ac_ext <<_ACEOF
8412/* confdefs.h. */
8413_ACEOF
8414cat confdefs.h >>conftest.$ac_ext
8415cat >>conftest.$ac_ext <<_ACEOF
8416/* end confdefs.h. */
8417
8418int
8419main ()
8420{
8421
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext conftest$ac_exeext
8427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -z "$ac_c_werror_flag"
8436 || test ! -s conftest.err'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 (eval $ac_try) 2>&5
8439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest$ac_exeext'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 (eval $ac_try) 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448
8449aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8450}'`
8451# Check for a 64-bit object if we didn't find anything.
8452if 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; }
8453}'`; fi
8454else
8455 echo "$as_me: failed program was:" >&5
8456sed 's/^/| /' conftest.$ac_ext >&5
8457
8458fi
8459rm -f conftest.err conftest.$ac_objext \
8460 conftest$ac_exeext conftest.$ac_ext
8461if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8462
8463 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8464 # Warning - without using the other run time loading flags,
8465 # -berok will link without error, but may produce a broken library.
8466 no_undefined_flag=' ${wl}-bernotok'
8467 allow_undefined_flag=' ${wl}-berok'
8468 # Exported symbols can be pulled into shared objects from archives
8469 whole_archive_flag_spec='$convenience'
8470 archive_cmds_need_lc=yes
8471 # This is similar to how AIX traditionally builds its shared libraries.
8472 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8473 fi
8474 fi
8475 ;;
8476
8477 amigaos*)
8478 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)'
8479 hardcode_libdir_flag_spec='-L$libdir'
8480 hardcode_minus_L=yes
8481 # see comment about different semantics on the GNU ld section
8482 ld_shlibs=no
8483 ;;
8484
8485 bsdi[45]*)
8486 export_dynamic_flag_spec=-rdynamic
8487 ;;
8488
8489 cygwin* | mingw* | pw32*)
8490 # When not using gcc, we currently assume that we are using
8491 # Microsoft Visual C++.
8492 # hardcode_libdir_flag_spec is actually meaningless, as there is
8493 # no search path for DLLs.
8494 hardcode_libdir_flag_spec=' '
8495 allow_undefined_flag=unsupported
8496 # Tell ltmain to make .lib files, not .a files.
8497 libext=lib
8498 # Tell ltmain to make .dll files, not .so files.
8499 shrext_cmds=".dll"
8500 # FIXME: Setting linknames here is a bad hack.
8501 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8502 # The linker will automatically build a .lib file if we build a DLL.
8503 old_archive_From_new_cmds='true'
8504 # FIXME: Should let the user specify the lib program.
8505 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8506 fix_srcfile_path='`cygpath -w "$srcfile"`'
8507 enable_shared_with_static_runtimes=yes
8508 ;;
8509
8510 darwin* | rhapsody*)
8511 case $host_os in
8512 rhapsody* | darwin1.[012])
8513 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8514 ;;
8515 *) # Darwin 1.3 on
8516 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8517 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8518 else
8519 case ${MACOSX_DEPLOYMENT_TARGET} in
8520 10.[012])
8521 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8522 ;;
8523 10.*)
8524 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8525 ;;
8526 esac
8527 fi
8528 ;;
8529 esac
8530 archive_cmds_need_lc=no
8531 hardcode_direct=no
8532 hardcode_automatic=yes
8533 hardcode_shlibpath_var=unsupported
8534 whole_archive_flag_spec=''
8535 link_all_deplibs=yes
8536 if test "$GCC" = yes ; then
8537 output_verbose_link_cmd='echo'
8538 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8539 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8540 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8541 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}'
8542 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}'
8543 else
8544 case $cc_basename in
8545 xlc*)
8546 output_verbose_link_cmd='echo'
8547 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8548 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8549 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8550 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8551 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}'
8552 ;;
8553 *)
8554 ld_shlibs=no
8555 ;;
8556 esac
8557 fi
8558 ;;
8559
8560 dgux*)
8561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562 hardcode_libdir_flag_spec='-L$libdir'
8563 hardcode_shlibpath_var=no
8564 ;;
8565
8566 freebsd1*)
8567 ld_shlibs=no
8568 ;;
8569
8570 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8571 # support. Future versions do this automatically, but an explicit c++rt0.o
8572 # does not break anything, and helps significantly (at the cost of a little
8573 # extra space).
8574 freebsd2.2*)
8575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8576 hardcode_libdir_flag_spec='-R$libdir'
8577 hardcode_direct=yes
8578 hardcode_shlibpath_var=no
8579 ;;
8580
8581 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8582 freebsd2*)
8583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8584 hardcode_direct=yes
8585 hardcode_minus_L=yes
8586 hardcode_shlibpath_var=no
8587 ;;
8588
8589 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8590 freebsd* | kfreebsd*-gnu | dragonfly*)
8591 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8592 hardcode_libdir_flag_spec='-R$libdir'
8593 hardcode_direct=yes
8594 hardcode_shlibpath_var=no
8595 ;;
8596
8597 hpux9*)
8598 if test "$GCC" = yes; then
8599 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'
8600 else
8601 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'
8602 fi
8603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8604 hardcode_libdir_separator=:
8605 hardcode_direct=yes
8606
8607 # hardcode_minus_L: Not really in the search PATH,
8608 # but as the default location of the library.
8609 hardcode_minus_L=yes
8610 export_dynamic_flag_spec='${wl}-E'
8611 ;;
8612
8613 hpux10*)
8614 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8615 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8616 else
8617 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8618 fi
8619 if test "$with_gnu_ld" = no; then
8620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8621 hardcode_libdir_separator=:
8622
8623 hardcode_direct=yes
8624 export_dynamic_flag_spec='${wl}-E'
8625
8626 # hardcode_minus_L: Not really in the search PATH,
8627 # but as the default location of the library.
8628 hardcode_minus_L=yes
8629 fi
8630 ;;
8631
8632 hpux11*)
8633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8634 case $host_cpu in
8635 hppa*64*)
8636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8637 ;;
8638 ia64*)
8639 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8640 ;;
8641 *)
8642 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8643 ;;
8644 esac
8645 else
8646 case $host_cpu in
8647 hppa*64*)
8648 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8649 ;;
8650 ia64*)
8651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8652 ;;
8653 *)
8654 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8655 ;;
8656 esac
8657 fi
8658 if test "$with_gnu_ld" = no; then
8659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8660 hardcode_libdir_separator=:
8661
8662 case $host_cpu in
8663 hppa*64*|ia64*)
8664 hardcode_libdir_flag_spec_ld='+b $libdir'
8665 hardcode_direct=no
8666 hardcode_shlibpath_var=no
8667 ;;
8668 *)
8669 hardcode_direct=yes
8670 export_dynamic_flag_spec='${wl}-E'
8671
8672 # hardcode_minus_L: Not really in the search PATH,
8673 # but as the default location of the library.
8674 hardcode_minus_L=yes
8675 ;;
8676 esac
8677 fi
8678 ;;
8679
8680 irix5* | irix6* | nonstopux*)
8681 if test "$GCC" = yes; then
8682 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'
8683 else
8684 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'
8685 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8686 fi
8687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8688 hardcode_libdir_separator=:
8689 link_all_deplibs=yes
8690 ;;
8691
8692 netbsd*)
8693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8695 else
8696 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8697 fi
8698 hardcode_libdir_flag_spec='-R$libdir'
8699 hardcode_direct=yes
8700 hardcode_shlibpath_var=no
8701 ;;
8702
8703 newsos6)
8704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8705 hardcode_direct=yes
8706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8707 hardcode_libdir_separator=:
8708 hardcode_shlibpath_var=no
8709 ;;
8710
8711 openbsd*)
8712 hardcode_direct=yes
8713 hardcode_shlibpath_var=no
8714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8715 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8716 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8717 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8718 export_dynamic_flag_spec='${wl}-E'
8719 else
8720 case $host_os in
8721 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8723 hardcode_libdir_flag_spec='-R$libdir'
8724 ;;
8725 *)
8726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8728 ;;
8729 esac
8730 fi
8731 ;;
8732
8733 os2*)
8734 hardcode_libdir_flag_spec='-L$libdir'
8735 hardcode_minus_L=yes
8736 allow_undefined_flag=unsupported
8737 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'
8738 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8739 ;;
8740
8741 osf3*)
8742 if test "$GCC" = yes; then
8743 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8744 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'
8745 else
8746 allow_undefined_flag=' -expect_unresolved \*'
8747 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'
8748 fi
8749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750 hardcode_libdir_separator=:
8751 ;;
8752
8753 osf4* | osf5*) # as osf3* with the addition of -msym flag
8754 if test "$GCC" = yes; then
8755 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8756 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'
8757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8758 else
8759 allow_undefined_flag=' -expect_unresolved \*'
8760 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'
8761 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8762 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8763
8764 # Both c and cxx compiler support -rpath directly
8765 hardcode_libdir_flag_spec='-rpath $libdir'
8766 fi
8767 hardcode_libdir_separator=:
8768 ;;
8769
8770 solaris*)
8771 no_undefined_flag=' -z text'
8772 if test "$GCC" = yes; then
8773 wlarc='${wl}'
8774 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8775 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8776 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8777 else
8778 wlarc=''
8779 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8782 fi
8783 hardcode_libdir_flag_spec='-R$libdir'
8784 hardcode_shlibpath_var=no
8785 case $host_os in
8786 solaris2.[0-5] | solaris2.[0-5].*) ;;
8787 *)
8788 # The compiler driver will combine linker options so we
8789 # cannot just pass the convience library names through
8790 # without $wl, iff we do not link with $LD.
8791 # Luckily, gcc supports the same syntax we need for Sun Studio.
8792 # Supported since Solaris 2.6 (maybe 2.5.1?)
8793 case $wlarc in
8794 '')
8795 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8796 *)
8797 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8798 esac ;;
8799 esac
8800 link_all_deplibs=yes
8801 ;;
8802
8803 sunos4*)
8804 if test "x$host_vendor" = xsequent; then
8805 # Use $CC to link under sequent, because it throws in some extra .o
8806 # files that make .init and .fini sections work.
8807 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8808 else
8809 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8810 fi
8811 hardcode_libdir_flag_spec='-L$libdir'
8812 hardcode_direct=yes
8813 hardcode_minus_L=yes
8814 hardcode_shlibpath_var=no
8815 ;;
8816
8817 sysv4)
8818 case $host_vendor in
8819 sni)
8820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8821 hardcode_direct=yes # is this really true???
8822 ;;
8823 siemens)
8824 ## LD is ld it makes a PLAMLIB
8825 ## CC just makes a GrossModule.
8826 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8827 reload_cmds='$CC -r -o $output$reload_objs'
8828 hardcode_direct=no
8829 ;;
8830 motorola)
8831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8833 ;;
8834 esac
8835 runpath_var='LD_RUN_PATH'
8836 hardcode_shlibpath_var=no
8837 ;;
8838
8839 sysv4.3*)
8840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841 hardcode_shlibpath_var=no
8842 export_dynamic_flag_spec='-Bexport'
8843 ;;
8844
8845 sysv4*MP*)
8846 if test -d /usr/nec; then
8847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848 hardcode_shlibpath_var=no
8849 runpath_var=LD_RUN_PATH
8850 hardcode_runpath_var=yes
8851 ld_shlibs=yes
8852 fi
8853 ;;
8854
8855 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8856 no_undefined_flag='${wl}-z,text'
8857 archive_cmds_need_lc=no
8858 hardcode_shlibpath_var=no
8859 runpath_var='LD_RUN_PATH'
8860
8861 if test "$GCC" = yes; then
8862 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8863 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8864 else
8865 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8867 fi
8868 ;;
8869
8870 sysv5* | sco3.2v5* | sco5v6*)
8871 # Note: We can NOT use -z defs as we might desire, because we do not
8872 # link with -lc, and that would cause any symbols used from libc to
8873 # always be unresolved, which means just about no library would
8874 # ever link correctly. If we're not using GNU ld we use -z text
8875 # though, which does catch some bad symbols but isn't as heavy-handed
8876 # as -z defs.
8877 no_undefined_flag='${wl}-z,text'
8878 allow_undefined_flag='${wl}-z,nodefs'
8879 archive_cmds_need_lc=no
8880 hardcode_shlibpath_var=no
8881 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8882 hardcode_libdir_separator=':'
8883 link_all_deplibs=yes
8884 export_dynamic_flag_spec='${wl}-Bexport'
8885 runpath_var='LD_RUN_PATH'
8886
8887 if test "$GCC" = yes; then
8888 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8889 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8890 else
8891 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8892 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8893 fi
8894 ;;
8895
8896 uts4*)
8897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 hardcode_libdir_flag_spec='-L$libdir'
8899 hardcode_shlibpath_var=no
8900 ;;
8901
8902 *)
8903 ld_shlibs=no
8904 ;;
8905 esac
8906 fi
8907
8908echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8909echo "${ECHO_T}$ld_shlibs" >&6
8910test "$ld_shlibs" = no && can_build_shared=no
8911
8912#
8913# Do we need to explicitly link libc?
8914#
8915case "x$archive_cmds_need_lc" in
8916x|xyes)
8917 # Assume -lc should be added
8918 archive_cmds_need_lc=yes
8919
8920 if test "$enable_shared" = yes && test "$GCC" = yes; then
8921 case $archive_cmds in
8922 *'~'*)
8923 # FIXME: we may have to deal with multi-command sequences.
8924 ;;
8925 '$CC '*)
8926 # Test whether the compiler implicitly links with -lc since on some
8927 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8928 # to ld, don't add -lc before -lgcc.
8929 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8930echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8931 $rm conftest*
8932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8933
8934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8935 (eval $ac_compile) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } 2>conftest.err; then
8939 soname=conftest
8940 lib=conftest
8941 libobjs=conftest.$ac_objext
8942 deplibs=
8943 wl=$lt_prog_compiler_wl
8944 pic_flag=$lt_prog_compiler_pic
8945 compiler_flags=-v
8946 linker_flags=-v
8947 verstring=
8948 output_objdir=.
8949 libname=conftest
8950 lt_save_allow_undefined_flag=$allow_undefined_flag
8951 allow_undefined_flag=
8952 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8953 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }
8957 then
8958 archive_cmds_need_lc=no
8959 else
8960 archive_cmds_need_lc=yes
8961 fi
8962 allow_undefined_flag=$lt_save_allow_undefined_flag
8963 else
8964 cat conftest.err 1>&5
8965 fi
8966 $rm conftest*
8967 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8968echo "${ECHO_T}$archive_cmds_need_lc" >&6
8969 ;;
8970 esac
8971 fi
8972 ;;
8973esac
8974
8975echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8976echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8977library_names_spec=
8978libname_spec='lib$name'
8979soname_spec=
8980shrext_cmds=".so"
8981postinstall_cmds=
8982postuninstall_cmds=
8983finish_cmds=
8984finish_eval=
8985shlibpath_var=
8986shlibpath_overrides_runpath=unknown
8987version_type=none
8988dynamic_linker="$host_os ld.so"
8989sys_lib_dlsearch_path_spec="/lib /usr/lib"
8990if test "$GCC" = yes; then
8991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8992 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8993 # if the path contains ";" then we assume it to be the separator
8994 # otherwise default to the standard path separator (i.e. ":") - it is
8995 # assumed that no part of a normal pathname contains ";" but that should
8996 # okay in the real world where ";" in dirpaths is itself problematic.
8997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8998 else
8999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9000 fi
9001else
9002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9003fi
9004need_lib_prefix=unknown
9005hardcode_into_libs=no
9006
9007# when you set need_version to no, make sure it does not cause -set_version
9008# flags to be left without arguments
9009need_version=unknown
9010
9011case $host_os in
9012aix3*)
9013 version_type=linux
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9015 shlibpath_var=LIBPATH
9016
9017 # AIX 3 has no versioning support, so we append a major version to the name.
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 ;;
9020
9021aix4* | aix5*)
9022 version_type=linux
9023 need_lib_prefix=no
9024 need_version=no
9025 hardcode_into_libs=yes
9026 if test "$host_cpu" = ia64; then
9027 # AIX 5 supports IA64
9028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 else
9031 # With GCC up to 2.95.x, collect2 would create an import file
9032 # for dependence libraries. The import file would start with
9033 # the line `#! .'. This would cause the generated library to
9034 # depend on `.', always an invalid library. This was fixed in
9035 # development snapshots of GCC prior to 3.0.
9036 case $host_os in
9037 aix4 | aix4.[01] | aix4.[01].*)
9038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9039 echo ' yes '
9040 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9041 :
9042 else
9043 can_build_shared=no
9044 fi
9045 ;;
9046 esac
9047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9048 # soname into executable. Probably we can add versioning support to
9049 # collect2, so additional links can be useful in future.
9050 if test "$aix_use_runtimelinking" = yes; then
9051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9052 # instead of lib<name>.a to let people know that these are not
9053 # typical AIX shared libraries.
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 else
9056 # We preserve .a as extension for shared libraries through AIX4.2
9057 # and later when we are not doing run time linking.
9058 library_names_spec='${libname}${release}.a $libname.a'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 fi
9061 shlibpath_var=LIBPATH
9062 fi
9063 ;;
9064
9065amigaos*)
9066 library_names_spec='$libname.ixlibrary $libname.a'
9067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9068 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'
9069 ;;
9070
9071beos*)
9072 library_names_spec='${libname}${shared_ext}'
9073 dynamic_linker="$host_os ld.so"
9074 shlibpath_var=LIBRARY_PATH
9075 ;;
9076
9077bsdi[45]*)
9078 version_type=linux
9079 need_version=no
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9086 # the default ld.so.conf also contains /usr/contrib/lib and
9087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9088 # libtool to hard-code these into programs
9089 ;;
9090
9091cygwin* | mingw* | pw32*)
9092 version_type=windows
9093 shrext_cmds=".dll"
9094 need_version=no
9095 need_lib_prefix=no
9096
9097 case $GCC,$host_os in
9098 yes,cygwin* | yes,mingw* | yes,pw32*)
9099 library_names_spec='$libname.dll.a'
9100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9101 postinstall_cmds='base_file=`basename \${file}`~
9102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9103 dldir=$destdir/`dirname \$dlpath`~
9104 test -d \$dldir || mkdir -p \$dldir~
9105 $install_prog $dir/$dlname \$dldir/$dlname~
9106 chmod a+x \$dldir/$dlname'
9107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9108 dlpath=$dir/\$dldll~
9109 $rm \$dlpath'
9110 shlibpath_overrides_runpath=yes
9111
9112 case $host_os in
9113 cygwin*)
9114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9117 ;;
9118 mingw*)
9119 # MinGW DLLs use traditional 'lib' prefix
9120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9122 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9123 # It is most probably a Windows format PATH printed by
9124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9125 # path with ; separators, and with drive letters. We can handle the
9126 # drive letters (cygwin fileutils understands them), so leave them,
9127 # especially as we might pass files found there to a mingw objdump,
9128 # which wouldn't understand a cygwinified path. Ahh.
9129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9130 else
9131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9132 fi
9133 ;;
9134 pw32*)
9135 # pw32 DLLs use 'pw' prefix rather than 'lib'
9136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9137 ;;
9138 esac
9139 ;;
9140
9141 *)
9142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9143 ;;
9144 esac
9145 dynamic_linker='Win32 ld.exe'
9146 # FIXME: first we should search . and the directory the executable is in
9147 shlibpath_var=PATH
9148 ;;
9149
9150darwin* | rhapsody*)
9151 dynamic_linker="$host_os dyld"
9152 version_type=darwin
9153 need_lib_prefix=no
9154 need_version=no
9155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9156 soname_spec='${libname}${release}${major}$shared_ext'
9157 shlibpath_overrides_runpath=yes
9158 shlibpath_var=DYLD_LIBRARY_PATH
9159 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9160 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9161 if test "$GCC" = yes; then
9162 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"`
9163 else
9164 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9165 fi
9166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9167 ;;
9168
9169dgux*)
9170 version_type=linux
9171 need_lib_prefix=no
9172 need_version=no
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 ;;
9177
9178freebsd1*)
9179 dynamic_linker=no
9180 ;;
9181
9182kfreebsd*-gnu)
9183 version_type=linux
9184 need_lib_prefix=no
9185 need_version=no
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 shlibpath_var=LD_LIBRARY_PATH
9189 shlibpath_overrides_runpath=no
9190 hardcode_into_libs=yes
9191 dynamic_linker='GNU ld.so'
9192 ;;
9193
9194freebsd* | dragonfly*)
9195 # DragonFly does not have aout. When/if they implement a new
9196 # versioning mechanism, adjust this.
9197 if test -x /usr/bin/objformat; then
9198 objformat=`/usr/bin/objformat`
9199 else
9200 case $host_os in
9201 freebsd[123]*) objformat=aout ;;
9202 *) objformat=elf ;;
9203 esac
9204 fi
9205 version_type=freebsd-$objformat
9206 case $version_type in
9207 freebsd-elf*)
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9209 need_version=no
9210 need_lib_prefix=no
9211 ;;
9212 freebsd-*)
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9214 need_version=yes
9215 ;;
9216 esac
9217 shlibpath_var=LD_LIBRARY_PATH
9218 case $host_os in
9219 freebsd2*)
9220 shlibpath_overrides_runpath=yes
9221 ;;
9222 freebsd3.[01]* | freebsdelf3.[01]*)
9223 shlibpath_overrides_runpath=yes
9224 hardcode_into_libs=yes
9225 ;;
9226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9228 shlibpath_overrides_runpath=no
9229 hardcode_into_libs=yes
9230 ;;
9231 freebsd*) # from 4.6 on
9232 shlibpath_overrides_runpath=yes
9233 hardcode_into_libs=yes
9234 ;;
9235 esac
9236 ;;
9237
9238gnu*)
9239 version_type=linux
9240 need_lib_prefix=no
9241 need_version=no
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 shlibpath_var=LD_LIBRARY_PATH
9245 hardcode_into_libs=yes
9246 ;;
9247
9248hpux9* | hpux10* | hpux11*)
9249 # Give a soname corresponding to the major version so that dld.sl refuses to
9250 # link against other versions.
9251 version_type=sunos
9252 need_lib_prefix=no
9253 need_version=no
9254 case $host_cpu in
9255 ia64*)
9256 shrext_cmds='.so'
9257 hardcode_into_libs=yes
9258 dynamic_linker="$host_os dld.so"
9259 shlibpath_var=LD_LIBRARY_PATH
9260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 if test "X$HPUX_IA64_MODE" = X32; then
9264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9265 else
9266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9267 fi
9268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9269 ;;
9270 hppa*64*)
9271 shrext_cmds='.sl'
9272 hardcode_into_libs=yes
9273 dynamic_linker="$host_os dld.sl"
9274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9280 ;;
9281 *)
9282 shrext_cmds='.sl'
9283 dynamic_linker="$host_os dld.sl"
9284 shlibpath_var=SHLIB_PATH
9285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 ;;
9289 esac
9290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9291 postinstall_cmds='chmod 555 $lib'
9292 ;;
9293
9294interix3*)
9295 version_type=linux
9296 need_lib_prefix=no
9297 need_version=no
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=no
9303 hardcode_into_libs=yes
9304 ;;
9305
9306irix5* | irix6* | nonstopux*)
9307 case $host_os in
9308 nonstopux*) version_type=nonstopux ;;
9309 *)
9310 if test "$lt_cv_prog_gnu_ld" = yes; then
9311 version_type=linux
9312 else
9313 version_type=irix
9314 fi ;;
9315 esac
9316 need_lib_prefix=no
9317 need_version=no
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9320 case $host_os in
9321 irix5* | nonstopux*)
9322 libsuff= shlibsuff=
9323 ;;
9324 *)
9325 case $LD in # libtool.m4 will add one of these switches to LD
9326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9327 libsuff= shlibsuff= libmagic=32-bit;;
9328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9329 libsuff=32 shlibsuff=N32 libmagic=N32;;
9330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9332 *) libsuff= shlibsuff= libmagic=never-match;;
9333 esac
9334 ;;
9335 esac
9336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9337 shlibpath_overrides_runpath=no
9338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9340 hardcode_into_libs=yes
9341 ;;
9342
9343# No shared lib support for Linux oldld, aout, or coff.
9344linux*oldld* | linux*aout* | linux*coff*)
9345 dynamic_linker=no
9346 ;;
9347
9348# This must be Linux ELF.
9349linux*)
9350 version_type=linux
9351 need_lib_prefix=no
9352 need_version=no
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9356 shlibpath_var=LD_LIBRARY_PATH
9357 shlibpath_overrides_runpath=no
9358 # This implies no fast_install, which is unacceptable.
9359 # Some rework will be needed to allow for fast_install
9360 # before this can be enabled.
9361 hardcode_into_libs=yes
9362
9363 # find out which ABI we are using
9364 libsuff=
9365 case "$host_cpu" in
9366 x86_64*|s390x*|powerpc64*)
9367 echo '#line 9367 "configure"' > conftest.$ac_ext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369 (eval $ac_compile) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; then
9373 case `/usr/bin/file conftest.$ac_objext` in
9374 *64-bit*)
9375 libsuff=64
9376 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9377 ;;
9378 esac
9379 fi
9380 rm -rf conftest*
9381 ;;
9382 esac
9383
9384 # Append ld.so.conf contents to the search path
9385 if test -f /etc/ld.so.conf; then
9386 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9387 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9388 fi
9389
9390 # We used to test for /lib/ld.so.1 and disable shared libraries on
9391 # powerpc, because MkLinux only supported shared libraries with the
9392 # GNU dynamic linker. Since this was broken with cross compilers,
9393 # most powerpc-linux boxes support dynamic linking these days and
9394 # people can always --disable-shared, the test was removed, and we
9395 # assume the GNU/Linux dynamic linker is in use.
9396 dynamic_linker='GNU/Linux ld.so'
9397 ;;
9398
9399knetbsd*-gnu)
9400 version_type=linux
9401 need_lib_prefix=no
9402 need_version=no
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 shlibpath_overrides_runpath=no
9407 hardcode_into_libs=yes
9408 dynamic_linker='GNU ld.so'
9409 ;;
9410
9411netbsd*)
9412 version_type=sunos
9413 need_lib_prefix=no
9414 need_version=no
9415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9418 dynamic_linker='NetBSD (a.out) ld.so'
9419 else
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 dynamic_linker='NetBSD ld.elf_so'
9423 fi
9424 shlibpath_var=LD_LIBRARY_PATH
9425 shlibpath_overrides_runpath=yes
9426 hardcode_into_libs=yes
9427 ;;
9428
9429newsos6)
9430 version_type=linux
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 shlibpath_overrides_runpath=yes
9434 ;;
9435
9436nto-qnx*)
9437 version_type=linux
9438 need_lib_prefix=no
9439 need_version=no
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441 soname_spec='${libname}${release}${shared_ext}$major'
9442 shlibpath_var=LD_LIBRARY_PATH
9443 shlibpath_overrides_runpath=yes
9444 ;;
9445
9446openbsd*)
9447 version_type=sunos
9448 sys_lib_dlsearch_path_spec="/usr/lib"
9449 need_lib_prefix=no
9450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9451 case $host_os in
9452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9453 *) need_version=no ;;
9454 esac
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9459 case $host_os in
9460 openbsd2.[89] | openbsd2.[89].*)
9461 shlibpath_overrides_runpath=no
9462 ;;
9463 *)
9464 shlibpath_overrides_runpath=yes
9465 ;;
9466 esac
9467 else
9468 shlibpath_overrides_runpath=yes
9469 fi
9470 ;;
9471
9472os2*)
9473 libname_spec='$name'
9474 shrext_cmds=".dll"
9475 need_lib_prefix=no
9476 library_names_spec='$libname${shared_ext} $libname.a'
9477 dynamic_linker='OS/2 ld.exe'
9478 shlibpath_var=LIBPATH
9479 ;;
9480
9481osf3* | osf4* | osf5*)
9482 version_type=osf
9483 need_lib_prefix=no
9484 need_version=no
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9490 ;;
9491
9492solaris*)
9493 version_type=linux
9494 need_lib_prefix=no
9495 need_version=no
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 shlibpath_overrides_runpath=yes
9500 hardcode_into_libs=yes
9501 # ldd complains unless libraries are executable
9502 postinstall_cmds='chmod +x $lib'
9503 ;;
9504
9505sunos4*)
9506 version_type=sunos
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9508 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 shlibpath_overrides_runpath=yes
9511 if test "$with_gnu_ld" = yes; then
9512 need_lib_prefix=no
9513 fi
9514 need_version=yes
9515 ;;
9516
9517sysv4 | sysv4.3*)
9518 version_type=linux
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 shlibpath_var=LD_LIBRARY_PATH
9522 case $host_vendor in
9523 sni)
9524 shlibpath_overrides_runpath=no
9525 need_lib_prefix=no
9526 export_dynamic_flag_spec='${wl}-Blargedynsym'
9527 runpath_var=LD_RUN_PATH
9528 ;;
9529 siemens)
9530 need_lib_prefix=no
9531 ;;
9532 motorola)
9533 need_lib_prefix=no
9534 need_version=no
9535 shlibpath_overrides_runpath=no
9536 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9537 ;;
9538 esac
9539 ;;
9540
9541sysv4*MP*)
9542 if test -d /usr/nec ;then
9543 version_type=linux
9544 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9545 soname_spec='$libname${shared_ext}.$major'
9546 shlibpath_var=LD_LIBRARY_PATH
9547 fi
9548 ;;
9549
9550sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9551 version_type=freebsd-elf
9552 need_lib_prefix=no
9553 need_version=no
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 hardcode_into_libs=yes
9558 if test "$with_gnu_ld" = yes; then
9559 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9560 shlibpath_overrides_runpath=no
9561 else
9562 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9563 shlibpath_overrides_runpath=yes
9564 case $host_os in
9565 sco3.2v5*)
9566 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9567 ;;
9568 esac
9569 fi
9570 sys_lib_dlsearch_path_spec='/usr/lib'
9571 ;;
9572
9573uts4*)
9574 version_type=linux
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 shlibpath_var=LD_LIBRARY_PATH
9578 ;;
9579
9580*)
9581 dynamic_linker=no
9582 ;;
9583esac
9584echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9585echo "${ECHO_T}$dynamic_linker" >&6
9586test "$dynamic_linker" = no && can_build_shared=no
9587
9588variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9589if test "$GCC" = yes; then
9590 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9591fi
9592
9593echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9594echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9595hardcode_action=
9596if test -n "$hardcode_libdir_flag_spec" || \
9597 test -n "$runpath_var" || \
9598 test "X$hardcode_automatic" = "Xyes" ; then
9599
9600 # We can hardcode non-existant directories.
9601 if test "$hardcode_direct" != no &&
9602 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9603 # have to relink, otherwise we might link with an installed library
9604 # when we should be linking with a yet-to-be-installed one
9605 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9606 test "$hardcode_minus_L" != no; then
9607 # Linking always hardcodes the temporary library directory.
9608 hardcode_action=relink
9609 else
9610 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9611 hardcode_action=immediate
9612 fi
9613else
9614 # We cannot hardcode anything, or else we can only hardcode existing
9615 # directories.
9616 hardcode_action=unsupported
9617fi
9618echo "$as_me:$LINENO: result: $hardcode_action" >&5
9619echo "${ECHO_T}$hardcode_action" >&6
9620
9621if test "$hardcode_action" = relink; then
9622 # Fast installation is not supported
9623 enable_fast_install=no
9624elif test "$shlibpath_overrides_runpath" = yes ||
9625 test "$enable_shared" = no; then
9626 # Fast installation is not necessary
9627 enable_fast_install=needless
9628fi
9629
9630striplib=
9631old_striplib=
9632echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9633echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9634if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9635 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9636 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9637 echo "$as_me:$LINENO: result: yes" >&5
9638echo "${ECHO_T}yes" >&6
9639else
9640# FIXME - insert some real tests, host_os isn't really good enough
9641 case $host_os in
9642 darwin*)
9643 if test -n "$STRIP" ; then
9644 striplib="$STRIP -x"
9645 echo "$as_me:$LINENO: result: yes" >&5
9646echo "${ECHO_T}yes" >&6
9647 else
9648 echo "$as_me:$LINENO: result: no" >&5
9649echo "${ECHO_T}no" >&6
9650fi
9651 ;;
9652 *)
9653 echo "$as_me:$LINENO: result: no" >&5
9654echo "${ECHO_T}no" >&6
9655 ;;
9656 esac
9657fi
9658
9659if test "x$enable_dlopen" != xyes; then
9660 enable_dlopen=unknown
9661 enable_dlopen_self=unknown
9662 enable_dlopen_self_static=unknown
9663else
9664 lt_cv_dlopen=no
9665 lt_cv_dlopen_libs=
9666
9667 case $host_os in
9668 beos*)
9669 lt_cv_dlopen="load_add_on"
9670 lt_cv_dlopen_libs=
9671 lt_cv_dlopen_self=yes
9672 ;;
9673
9674 mingw* | pw32*)
9675 lt_cv_dlopen="LoadLibrary"
9676 lt_cv_dlopen_libs=
9677 ;;
9678
9679 cygwin*)
9680 lt_cv_dlopen="dlopen"
9681 lt_cv_dlopen_libs=
9682 ;;
9683
9684 darwin*)
9685 # if libdl is installed we need to link against it
9686 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9687echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9688if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9690else
9691 ac_check_lib_save_LIBS=$LIBS
9692LIBS="-ldl $LIBS"
9693cat >conftest.$ac_ext <<_ACEOF
9694/* confdefs.h. */
9695_ACEOF
9696cat confdefs.h >>conftest.$ac_ext
9697cat >>conftest.$ac_ext <<_ACEOF
9698/* end confdefs.h. */
9699
9700/* Override any gcc2 internal prototype to avoid an error. */
9701#ifdef __cplusplus
9702extern "C"
9703#endif
9704/* We use char because int might match the return type of a gcc2
9705 builtin and then its argument prototype would still apply. */
9706char dlopen ();
9707int
9708main ()
9709{
9710dlopen ();
9711 ;
9712 return 0;
9713}
9714_ACEOF
9715rm -f conftest.$ac_objext conftest$ac_exeext
9716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -z "$ac_c_werror_flag"
9725 || test ! -s conftest.err'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try='test -s conftest$ac_exeext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_lib_dl_dlopen=yes
9738else
9739 echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
9741
9742ac_cv_lib_dl_dlopen=no
9743fi
9744rm -f conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746LIBS=$ac_check_lib_save_LIBS
9747fi
9748echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9749echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9750if test $ac_cv_lib_dl_dlopen = yes; then
9751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9752else
9753
9754 lt_cv_dlopen="dyld"
9755 lt_cv_dlopen_libs=
9756 lt_cv_dlopen_self=yes
9757
9758fi
9759
9760 ;;
9761
9762 *)
9763 echo "$as_me:$LINENO: checking for shl_load" >&5
9764echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9765if test "${ac_cv_func_shl_load+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767else
9768 cat >conftest.$ac_ext <<_ACEOF
9769/* confdefs.h. */
9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h. */
9774/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9776#define shl_load innocuous_shl_load
9777
9778/* System header to define __stub macros and hopefully few prototypes,
9779 which can conflict with char shl_load (); below.
9780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9781 <limits.h> exists even on freestanding compilers. */
9782
9783#ifdef __STDC__
9784# include <limits.h>
9785#else
9786# include <assert.h>
9787#endif
9788
9789#undef shl_load
9790
9791/* Override any gcc2 internal prototype to avoid an error. */
9792#ifdef __cplusplus
9793extern "C"
9794{
9795#endif
9796/* We use char because int might match the return type of a gcc2
9797 builtin and then its argument prototype would still apply. */
9798char shl_load ();
9799/* The GNU C library defines this for functions which it implements
9800 to always fail with ENOSYS. Some functions are actually named
9801 something starting with __ and the normal name is an alias. */
9802#if defined (__stub_shl_load) || defined (__stub___shl_load)
9803choke me
9804#else
9805char (*f) () = shl_load;
9806#endif
9807#ifdef __cplusplus
9808}
9809#endif
9810
9811int
9812main ()
9813{
9814return f != shl_load;
9815 ;
9816 return 0;
9817}
9818_ACEOF
9819rm -f conftest.$ac_objext conftest$ac_exeext
9820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9821 (eval $ac_link) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag"
9829 || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_func_shl_load=yes
9842else
9843 echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846ac_cv_func_shl_load=no
9847fi
9848rm -f conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9850fi
9851echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9852echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9853if test $ac_cv_func_shl_load = yes; then
9854 lt_cv_dlopen="shl_load"
9855else
9856 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9857echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9858if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860else
9861 ac_check_lib_save_LIBS=$LIBS
9862LIBS="-ldld $LIBS"
9863cat >conftest.$ac_ext <<_ACEOF
9864/* confdefs.h. */
9865_ACEOF
9866cat confdefs.h >>conftest.$ac_ext
9867cat >>conftest.$ac_ext <<_ACEOF
9868/* end confdefs.h. */
9869
9870/* Override any gcc2 internal prototype to avoid an error. */
9871#ifdef __cplusplus
9872extern "C"
9873#endif
9874/* We use char because int might match the return type of a gcc2
9875 builtin and then its argument prototype would still apply. */
9876char shl_load ();
9877int
9878main ()
9879{
9880shl_load ();
9881 ;
9882 return 0;
9883}
9884_ACEOF
9885rm -f conftest.$ac_objext conftest$ac_exeext
9886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887 (eval $ac_link) 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_c_werror_flag"
9895 || test ! -s conftest.err'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try='test -s conftest$ac_exeext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_lib_dld_shl_load=yes
9908else
9909 echo "$as_me: failed program was:" >&5
9910sed 's/^/| /' conftest.$ac_ext >&5
9911
9912ac_cv_lib_dld_shl_load=no
9913fi
9914rm -f conftest.err conftest.$ac_objext \
9915 conftest$ac_exeext conftest.$ac_ext
9916LIBS=$ac_check_lib_save_LIBS
9917fi
9918echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9919echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9920if test $ac_cv_lib_dld_shl_load = yes; then
9921 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9922else
9923 echo "$as_me:$LINENO: checking for dlopen" >&5
9924echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9925if test "${ac_cv_func_dlopen+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927else
9928 cat >conftest.$ac_ext <<_ACEOF
9929/* confdefs.h. */
9930_ACEOF
9931cat confdefs.h >>conftest.$ac_ext
9932cat >>conftest.$ac_ext <<_ACEOF
9933/* end confdefs.h. */
9934/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9936#define dlopen innocuous_dlopen
9937
9938/* System header to define __stub macros and hopefully few prototypes,
9939 which can conflict with char dlopen (); below.
9940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9941 <limits.h> exists even on freestanding compilers. */
9942
9943#ifdef __STDC__
9944# include <limits.h>
9945#else
9946# include <assert.h>
9947#endif
9948
9949#undef dlopen
9950
9951/* Override any gcc2 internal prototype to avoid an error. */
9952#ifdef __cplusplus
9953extern "C"
9954{
9955#endif
9956/* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9958char dlopen ();
9959/* The GNU C library defines this for functions which it implements
9960 to always fail with ENOSYS. Some functions are actually named
9961 something starting with __ and the normal name is an alias. */
9962#if defined (__stub_dlopen) || defined (__stub___dlopen)
9963choke me
9964#else
9965char (*f) () = dlopen;
9966#endif
9967#ifdef __cplusplus
9968}
9969#endif
9970
9971int
9972main ()
9973{
9974return f != dlopen;
9975 ;
9976 return 0;
9977}
9978_ACEOF
9979rm -f conftest.$ac_objext conftest$ac_exeext
9980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9981 (eval $ac_link) 2>conftest.er1
9982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag"
9989 || test ! -s conftest.err'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; } &&
9995 { ac_try='test -s conftest$ac_exeext'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 (eval $ac_try) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10001 ac_cv_func_dlopen=yes
10002else
10003 echo "$as_me: failed program was:" >&5
10004sed 's/^/| /' conftest.$ac_ext >&5
10005
10006ac_cv_func_dlopen=no
10007fi
10008rm -f conftest.err conftest.$ac_objext \
10009 conftest$ac_exeext conftest.$ac_ext
10010fi
10011echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10012echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10013if test $ac_cv_func_dlopen = yes; then
10014 lt_cv_dlopen="dlopen"
10015else
10016 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10017echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10018if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021 ac_check_lib_save_LIBS=$LIBS
10022LIBS="-ldl $LIBS"
10023cat >conftest.$ac_ext <<_ACEOF
10024/* confdefs.h. */
10025_ACEOF
10026cat confdefs.h >>conftest.$ac_ext
10027cat >>conftest.$ac_ext <<_ACEOF
10028/* end confdefs.h. */
10029
10030/* Override any gcc2 internal prototype to avoid an error. */
10031#ifdef __cplusplus
10032extern "C"
10033#endif
10034/* We use char because int might match the return type of a gcc2
10035 builtin and then its argument prototype would still apply. */
10036char dlopen ();
10037int
10038main ()
10039{
10040dlopen ();
10041 ;
10042 return 0;
10043}
10044_ACEOF
10045rm -f conftest.$ac_objext conftest$ac_exeext
10046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -z "$ac_c_werror_flag"
10055 || test ! -s conftest.err'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest$ac_exeext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_lib_dl_dlopen=yes
10068else
10069 echo "$as_me: failed program was:" >&5
10070sed 's/^/| /' conftest.$ac_ext >&5
10071
10072ac_cv_lib_dl_dlopen=no
10073fi
10074rm -f conftest.err conftest.$ac_objext \
10075 conftest$ac_exeext conftest.$ac_ext
10076LIBS=$ac_check_lib_save_LIBS
10077fi
10078echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10079echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10080if test $ac_cv_lib_dl_dlopen = yes; then
10081 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10082else
10083 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10084echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10085if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087else
10088 ac_check_lib_save_LIBS=$LIBS
10089LIBS="-lsvld $LIBS"
10090cat >conftest.$ac_ext <<_ACEOF
10091/* confdefs.h. */
10092_ACEOF
10093cat confdefs.h >>conftest.$ac_ext
10094cat >>conftest.$ac_ext <<_ACEOF
10095/* end confdefs.h. */
10096
10097/* Override any gcc2 internal prototype to avoid an error. */
10098#ifdef __cplusplus
10099extern "C"
10100#endif
10101/* We use char because int might match the return type of a gcc2
10102 builtin and then its argument prototype would still apply. */
10103char dlopen ();
10104int
10105main ()
10106{
10107dlopen ();
10108 ;
10109 return 0;
10110}
10111_ACEOF
10112rm -f conftest.$ac_objext conftest$ac_exeext
10113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114 (eval $ac_link) 2>conftest.er1
10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -z "$ac_c_werror_flag"
10122 || test ! -s conftest.err'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; } &&
10128 { ac_try='test -s conftest$ac_exeext'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_lib_svld_dlopen=yes
10135else
10136 echo "$as_me: failed program was:" >&5
10137sed 's/^/| /' conftest.$ac_ext >&5
10138
10139ac_cv_lib_svld_dlopen=no
10140fi
10141rm -f conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143LIBS=$ac_check_lib_save_LIBS
10144fi
10145echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10146echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10147if test $ac_cv_lib_svld_dlopen = yes; then
10148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10149else
10150 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10151echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10152if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155 ac_check_lib_save_LIBS=$LIBS
10156LIBS="-ldld $LIBS"
10157cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h. */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h. */
10163
10164/* Override any gcc2 internal prototype to avoid an error. */
10165#ifdef __cplusplus
10166extern "C"
10167#endif
10168/* We use char because int might match the return type of a gcc2
10169 builtin and then its argument prototype would still apply. */
10170char dld_link ();
10171int
10172main ()
10173{
10174dld_link ();
10175 ;
10176 return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext conftest$ac_exeext
10180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -z "$ac_c_werror_flag"
10189 || test ! -s conftest.err'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest$ac_exeext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_cv_lib_dld_dld_link=yes
10202else
10203 echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206ac_cv_lib_dld_dld_link=no
10207fi
10208rm -f conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
10210LIBS=$ac_check_lib_save_LIBS
10211fi
10212echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10213echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10214if test $ac_cv_lib_dld_dld_link = yes; then
10215 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10216fi
10217
10218
10219fi
10220
10221
10222fi
10223
10224
10225fi
10226
10227
10228fi
10229
10230
10231fi
10232
10233 ;;
10234 esac
10235
10236 if test "x$lt_cv_dlopen" != xno; then
10237 enable_dlopen=yes
10238 else
10239 enable_dlopen=no
10240 fi
10241
10242 case $lt_cv_dlopen in
10243 dlopen)
10244 save_CPPFLAGS="$CPPFLAGS"
10245 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10246
10247 save_LDFLAGS="$LDFLAGS"
10248 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10249
10250 save_LIBS="$LIBS"
10251 LIBS="$lt_cv_dlopen_libs $LIBS"
10252
10253 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10254echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10255if test "${lt_cv_dlopen_self+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10257else
10258 if test "$cross_compiling" = yes; then :
10259 lt_cv_dlopen_self=cross
10260else
10261 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10262 lt_status=$lt_dlunknown
10263 cat > conftest.$ac_ext <<EOF
10264#line 10264 "configure"
10265#include "confdefs.h"
10266
10267#if HAVE_DLFCN_H
10268#include <dlfcn.h>
10269#endif
10270
10271#include <stdio.h>
10272
10273#ifdef RTLD_GLOBAL
10274# define LT_DLGLOBAL RTLD_GLOBAL
10275#else
10276# ifdef DL_GLOBAL
10277# define LT_DLGLOBAL DL_GLOBAL
10278# else
10279# define LT_DLGLOBAL 0
10280# endif
10281#endif
10282
10283/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10284 find out it does not work in some platform. */
10285#ifndef LT_DLLAZY_OR_NOW
10286# ifdef RTLD_LAZY
10287# define LT_DLLAZY_OR_NOW RTLD_LAZY
10288# else
10289# ifdef DL_LAZY
10290# define LT_DLLAZY_OR_NOW DL_LAZY
10291# else
10292# ifdef RTLD_NOW
10293# define LT_DLLAZY_OR_NOW RTLD_NOW
10294# else
10295# ifdef DL_NOW
10296# define LT_DLLAZY_OR_NOW DL_NOW
10297# else
10298# define LT_DLLAZY_OR_NOW 0
10299# endif
10300# endif
10301# endif
10302# endif
10303#endif
10304
10305#ifdef __cplusplus
10306extern "C" void exit (int);
10307#endif
10308
10309void fnord() { int i=42;}
10310int main ()
10311{
10312 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10313 int status = $lt_dlunknown;
10314
10315 if (self)
10316 {
10317 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10318 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10319 /* dlclose (self); */
10320 }
10321 else
10322 puts (dlerror ());
10323
10324 exit (status);
10325}
10326EOF
10327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328 (eval $ac_link) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10332 (./conftest; exit; ) >&5 2>/dev/null
10333 lt_status=$?
10334 case x$lt_status in
10335 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10336 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10337 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10338 esac
10339 else :
10340 # compilation failed
10341 lt_cv_dlopen_self=no
10342 fi
10343fi
10344rm -fr conftest*
10345
10346
10347fi
10348echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10349echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10350
10351 if test "x$lt_cv_dlopen_self" = xyes; then
10352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10353 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10354echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10355if test "${lt_cv_dlopen_self_static+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10357else
10358 if test "$cross_compiling" = yes; then :
10359 lt_cv_dlopen_self_static=cross
10360else
10361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10362 lt_status=$lt_dlunknown
10363 cat > conftest.$ac_ext <<EOF
10364#line 10364 "configure"
10365#include "confdefs.h"
10366
10367#if HAVE_DLFCN_H
10368#include <dlfcn.h>
10369#endif
10370
10371#include <stdio.h>
10372
10373#ifdef RTLD_GLOBAL
10374# define LT_DLGLOBAL RTLD_GLOBAL
10375#else
10376# ifdef DL_GLOBAL
10377# define LT_DLGLOBAL DL_GLOBAL
10378# else
10379# define LT_DLGLOBAL 0
10380# endif
10381#endif
10382
10383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10384 find out it does not work in some platform. */
10385#ifndef LT_DLLAZY_OR_NOW
10386# ifdef RTLD_LAZY
10387# define LT_DLLAZY_OR_NOW RTLD_LAZY
10388# else
10389# ifdef DL_LAZY
10390# define LT_DLLAZY_OR_NOW DL_LAZY
10391# else
10392# ifdef RTLD_NOW
10393# define LT_DLLAZY_OR_NOW RTLD_NOW
10394# else
10395# ifdef DL_NOW
10396# define LT_DLLAZY_OR_NOW DL_NOW
10397# else
10398# define LT_DLLAZY_OR_NOW 0
10399# endif
10400# endif
10401# endif
10402# endif
10403#endif
10404
10405#ifdef __cplusplus
10406extern "C" void exit (int);
10407#endif
10408
10409void fnord() { int i=42;}
10410int main ()
10411{
10412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10413 int status = $lt_dlunknown;
10414
10415 if (self)
10416 {
10417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10418 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10419 /* dlclose (self); */
10420 }
10421 else
10422 puts (dlerror ());
10423
10424 exit (status);
10425}
10426EOF
10427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428 (eval $ac_link) 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10432 (./conftest; exit; ) >&5 2>/dev/null
10433 lt_status=$?
10434 case x$lt_status in
10435 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10436 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10437 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10438 esac
10439 else :
10440 # compilation failed
10441 lt_cv_dlopen_self_static=no
10442 fi
10443fi
10444rm -fr conftest*
10445
10446
10447fi
10448echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10449echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10450 fi
10451
10452 CPPFLAGS="$save_CPPFLAGS"
10453 LDFLAGS="$save_LDFLAGS"
10454 LIBS="$save_LIBS"
10455 ;;
10456 esac
10457
10458 case $lt_cv_dlopen_self in
10459 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10460 *) enable_dlopen_self=unknown ;;
10461 esac
10462
10463 case $lt_cv_dlopen_self_static in
10464 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10465 *) enable_dlopen_self_static=unknown ;;
10466 esac
10467fi
10468
10469
10470# Report which library types will actually be built
10471echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10472echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10473echo "$as_me:$LINENO: result: $can_build_shared" >&5
10474echo "${ECHO_T}$can_build_shared" >&6
10475
10476echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10477echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10478test "$can_build_shared" = "no" && enable_shared=no
10479
10480# On AIX, shared libraries and static libraries use the same namespace, and
10481# are all built from PIC.
10482case $host_os in
10483aix3*)
10484 test "$enable_shared" = yes && enable_static=no
10485 if test -n "$RANLIB"; then
10486 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10487 postinstall_cmds='$RANLIB $lib'
10488 fi
10489 ;;
10490
10491aix4* | aix5*)
10492 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10493 test "$enable_shared" = yes && enable_static=no
10494 fi
10495 ;;
10496esac
10497echo "$as_me:$LINENO: result: $enable_shared" >&5
10498echo "${ECHO_T}$enable_shared" >&6
10499
10500echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10501echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10502# Make sure either enable_shared or enable_static is yes.
10503test "$enable_shared" = yes || enable_static=yes
10504echo "$as_me:$LINENO: result: $enable_static" >&5
10505echo "${ECHO_T}$enable_static" >&6
10506
10507# The else clause should only fire when bootstrapping the
10508# libtool distribution, otherwise you forgot to ship ltmain.sh
10509# with your package, and you will get complaints that there are
10510# no rules to generate ltmain.sh.
10511if test -f "$ltmain"; then
10512 # See if we are running on zsh, and set the options which allow our commands through
10513 # without removal of \ escapes.
10514 if test -n "${ZSH_VERSION+set}" ; then
10515 setopt NO_GLOB_SUBST
10516 fi
10517 # Now quote all the things that may contain metacharacters while being
10518 # careful not to overquote the AC_SUBSTed values. We take copies of the
10519 # variables and quote the copies for generation of the libtool script.
10520 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10521 SED SHELL STRIP \
10522 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10523 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10524 deplibs_check_method reload_flag reload_cmds need_locks \
10525 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10526 lt_cv_sys_global_symbol_to_c_name_address \
10527 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10528 old_postinstall_cmds old_postuninstall_cmds \
10529 compiler \
10530 CC \
10531 LD \
10532 lt_prog_compiler_wl \
10533 lt_prog_compiler_pic \
10534 lt_prog_compiler_static \
10535 lt_prog_compiler_no_builtin_flag \
10536 export_dynamic_flag_spec \
10537 thread_safe_flag_spec \
10538 whole_archive_flag_spec \
10539 enable_shared_with_static_runtimes \
10540 old_archive_cmds \
10541 old_archive_from_new_cmds \
10542 predep_objects \
10543 postdep_objects \
10544 predeps \
10545 postdeps \
10546 compiler_lib_search_path \
10547 archive_cmds \
10548 archive_expsym_cmds \
10549 postinstall_cmds \
10550 postuninstall_cmds \
10551 old_archive_from_expsyms_cmds \
10552 allow_undefined_flag \
10553 no_undefined_flag \
10554 export_symbols_cmds \
10555 hardcode_libdir_flag_spec \
10556 hardcode_libdir_flag_spec_ld \
10557 hardcode_libdir_separator \
10558 hardcode_automatic \
10559 module_cmds \
10560 module_expsym_cmds \
10561 lt_cv_prog_compiler_c_o \
10562 exclude_expsyms \
10563 include_expsyms; do
10564
10565 case $var in
10566 old_archive_cmds | \
10567 old_archive_from_new_cmds | \
10568 archive_cmds | \
10569 archive_expsym_cmds | \
10570 module_cmds | \
10571 module_expsym_cmds | \
10572 old_archive_from_expsyms_cmds | \
10573 export_symbols_cmds | \
10574 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10575 postinstall_cmds | postuninstall_cmds | \
10576 old_postinstall_cmds | old_postuninstall_cmds | \
10577 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10578 # Double-quote double-evaled strings.
10579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10580 ;;
10581 *)
10582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10583 ;;
10584 esac
10585 done
10586
10587 case $lt_echo in
10588 *'\$0 --fallback-echo"')
10589 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10590 ;;
10591 esac
10592
10593cfgfile="${ofile}T"
10594 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10595 $rm -f "$cfgfile"
10596 { echo "$as_me:$LINENO: creating $ofile" >&5
10597echo "$as_me: creating $ofile" >&6;}
10598
10599 cat <<__EOF__ >> "$cfgfile"
10600#! $SHELL
10601
10602# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10603# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10604# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10605#
10606# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10607# Free Software Foundation, Inc.
10608#
10609# This file is part of GNU Libtool:
10610# Originally by Gordon Matzigkeit <[email protected]>, 1996
10611#
10612# This program is free software; you can redistribute it and/or modify
10613# it under the terms of the GNU General Public License as published by
10614# the Free Software Foundation; either version 2 of the License, or
10615# (at your option) any later version.
10616#
10617# This program is distributed in the hope that it will be useful, but
10618# WITHOUT ANY WARRANTY; without even the implied warranty of
10619# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10620# General Public License for more details.
10621#
10622# You should have received a copy of the GNU General Public License
10623# along with this program; if not, write to the Free Software
10624# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10625#
10626# As a special exception to the GNU General Public License, if you
10627# distribute this file as part of a program that contains a
10628# configuration script generated by Autoconf, you may include it under
10629# the same distribution terms that you use for the rest of that program.
10630
10631# A sed program that does not truncate output.
10632SED=$lt_SED
10633
10634# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10635Xsed="$SED -e 1s/^X//"
10636
10637# The HP-UX ksh and POSIX shell print the target directory to stdout
10638# if CDPATH is set.
10639(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10640
10641# The names of the tagged configurations supported by this script.
10642available_tags=
10643
10644# ### BEGIN LIBTOOL CONFIG
10645
10646# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10647
10648# Shell to use when invoking shell scripts.
10649SHELL=$lt_SHELL
10650
10651# Whether or not to build shared libraries.
10652build_libtool_libs=$enable_shared
10653
10654# Whether or not to build static libraries.
10655build_old_libs=$enable_static
10656
10657# Whether or not to add -lc for building shared libraries.
10658build_libtool_need_lc=$archive_cmds_need_lc
10659
10660# Whether or not to disallow shared libs when runtime libs are static
10661allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10662
10663# Whether or not to optimize for fast installation.
10664fast_install=$enable_fast_install
10665
10666# The host system.
10667host_alias=$host_alias
10668host=$host
10669host_os=$host_os
10670
10671# The build system.
10672build_alias=$build_alias
10673build=$build
10674build_os=$build_os
10675
10676# An echo program that does not interpret backslashes.
10677echo=$lt_echo
10678
10679# The archiver.
10680AR=$lt_AR
10681AR_FLAGS=$lt_AR_FLAGS
10682
10683# A C compiler.
10684LTCC=$lt_LTCC
10685
10686# LTCC compiler flags.
10687LTCFLAGS=$lt_LTCFLAGS
10688
10689# A language-specific compiler.
10690CC=$lt_compiler
10691
10692# Is the compiler the GNU C compiler?
10693with_gcc=$GCC
10694
10695gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10696gcc_ver=\`gcc -dumpversion\`
10697
10698# An ERE matcher.
10699EGREP=$lt_EGREP
10700
10701# The linker used to build libraries.
10702LD=$lt_LD
10703
10704# Whether we need hard or soft links.
10705LN_S=$lt_LN_S
10706
10707# A BSD-compatible nm program.
10708NM=$lt_NM
10709
10710# A symbol stripping program
10711STRIP=$lt_STRIP
10712
10713# Used to examine libraries when file_magic_cmd begins "file"
10714MAGIC_CMD=$MAGIC_CMD
10715
10716# Used on cygwin: DLL creation program.
10717DLLTOOL="$DLLTOOL"
10718
10719# Used on cygwin: object dumper.
10720OBJDUMP="$OBJDUMP"
10721
10722# Used on cygwin: assembler.
10723AS="$AS"
10724
10725# The name of the directory that contains temporary libtool files.
10726objdir=$objdir
10727
10728# How to create reloadable object files.
10729reload_flag=$lt_reload_flag
10730reload_cmds=$lt_reload_cmds
10731
10732# How to pass a linker flag through the compiler.
10733wl=$lt_lt_prog_compiler_wl
10734
10735# Object file suffix (normally "o").
10736objext="$ac_objext"
10737
10738# Old archive suffix (normally "a").
10739libext="$libext"
10740
10741# Shared library suffix (normally ".so").
10742shrext_cmds='$shrext_cmds'
10743
10744# Executable file suffix (normally "").
10745exeext="$exeext"
10746
10747# Additional compiler flags for building library objects.
10748pic_flag=$lt_lt_prog_compiler_pic
10749pic_mode=$pic_mode
10750
10751# What is the maximum length of a command?
10752max_cmd_len=$lt_cv_sys_max_cmd_len
10753
10754# Does compiler simultaneously support -c and -o options?
10755compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10756
10757# Must we lock files when doing compilation?
10758need_locks=$lt_need_locks
10759
10760# Do we need the lib prefix for modules?
10761need_lib_prefix=$need_lib_prefix
10762
10763# Do we need a version for libraries?
10764need_version=$need_version
10765
10766# Whether dlopen is supported.
10767dlopen_support=$enable_dlopen
10768
10769# Whether dlopen of programs is supported.
10770dlopen_self=$enable_dlopen_self
10771
10772# Whether dlopen of statically linked programs is supported.
10773dlopen_self_static=$enable_dlopen_self_static
10774
10775# Compiler flag to prevent dynamic linking.
10776link_static_flag=$lt_lt_prog_compiler_static
10777
10778# Compiler flag to turn off builtin functions.
10779no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10780
10781# Compiler flag to allow reflexive dlopens.
10782export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10783
10784# Compiler flag to generate shared objects directly from archives.
10785whole_archive_flag_spec=$lt_whole_archive_flag_spec
10786
10787# Compiler flag to generate thread-safe objects.
10788thread_safe_flag_spec=$lt_thread_safe_flag_spec
10789
10790# Library versioning type.
10791version_type=$version_type
10792
10793# Format of library name prefix.
10794libname_spec=$lt_libname_spec
10795
10796# List of archive names. First name is the real one, the rest are links.
10797# The last name is the one that the linker finds with -lNAME.
10798library_names_spec=$lt_library_names_spec
10799
10800# The coded name of the library, if different from the real name.
10801soname_spec=$lt_soname_spec
10802
10803# Commands used to build and install an old-style archive.
10804RANLIB=$lt_RANLIB
10805old_archive_cmds=$lt_old_archive_cmds
10806old_postinstall_cmds=$lt_old_postinstall_cmds
10807old_postuninstall_cmds=$lt_old_postuninstall_cmds
10808
10809# Create an old-style archive from a shared archive.
10810old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10811
10812# Create a temporary old-style archive to link instead of a shared archive.
10813old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10814
10815# Commands used to build and install a shared archive.
10816archive_cmds=$lt_archive_cmds
10817archive_expsym_cmds=$lt_archive_expsym_cmds
10818postinstall_cmds=$lt_postinstall_cmds
10819postuninstall_cmds=$lt_postuninstall_cmds
10820
10821# Commands used to build a loadable module (assumed same as above if empty)
10822module_cmds=$lt_module_cmds
10823module_expsym_cmds=$lt_module_expsym_cmds
10824
10825# Commands to strip libraries.
10826old_striplib=$lt_old_striplib
10827striplib=$lt_striplib
10828
10829# Dependencies to place before the objects being linked to create a
10830# shared library.
10831predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10832
10833# Dependencies to place after the objects being linked to create a
10834# shared library.
10835postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10836
10837# Dependencies to place before the objects being linked to create a
10838# shared library.
10839predeps=$lt_predeps
10840
10841# Dependencies to place after the objects being linked to create a
10842# shared library.
10843postdeps=$lt_postdeps
10844
10845# The library search path used internally by the compiler when linking
10846# a shared library.
10847compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10848
10849# Method to check whether dependent libraries are shared objects.
10850deplibs_check_method=$lt_deplibs_check_method
10851
10852# Command to use when deplibs_check_method == file_magic.
10853file_magic_cmd=$lt_file_magic_cmd
10854
10855# Flag that allows shared libraries with undefined symbols to be built.
10856allow_undefined_flag=$lt_allow_undefined_flag
10857
10858# Flag that forces no undefined symbols.
10859no_undefined_flag=$lt_no_undefined_flag
10860
10861# Commands used to finish a libtool library installation in a directory.
10862finish_cmds=$lt_finish_cmds
10863
10864# Same as above, but a single script fragment to be evaled but not shown.
10865finish_eval=$lt_finish_eval
10866
10867# Take the output of nm and produce a listing of raw symbols and C names.
10868global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10869
10870# Transform the output of nm in a proper C declaration
10871global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10872
10873# Transform the output of nm in a C name address pair
10874global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10875
10876# This is the shared library runtime path variable.
10877runpath_var=$runpath_var
10878
10879# This is the shared library path variable.
10880shlibpath_var=$shlibpath_var
10881
10882# Is shlibpath searched before the hard-coded library search path?
10883shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10884
10885# How to hardcode a shared library path into an executable.
10886hardcode_action=$hardcode_action
10887
10888# Whether we should hardcode library paths into libraries.
10889hardcode_into_libs=$hardcode_into_libs
10890
10891# Flag to hardcode \$libdir into a binary during linking.
10892# This must work even if \$libdir does not exist.
10893hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10894
10895# If ld is used when linking, flag to hardcode \$libdir into
10896# a binary during linking. This must work even if \$libdir does
10897# not exist.
10898hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10899
10900# Whether we need a single -rpath flag with a separated argument.
10901hardcode_libdir_separator=$lt_hardcode_libdir_separator
10902
10903# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10904# resulting binary.
10905hardcode_direct=$hardcode_direct
10906
10907# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10908# resulting binary.
10909hardcode_minus_L=$hardcode_minus_L
10910
10911# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10912# the resulting binary.
10913hardcode_shlibpath_var=$hardcode_shlibpath_var
10914
10915# Set to yes if building a shared library automatically hardcodes DIR into the library
10916# and all subsequent libraries and executables linked against it.
10917hardcode_automatic=$hardcode_automatic
10918
10919# Variables whose values should be saved in libtool wrapper scripts and
10920# restored at relink time.
10921variables_saved_for_relink="$variables_saved_for_relink"
10922
10923# Whether libtool must link a program against all its dependency libraries.
10924link_all_deplibs=$link_all_deplibs
10925
10926# Compile-time system search path for libraries
10927sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10928
10929# Run-time system search path for libraries
10930sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10931
10932# Fix the shell variable \$srcfile for the compiler.
10933fix_srcfile_path="$fix_srcfile_path"
10934
10935# Set to yes if exported symbols are required.
10936always_export_symbols=$always_export_symbols
10937
10938# The commands to list exported symbols.
10939export_symbols_cmds=$lt_export_symbols_cmds
10940
10941# The commands to extract the exported symbol list from a shared archive.
10942extract_expsyms_cmds=$lt_extract_expsyms_cmds
10943
10944# Symbols that should not be listed in the preloaded symbols.
10945exclude_expsyms=$lt_exclude_expsyms
10946
10947# Symbols that must always be exported.
10948include_expsyms=$lt_include_expsyms
10949
10950# ### END LIBTOOL CONFIG
10951
10952__EOF__
10953
10954
10955 case $host_os in
10956 aix3*)
10957 cat <<\EOF >> "$cfgfile"
10958
10959# AIX sometimes has problems with the GCC collect2 program. For some
10960# reason, if we set the COLLECT_NAMES environment variable, the problems
10961# vanish in a puff of smoke.
10962if test "X${COLLECT_NAMES+set}" != Xset; then
10963 COLLECT_NAMES=
10964 export COLLECT_NAMES
10965fi
10966EOF
10967 ;;
10968 esac
10969
10970 # We use sed instead of cat because bash on DJGPP gets confused if
10971 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10972 # text mode, it properly converts lines to CR/LF. This bash problem
10973 # is reportedly fixed, but why not run on old versions too?
10974 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10975
10976 mv -f "$cfgfile" "$ofile" || \
10977 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10978 chmod +x "$ofile"
10979
10980else
10981 # If there is no Makefile yet, we rely on a make rule to execute
10982 # `config.status --recheck' to rerun these tests and create the
10983 # libtool script then.
10984 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10985 if test -f "$ltmain_in"; then
10986 test -f Makefile && make "$ltmain"
10987 fi
10988fi
10989
10990
10991ac_ext=c
10992ac_cpp='$CPP $CPPFLAGS'
10993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10995ac_compiler_gnu=$ac_cv_c_compiler_gnu
10996
10997CC="$lt_save_CC"
10998
10999
11000# Check whether --with-tags or --without-tags was given.
11001if test "${with_tags+set}" = set; then
11002 withval="$with_tags"
11003 tagnames="$withval"
11004fi;
11005
11006if test -f "$ltmain" && test -n "$tagnames"; then
11007 if test ! -f "${ofile}"; then
11008 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11009echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11010 fi
11011
11012 if test -z "$LTCC"; then
11013 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11014 if test -z "$LTCC"; then
11015 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11016echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11017 else
11018 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11019echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11020 fi
11021 fi
11022 if test -z "$LTCFLAGS"; then
11023 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11024 fi
11025
11026 # Extract list of available tagged configurations in $ofile.
11027 # Note that this assumes the entire list is on one line.
11028 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11029
11030 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11031 for tagname in $tagnames; do
11032 IFS="$lt_save_ifs"
11033 # Check whether tagname contains only valid characters
11034 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11035 "") ;;
11036 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11037echo "$as_me: error: invalid tag name: $tagname" >&2;}
11038 { (exit 1); exit 1; }; }
11039 ;;
11040 esac
11041
11042 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11043 then
11044 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11045echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11046 { (exit 1); exit 1; }; }
11047 fi
11048
11049 # Update the list of available tags.
11050 if test -n "$tagname"; then
11051 echo appending configuration tag \"$tagname\" to $ofile
11052
11053 case $tagname in
11054 CXX)
11055 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11056 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11057 (test "X$CXX" != "Xg++"))) ; then
11058 ac_ext=cc
11059ac_cpp='$CXXCPP $CPPFLAGS'
11060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11063
11064
11065
11066
11067archive_cmds_need_lc_CXX=no
11068allow_undefined_flag_CXX=
11069always_export_symbols_CXX=no
11070archive_expsym_cmds_CXX=
11071export_dynamic_flag_spec_CXX=
11072hardcode_direct_CXX=no
11073hardcode_libdir_flag_spec_CXX=
11074hardcode_libdir_flag_spec_ld_CXX=
11075hardcode_libdir_separator_CXX=
11076hardcode_minus_L_CXX=no
11077hardcode_shlibpath_var_CXX=unsupported
11078hardcode_automatic_CXX=no
11079module_cmds_CXX=
11080module_expsym_cmds_CXX=
11081link_all_deplibs_CXX=unknown
11082old_archive_cmds_CXX=$old_archive_cmds
11083no_undefined_flag_CXX=
11084whole_archive_flag_spec_CXX=
11085enable_shared_with_static_runtimes_CXX=no
11086
11087# Dependencies to place before and after the object being linked:
11088predep_objects_CXX=
11089postdep_objects_CXX=
11090predeps_CXX=
11091postdeps_CXX=
11092compiler_lib_search_path_CXX=
11093
11094# Source file extension for C++ test sources.
11095ac_ext=cpp
11096
11097# Object file extension for compiled C++ test sources.
11098objext=o
11099objext_CXX=$objext
11100
11101# Code to be used in simple compile tests
11102lt_simple_compile_test_code="int some_variable = 0;\n"
11103
11104# Code to be used in simple link tests
11105lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11106
11107# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11108
11109# If no C compiler was specified, use CC.
11110LTCC=${LTCC-"$CC"}
11111
11112# If no C compiler flags were specified, use CFLAGS.
11113LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11114
11115# Allow CC to be a program name with arguments.
11116compiler=$CC
11117
11118
11119# save warnings/boilerplate of simple test code
11120ac_outfile=conftest.$ac_objext
11121printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11122eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11123_lt_compiler_boilerplate=`cat conftest.err`
11124$rm conftest*
11125
11126ac_outfile=conftest.$ac_objext
11127printf "$lt_simple_link_test_code" >conftest.$ac_ext
11128eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11129_lt_linker_boilerplate=`cat conftest.err`
11130$rm conftest*
11131
11132
11133# Allow CC to be a program name with arguments.
11134lt_save_CC=$CC
11135lt_save_LD=$LD
11136lt_save_GCC=$GCC
11137GCC=$GXX
11138lt_save_with_gnu_ld=$with_gnu_ld
11139lt_save_path_LD=$lt_cv_path_LD
11140if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11141 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11142else
11143 $as_unset lt_cv_prog_gnu_ld
11144fi
11145if test -n "${lt_cv_path_LDCXX+set}"; then
11146 lt_cv_path_LD=$lt_cv_path_LDCXX
11147else
11148 $as_unset lt_cv_path_LD
11149fi
11150test -z "${LDCXX+set}" || LD=$LDCXX
11151CC=${CXX-"c++"}
11152compiler=$CC
11153compiler_CXX=$CC
11154for cc_temp in $compiler""; do
11155 case $cc_temp in
11156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11158 \-*) ;;
11159 *) break;;
11160 esac
11161done
11162cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11163
11164
11165# We don't want -fno-exception wen compiling C++ code, so set the
11166# no_builtin_flag separately
11167if test "$GXX" = yes; then
11168 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11169else
11170 lt_prog_compiler_no_builtin_flag_CXX=
11171fi
11172
11173if test "$GXX" = yes; then
11174 # Set up default GNU C++ configuration
11175
11176
11177# Check whether --with-gnu-ld or --without-gnu-ld was given.
11178if test "${with_gnu_ld+set}" = set; then
11179 withval="$with_gnu_ld"
11180 test "$withval" = no || with_gnu_ld=yes
11181else
11182 with_gnu_ld=no
11183fi;
11184ac_prog=ld
11185if test "$GCC" = yes; then
11186 # Check if gcc -print-prog-name=ld gives a path.
11187 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11188echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11189 case $host in
11190 *-*-mingw*)
11191 # gcc leaves a trailing carriage return which upsets mingw
11192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11193 *)
11194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11195 esac
11196 case $ac_prog in
11197 # Accept absolute paths.
11198 [\\/]* | ?:[\\/]*)
11199 re_direlt='/[^/][^/]*/\.\./'
11200 # Canonicalize the pathname of ld
11201 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11202 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11203 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11204 done
11205 test -z "$LD" && LD="$ac_prog"
11206 ;;
11207 "")
11208 # If it fails, then pretend we aren't using GCC.
11209 ac_prog=ld
11210 ;;
11211 *)
11212 # If it is relative, then search for the first ld in PATH.
11213 with_gnu_ld=unknown
11214 ;;
11215 esac
11216elif test "$with_gnu_ld" = yes; then
11217 echo "$as_me:$LINENO: checking for GNU ld" >&5
11218echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11219else
11220 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11221echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11222fi
11223if test "${lt_cv_path_LD+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225else
11226 if test -z "$LD"; then
11227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11228 for ac_dir in $PATH; do
11229 IFS="$lt_save_ifs"
11230 test -z "$ac_dir" && ac_dir=.
11231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11232 lt_cv_path_LD="$ac_dir/$ac_prog"
11233 # Check to see if the program is GNU ld. I'd rather use --version,
11234 # but apparently some variants of GNU ld only accept -v.
11235 # Break only if it was the GNU/non-GNU ld that we prefer.
11236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11237 *GNU* | *'with BFD'*)
11238 test "$with_gnu_ld" != no && break
11239 ;;
11240 *)
11241 test "$with_gnu_ld" != yes && break
11242 ;;
11243 esac
11244 fi
11245 done
11246 IFS="$lt_save_ifs"
11247else
11248 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11249fi
11250fi
11251
11252LD="$lt_cv_path_LD"
11253if test -n "$LD"; then
11254 echo "$as_me:$LINENO: result: $LD" >&5
11255echo "${ECHO_T}$LD" >&6
11256else
11257 echo "$as_me:$LINENO: result: no" >&5
11258echo "${ECHO_T}no" >&6
11259fi
11260test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11261echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11262 { (exit 1); exit 1; }; }
11263echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11264echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11265if test "${lt_cv_prog_gnu_ld+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267else
11268 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11269case `$LD -v 2>&1 </dev/null` in
11270*GNU* | *'with BFD'*)
11271 lt_cv_prog_gnu_ld=yes
11272 ;;
11273*)
11274 lt_cv_prog_gnu_ld=no
11275 ;;
11276esac
11277fi
11278echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11279echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11280with_gnu_ld=$lt_cv_prog_gnu_ld
11281
11282
11283
11284 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11285 # archiving commands below assume that GNU ld is being used.
11286 if test "$with_gnu_ld" = yes; then
11287 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11288 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'
11289
11290 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11291 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11292
11293 # If archive_cmds runs LD, not CC, wlarc should be empty
11294 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11295 # investigate it a little bit more. (MM)
11296 wlarc='${wl}'
11297
11298 # ancient GNU ld didn't support --whole-archive et. al.
11299 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11300 grep 'no-whole-archive' > /dev/null; then
11301 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11302 else
11303 whole_archive_flag_spec_CXX=
11304 fi
11305 else
11306 with_gnu_ld=no
11307 wlarc=
11308
11309 # A generic and very simple default shared library creation
11310 # command for GNU C++ for the case where it uses the native
11311 # linker, instead of GNU ld. If possible, this setting should
11312 # overridden to take advantage of the native linker features on
11313 # the platform it is being used on.
11314 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11315 fi
11316
11317 # Commands to make compiler produce verbose output that lists
11318 # what "hidden" libraries, object files and flags are used when
11319 # linking a shared library.
11320 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11321
11322else
11323 GXX=no
11324 with_gnu_ld=no
11325 wlarc=
11326fi
11327
11328# PORTME: fill in a description of your system's C++ link characteristics
11329echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11330echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11331ld_shlibs_CXX=yes
11332case $host_os in
11333 aix3*)
11334 # FIXME: insert proper C++ library support
11335 ld_shlibs_CXX=no
11336 ;;
11337 aix4* | aix5*)
11338 if test "$host_cpu" = ia64; then
11339 # On IA64, the linker does run time linking by default, so we don't
11340 # have to do anything special.
11341 aix_use_runtimelinking=no
11342 exp_sym_flag='-Bexport'
11343 no_entry_flag=""
11344 else
11345 aix_use_runtimelinking=no
11346
11347 # Test if we are trying to use run time linking or normal
11348 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11349 # need to do runtime linking.
11350 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11351 for ld_flag in $LDFLAGS; do
11352 case $ld_flag in
11353 *-brtl*)
11354 aix_use_runtimelinking=yes
11355 break
11356 ;;
11357 esac
11358 done
11359 ;;
11360 esac
11361
11362 exp_sym_flag='-bexport'
11363 no_entry_flag='-bnoentry'
11364 fi
11365
11366 # When large executables or shared objects are built, AIX ld can
11367 # have problems creating the table of contents. If linking a library
11368 # or program results in "error TOC overflow" add -mminimal-toc to
11369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11371
11372 archive_cmds_CXX=''
11373 hardcode_direct_CXX=yes
11374 hardcode_libdir_separator_CXX=':'
11375 link_all_deplibs_CXX=yes
11376
11377 if test "$GXX" = yes; then
11378 case $host_os in aix4.[012]|aix4.[012].*)
11379 # We only want to do this on AIX 4.2 and lower, the check
11380 # below for broken collect2 doesn't work under 4.3+
11381 collect2name=`${CC} -print-prog-name=collect2`
11382 if test -f "$collect2name" && \
11383 strings "$collect2name" | grep resolve_lib_name >/dev/null
11384 then
11385 # We have reworked collect2
11386 hardcode_direct_CXX=yes
11387 else
11388 # We have old collect2
11389 hardcode_direct_CXX=unsupported
11390 # It fails to find uninstalled libraries when the uninstalled
11391 # path is not listed in the libpath. Setting hardcode_minus_L
11392 # to unsupported forces relinking
11393 hardcode_minus_L_CXX=yes
11394 hardcode_libdir_flag_spec_CXX='-L$libdir'
11395 hardcode_libdir_separator_CXX=
11396 fi
11397 ;;
11398 esac
11399 shared_flag='-shared'
11400 if test "$aix_use_runtimelinking" = yes; then
11401 shared_flag="$shared_flag "'${wl}-G'
11402 fi
11403 else
11404 # not using gcc
11405 if test "$host_cpu" = ia64; then
11406 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11407 # chokes on -Wl,-G. The following line is correct:
11408 shared_flag='-G'
11409 else
11410 if test "$aix_use_runtimelinking" = yes; then
11411 shared_flag='${wl}-G'
11412 else
11413 shared_flag='${wl}-bM:SRE'
11414 fi
11415 fi
11416 fi
11417
11418 # It seems that -bexpall does not export symbols beginning with
11419 # underscore (_), so it is better to generate a list of symbols to export.
11420 always_export_symbols_CXX=yes
11421 if test "$aix_use_runtimelinking" = yes; then
11422 # Warning - without using the other runtime loading flags (-brtl),
11423 # -berok will link without error, but may produce a broken library.
11424 allow_undefined_flag_CXX='-berok'
11425 # Determine the default libpath from the value encoded in an empty executable.
11426 cat >conftest.$ac_ext <<_ACEOF
11427/* confdefs.h. */
11428_ACEOF
11429cat confdefs.h >>conftest.$ac_ext
11430cat >>conftest.$ac_ext <<_ACEOF
11431/* end confdefs.h. */
11432
11433int
11434main ()
11435{
11436
11437 ;
11438 return 0;
11439}
11440_ACEOF
11441rm -f conftest.$ac_objext conftest$ac_exeext
11442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11443 (eval $ac_link) 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } &&
11450 { ac_try='test -z "$ac_cxx_werror_flag"
11451 || test ! -s conftest.err'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; } &&
11457 { ac_try='test -s conftest$ac_exeext'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463
11464aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11465}'`
11466# Check for a 64-bit object if we didn't find anything.
11467if 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; }
11468}'`; fi
11469else
11470 echo "$as_me: failed program was:" >&5
11471sed 's/^/| /' conftest.$ac_ext >&5
11472
11473fi
11474rm -f conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11477
11478 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11479
11480 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11481 else
11482 if test "$host_cpu" = ia64; then
11483 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11484 allow_undefined_flag_CXX="-z nodefs"
11485 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11486 else
11487 # Determine the default libpath from the value encoded in an empty executable.
11488 cat >conftest.$ac_ext <<_ACEOF
11489/* confdefs.h. */
11490_ACEOF
11491cat confdefs.h >>conftest.$ac_ext
11492cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h. */
11494
11495int
11496main ()
11497{
11498
11499 ;
11500 return 0;
11501}
11502_ACEOF
11503rm -f conftest.$ac_objext conftest$ac_exeext
11504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11505 (eval $ac_link) 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -z "$ac_cxx_werror_flag"
11513 || test ! -s conftest.err'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11516 ac_status=$?
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; } &&
11519 { ac_try='test -s conftest$ac_exeext'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11525
11526aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11527}'`
11528# Check for a 64-bit object if we didn't find anything.
11529if 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; }
11530}'`; fi
11531else
11532 echo "$as_me: failed program was:" >&5
11533sed 's/^/| /' conftest.$ac_ext >&5
11534
11535fi
11536rm -f conftest.err conftest.$ac_objext \
11537 conftest$ac_exeext conftest.$ac_ext
11538if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11539
11540 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11541 # Warning - without using the other run time loading flags,
11542 # -berok will link without error, but may produce a broken library.
11543 no_undefined_flag_CXX=' ${wl}-bernotok'
11544 allow_undefined_flag_CXX=' ${wl}-berok'
11545 # Exported symbols can be pulled into shared objects from archives
11546 whole_archive_flag_spec_CXX='$convenience'
11547 archive_cmds_need_lc_CXX=yes
11548 # This is similar to how AIX traditionally builds its shared libraries.
11549 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11550 fi
11551 fi
11552 ;;
11553
11554 beos*)
11555 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11556 allow_undefined_flag_CXX=unsupported
11557 # Joseph Beckenbach <[email protected]> says some releases of gcc
11558 # support --undefined. This deserves some investigation. FIXME
11559 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11560 else
11561 ld_shlibs_CXX=no
11562 fi
11563 ;;
11564
11565 chorus*)
11566 case $cc_basename in
11567 *)
11568 # FIXME: insert proper C++ library support
11569 ld_shlibs_CXX=no
11570 ;;
11571 esac
11572 ;;
11573
11574 cygwin* | mingw* | pw32*)
11575 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11576 # as there is no search path for DLLs.
11577 hardcode_libdir_flag_spec_CXX='-L$libdir'
11578 allow_undefined_flag_CXX=unsupported
11579 always_export_symbols_CXX=no
11580 enable_shared_with_static_runtimes_CXX=yes
11581
11582 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11583 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11584 # If the export-symbols file already is a .def file (1st line
11585 # is EXPORTS), use it as is; otherwise, prepend...
11586 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11587 cp $export_symbols $output_objdir/$soname.def;
11588 else
11589 echo EXPORTS > $output_objdir/$soname.def;
11590 cat $export_symbols >> $output_objdir/$soname.def;
11591 fi~
11592 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11593 else
11594 ld_shlibs_CXX=no
11595 fi
11596 ;;
11597 darwin* | rhapsody*)
11598 case $host_os in
11599 rhapsody* | darwin1.[012])
11600 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11601 ;;
11602 *) # Darwin 1.3 on
11603 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11604 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11605 else
11606 case ${MACOSX_DEPLOYMENT_TARGET} in
11607 10.[012])
11608 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11609 ;;
11610 10.*)
11611 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11612 ;;
11613 esac
11614 fi
11615 ;;
11616 esac
11617 archive_cmds_need_lc_CXX=no
11618 hardcode_direct_CXX=no
11619 hardcode_automatic_CXX=yes
11620 hardcode_shlibpath_var_CXX=unsupported
11621 whole_archive_flag_spec_CXX=''
11622 link_all_deplibs_CXX=yes
11623
11624 if test "$GXX" = yes ; then
11625 lt_int_apple_cc_single_mod=no
11626 output_verbose_link_cmd='echo'
11627 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11628 lt_int_apple_cc_single_mod=yes
11629 fi
11630 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11631 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11632 else
11633 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11634 fi
11635 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11636 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11637 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11638 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}'
11639 else
11640 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11641 fi
11642 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}'
11643 else
11644 case $cc_basename in
11645 xlc*)
11646 output_verbose_link_cmd='echo'
11647 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11648 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11649 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11650 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11651 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}'
11652 ;;
11653 *)
11654 ld_shlibs_CXX=no
11655 ;;
11656 esac
11657 fi
11658 ;;
11659
11660 dgux*)
11661 case $cc_basename in
11662 ec++*)
11663 # FIXME: insert proper C++ library support
11664 ld_shlibs_CXX=no
11665 ;;
11666 ghcx*)
11667 # Green Hills C++ Compiler
11668 # FIXME: insert proper C++ library support
11669 ld_shlibs_CXX=no
11670 ;;
11671 *)
11672 # FIXME: insert proper C++ library support
11673 ld_shlibs_CXX=no
11674 ;;
11675 esac
11676 ;;
11677 freebsd[12]*)
11678 # C++ shared libraries reported to be fairly broken before switch to ELF
11679 ld_shlibs_CXX=no
11680 ;;
11681 freebsd-elf*)
11682 archive_cmds_need_lc_CXX=no
11683 ;;
11684 freebsd* | kfreebsd*-gnu | dragonfly*)
11685 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11686 # conventions
11687 ld_shlibs_CXX=yes
11688 ;;
11689 gnu*)
11690 ;;
11691 hpux9*)
11692 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11693 hardcode_libdir_separator_CXX=:
11694 export_dynamic_flag_spec_CXX='${wl}-E'
11695 hardcode_direct_CXX=yes
11696 hardcode_minus_L_CXX=yes # Not in the search PATH,
11697 # but as the default
11698 # location of the library.
11699
11700 case $cc_basename in
11701 CC*)
11702 # FIXME: insert proper C++ library support
11703 ld_shlibs_CXX=no
11704 ;;
11705 aCC*)
11706 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'
11707 # Commands to make compiler produce verbose output that lists
11708 # what "hidden" libraries, object files and flags are used when
11709 # linking a shared library.
11710 #
11711 # There doesn't appear to be a way to prevent this compiler from
11712 # explicitly linking system object files so we need to strip them
11713 # from the output so that they don't get included in the library
11714 # dependencies.
11715 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'
11716 ;;
11717 *)
11718 if test "$GXX" = yes; then
11719 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'
11720 else
11721 # FIXME: insert proper C++ library support
11722 ld_shlibs_CXX=no
11723 fi
11724 ;;
11725 esac
11726 ;;
11727 hpux10*|hpux11*)
11728 if test $with_gnu_ld = no; then
11729 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11730 hardcode_libdir_separator_CXX=:
11731
11732 case $host_cpu in
11733 hppa*64*|ia64*)
11734 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11735 ;;
11736 *)
11737 export_dynamic_flag_spec_CXX='${wl}-E'
11738 ;;
11739 esac
11740 fi
11741 case $host_cpu in
11742 hppa*64*|ia64*)
11743 hardcode_direct_CXX=no
11744 hardcode_shlibpath_var_CXX=no
11745 ;;
11746 *)
11747 hardcode_direct_CXX=yes
11748 hardcode_minus_L_CXX=yes # Not in the search PATH,
11749 # but as the default
11750 # location of the library.
11751 ;;
11752 esac
11753
11754 case $cc_basename in
11755 CC*)
11756 # FIXME: insert proper C++ library support
11757 ld_shlibs_CXX=no
11758 ;;
11759 aCC*)
11760 case $host_cpu in
11761 hppa*64*)
11762 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11763 ;;
11764 ia64*)
11765 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11766 ;;
11767 *)
11768 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11769 ;;
11770 esac
11771 # Commands to make compiler produce verbose output that lists
11772 # what "hidden" libraries, object files and flags are used when
11773 # linking a shared library.
11774 #
11775 # There doesn't appear to be a way to prevent this compiler from
11776 # explicitly linking system object files so we need to strip them
11777 # from the output so that they don't get included in the library
11778 # dependencies.
11779 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'
11780 ;;
11781 *)
11782 if test "$GXX" = yes; then
11783 if test $with_gnu_ld = no; then
11784 case $host_cpu in
11785 hppa*64*)
11786 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11787 ;;
11788 ia64*)
11789 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11790 ;;
11791 *)
11792 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'
11793 ;;
11794 esac
11795 fi
11796 else
11797 # FIXME: insert proper C++ library support
11798 ld_shlibs_CXX=no
11799 fi
11800 ;;
11801 esac
11802 ;;
11803 interix3*)
11804 hardcode_direct_CXX=no
11805 hardcode_shlibpath_var_CXX=no
11806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11807 export_dynamic_flag_spec_CXX='${wl}-E'
11808 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11809 # Instead, shared libraries are loaded at an image base (0x10000000 by
11810 # default) and relocated if they conflict, which is a slow very memory
11811 # consuming and fragmenting process. To avoid this, we pick a random,
11812 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11813 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11814 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11815 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11816 ;;
11817 irix5* | irix6*)
11818 case $cc_basename in
11819 CC*)
11820 # SGI C++
11821 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 ${output_objdir}/so_locations -o $lib'
11822
11823 # Archives containing C++ object files must be created using
11824 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11825 # necessary to make sure instantiated templates are included
11826 # in the archive.
11827 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11828 ;;
11829 *)
11830 if test "$GXX" = yes; then
11831 if test "$with_gnu_ld" = no; then
11832 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}${output_objdir}/so_locations -o $lib'
11833 else
11834 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'
11835 fi
11836 fi
11837 link_all_deplibs_CXX=yes
11838 ;;
11839 esac
11840 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11841 hardcode_libdir_separator_CXX=:
11842 ;;
11843 linux*)
11844 case $cc_basename in
11845 KCC*)
11846 # Kuck and Associates, Inc. (KAI) C++ Compiler
11847
11848 # KCC will only create a shared library if the output file
11849 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11850 # to its proper name (with version) after linking.
11851 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'
11852 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'
11853 # Commands to make compiler produce verbose output that lists
11854 # what "hidden" libraries, object files and flags are used when
11855 # linking a shared library.
11856 #
11857 # There doesn't appear to be a way to prevent this compiler from
11858 # explicitly linking system object files so we need to strip them
11859 # from the output so that they don't get included in the library
11860 # dependencies.
11861 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'
11862
11863 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11864 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11865
11866 # Archives containing C++ object files must be created using
11867 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11868 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11869 ;;
11870 icpc*)
11871 # Intel C++
11872 with_gnu_ld=yes
11873 # version 8.0 and above of icpc choke on multiply defined symbols
11874 # if we add $predep_objects and $postdep_objects, however 7.1 and
11875 # earlier do not add the objects themselves.
11876 case `$CC -V 2>&1` in
11877 *"Version 7."*)
11878 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11879 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'
11880 ;;
11881 *) # Version 8.0 or newer
11882 tmp_idyn=
11883 case $host_cpu in
11884 ia64*) tmp_idyn=' -i_dynamic';;
11885 esac
11886 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11887 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11888 ;;
11889 esac
11890 archive_cmds_need_lc_CXX=no
11891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11892 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11893 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11894 ;;
11895 pgCC*)
11896 # Portland Group C++ compiler
11897 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11898 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11899
11900 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11901 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11902 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11903 ;;
11904 cxx*)
11905 # Compaq C++
11906 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11907 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'
11908
11909 runpath_var=LD_RUN_PATH
11910 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11911 hardcode_libdir_separator_CXX=:
11912
11913 # Commands to make compiler produce verbose output that lists
11914 # what "hidden" libraries, object files and flags are used when
11915 # linking a shared library.
11916 #
11917 # There doesn't appear to be a way to prevent this compiler from
11918 # explicitly linking system object files so we need to strip them
11919 # from the output so that they don't get included in the library
11920 # dependencies.
11921 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'
11922 ;;
11923 esac
11924 ;;
11925 lynxos*)
11926 # FIXME: insert proper C++ library support
11927 ld_shlibs_CXX=no
11928 ;;
11929 m88k*)
11930 # FIXME: insert proper C++ library support
11931 ld_shlibs_CXX=no
11932 ;;
11933 mvs*)
11934 case $cc_basename in
11935 cxx*)
11936 # FIXME: insert proper C++ library support
11937 ld_shlibs_CXX=no
11938 ;;
11939 *)
11940 # FIXME: insert proper C++ library support
11941 ld_shlibs_CXX=no
11942 ;;
11943 esac
11944 ;;
11945 netbsd*)
11946 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11947 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11948 wlarc=
11949 hardcode_libdir_flag_spec_CXX='-R$libdir'
11950 hardcode_direct_CXX=yes
11951 hardcode_shlibpath_var_CXX=no
11952 fi
11953 # Workaround some broken pre-1.5 toolchains
11954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11955 ;;
11956 openbsd2*)
11957 # C++ shared libraries are fairly broken
11958 ld_shlibs_CXX=no
11959 ;;
11960 openbsd*)
11961 hardcode_direct_CXX=yes
11962 hardcode_shlibpath_var_CXX=no
11963 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11964 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11966 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11967 export_dynamic_flag_spec_CXX='${wl}-E'
11968 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11969 fi
11970 output_verbose_link_cmd='echo'
11971 ;;
11972 osf3*)
11973 case $cc_basename in
11974 KCC*)
11975 # Kuck and Associates, Inc. (KAI) C++ Compiler
11976
11977 # KCC will only create a shared library if the output file
11978 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11979 # to its proper name (with version) after linking.
11980 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'
11981
11982 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11983 hardcode_libdir_separator_CXX=:
11984
11985 # Archives containing C++ object files must be created using
11986 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11987 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11988
11989 ;;
11990 RCC*)
11991 # Rational C++ 2.4.1
11992 # FIXME: insert proper C++ library support
11993 ld_shlibs_CXX=no
11994 ;;
11995 cxx*)
11996 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11997 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 ${output_objdir}/so_locations -o $lib'
11998
11999 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12000 hardcode_libdir_separator_CXX=:
12001
12002 # Commands to make compiler produce verbose output that lists
12003 # what "hidden" libraries, object files and flags are used when
12004 # linking a shared library.
12005 #
12006 # There doesn't appear to be a way to prevent this compiler from
12007 # explicitly linking system object files so we need to strip them
12008 # from the output so that they don't get included in the library
12009 # dependencies.
12010 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'
12011 ;;
12012 *)
12013 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12014 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12015 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}${output_objdir}/so_locations -o $lib'
12016
12017 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12018 hardcode_libdir_separator_CXX=:
12019
12020 # Commands to make compiler produce verbose output that lists
12021 # what "hidden" libraries, object files and flags are used when
12022 # linking a shared library.
12023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12024
12025 else
12026 # FIXME: insert proper C++ library support
12027 ld_shlibs_CXX=no
12028 fi
12029 ;;
12030 esac
12031 ;;
12032 osf4* | osf5*)
12033 case $cc_basename in
12034 KCC*)
12035 # Kuck and Associates, Inc. (KAI) C++ Compiler
12036
12037 # KCC will only create a shared library if the output file
12038 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12039 # to its proper name (with version) after linking.
12040 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'
12041
12042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12043 hardcode_libdir_separator_CXX=:
12044
12045 # Archives containing C++ object files must be created using
12046 # the KAI C++ compiler.
12047 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12048 ;;
12049 RCC*)
12050 # Rational C++ 2.4.1
12051 # FIXME: insert proper C++ library support
12052 ld_shlibs_CXX=no
12053 ;;
12054 cxx*)
12055 allow_undefined_flag_CXX=' -expect_unresolved \*'
12056 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 ${output_objdir}/so_locations -o $lib'
12057 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12058 echo "-hidden">> $lib.exp~
12059 $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 ${output_objdir}/so_locations -o $lib~
12060 $rm $lib.exp'
12061
12062 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12063 hardcode_libdir_separator_CXX=:
12064
12065 # Commands to make compiler produce verbose output that lists
12066 # what "hidden" libraries, object files and flags are used when
12067 # linking a shared library.
12068 #
12069 # There doesn't appear to be a way to prevent this compiler from
12070 # explicitly linking system object files so we need to strip them
12071 # from the output so that they don't get included in the library
12072 # dependencies.
12073 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'
12074 ;;
12075 *)
12076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12077 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12078 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}${output_objdir}/so_locations -o $lib'
12079
12080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12081 hardcode_libdir_separator_CXX=:
12082
12083 # Commands to make compiler produce verbose output that lists
12084 # what "hidden" libraries, object files and flags are used when
12085 # linking a shared library.
12086 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12087
12088 else
12089 # FIXME: insert proper C++ library support
12090 ld_shlibs_CXX=no
12091 fi
12092 ;;
12093 esac
12094 ;;
12095 psos*)
12096 # FIXME: insert proper C++ library support
12097 ld_shlibs_CXX=no
12098 ;;
12099 sunos4*)
12100 case $cc_basename in
12101 CC*)
12102 # Sun C++ 4.x
12103 # FIXME: insert proper C++ library support
12104 ld_shlibs_CXX=no
12105 ;;
12106 lcc*)
12107 # Lucid
12108 # FIXME: insert proper C++ library support
12109 ld_shlibs_CXX=no
12110 ;;
12111 *)
12112 # FIXME: insert proper C++ library support
12113 ld_shlibs_CXX=no
12114 ;;
12115 esac
12116 ;;
12117 solaris*)
12118 case $cc_basename in
12119 CC*)
12120 # Sun C++ 4.2, 5.x and Centerline C++
12121 archive_cmds_need_lc_CXX=yes
12122 no_undefined_flag_CXX=' -zdefs'
12123 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12124 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12125 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12126
12127 hardcode_libdir_flag_spec_CXX='-R$libdir'
12128 hardcode_shlibpath_var_CXX=no
12129 case $host_os in
12130 solaris2.[0-5] | solaris2.[0-5].*) ;;
12131 *)
12132 # The C++ compiler is used as linker so we must use $wl
12133 # flag to pass the commands to the underlying system
12134 # linker. We must also pass each convience library through
12135 # to the system linker between allextract/defaultextract.
12136 # The C++ compiler will combine linker options so we
12137 # cannot just pass the convience library names through
12138 # without $wl.
12139 # Supported since Solaris 2.6 (maybe 2.5.1?)
12140 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12141 ;;
12142 esac
12143 link_all_deplibs_CXX=yes
12144
12145 output_verbose_link_cmd='echo'
12146
12147 # Archives containing C++ object files must be created using
12148 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12149 # necessary to make sure instantiated templates are included
12150 # in the archive.
12151 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12152 ;;
12153 gcx*)
12154 # Green Hills C++ Compiler
12155 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12156
12157 # The C++ compiler must be used to create the archive.
12158 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12159 ;;
12160 *)
12161 # GNU C++ compiler with Solaris linker
12162 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12163 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12164 if $CC --version | grep -v '^2\.7' > /dev/null; then
12165 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12166 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12167 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12168
12169 # Commands to make compiler produce verbose output that lists
12170 # what "hidden" libraries, object files and flags are used when
12171 # linking a shared library.
12172 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12173 else
12174 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12175 # platform.
12176 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12177 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12178 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12179
12180 # Commands to make compiler produce verbose output that lists
12181 # what "hidden" libraries, object files and flags are used when
12182 # linking a shared library.
12183 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12184 fi
12185
12186 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12187 fi
12188 ;;
12189 esac
12190 ;;
12191 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12192 no_undefined_flag_CXX='${wl}-z,text'
12193 archive_cmds_need_lc_CXX=no
12194 hardcode_shlibpath_var_CXX=no
12195 runpath_var='LD_RUN_PATH'
12196
12197 case $cc_basename in
12198 CC*)
12199 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12200 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12201 ;;
12202 *)
12203 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12204 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12205 ;;
12206 esac
12207 ;;
12208 sysv5* | sco3.2v5* | sco5v6*)
12209 # Note: We can NOT use -z defs as we might desire, because we do not
12210 # link with -lc, and that would cause any symbols used from libc to
12211 # always be unresolved, which means just about no library would
12212 # ever link correctly. If we're not using GNU ld we use -z text
12213 # though, which does catch some bad symbols but isn't as heavy-handed
12214 # as -z defs.
12215 # For security reasons, it is highly recommended that you always
12216 # use absolute paths for naming shared libraries, and exclude the
12217 # DT_RUNPATH tag from executables and libraries. But doing so
12218 # requires that you compile everything twice, which is a pain.
12219 # So that behaviour is only enabled if SCOABSPATH is set to a
12220 # non-empty value in the environment. Most likely only useful for
12221 # creating official distributions of packages.
12222 # This is a hack until libtool officially supports absolute path
12223 # names for shared libraries.
12224 no_undefined_flag_CXX='${wl}-z,text'
12225 allow_undefined_flag_CXX='${wl}-z,nodefs'
12226 archive_cmds_need_lc_CXX=no
12227 hardcode_shlibpath_var_CXX=no
12228 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12229 hardcode_libdir_separator_CXX=':'
12230 link_all_deplibs_CXX=yes
12231 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12232 runpath_var='LD_RUN_PATH'
12233
12234 case $cc_basename in
12235 CC*)
12236 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12237 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12238 ;;
12239 *)
12240 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12241 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12242 ;;
12243 esac
12244 ;;
12245 tandem*)
12246 case $cc_basename in
12247 NCC*)
12248 # NonStop-UX NCC 3.20
12249 # FIXME: insert proper C++ library support
12250 ld_shlibs_CXX=no
12251 ;;
12252 *)
12253 # FIXME: insert proper C++ library support
12254 ld_shlibs_CXX=no
12255 ;;
12256 esac
12257 ;;
12258 vxworks*)
12259 # FIXME: insert proper C++ library support
12260 ld_shlibs_CXX=no
12261 ;;
12262 *)
12263 # FIXME: insert proper C++ library support
12264 ld_shlibs_CXX=no
12265 ;;
12266esac
12267echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12268echo "${ECHO_T}$ld_shlibs_CXX" >&6
12269test "$ld_shlibs_CXX" = no && can_build_shared=no
12270
12271GCC_CXX="$GXX"
12272LD_CXX="$LD"
12273
12274
12275cat > conftest.$ac_ext <<EOF
12276class Foo
12277{
12278public:
12279 Foo (void) { a = 0; }
12280private:
12281 int a;
12282};
12283EOF
12284
12285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12286 (eval $ac_compile) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; then
12290 # Parse the compiler output and extract the necessary
12291 # objects, libraries and library flags.
12292
12293 # Sentinel used to keep track of whether or not we are before
12294 # the conftest object file.
12295 pre_test_object_deps_done=no
12296
12297 # The `*' in the case matches for architectures that use `case' in
12298 # $output_verbose_cmd can trigger glob expansion during the loop
12299 # eval without this substitution.
12300 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12301
12302 for p in `eval $output_verbose_link_cmd`; do
12303 case $p in
12304
12305 -L* | -R* | -l*)
12306 # Some compilers place space between "-{L,R}" and the path.
12307 # Remove the space.
12308 if test $p = "-L" \
12309 || test $p = "-R"; then
12310 prev=$p
12311 continue
12312 else
12313 prev=
12314 fi
12315
12316 if test "$pre_test_object_deps_done" = no; then
12317 case $p in
12318 -L* | -R*)
12319 # Internal compiler library paths should come after those
12320 # provided the user. The postdeps already come after the
12321 # user supplied libs so there is no need to process them.
12322 if test -z "$compiler_lib_search_path_CXX"; then
12323 compiler_lib_search_path_CXX="${prev}${p}"
12324 else
12325 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12326 fi
12327 ;;
12328 # The "-l" case would never come before the object being
12329 # linked, so don't bother handling this case.
12330 esac
12331 else
12332 if test -z "$postdeps_CXX"; then
12333 postdeps_CXX="${prev}${p}"
12334 else
12335 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12336 fi
12337 fi
12338 ;;
12339
12340 *.$objext)
12341 # This assumes that the test object file only shows up
12342 # once in the compiler output.
12343 if test "$p" = "conftest.$objext"; then
12344 pre_test_object_deps_done=yes
12345 continue
12346 fi
12347
12348 if test "$pre_test_object_deps_done" = no; then
12349 if test -z "$predep_objects_CXX"; then
12350 predep_objects_CXX="$p"
12351 else
12352 predep_objects_CXX="$predep_objects_CXX $p"
12353 fi
12354 else
12355 if test -z "$postdep_objects_CXX"; then
12356 postdep_objects_CXX="$p"
12357 else
12358 postdep_objects_CXX="$postdep_objects_CXX $p"
12359 fi
12360 fi
12361 ;;
12362
12363 *) ;; # Ignore the rest.
12364
12365 esac
12366 done
12367
12368 # Clean up.
12369 rm -f a.out a.exe
12370else
12371 echo "libtool.m4: error: problem compiling CXX test program"
12372fi
12373
12374$rm -f confest.$objext
12375
12376# PORTME: override above test on systems where it is broken
12377case $host_os in
12378interix3*)
12379 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12380 # hack all around it, let's just trust "g++" to DTRT.
12381 predep_objects_CXX=
12382 postdep_objects_CXX=
12383 postdeps_CXX=
12384 ;;
12385
12386solaris*)
12387 case $cc_basename in
12388 CC*)
12389 # Adding this requires a known-good setup of shared libraries for
12390 # Sun compiler versions before 5.6, else PIC objects from an old
12391 # archive will be linked into the output, leading to subtle bugs.
12392 postdeps_CXX='-lCstd -lCrun'
12393 ;;
12394 esac
12395 ;;
12396esac
12397
12398
12399case " $postdeps_CXX " in
12400*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12401esac
12402
12403lt_prog_compiler_wl_CXX=
12404lt_prog_compiler_pic_CXX=
12405lt_prog_compiler_static_CXX=
12406
12407echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12408echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12409
12410 # C++ specific cases for pic, static, wl, etc.
12411 if test "$GXX" = yes; then
12412 lt_prog_compiler_wl_CXX='-Wl,'
12413 lt_prog_compiler_static_CXX='-static'
12414
12415 case $host_os in
12416 aix*)
12417 # All AIX code is PIC.
12418 if test "$host_cpu" = ia64; then
12419 # AIX 5 now supports IA64 processor
12420 lt_prog_compiler_static_CXX='-Bstatic'
12421 fi
12422 ;;
12423 amigaos*)
12424 # FIXME: we need at least 68020 code to build shared libraries, but
12425 # adding the `-m68020' flag to GCC prevents building anything better,
12426 # like `-m68040'.
12427 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12428 ;;
12429 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12430 # PIC is the default for these OSes.
12431 ;;
12432 mingw* | os2* | pw32*)
12433 # This hack is so that the source file can tell whether it is being
12434 # built for inclusion in a dll (and should export symbols for example).
12435 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12436 ;;
12437 darwin* | rhapsody*)
12438 # PIC is the default on this platform
12439 # Common symbols not allowed in MH_DYLIB files
12440 lt_prog_compiler_pic_CXX='-fno-common'
12441 ;;
12442 *djgpp*)
12443 # DJGPP does not support shared libraries at all
12444 lt_prog_compiler_pic_CXX=
12445 ;;
12446 interix3*)
12447 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12448 # Instead, we relocate shared libraries at runtime.
12449 ;;
12450 sysv4*MP*)
12451 if test -d /usr/nec; then
12452 lt_prog_compiler_pic_CXX=-Kconform_pic
12453 fi
12454 ;;
12455 hpux*)
12456 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12457 # not for PA HP-UX.
12458 case $host_cpu in
12459 hppa*64*|ia64*)
12460 ;;
12461 *)
12462 lt_prog_compiler_pic_CXX='-fPIC'
12463 ;;
12464 esac
12465 ;;
12466 *)
12467 lt_prog_compiler_pic_CXX='-fPIC'
12468 ;;
12469 esac
12470 else
12471 case $host_os in
12472 aix4* | aix5*)
12473 # All AIX code is PIC.
12474 if test "$host_cpu" = ia64; then
12475 # AIX 5 now supports IA64 processor
12476 lt_prog_compiler_static_CXX='-Bstatic'
12477 else
12478 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12479 fi
12480 ;;
12481 chorus*)
12482 case $cc_basename in
12483 cxch68*)
12484 # Green Hills C++ Compiler
12485 # _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"
12486 ;;
12487 esac
12488 ;;
12489 darwin*)
12490 # PIC is the default on this platform
12491 # Common symbols not allowed in MH_DYLIB files
12492 case $cc_basename in
12493 xlc*)
12494 lt_prog_compiler_pic_CXX='-qnocommon'
12495 lt_prog_compiler_wl_CXX='-Wl,'
12496 ;;
12497 esac
12498 ;;
12499 dgux*)
12500 case $cc_basename in
12501 ec++*)
12502 lt_prog_compiler_pic_CXX='-KPIC'
12503 ;;
12504 ghcx*)
12505 # Green Hills C++ Compiler
12506 lt_prog_compiler_pic_CXX='-pic'
12507 ;;
12508 *)
12509 ;;
12510 esac
12511 ;;
12512 freebsd* | kfreebsd*-gnu | dragonfly*)
12513 # FreeBSD uses GNU C++
12514 ;;
12515 hpux9* | hpux10* | hpux11*)
12516 case $cc_basename in
12517 CC*)
12518 lt_prog_compiler_wl_CXX='-Wl,'
12519 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12520 if test "$host_cpu" != ia64; then
12521 lt_prog_compiler_pic_CXX='+Z'
12522 fi
12523 ;;
12524 aCC*)
12525 lt_prog_compiler_wl_CXX='-Wl,'
12526 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12527 case $host_cpu in
12528 hppa*64*|ia64*)
12529 # +Z the default
12530 ;;
12531 *)
12532 lt_prog_compiler_pic_CXX='+Z'
12533 ;;
12534 esac
12535 ;;
12536 *)
12537 ;;
12538 esac
12539 ;;
12540 interix*)
12541 # This is c89, which is MS Visual C++ (no shared libs)
12542 # Anyone wants to do a port?
12543 ;;
12544 irix5* | irix6* | nonstopux*)
12545 case $cc_basename in
12546 CC*)
12547 lt_prog_compiler_wl_CXX='-Wl,'
12548 lt_prog_compiler_static_CXX='-non_shared'
12549 # CC pic flag -KPIC is the default.
12550 ;;
12551 *)
12552 ;;
12553 esac
12554 ;;
12555 linux*)
12556 case $cc_basename in
12557 KCC*)
12558 # KAI C++ Compiler
12559 lt_prog_compiler_wl_CXX='--backend -Wl,'
12560 lt_prog_compiler_pic_CXX='-fPIC'
12561 ;;
12562 icpc* | ecpc*)
12563 # Intel C++
12564 lt_prog_compiler_wl_CXX='-Wl,'
12565 lt_prog_compiler_pic_CXX='-KPIC'
12566 lt_prog_compiler_static_CXX='-static'
12567 ;;
12568 pgCC*)
12569 # Portland Group C++ compiler.
12570 lt_prog_compiler_wl_CXX='-Wl,'
12571 lt_prog_compiler_pic_CXX='-fpic'
12572 lt_prog_compiler_static_CXX='-Bstatic'
12573 ;;
12574 cxx*)
12575 # Compaq C++
12576 # Make sure the PIC flag is empty. It appears that all Alpha
12577 # Linux and Compaq Tru64 Unix objects are PIC.
12578 lt_prog_compiler_pic_CXX=
12579 lt_prog_compiler_static_CXX='-non_shared'
12580 ;;
12581 *)
12582 ;;
12583 esac
12584 ;;
12585 lynxos*)
12586 ;;
12587 m88k*)
12588 ;;
12589 mvs*)
12590 case $cc_basename in
12591 cxx*)
12592 lt_prog_compiler_pic_CXX='-W c,exportall'
12593 ;;
12594 *)
12595 ;;
12596 esac
12597 ;;
12598 netbsd*)
12599 ;;
12600 osf3* | osf4* | osf5*)
12601 case $cc_basename in
12602 KCC*)
12603 lt_prog_compiler_wl_CXX='--backend -Wl,'
12604 ;;
12605 RCC*)
12606 # Rational C++ 2.4.1
12607 lt_prog_compiler_pic_CXX='-pic'
12608 ;;
12609 cxx*)
12610 # Digital/Compaq C++
12611 lt_prog_compiler_wl_CXX='-Wl,'
12612 # Make sure the PIC flag is empty. It appears that all Alpha
12613 # Linux and Compaq Tru64 Unix objects are PIC.
12614 lt_prog_compiler_pic_CXX=
12615 lt_prog_compiler_static_CXX='-non_shared'
12616 ;;
12617 *)
12618 ;;
12619 esac
12620 ;;
12621 psos*)
12622 ;;
12623 solaris*)
12624 case $cc_basename in
12625 CC*)
12626 # Sun C++ 4.2, 5.x and Centerline C++
12627 lt_prog_compiler_pic_CXX='-KPIC'
12628 lt_prog_compiler_static_CXX='-Bstatic'
12629 lt_prog_compiler_wl_CXX='-Qoption ld '
12630 ;;
12631 gcx*)
12632 # Green Hills C++ Compiler
12633 lt_prog_compiler_pic_CXX='-PIC'
12634 ;;
12635 *)
12636 ;;
12637 esac
12638 ;;
12639 sunos4*)
12640 case $cc_basename in
12641 CC*)
12642 # Sun C++ 4.x
12643 lt_prog_compiler_pic_CXX='-pic'
12644 lt_prog_compiler_static_CXX='-Bstatic'
12645 ;;
12646 lcc*)
12647 # Lucid
12648 lt_prog_compiler_pic_CXX='-pic'
12649 ;;
12650 *)
12651 ;;
12652 esac
12653 ;;
12654 tandem*)
12655 case $cc_basename in
12656 NCC*)
12657 # NonStop-UX NCC 3.20
12658 lt_prog_compiler_pic_CXX='-KPIC'
12659 ;;
12660 *)
12661 ;;
12662 esac
12663 ;;
12664 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12665 case $cc_basename in
12666 CC*)
12667 lt_prog_compiler_wl_CXX='-Wl,'
12668 lt_prog_compiler_pic_CXX='-KPIC'
12669 lt_prog_compiler_static_CXX='-Bstatic'
12670 ;;
12671 esac
12672 ;;
12673 vxworks*)
12674 ;;
12675 *)
12676 lt_prog_compiler_can_build_shared_CXX=no
12677 ;;
12678 esac
12679 fi
12680
12681echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12682echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12683
12684#
12685# Check to make sure the PIC flag actually works.
12686#
12687if test -n "$lt_prog_compiler_pic_CXX"; then
12688
12689echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12690echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12691if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693else
12694 lt_prog_compiler_pic_works_CXX=no
12695 ac_outfile=conftest.$ac_objext
12696 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12697 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12698 # Insert the option either (1) after the last *FLAGS variable, or
12699 # (2) before a word containing "conftest.", or (3) at the end.
12700 # Note that $ac_compile itself does not contain backslashes and begins
12701 # with a dollar sign (not a hyphen), so the echo should work correctly.
12702 # The option is referenced via a variable to avoid confusing sed.
12703 lt_compile=`echo "$ac_compile" | $SED \
12704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12706 -e 's:$: $lt_compiler_flag:'`
12707 (eval echo "\"\$as_me:12707: $lt_compile\"" >&5)
12708 (eval "$lt_compile" 2>conftest.err)
12709 ac_status=$?
12710 cat conftest.err >&5
12711 echo "$as_me:12711: \$? = $ac_status" >&5
12712 if (exit $ac_status) && test -s "$ac_outfile"; then
12713 # The compiler can only warn and ignore the option if not recognized
12714 # So say no if there are warnings other than the usual output.
12715 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12718 lt_prog_compiler_pic_works_CXX=yes
12719 fi
12720 fi
12721 $rm conftest*
12722
12723fi
12724echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12725echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12726
12727if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12728 case $lt_prog_compiler_pic_CXX in
12729 "" | " "*) ;;
12730 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12731 esac
12732else
12733 lt_prog_compiler_pic_CXX=
12734 lt_prog_compiler_can_build_shared_CXX=no
12735fi
12736
12737fi
12738case $host_os in
12739 # For platforms which do not support PIC, -DPIC is meaningless:
12740 *djgpp*)
12741 lt_prog_compiler_pic_CXX=
12742 ;;
12743 *)
12744 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12745 ;;
12746esac
12747
12748#
12749# Check to make sure the static flag actually works.
12750#
12751wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12752echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12753echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12754if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12755 echo $ECHO_N "(cached) $ECHO_C" >&6
12756else
12757 lt_prog_compiler_static_works_CXX=no
12758 save_LDFLAGS="$LDFLAGS"
12759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12760 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12762 # The linker can only warn and ignore the option if not recognized
12763 # So say no if there are warnings
12764 if test -s conftest.err; then
12765 # Append any errors to the config.log.
12766 cat conftest.err 1>&5
12767 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12769 if diff conftest.exp conftest.er2 >/dev/null; then
12770 lt_prog_compiler_static_works_CXX=yes
12771 fi
12772 else
12773 lt_prog_compiler_static_works_CXX=yes
12774 fi
12775 fi
12776 $rm conftest*
12777 LDFLAGS="$save_LDFLAGS"
12778
12779fi
12780echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12781echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12782
12783if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12784 :
12785else
12786 lt_prog_compiler_static_CXX=
12787fi
12788
12789
12790echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12791echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12792if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12794else
12795 lt_cv_prog_compiler_c_o_CXX=no
12796 $rm -r conftest 2>/dev/null
12797 mkdir conftest
12798 cd conftest
12799 mkdir out
12800 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12801
12802 lt_compiler_flag="-o out/conftest2.$ac_objext"
12803 # Insert the option either (1) after the last *FLAGS variable, or
12804 # (2) before a word containing "conftest.", or (3) at the end.
12805 # Note that $ac_compile itself does not contain backslashes and begins
12806 # with a dollar sign (not a hyphen), so the echo should work correctly.
12807 lt_compile=`echo "$ac_compile" | $SED \
12808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12810 -e 's:$: $lt_compiler_flag:'`
12811 (eval echo "\"\$as_me:12811: $lt_compile\"" >&5)
12812 (eval "$lt_compile" 2>out/conftest.err)
12813 ac_status=$?
12814 cat out/conftest.err >&5
12815 echo "$as_me:12815: \$? = $ac_status" >&5
12816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12817 then
12818 # The compiler can only warn and ignore the option if not recognized
12819 # So say no if there are warnings
12820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12823 lt_cv_prog_compiler_c_o_CXX=yes
12824 fi
12825 fi
12826 chmod u+w . 2>&5
12827 $rm conftest*
12828 # SGI C++ compiler will create directory out/ii_files/ for
12829 # template instantiation
12830 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12831 $rm out/* && rmdir out
12832 cd ..
12833 rmdir conftest
12834 $rm conftest*
12835
12836fi
12837echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12838echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12839
12840
12841hard_links="nottested"
12842if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12843 # do not overwrite the value of need_locks provided by the user
12844 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12845echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12846 hard_links=yes
12847 $rm conftest*
12848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12849 touch conftest.a
12850 ln conftest.a conftest.b 2>&5 || hard_links=no
12851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12852 echo "$as_me:$LINENO: result: $hard_links" >&5
12853echo "${ECHO_T}$hard_links" >&6
12854 if test "$hard_links" = no; then
12855 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12856echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12857 need_locks=warn
12858 fi
12859else
12860 need_locks=no
12861fi
12862
12863echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12864echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12865
12866 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12867 case $host_os in
12868 aix4* | aix5*)
12869 # If we're using GNU nm, then we don't want the "-C" option.
12870 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12871 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12872 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'
12873 else
12874 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'
12875 fi
12876 ;;
12877 pw32*)
12878 export_symbols_cmds_CXX="$ltdll_cmds"
12879 ;;
12880 cygwin* | mingw*)
12881 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12882 ;;
12883 *)
12884 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12885 ;;
12886 esac
12887
12888echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12889echo "${ECHO_T}$ld_shlibs_CXX" >&6
12890test "$ld_shlibs_CXX" = no && can_build_shared=no
12891
12892#
12893# Do we need to explicitly link libc?
12894#
12895case "x$archive_cmds_need_lc_CXX" in
12896x|xyes)
12897 # Assume -lc should be added
12898 archive_cmds_need_lc_CXX=yes
12899
12900 if test "$enable_shared" = yes && test "$GCC" = yes; then
12901 case $archive_cmds_CXX in
12902 *'~'*)
12903 # FIXME: we may have to deal with multi-command sequences.
12904 ;;
12905 '$CC '*)
12906 # Test whether the compiler implicitly links with -lc since on some
12907 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12908 # to ld, don't add -lc before -lgcc.
12909 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12910echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12911 $rm conftest*
12912 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12913
12914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12915 (eval $ac_compile) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } 2>conftest.err; then
12919 soname=conftest
12920 lib=conftest
12921 libobjs=conftest.$ac_objext
12922 deplibs=
12923 wl=$lt_prog_compiler_wl_CXX
12924 pic_flag=$lt_prog_compiler_pic_CXX
12925 compiler_flags=-v
12926 linker_flags=-v
12927 verstring=
12928 output_objdir=.
12929 libname=conftest
12930 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12931 allow_undefined_flag_CXX=
12932 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12933 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }
12937 then
12938 archive_cmds_need_lc_CXX=no
12939 else
12940 archive_cmds_need_lc_CXX=yes
12941 fi
12942 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12943 else
12944 cat conftest.err 1>&5
12945 fi
12946 $rm conftest*
12947 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12948echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12949 ;;
12950 esac
12951 fi
12952 ;;
12953esac
12954
12955echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12956echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12957library_names_spec=
12958libname_spec='lib$name'
12959soname_spec=
12960shrext_cmds=".so"
12961postinstall_cmds=
12962postuninstall_cmds=
12963finish_cmds=
12964finish_eval=
12965shlibpath_var=
12966shlibpath_overrides_runpath=unknown
12967version_type=none
12968dynamic_linker="$host_os ld.so"
12969sys_lib_dlsearch_path_spec="/lib /usr/lib"
12970if test "$GCC" = yes; then
12971 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12972 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12973 # if the path contains ";" then we assume it to be the separator
12974 # otherwise default to the standard path separator (i.e. ":") - it is
12975 # assumed that no part of a normal pathname contains ";" but that should
12976 # okay in the real world where ";" in dirpaths is itself problematic.
12977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12978 else
12979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12980 fi
12981else
12982 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12983fi
12984need_lib_prefix=unknown
12985hardcode_into_libs=no
12986
12987# when you set need_version to no, make sure it does not cause -set_version
12988# flags to be left without arguments
12989need_version=unknown
12990
12991case $host_os in
12992aix3*)
12993 version_type=linux
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12995 shlibpath_var=LIBPATH
12996
12997 # AIX 3 has no versioning support, so we append a major version to the name.
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 ;;
13000
13001aix4* | aix5*)
13002 version_type=linux
13003 need_lib_prefix=no
13004 need_version=no
13005 hardcode_into_libs=yes
13006 if test "$host_cpu" = ia64; then
13007 # AIX 5 supports IA64
13008 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13009 shlibpath_var=LD_LIBRARY_PATH
13010 else
13011 # With GCC up to 2.95.x, collect2 would create an import file
13012 # for dependence libraries. The import file would start with
13013 # the line `#! .'. This would cause the generated library to
13014 # depend on `.', always an invalid library. This was fixed in
13015 # development snapshots of GCC prior to 3.0.
13016 case $host_os in
13017 aix4 | aix4.[01] | aix4.[01].*)
13018 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13019 echo ' yes '
13020 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13021 :
13022 else
13023 can_build_shared=no
13024 fi
13025 ;;
13026 esac
13027 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13028 # soname into executable. Probably we can add versioning support to
13029 # collect2, so additional links can be useful in future.
13030 if test "$aix_use_runtimelinking" = yes; then
13031 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13032 # instead of lib<name>.a to let people know that these are not
13033 # typical AIX shared libraries.
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13035 else
13036 # We preserve .a as extension for shared libraries through AIX4.2
13037 # and later when we are not doing run time linking.
13038 library_names_spec='${libname}${release}.a $libname.a'
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 fi
13041 shlibpath_var=LIBPATH
13042 fi
13043 ;;
13044
13045amigaos*)
13046 library_names_spec='$libname.ixlibrary $libname.a'
13047 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13048 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'
13049 ;;
13050
13051beos*)
13052 library_names_spec='${libname}${shared_ext}'
13053 dynamic_linker="$host_os ld.so"
13054 shlibpath_var=LIBRARY_PATH
13055 ;;
13056
13057bsdi[45]*)
13058 version_type=linux
13059 need_version=no
13060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13061 soname_spec='${libname}${release}${shared_ext}$major'
13062 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13063 shlibpath_var=LD_LIBRARY_PATH
13064 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13065 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13066 # the default ld.so.conf also contains /usr/contrib/lib and
13067 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13068 # libtool to hard-code these into programs
13069 ;;
13070
13071cygwin* | mingw* | pw32*)
13072 version_type=windows
13073 shrext_cmds=".dll"
13074 need_version=no
13075 need_lib_prefix=no
13076
13077 case $GCC,$host_os in
13078 yes,cygwin* | yes,mingw* | yes,pw32*)
13079 library_names_spec='$libname.dll.a'
13080 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13081 postinstall_cmds='base_file=`basename \${file}`~
13082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13083 dldir=$destdir/`dirname \$dlpath`~
13084 test -d \$dldir || mkdir -p \$dldir~
13085 $install_prog $dir/$dlname \$dldir/$dlname~
13086 chmod a+x \$dldir/$dlname'
13087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13088 dlpath=$dir/\$dldll~
13089 $rm \$dlpath'
13090 shlibpath_overrides_runpath=yes
13091
13092 case $host_os in
13093 cygwin*)
13094 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13095 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13096 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13097 ;;
13098 mingw*)
13099 # MinGW DLLs use traditional 'lib' prefix
13100 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13101 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13102 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13103 # It is most probably a Windows format PATH printed by
13104 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13105 # path with ; separators, and with drive letters. We can handle the
13106 # drive letters (cygwin fileutils understands them), so leave them,
13107 # especially as we might pass files found there to a mingw objdump,
13108 # which wouldn't understand a cygwinified path. Ahh.
13109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13110 else
13111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13112 fi
13113 ;;
13114 pw32*)
13115 # pw32 DLLs use 'pw' prefix rather than 'lib'
13116 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13117 ;;
13118 esac
13119 ;;
13120
13121 *)
13122 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13123 ;;
13124 esac
13125 dynamic_linker='Win32 ld.exe'
13126 # FIXME: first we should search . and the directory the executable is in
13127 shlibpath_var=PATH
13128 ;;
13129
13130darwin* | rhapsody*)
13131 dynamic_linker="$host_os dyld"
13132 version_type=darwin
13133 need_lib_prefix=no
13134 need_version=no
13135 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13136 soname_spec='${libname}${release}${major}$shared_ext'
13137 shlibpath_overrides_runpath=yes
13138 shlibpath_var=DYLD_LIBRARY_PATH
13139 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13140 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13141 if test "$GCC" = yes; then
13142 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"`
13143 else
13144 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13145 fi
13146 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13147 ;;
13148
13149dgux*)
13150 version_type=linux
13151 need_lib_prefix=no
13152 need_version=no
13153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13154 soname_spec='${libname}${release}${shared_ext}$major'
13155 shlibpath_var=LD_LIBRARY_PATH
13156 ;;
13157
13158freebsd1*)
13159 dynamic_linker=no
13160 ;;
13161
13162kfreebsd*-gnu)
13163 version_type=linux
13164 need_lib_prefix=no
13165 need_version=no
13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13167 soname_spec='${libname}${release}${shared_ext}$major'
13168 shlibpath_var=LD_LIBRARY_PATH
13169 shlibpath_overrides_runpath=no
13170 hardcode_into_libs=yes
13171 dynamic_linker='GNU ld.so'
13172 ;;
13173
13174freebsd* | dragonfly*)
13175 # DragonFly does not have aout. When/if they implement a new
13176 # versioning mechanism, adjust this.
13177 if test -x /usr/bin/objformat; then
13178 objformat=`/usr/bin/objformat`
13179 else
13180 case $host_os in
13181 freebsd[123]*) objformat=aout ;;
13182 *) objformat=elf ;;
13183 esac
13184 fi
13185 version_type=freebsd-$objformat
13186 case $version_type in
13187 freebsd-elf*)
13188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13189 need_version=no
13190 need_lib_prefix=no
13191 ;;
13192 freebsd-*)
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13194 need_version=yes
13195 ;;
13196 esac
13197 shlibpath_var=LD_LIBRARY_PATH
13198 case $host_os in
13199 freebsd2*)
13200 shlibpath_overrides_runpath=yes
13201 ;;
13202 freebsd3.[01]* | freebsdelf3.[01]*)
13203 shlibpath_overrides_runpath=yes
13204 hardcode_into_libs=yes
13205 ;;
13206 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13207 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13208 shlibpath_overrides_runpath=no
13209 hardcode_into_libs=yes
13210 ;;
13211 freebsd*) # from 4.6 on
13212 shlibpath_overrides_runpath=yes
13213 hardcode_into_libs=yes
13214 ;;
13215 esac
13216 ;;
13217
13218gnu*)
13219 version_type=linux
13220 need_lib_prefix=no
13221 need_version=no
13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13223 soname_spec='${libname}${release}${shared_ext}$major'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 hardcode_into_libs=yes
13226 ;;
13227
13228hpux9* | hpux10* | hpux11*)
13229 # Give a soname corresponding to the major version so that dld.sl refuses to
13230 # link against other versions.
13231 version_type=sunos
13232 need_lib_prefix=no
13233 need_version=no
13234 case $host_cpu in
13235 ia64*)
13236 shrext_cmds='.so'
13237 hardcode_into_libs=yes
13238 dynamic_linker="$host_os dld.so"
13239 shlibpath_var=LD_LIBRARY_PATH
13240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13242 soname_spec='${libname}${release}${shared_ext}$major'
13243 if test "X$HPUX_IA64_MODE" = X32; then
13244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13245 else
13246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13247 fi
13248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13249 ;;
13250 hppa*64*)
13251 shrext_cmds='.sl'
13252 hardcode_into_libs=yes
13253 dynamic_linker="$host_os dld.sl"
13254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13257 soname_spec='${libname}${release}${shared_ext}$major'
13258 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13260 ;;
13261 *)
13262 shrext_cmds='.sl'
13263 dynamic_linker="$host_os dld.sl"
13264 shlibpath_var=SHLIB_PATH
13265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 ;;
13269 esac
13270 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13271 postinstall_cmds='chmod 555 $lib'
13272 ;;
13273
13274interix3*)
13275 version_type=linux
13276 need_lib_prefix=no
13277 need_version=no
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13281 shlibpath_var=LD_LIBRARY_PATH
13282 shlibpath_overrides_runpath=no
13283 hardcode_into_libs=yes
13284 ;;
13285
13286irix5* | irix6* | nonstopux*)
13287 case $host_os in
13288 nonstopux*) version_type=nonstopux ;;
13289 *)
13290 if test "$lt_cv_prog_gnu_ld" = yes; then
13291 version_type=linux
13292 else
13293 version_type=irix
13294 fi ;;
13295 esac
13296 need_lib_prefix=no
13297 need_version=no
13298 soname_spec='${libname}${release}${shared_ext}$major'
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13300 case $host_os in
13301 irix5* | nonstopux*)
13302 libsuff= shlibsuff=
13303 ;;
13304 *)
13305 case $LD in # libtool.m4 will add one of these switches to LD
13306 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13307 libsuff= shlibsuff= libmagic=32-bit;;
13308 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13309 libsuff=32 shlibsuff=N32 libmagic=N32;;
13310 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13311 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13312 *) libsuff= shlibsuff= libmagic=never-match;;
13313 esac
13314 ;;
13315 esac
13316 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13317 shlibpath_overrides_runpath=no
13318 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13319 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13320 hardcode_into_libs=yes
13321 ;;
13322
13323# No shared lib support for Linux oldld, aout, or coff.
13324linux*oldld* | linux*aout* | linux*coff*)
13325 dynamic_linker=no
13326 ;;
13327
13328# This must be Linux ELF.
13329linux*)
13330 version_type=linux
13331 need_lib_prefix=no
13332 need_version=no
13333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13334 soname_spec='${libname}${release}${shared_ext}$major'
13335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13336 shlibpath_var=LD_LIBRARY_PATH
13337 shlibpath_overrides_runpath=no
13338 # This implies no fast_install, which is unacceptable.
13339 # Some rework will be needed to allow for fast_install
13340 # before this can be enabled.
13341 hardcode_into_libs=yes
13342
13343 # find out which ABI we are using
13344 libsuff=
13345 case "$host_cpu" in
13346 x86_64*|s390x*|powerpc64*)
13347 echo '#line 13347 "configure"' > conftest.$ac_ext
13348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13349 (eval $ac_compile) 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; then
13353 case `/usr/bin/file conftest.$ac_objext` in
13354 *64-bit*)
13355 libsuff=64
13356 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13357 ;;
13358 esac
13359 fi
13360 rm -rf conftest*
13361 ;;
13362 esac
13363
13364 # Append ld.so.conf contents to the search path
13365 if test -f /etc/ld.so.conf; then
13366 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13367 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13368 fi
13369
13370 # We used to test for /lib/ld.so.1 and disable shared libraries on
13371 # powerpc, because MkLinux only supported shared libraries with the
13372 # GNU dynamic linker. Since this was broken with cross compilers,
13373 # most powerpc-linux boxes support dynamic linking these days and
13374 # people can always --disable-shared, the test was removed, and we
13375 # assume the GNU/Linux dynamic linker is in use.
13376 dynamic_linker='GNU/Linux ld.so'
13377 ;;
13378
13379knetbsd*-gnu)
13380 version_type=linux
13381 need_lib_prefix=no
13382 need_version=no
13383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13384 soname_spec='${libname}${release}${shared_ext}$major'
13385 shlibpath_var=LD_LIBRARY_PATH
13386 shlibpath_overrides_runpath=no
13387 hardcode_into_libs=yes
13388 dynamic_linker='GNU ld.so'
13389 ;;
13390
13391netbsd*)
13392 version_type=sunos
13393 need_lib_prefix=no
13394 need_version=no
13395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13398 dynamic_linker='NetBSD (a.out) ld.so'
13399 else
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13401 soname_spec='${libname}${release}${shared_ext}$major'
13402 dynamic_linker='NetBSD ld.elf_so'
13403 fi
13404 shlibpath_var=LD_LIBRARY_PATH
13405 shlibpath_overrides_runpath=yes
13406 hardcode_into_libs=yes
13407 ;;
13408
13409newsos6)
13410 version_type=linux
13411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13412 shlibpath_var=LD_LIBRARY_PATH
13413 shlibpath_overrides_runpath=yes
13414 ;;
13415
13416nto-qnx*)
13417 version_type=linux
13418 need_lib_prefix=no
13419 need_version=no
13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13421 soname_spec='${libname}${release}${shared_ext}$major'
13422 shlibpath_var=LD_LIBRARY_PATH
13423 shlibpath_overrides_runpath=yes
13424 ;;
13425
13426openbsd*)
13427 version_type=sunos
13428 sys_lib_dlsearch_path_spec="/usr/lib"
13429 need_lib_prefix=no
13430 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13431 case $host_os in
13432 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13433 *) need_version=no ;;
13434 esac
13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13437 shlibpath_var=LD_LIBRARY_PATH
13438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13439 case $host_os in
13440 openbsd2.[89] | openbsd2.[89].*)
13441 shlibpath_overrides_runpath=no
13442 ;;
13443 *)
13444 shlibpath_overrides_runpath=yes
13445 ;;
13446 esac
13447 else
13448 shlibpath_overrides_runpath=yes
13449 fi
13450 ;;
13451
13452os2*)
13453 libname_spec='$name'
13454 shrext_cmds=".dll"
13455 need_lib_prefix=no
13456 library_names_spec='$libname${shared_ext} $libname.a'
13457 dynamic_linker='OS/2 ld.exe'
13458 shlibpath_var=LIBPATH
13459 ;;
13460
13461osf3* | osf4* | osf5*)
13462 version_type=osf
13463 need_lib_prefix=no
13464 need_version=no
13465 soname_spec='${libname}${release}${shared_ext}$major'
13466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13469 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13470 ;;
13471
13472solaris*)
13473 version_type=linux
13474 need_lib_prefix=no
13475 need_version=no
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477 soname_spec='${libname}${release}${shared_ext}$major'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 shlibpath_overrides_runpath=yes
13480 hardcode_into_libs=yes
13481 # ldd complains unless libraries are executable
13482 postinstall_cmds='chmod +x $lib'
13483 ;;
13484
13485sunos4*)
13486 version_type=sunos
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13489 shlibpath_var=LD_LIBRARY_PATH
13490 shlibpath_overrides_runpath=yes
13491 if test "$with_gnu_ld" = yes; then
13492 need_lib_prefix=no
13493 fi
13494 need_version=yes
13495 ;;
13496
13497sysv4 | sysv4.3*)
13498 version_type=linux
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500 soname_spec='${libname}${release}${shared_ext}$major'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 case $host_vendor in
13503 sni)
13504 shlibpath_overrides_runpath=no
13505 need_lib_prefix=no
13506 export_dynamic_flag_spec='${wl}-Blargedynsym'
13507 runpath_var=LD_RUN_PATH
13508 ;;
13509 siemens)
13510 need_lib_prefix=no
13511 ;;
13512 motorola)
13513 need_lib_prefix=no
13514 need_version=no
13515 shlibpath_overrides_runpath=no
13516 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13517 ;;
13518 esac
13519 ;;
13520
13521sysv4*MP*)
13522 if test -d /usr/nec ;then
13523 version_type=linux
13524 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13525 soname_spec='$libname${shared_ext}.$major'
13526 shlibpath_var=LD_LIBRARY_PATH
13527 fi
13528 ;;
13529
13530sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13531 version_type=freebsd-elf
13532 need_lib_prefix=no
13533 need_version=no
13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13535 soname_spec='${libname}${release}${shared_ext}$major'
13536 shlibpath_var=LD_LIBRARY_PATH
13537 hardcode_into_libs=yes
13538 if test "$with_gnu_ld" = yes; then
13539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13540 shlibpath_overrides_runpath=no
13541 else
13542 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13543 shlibpath_overrides_runpath=yes
13544 case $host_os in
13545 sco3.2v5*)
13546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13547 ;;
13548 esac
13549 fi
13550 sys_lib_dlsearch_path_spec='/usr/lib'
13551 ;;
13552
13553uts4*)
13554 version_type=linux
13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556 soname_spec='${libname}${release}${shared_ext}$major'
13557 shlibpath_var=LD_LIBRARY_PATH
13558 ;;
13559
13560*)
13561 dynamic_linker=no
13562 ;;
13563esac
13564echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13565echo "${ECHO_T}$dynamic_linker" >&6
13566test "$dynamic_linker" = no && can_build_shared=no
13567
13568variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13569if test "$GCC" = yes; then
13570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13571fi
13572
13573echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13574echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13575hardcode_action_CXX=
13576if test -n "$hardcode_libdir_flag_spec_CXX" || \
13577 test -n "$runpath_var_CXX" || \
13578 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13579
13580 # We can hardcode non-existant directories.
13581 if test "$hardcode_direct_CXX" != no &&
13582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13583 # have to relink, otherwise we might link with an installed library
13584 # when we should be linking with a yet-to-be-installed one
13585 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13586 test "$hardcode_minus_L_CXX" != no; then
13587 # Linking always hardcodes the temporary library directory.
13588 hardcode_action_CXX=relink
13589 else
13590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13591 hardcode_action_CXX=immediate
13592 fi
13593else
13594 # We cannot hardcode anything, or else we can only hardcode existing
13595 # directories.
13596 hardcode_action_CXX=unsupported
13597fi
13598echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13599echo "${ECHO_T}$hardcode_action_CXX" >&6
13600
13601if test "$hardcode_action_CXX" = relink; then
13602 # Fast installation is not supported
13603 enable_fast_install=no
13604elif test "$shlibpath_overrides_runpath" = yes ||
13605 test "$enable_shared" = no; then
13606 # Fast installation is not necessary
13607 enable_fast_install=needless
13608fi
13609
13610
13611# The else clause should only fire when bootstrapping the
13612# libtool distribution, otherwise you forgot to ship ltmain.sh
13613# with your package, and you will get complaints that there are
13614# no rules to generate ltmain.sh.
13615if test -f "$ltmain"; then
13616 # See if we are running on zsh, and set the options which allow our commands through
13617 # without removal of \ escapes.
13618 if test -n "${ZSH_VERSION+set}" ; then
13619 setopt NO_GLOB_SUBST
13620 fi
13621 # Now quote all the things that may contain metacharacters while being
13622 # careful not to overquote the AC_SUBSTed values. We take copies of the
13623 # variables and quote the copies for generation of the libtool script.
13624 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13625 SED SHELL STRIP \
13626 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13627 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13628 deplibs_check_method reload_flag reload_cmds need_locks \
13629 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13630 lt_cv_sys_global_symbol_to_c_name_address \
13631 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13632 old_postinstall_cmds old_postuninstall_cmds \
13633 compiler_CXX \
13634 CC_CXX \
13635 LD_CXX \
13636 lt_prog_compiler_wl_CXX \
13637 lt_prog_compiler_pic_CXX \
13638 lt_prog_compiler_static_CXX \
13639 lt_prog_compiler_no_builtin_flag_CXX \
13640 export_dynamic_flag_spec_CXX \
13641 thread_safe_flag_spec_CXX \
13642 whole_archive_flag_spec_CXX \
13643 enable_shared_with_static_runtimes_CXX \
13644 old_archive_cmds_CXX \
13645 old_archive_from_new_cmds_CXX \
13646 predep_objects_CXX \
13647 postdep_objects_CXX \
13648 predeps_CXX \
13649 postdeps_CXX \
13650 compiler_lib_search_path_CXX \
13651 archive_cmds_CXX \
13652 archive_expsym_cmds_CXX \
13653 postinstall_cmds_CXX \
13654 postuninstall_cmds_CXX \
13655 old_archive_from_expsyms_cmds_CXX \
13656 allow_undefined_flag_CXX \
13657 no_undefined_flag_CXX \
13658 export_symbols_cmds_CXX \
13659 hardcode_libdir_flag_spec_CXX \
13660 hardcode_libdir_flag_spec_ld_CXX \
13661 hardcode_libdir_separator_CXX \
13662 hardcode_automatic_CXX \
13663 module_cmds_CXX \
13664 module_expsym_cmds_CXX \
13665 lt_cv_prog_compiler_c_o_CXX \
13666 exclude_expsyms_CXX \
13667 include_expsyms_CXX; do
13668
13669 case $var in
13670 old_archive_cmds_CXX | \
13671 old_archive_from_new_cmds_CXX | \
13672 archive_cmds_CXX | \
13673 archive_expsym_cmds_CXX | \
13674 module_cmds_CXX | \
13675 module_expsym_cmds_CXX | \
13676 old_archive_from_expsyms_cmds_CXX | \
13677 export_symbols_cmds_CXX | \
13678 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13679 postinstall_cmds | postuninstall_cmds | \
13680 old_postinstall_cmds | old_postuninstall_cmds | \
13681 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13682 # Double-quote double-evaled strings.
13683 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13684 ;;
13685 *)
13686 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13687 ;;
13688 esac
13689 done
13690
13691 case $lt_echo in
13692 *'\$0 --fallback-echo"')
13693 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13694 ;;
13695 esac
13696
13697cfgfile="$ofile"
13698
13699 cat <<__EOF__ >> "$cfgfile"
13700# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13701
13702# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13703
13704# Shell to use when invoking shell scripts.
13705SHELL=$lt_SHELL
13706
13707# Whether or not to build shared libraries.
13708build_libtool_libs=$enable_shared
13709
13710# Whether or not to build static libraries.
13711build_old_libs=$enable_static
13712
13713# Whether or not to add -lc for building shared libraries.
13714build_libtool_need_lc=$archive_cmds_need_lc_CXX
13715
13716# Whether or not to disallow shared libs when runtime libs are static
13717allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13718
13719# Whether or not to optimize for fast installation.
13720fast_install=$enable_fast_install
13721
13722# The host system.
13723host_alias=$host_alias
13724host=$host
13725host_os=$host_os
13726
13727# The build system.
13728build_alias=$build_alias
13729build=$build
13730build_os=$build_os
13731
13732# An echo program that does not interpret backslashes.
13733echo=$lt_echo
13734
13735# The archiver.
13736AR=$lt_AR
13737AR_FLAGS=$lt_AR_FLAGS
13738
13739# A C compiler.
13740LTCC=$lt_LTCC
13741
13742# LTCC compiler flags.
13743LTCFLAGS=$lt_LTCFLAGS
13744
13745# A language-specific compiler.
13746CC=$lt_compiler_CXX
13747
13748# Is the compiler the GNU C compiler?
13749with_gcc=$GCC_CXX
13750
13751gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13752gcc_ver=\`gcc -dumpversion\`
13753
13754# An ERE matcher.
13755EGREP=$lt_EGREP
13756
13757# The linker used to build libraries.
13758LD=$lt_LD_CXX
13759
13760# Whether we need hard or soft links.
13761LN_S=$lt_LN_S
13762
13763# A BSD-compatible nm program.
13764NM=$lt_NM
13765
13766# A symbol stripping program
13767STRIP=$lt_STRIP
13768
13769# Used to examine libraries when file_magic_cmd begins "file"
13770MAGIC_CMD=$MAGIC_CMD
13771
13772# Used on cygwin: DLL creation program.
13773DLLTOOL="$DLLTOOL"
13774
13775# Used on cygwin: object dumper.
13776OBJDUMP="$OBJDUMP"
13777
13778# Used on cygwin: assembler.
13779AS="$AS"
13780
13781# The name of the directory that contains temporary libtool files.
13782objdir=$objdir
13783
13784# How to create reloadable object files.
13785reload_flag=$lt_reload_flag
13786reload_cmds=$lt_reload_cmds
13787
13788# How to pass a linker flag through the compiler.
13789wl=$lt_lt_prog_compiler_wl_CXX
13790
13791# Object file suffix (normally "o").
13792objext="$ac_objext"
13793
13794# Old archive suffix (normally "a").
13795libext="$libext"
13796
13797# Shared library suffix (normally ".so").
13798shrext_cmds='$shrext_cmds'
13799
13800# Executable file suffix (normally "").
13801exeext="$exeext"
13802
13803# Additional compiler flags for building library objects.
13804pic_flag=$lt_lt_prog_compiler_pic_CXX
13805pic_mode=$pic_mode
13806
13807# What is the maximum length of a command?
13808max_cmd_len=$lt_cv_sys_max_cmd_len
13809
13810# Does compiler simultaneously support -c and -o options?
13811compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13812
13813# Must we lock files when doing compilation?
13814need_locks=$lt_need_locks
13815
13816# Do we need the lib prefix for modules?
13817need_lib_prefix=$need_lib_prefix
13818
13819# Do we need a version for libraries?
13820need_version=$need_version
13821
13822# Whether dlopen is supported.
13823dlopen_support=$enable_dlopen
13824
13825# Whether dlopen of programs is supported.
13826dlopen_self=$enable_dlopen_self
13827
13828# Whether dlopen of statically linked programs is supported.
13829dlopen_self_static=$enable_dlopen_self_static
13830
13831# Compiler flag to prevent dynamic linking.
13832link_static_flag=$lt_lt_prog_compiler_static_CXX
13833
13834# Compiler flag to turn off builtin functions.
13835no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13836
13837# Compiler flag to allow reflexive dlopens.
13838export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13839
13840# Compiler flag to generate shared objects directly from archives.
13841whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13842
13843# Compiler flag to generate thread-safe objects.
13844thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13845
13846# Library versioning type.
13847version_type=$version_type
13848
13849# Format of library name prefix.
13850libname_spec=$lt_libname_spec
13851
13852# List of archive names. First name is the real one, the rest are links.
13853# The last name is the one that the linker finds with -lNAME.
13854library_names_spec=$lt_library_names_spec
13855
13856# The coded name of the library, if different from the real name.
13857soname_spec=$lt_soname_spec
13858
13859# Commands used to build and install an old-style archive.
13860RANLIB=$lt_RANLIB
13861old_archive_cmds=$lt_old_archive_cmds_CXX
13862old_postinstall_cmds=$lt_old_postinstall_cmds
13863old_postuninstall_cmds=$lt_old_postuninstall_cmds
13864
13865# Create an old-style archive from a shared archive.
13866old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13867
13868# Create a temporary old-style archive to link instead of a shared archive.
13869old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13870
13871# Commands used to build and install a shared archive.
13872archive_cmds=$lt_archive_cmds_CXX
13873archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13874postinstall_cmds=$lt_postinstall_cmds
13875postuninstall_cmds=$lt_postuninstall_cmds
13876
13877# Commands used to build a loadable module (assumed same as above if empty)
13878module_cmds=$lt_module_cmds_CXX
13879module_expsym_cmds=$lt_module_expsym_cmds_CXX
13880
13881# Commands to strip libraries.
13882old_striplib=$lt_old_striplib
13883striplib=$lt_striplib
13884
13885# Dependencies to place before the objects being linked to create a
13886# shared library.
13887predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13888
13889# Dependencies to place after the objects being linked to create a
13890# shared library.
13891postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13892
13893# Dependencies to place before the objects being linked to create a
13894# shared library.
13895predeps=$lt_predeps_CXX
13896
13897# Dependencies to place after the objects being linked to create a
13898# shared library.
13899postdeps=$lt_postdeps_CXX
13900
13901# The library search path used internally by the compiler when linking
13902# a shared library.
13903compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13904
13905# Method to check whether dependent libraries are shared objects.
13906deplibs_check_method=$lt_deplibs_check_method
13907
13908# Command to use when deplibs_check_method == file_magic.
13909file_magic_cmd=$lt_file_magic_cmd
13910
13911# Flag that allows shared libraries with undefined symbols to be built.
13912allow_undefined_flag=$lt_allow_undefined_flag_CXX
13913
13914# Flag that forces no undefined symbols.
13915no_undefined_flag=$lt_no_undefined_flag_CXX
13916
13917# Commands used to finish a libtool library installation in a directory.
13918finish_cmds=$lt_finish_cmds
13919
13920# Same as above, but a single script fragment to be evaled but not shown.
13921finish_eval=$lt_finish_eval
13922
13923# Take the output of nm and produce a listing of raw symbols and C names.
13924global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13925
13926# Transform the output of nm in a proper C declaration
13927global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13928
13929# Transform the output of nm in a C name address pair
13930global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13931
13932# This is the shared library runtime path variable.
13933runpath_var=$runpath_var
13934
13935# This is the shared library path variable.
13936shlibpath_var=$shlibpath_var
13937
13938# Is shlibpath searched before the hard-coded library search path?
13939shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13940
13941# How to hardcode a shared library path into an executable.
13942hardcode_action=$hardcode_action_CXX
13943
13944# Whether we should hardcode library paths into libraries.
13945hardcode_into_libs=$hardcode_into_libs
13946
13947# Flag to hardcode \$libdir into a binary during linking.
13948# This must work even if \$libdir does not exist.
13949hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13950
13951# If ld is used when linking, flag to hardcode \$libdir into
13952# a binary during linking. This must work even if \$libdir does
13953# not exist.
13954hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13955
13956# Whether we need a single -rpath flag with a separated argument.
13957hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13958
13959# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13960# resulting binary.
13961hardcode_direct=$hardcode_direct_CXX
13962
13963# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13964# resulting binary.
13965hardcode_minus_L=$hardcode_minus_L_CXX
13966
13967# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13968# the resulting binary.
13969hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13970
13971# Set to yes if building a shared library automatically hardcodes DIR into the library
13972# and all subsequent libraries and executables linked against it.
13973hardcode_automatic=$hardcode_automatic_CXX
13974
13975# Variables whose values should be saved in libtool wrapper scripts and
13976# restored at relink time.
13977variables_saved_for_relink="$variables_saved_for_relink"
13978
13979# Whether libtool must link a program against all its dependency libraries.
13980link_all_deplibs=$link_all_deplibs_CXX
13981
13982# Compile-time system search path for libraries
13983sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13984
13985# Run-time system search path for libraries
13986sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13987
13988# Fix the shell variable \$srcfile for the compiler.
13989fix_srcfile_path="$fix_srcfile_path_CXX"
13990
13991# Set to yes if exported symbols are required.
13992always_export_symbols=$always_export_symbols_CXX
13993
13994# The commands to list exported symbols.
13995export_symbols_cmds=$lt_export_symbols_cmds_CXX
13996
13997# The commands to extract the exported symbol list from a shared archive.
13998extract_expsyms_cmds=$lt_extract_expsyms_cmds
13999
14000# Symbols that should not be listed in the preloaded symbols.
14001exclude_expsyms=$lt_exclude_expsyms_CXX
14002
14003# Symbols that must always be exported.
14004include_expsyms=$lt_include_expsyms_CXX
14005
14006# ### END LIBTOOL TAG CONFIG: $tagname
14007
14008__EOF__
14009
14010
14011else
14012 # If there is no Makefile yet, we rely on a make rule to execute
14013 # `config.status --recheck' to rerun these tests and create the
14014 # libtool script then.
14015 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14016 if test -f "$ltmain_in"; then
14017 test -f Makefile && make "$ltmain"
14018 fi
14019fi
14020
14021
14022ac_ext=c
14023ac_cpp='$CPP $CPPFLAGS'
14024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027
14028CC=$lt_save_CC
14029LDCXX=$LD
14030LD=$lt_save_LD
14031GCC=$lt_save_GCC
14032with_gnu_ldcxx=$with_gnu_ld
14033with_gnu_ld=$lt_save_with_gnu_ld
14034lt_cv_path_LDCXX=$lt_cv_path_LD
14035lt_cv_path_LD=$lt_save_path_LD
14036lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14037lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14038
14039 else
14040 tagname=""
14041 fi
14042 ;;
14043
14044 F77)
14045 if test -n "$F77" && test "X$F77" != "Xno"; then
14046
14047ac_ext=f
14048ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14049ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14050ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14051
14052
14053archive_cmds_need_lc_F77=no
14054allow_undefined_flag_F77=
14055always_export_symbols_F77=no
14056archive_expsym_cmds_F77=
14057export_dynamic_flag_spec_F77=
14058hardcode_direct_F77=no
14059hardcode_libdir_flag_spec_F77=
14060hardcode_libdir_flag_spec_ld_F77=
14061hardcode_libdir_separator_F77=
14062hardcode_minus_L_F77=no
14063hardcode_automatic_F77=no
14064module_cmds_F77=
14065module_expsym_cmds_F77=
14066link_all_deplibs_F77=unknown
14067old_archive_cmds_F77=$old_archive_cmds
14068no_undefined_flag_F77=
14069whole_archive_flag_spec_F77=
14070enable_shared_with_static_runtimes_F77=no
14071
14072# Source file extension for f77 test sources.
14073ac_ext=f
14074
14075# Object file extension for compiled f77 test sources.
14076objext=o
14077objext_F77=$objext
14078
14079# Code to be used in simple compile tests
14080lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14081
14082# Code to be used in simple link tests
14083lt_simple_link_test_code=" program t\n end\n"
14084
14085# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14086
14087# If no C compiler was specified, use CC.
14088LTCC=${LTCC-"$CC"}
14089
14090# If no C compiler flags were specified, use CFLAGS.
14091LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14092
14093# Allow CC to be a program name with arguments.
14094compiler=$CC
14095
14096
14097# save warnings/boilerplate of simple test code
14098ac_outfile=conftest.$ac_objext
14099printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14100eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14101_lt_compiler_boilerplate=`cat conftest.err`
14102$rm conftest*
14103
14104ac_outfile=conftest.$ac_objext
14105printf "$lt_simple_link_test_code" >conftest.$ac_ext
14106eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14107_lt_linker_boilerplate=`cat conftest.err`
14108$rm conftest*
14109
14110
14111# Allow CC to be a program name with arguments.
14112lt_save_CC="$CC"
14113CC=${F77-"f77"}
14114compiler=$CC
14115compiler_F77=$CC
14116for cc_temp in $compiler""; do
14117 case $cc_temp in
14118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14120 \-*) ;;
14121 *) break;;
14122 esac
14123done
14124cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14125
14126
14127echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14128echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14129echo "$as_me:$LINENO: result: $can_build_shared" >&5
14130echo "${ECHO_T}$can_build_shared" >&6
14131
14132echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14133echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14134test "$can_build_shared" = "no" && enable_shared=no
14135
14136# On AIX, shared libraries and static libraries use the same namespace, and
14137# are all built from PIC.
14138case $host_os in
14139aix3*)
14140 test "$enable_shared" = yes && enable_static=no
14141 if test -n "$RANLIB"; then
14142 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14143 postinstall_cmds='$RANLIB $lib'
14144 fi
14145 ;;
14146aix4* | aix5*)
14147 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14148 test "$enable_shared" = yes && enable_static=no
14149 fi
14150 ;;
14151esac
14152echo "$as_me:$LINENO: result: $enable_shared" >&5
14153echo "${ECHO_T}$enable_shared" >&6
14154
14155echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14156echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14157# Make sure either enable_shared or enable_static is yes.
14158test "$enable_shared" = yes || enable_static=yes
14159echo "$as_me:$LINENO: result: $enable_static" >&5
14160echo "${ECHO_T}$enable_static" >&6
14161
14162GCC_F77="$G77"
14163LD_F77="$LD"
14164
14165lt_prog_compiler_wl_F77=
14166lt_prog_compiler_pic_F77=
14167lt_prog_compiler_static_F77=
14168
14169echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14170echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14171
14172 if test "$GCC" = yes; then
14173 lt_prog_compiler_wl_F77='-Wl,'
14174 lt_prog_compiler_static_F77='-static'
14175
14176 case $host_os in
14177 aix*)
14178 # All AIX code is PIC.
14179 if test "$host_cpu" = ia64; then
14180 # AIX 5 now supports IA64 processor
14181 lt_prog_compiler_static_F77='-Bstatic'
14182 fi
14183 ;;
14184
14185 amigaos*)
14186 # FIXME: we need at least 68020 code to build shared libraries, but
14187 # adding the `-m68020' flag to GCC prevents building anything better,
14188 # like `-m68040'.
14189 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14190 ;;
14191
14192 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14193 # PIC is the default for these OSes.
14194 ;;
14195
14196 mingw* | pw32* | os2*)
14197 # This hack is so that the source file can tell whether it is being
14198 # built for inclusion in a dll (and should export symbols for example).
14199 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14200 ;;
14201
14202 darwin* | rhapsody*)
14203 # PIC is the default on this platform
14204 # Common symbols not allowed in MH_DYLIB files
14205 lt_prog_compiler_pic_F77='-fno-common'
14206 ;;
14207
14208 interix3*)
14209 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14210 # Instead, we relocate shared libraries at runtime.
14211 ;;
14212
14213 msdosdjgpp*)
14214 # Just because we use GCC doesn't mean we suddenly get shared libraries
14215 # on systems that don't support them.
14216 lt_prog_compiler_can_build_shared_F77=no
14217 enable_shared=no
14218 ;;
14219
14220 sysv4*MP*)
14221 if test -d /usr/nec; then
14222 lt_prog_compiler_pic_F77=-Kconform_pic
14223 fi
14224 ;;
14225
14226 hpux*)
14227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14228 # not for PA HP-UX.
14229 case $host_cpu in
14230 hppa*64*|ia64*)
14231 # +Z the default
14232 ;;
14233 *)
14234 lt_prog_compiler_pic_F77='-fPIC'
14235 ;;
14236 esac
14237 ;;
14238
14239 *)
14240 lt_prog_compiler_pic_F77='-fPIC'
14241 ;;
14242 esac
14243 else
14244 # PORTME Check for flag to pass linker flags through the system compiler.
14245 case $host_os in
14246 aix*)
14247 lt_prog_compiler_wl_F77='-Wl,'
14248 if test "$host_cpu" = ia64; then
14249 # AIX 5 now supports IA64 processor
14250 lt_prog_compiler_static_F77='-Bstatic'
14251 else
14252 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14253 fi
14254 ;;
14255 darwin*)
14256 # PIC is the default on this platform
14257 # Common symbols not allowed in MH_DYLIB files
14258 case $cc_basename in
14259 xlc*)
14260 lt_prog_compiler_pic_F77='-qnocommon'
14261 lt_prog_compiler_wl_F77='-Wl,'
14262 ;;
14263 esac
14264 ;;
14265
14266 mingw* | pw32* | os2*)
14267 # This hack is so that the source file can tell whether it is being
14268 # built for inclusion in a dll (and should export symbols for example).
14269 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14270 ;;
14271
14272 hpux9* | hpux10* | hpux11*)
14273 lt_prog_compiler_wl_F77='-Wl,'
14274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14275 # not for PA HP-UX.
14276 case $host_cpu in
14277 hppa*64*|ia64*)
14278 # +Z the default
14279 ;;
14280 *)
14281 lt_prog_compiler_pic_F77='+Z'
14282 ;;
14283 esac
14284 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14285 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14286 ;;
14287
14288 irix5* | irix6* | nonstopux*)
14289 lt_prog_compiler_wl_F77='-Wl,'
14290 # PIC (with -KPIC) is the default.
14291 lt_prog_compiler_static_F77='-non_shared'
14292 ;;
14293
14294 newsos6)
14295 lt_prog_compiler_pic_F77='-KPIC'
14296 lt_prog_compiler_static_F77='-Bstatic'
14297 ;;
14298
14299 linux*)
14300 case $cc_basename in
14301 icc* | ecc*)
14302 lt_prog_compiler_wl_F77='-Wl,'
14303 lt_prog_compiler_pic_F77='-KPIC'
14304 lt_prog_compiler_static_F77='-static'
14305 ;;
14306 pgcc* | pgf77* | pgf90* | pgf95*)
14307 # Portland Group compilers (*not* the Pentium gcc compiler,
14308 # which looks to be a dead project)
14309 lt_prog_compiler_wl_F77='-Wl,'
14310 lt_prog_compiler_pic_F77='-fpic'
14311 lt_prog_compiler_static_F77='-Bstatic'
14312 ;;
14313 ccc*)
14314 lt_prog_compiler_wl_F77='-Wl,'
14315 # All Alpha code is PIC.
14316 lt_prog_compiler_static_F77='-non_shared'
14317 ;;
14318 esac
14319 ;;
14320
14321 osf3* | osf4* | osf5*)
14322 lt_prog_compiler_wl_F77='-Wl,'
14323 # All OSF/1 code is PIC.
14324 lt_prog_compiler_static_F77='-non_shared'
14325 ;;
14326
14327 solaris*)
14328 lt_prog_compiler_pic_F77='-KPIC'
14329 lt_prog_compiler_static_F77='-Bstatic'
14330 case $cc_basename in
14331 f77* | f90* | f95*)
14332 lt_prog_compiler_wl_F77='-Qoption ld ';;
14333 *)
14334 lt_prog_compiler_wl_F77='-Wl,';;
14335 esac
14336 ;;
14337
14338 sunos4*)
14339 lt_prog_compiler_wl_F77='-Qoption ld '
14340 lt_prog_compiler_pic_F77='-PIC'
14341 lt_prog_compiler_static_F77='-Bstatic'
14342 ;;
14343
14344 sysv4 | sysv4.2uw2* | sysv4.3*)
14345 lt_prog_compiler_wl_F77='-Wl,'
14346 lt_prog_compiler_pic_F77='-KPIC'
14347 lt_prog_compiler_static_F77='-Bstatic'
14348 ;;
14349
14350 sysv4*MP*)
14351 if test -d /usr/nec ;then
14352 lt_prog_compiler_pic_F77='-Kconform_pic'
14353 lt_prog_compiler_static_F77='-Bstatic'
14354 fi
14355 ;;
14356
14357 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14358 lt_prog_compiler_wl_F77='-Wl,'
14359 lt_prog_compiler_pic_F77='-KPIC'
14360 lt_prog_compiler_static_F77='-Bstatic'
14361 ;;
14362
14363 unicos*)
14364 lt_prog_compiler_wl_F77='-Wl,'
14365 lt_prog_compiler_can_build_shared_F77=no
14366 ;;
14367
14368 uts4*)
14369 lt_prog_compiler_pic_F77='-pic'
14370 lt_prog_compiler_static_F77='-Bstatic'
14371 ;;
14372
14373 *)
14374 lt_prog_compiler_can_build_shared_F77=no
14375 ;;
14376 esac
14377 fi
14378
14379echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14380echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14381
14382#
14383# Check to make sure the PIC flag actually works.
14384#
14385if test -n "$lt_prog_compiler_pic_F77"; then
14386
14387echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14388echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14389if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14391else
14392 lt_prog_compiler_pic_works_F77=no
14393 ac_outfile=conftest.$ac_objext
14394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14395 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14396 # Insert the option either (1) after the last *FLAGS variable, or
14397 # (2) before a word containing "conftest.", or (3) at the end.
14398 # Note that $ac_compile itself does not contain backslashes and begins
14399 # with a dollar sign (not a hyphen), so the echo should work correctly.
14400 # The option is referenced via a variable to avoid confusing sed.
14401 lt_compile=`echo "$ac_compile" | $SED \
14402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14404 -e 's:$: $lt_compiler_flag:'`
14405 (eval echo "\"\$as_me:14405: $lt_compile\"" >&5)
14406 (eval "$lt_compile" 2>conftest.err)
14407 ac_status=$?
14408 cat conftest.err >&5
14409 echo "$as_me:14409: \$? = $ac_status" >&5
14410 if (exit $ac_status) && test -s "$ac_outfile"; then
14411 # The compiler can only warn and ignore the option if not recognized
14412 # So say no if there are warnings other than the usual output.
14413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14416 lt_prog_compiler_pic_works_F77=yes
14417 fi
14418 fi
14419 $rm conftest*
14420
14421fi
14422echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14423echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14424
14425if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14426 case $lt_prog_compiler_pic_F77 in
14427 "" | " "*) ;;
14428 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14429 esac
14430else
14431 lt_prog_compiler_pic_F77=
14432 lt_prog_compiler_can_build_shared_F77=no
14433fi
14434
14435fi
14436case $host_os in
14437 # For platforms which do not support PIC, -DPIC is meaningless:
14438 *djgpp*)
14439 lt_prog_compiler_pic_F77=
14440 ;;
14441 *)
14442 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14443 ;;
14444esac
14445
14446#
14447# Check to make sure the static flag actually works.
14448#
14449wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14450echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14451echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14452if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454else
14455 lt_prog_compiler_static_works_F77=no
14456 save_LDFLAGS="$LDFLAGS"
14457 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14458 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14459 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14460 # The linker can only warn and ignore the option if not recognized
14461 # So say no if there are warnings
14462 if test -s conftest.err; then
14463 # Append any errors to the config.log.
14464 cat conftest.err 1>&5
14465 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14467 if diff conftest.exp conftest.er2 >/dev/null; then
14468 lt_prog_compiler_static_works_F77=yes
14469 fi
14470 else
14471 lt_prog_compiler_static_works_F77=yes
14472 fi
14473 fi
14474 $rm conftest*
14475 LDFLAGS="$save_LDFLAGS"
14476
14477fi
14478echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14479echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14480
14481if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14482 :
14483else
14484 lt_prog_compiler_static_F77=
14485fi
14486
14487
14488echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14489echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14490if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492else
14493 lt_cv_prog_compiler_c_o_F77=no
14494 $rm -r conftest 2>/dev/null
14495 mkdir conftest
14496 cd conftest
14497 mkdir out
14498 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14499
14500 lt_compiler_flag="-o out/conftest2.$ac_objext"
14501 # Insert the option either (1) after the last *FLAGS variable, or
14502 # (2) before a word containing "conftest.", or (3) at the end.
14503 # Note that $ac_compile itself does not contain backslashes and begins
14504 # with a dollar sign (not a hyphen), so the echo should work correctly.
14505 lt_compile=`echo "$ac_compile" | $SED \
14506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14508 -e 's:$: $lt_compiler_flag:'`
14509 (eval echo "\"\$as_me:14509: $lt_compile\"" >&5)
14510 (eval "$lt_compile" 2>out/conftest.err)
14511 ac_status=$?
14512 cat out/conftest.err >&5
14513 echo "$as_me:14513: \$? = $ac_status" >&5
14514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14515 then
14516 # The compiler can only warn and ignore the option if not recognized
14517 # So say no if there are warnings
14518 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14521 lt_cv_prog_compiler_c_o_F77=yes
14522 fi
14523 fi
14524 chmod u+w . 2>&5
14525 $rm conftest*
14526 # SGI C++ compiler will create directory out/ii_files/ for
14527 # template instantiation
14528 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14529 $rm out/* && rmdir out
14530 cd ..
14531 rmdir conftest
14532 $rm conftest*
14533
14534fi
14535echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14536echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14537
14538
14539hard_links="nottested"
14540if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14541 # do not overwrite the value of need_locks provided by the user
14542 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14543echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14544 hard_links=yes
14545 $rm conftest*
14546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14547 touch conftest.a
14548 ln conftest.a conftest.b 2>&5 || hard_links=no
14549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14550 echo "$as_me:$LINENO: result: $hard_links" >&5
14551echo "${ECHO_T}$hard_links" >&6
14552 if test "$hard_links" = no; then
14553 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14554echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14555 need_locks=warn
14556 fi
14557else
14558 need_locks=no
14559fi
14560
14561echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14562echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14563
14564 runpath_var=
14565 allow_undefined_flag_F77=
14566 enable_shared_with_static_runtimes_F77=no
14567 archive_cmds_F77=
14568 archive_expsym_cmds_F77=
14569 old_archive_From_new_cmds_F77=
14570 old_archive_from_expsyms_cmds_F77=
14571 export_dynamic_flag_spec_F77=
14572 whole_archive_flag_spec_F77=
14573 thread_safe_flag_spec_F77=
14574 hardcode_libdir_flag_spec_F77=
14575 hardcode_libdir_flag_spec_ld_F77=
14576 hardcode_libdir_separator_F77=
14577 hardcode_direct_F77=no
14578 hardcode_minus_L_F77=no
14579 hardcode_shlibpath_var_F77=unsupported
14580 link_all_deplibs_F77=unknown
14581 hardcode_automatic_F77=no
14582 module_cmds_F77=
14583 module_expsym_cmds_F77=
14584 always_export_symbols_F77=no
14585 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14586 # include_expsyms should be a list of space-separated symbols to be *always*
14587 # included in the symbol list
14588 include_expsyms_F77=
14589 # exclude_expsyms can be an extended regexp of symbols to exclude
14590 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14591 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14592 # as well as any symbol that contains `d'.
14593 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14594 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14595 # platforms (ab)use it in PIC code, but their linkers get confused if
14596 # the symbol is explicitly referenced. Since portable code cannot
14597 # rely on this symbol name, it's probably fine to never include it in
14598 # preloaded symbol tables.
14599 extract_expsyms_cmds=
14600 # Just being paranoid about ensuring that cc_basename is set.
14601 for cc_temp in $compiler""; do
14602 case $cc_temp in
14603 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14604 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14605 \-*) ;;
14606 *) break;;
14607 esac
14608done
14609cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14610
14611 case $host_os in
14612 cygwin* | mingw* | pw32*)
14613 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14614 # When not using gcc, we currently assume that we are using
14615 # Microsoft Visual C++.
14616 if test "$GCC" != yes; then
14617 with_gnu_ld=no
14618 fi
14619 ;;
14620 interix*)
14621 # we just hope/assume this is gcc and not c89 (= MSVC++)
14622 with_gnu_ld=yes
14623 ;;
14624 openbsd*)
14625 with_gnu_ld=no
14626 ;;
14627 esac
14628
14629 ld_shlibs_F77=yes
14630 if test "$with_gnu_ld" = yes; then
14631 # If archive_cmds runs LD, not CC, wlarc should be empty
14632 wlarc='${wl}'
14633
14634 # Set some defaults for GNU ld with shared library support. These
14635 # are reset later if shared libraries are not supported. Putting them
14636 # here allows them to be overridden if necessary.
14637 runpath_var=LD_RUN_PATH
14638 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14639 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14640 # ancient GNU ld didn't support --whole-archive et. al.
14641 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14642 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14643 else
14644 whole_archive_flag_spec_F77=
14645 fi
14646 supports_anon_versioning=no
14647 case `$LD -v 2>/dev/null` in
14648 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14649 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14650 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14651 *\ 2.11.*) ;; # other 2.11 versions
14652 *) supports_anon_versioning=yes ;;
14653 esac
14654
14655 # See if GNU ld supports shared libraries.
14656 case $host_os in
14657 aix3* | aix4* | aix5*)
14658 # On AIX/PPC, the GNU linker is very broken
14659 if test "$host_cpu" != ia64; then
14660 ld_shlibs_F77=no
14661 cat <<EOF 1>&2
14662
14663*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14664*** to be unable to reliably create shared libraries on AIX.
14665*** Therefore, libtool is disabling shared libraries support. If you
14666*** really care for shared libraries, you may want to modify your PATH
14667*** so that a non-GNU linker is found, and then restart.
14668
14669EOF
14670 fi
14671 ;;
14672
14673 amigaos*)
14674 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)'
14675 hardcode_libdir_flag_spec_F77='-L$libdir'
14676 hardcode_minus_L_F77=yes
14677
14678 # Samuel A. Falvo II <[email protected]> reports
14679 # that the semantics of dynamic libraries on AmigaOS, at least up
14680 # to version 4, is to share data among multiple programs linked
14681 # with the same dynamic library. Since this doesn't match the
14682 # behavior of shared libraries on other platforms, we can't use
14683 # them.
14684 ld_shlibs_F77=no
14685 ;;
14686
14687 beos*)
14688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14689 allow_undefined_flag_F77=unsupported
14690 # Joseph Beckenbach <[email protected]> says some releases of gcc
14691 # support --undefined. This deserves some investigation. FIXME
14692 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14693 else
14694 ld_shlibs_F77=no
14695 fi
14696 ;;
14697
14698 cygwin* | mingw* | pw32*)
14699 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14700 # as there is no search path for DLLs.
14701 hardcode_libdir_flag_spec_F77='-L$libdir'
14702 allow_undefined_flag_F77=unsupported
14703 always_export_symbols_F77=no
14704 enable_shared_with_static_runtimes_F77=yes
14705 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14706
14707 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14708 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14709 # If the export-symbols file already is a .def file (1st line
14710 # is EXPORTS), use it as is; otherwise, prepend...
14711 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14712 cp $export_symbols $output_objdir/$soname.def;
14713 else
14714 echo EXPORTS > $output_objdir/$soname.def;
14715 cat $export_symbols >> $output_objdir/$soname.def;
14716 fi~
14717 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14718 else
14719 ld_shlibs_F77=no
14720 fi
14721 ;;
14722
14723 interix3*)
14724 hardcode_direct_F77=no
14725 hardcode_shlibpath_var_F77=no
14726 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14727 export_dynamic_flag_spec_F77='${wl}-E'
14728 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14729 # Instead, shared libraries are loaded at an image base (0x10000000 by
14730 # default) and relocated if they conflict, which is a slow very memory
14731 # consuming and fragmenting process. To avoid this, we pick a random,
14732 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14733 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14734 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14735 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14736 ;;
14737
14738 linux*)
14739 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14740 tmp_addflag=
14741 case $cc_basename,$host_cpu in
14742 pgcc*) # Portland Group C compiler
14743 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14744 tmp_addflag=' $pic_flag'
14745 ;;
14746 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14747 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14748 tmp_addflag=' $pic_flag -Mnomain' ;;
14749 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14750 tmp_addflag=' -i_dynamic' ;;
14751 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14752 tmp_addflag=' -i_dynamic -nofor_main' ;;
14753 ifc* | ifort*) # Intel Fortran compiler
14754 tmp_addflag=' -nofor_main' ;;
14755 esac
14756 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14757
14758 if test $supports_anon_versioning = yes; then
14759 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14761 $echo "local: *; };" >> $output_objdir/$libname.ver~
14762 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14763 fi
14764 else
14765 ld_shlibs_F77=no
14766 fi
14767 ;;
14768
14769 netbsd*)
14770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14771 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14772 wlarc=
14773 else
14774 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14776 fi
14777 ;;
14778
14779 solaris*)
14780 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14781 ld_shlibs_F77=no
14782 cat <<EOF 1>&2
14783
14784*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14785*** create shared libraries on Solaris systems. Therefore, libtool
14786*** is disabling shared libraries support. We urge you to upgrade GNU
14787*** binutils to release 2.9.1 or newer. Another option is to modify
14788*** your PATH or compiler configuration so that the native linker is
14789*** used, and then restart.
14790
14791EOF
14792 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14793 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14795 else
14796 ld_shlibs_F77=no
14797 fi
14798 ;;
14799
14800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14801 case `$LD -v 2>&1` in
14802 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14803 ld_shlibs_F77=no
14804 cat <<_LT_EOF 1>&2
14805
14806*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14807*** reliably create shared libraries on SCO systems. Therefore, libtool
14808*** is disabling shared libraries support. We urge you to upgrade GNU
14809*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14810*** your PATH or compiler configuration so that the native linker is
14811*** used, and then restart.
14812
14813_LT_EOF
14814 ;;
14815 *)
14816 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14817 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14818 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14819 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14820 else
14821 ld_shlibs_F77=no
14822 fi
14823 ;;
14824 esac
14825 ;;
14826
14827 sunos4*)
14828 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14829 wlarc=
14830 hardcode_direct_F77=yes
14831 hardcode_shlibpath_var_F77=no
14832 ;;
14833
14834 *)
14835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14836 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14837 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14838 else
14839 ld_shlibs_F77=no
14840 fi
14841 ;;
14842 esac
14843
14844 if test "$ld_shlibs_F77" = no; then
14845 runpath_var=
14846 hardcode_libdir_flag_spec_F77=
14847 export_dynamic_flag_spec_F77=
14848 whole_archive_flag_spec_F77=
14849 fi
14850 else
14851 # PORTME fill in a description of your system's linker (not GNU ld)
14852 case $host_os in
14853 aix3*)
14854 allow_undefined_flag_F77=unsupported
14855 always_export_symbols_F77=yes
14856 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'
14857 # Note: this linker hardcodes the directories in LIBPATH if there
14858 # are no directories specified by -L.
14859 hardcode_minus_L_F77=yes
14860 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14861 # Neither direct hardcoding nor static linking is supported with a
14862 # broken collect2.
14863 hardcode_direct_F77=unsupported
14864 fi
14865 ;;
14866
14867 aix4* | aix5*)
14868 if test "$host_cpu" = ia64; then
14869 # On IA64, the linker does run time linking by default, so we don't
14870 # have to do anything special.
14871 aix_use_runtimelinking=no
14872 exp_sym_flag='-Bexport'
14873 no_entry_flag=""
14874 else
14875 # If we're using GNU nm, then we don't want the "-C" option.
14876 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14877 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14878 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'
14879 else
14880 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'
14881 fi
14882 aix_use_runtimelinking=no
14883
14884 # Test if we are trying to use run time linking or normal
14885 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14886 # need to do runtime linking.
14887 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14888 for ld_flag in $LDFLAGS; do
14889 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14890 aix_use_runtimelinking=yes
14891 break
14892 fi
14893 done
14894 ;;
14895 esac
14896
14897 exp_sym_flag='-bexport'
14898 no_entry_flag='-bnoentry'
14899 fi
14900
14901 # When large executables or shared objects are built, AIX ld can
14902 # have problems creating the table of contents. If linking a library
14903 # or program results in "error TOC overflow" add -mminimal-toc to
14904 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14905 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14906
14907 archive_cmds_F77=''
14908 hardcode_direct_F77=yes
14909 hardcode_libdir_separator_F77=':'
14910 link_all_deplibs_F77=yes
14911
14912 if test "$GCC" = yes; then
14913 case $host_os in aix4.[012]|aix4.[012].*)
14914 # We only want to do this on AIX 4.2 and lower, the check
14915 # below for broken collect2 doesn't work under 4.3+
14916 collect2name=`${CC} -print-prog-name=collect2`
14917 if test -f "$collect2name" && \
14918 strings "$collect2name" | grep resolve_lib_name >/dev/null
14919 then
14920 # We have reworked collect2
14921 hardcode_direct_F77=yes
14922 else
14923 # We have old collect2
14924 hardcode_direct_F77=unsupported
14925 # It fails to find uninstalled libraries when the uninstalled
14926 # path is not listed in the libpath. Setting hardcode_minus_L
14927 # to unsupported forces relinking
14928 hardcode_minus_L_F77=yes
14929 hardcode_libdir_flag_spec_F77='-L$libdir'
14930 hardcode_libdir_separator_F77=
14931 fi
14932 ;;
14933 esac
14934 shared_flag='-shared'
14935 if test "$aix_use_runtimelinking" = yes; then
14936 shared_flag="$shared_flag "'${wl}-G'
14937 fi
14938 else
14939 # not using gcc
14940 if test "$host_cpu" = ia64; then
14941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14942 # chokes on -Wl,-G. The following line is correct:
14943 shared_flag='-G'
14944 else
14945 if test "$aix_use_runtimelinking" = yes; then
14946 shared_flag='${wl}-G'
14947 else
14948 shared_flag='${wl}-bM:SRE'
14949 fi
14950 fi
14951 fi
14952
14953 # It seems that -bexpall does not export symbols beginning with
14954 # underscore (_), so it is better to generate a list of symbols to export.
14955 always_export_symbols_F77=yes
14956 if test "$aix_use_runtimelinking" = yes; then
14957 # Warning - without using the other runtime loading flags (-brtl),
14958 # -berok will link without error, but may produce a broken library.
14959 allow_undefined_flag_F77='-berok'
14960 # Determine the default libpath from the value encoded in an empty executable.
14961 cat >conftest.$ac_ext <<_ACEOF
14962 program main
14963
14964 end
14965_ACEOF
14966rm -f conftest.$ac_objext conftest$ac_exeext
14967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14968 (eval $ac_link) 2>conftest.er1
14969 ac_status=$?
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
14975 { ac_try='test -z "$ac_f77_werror_flag"
14976 || test ! -s conftest.err'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest$ac_exeext'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988
14989aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14990}'`
14991# Check for a 64-bit object if we didn't find anything.
14992if 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; }
14993}'`; fi
14994else
14995 echo "$as_me: failed program was:" >&5
14996sed 's/^/| /' conftest.$ac_ext >&5
14997
14998fi
14999rm -f conftest.err conftest.$ac_objext \
15000 conftest$ac_exeext conftest.$ac_ext
15001if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15002
15003 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15004 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15005 else
15006 if test "$host_cpu" = ia64; then
15007 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15008 allow_undefined_flag_F77="-z nodefs"
15009 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15010 else
15011 # Determine the default libpath from the value encoded in an empty executable.
15012 cat >conftest.$ac_ext <<_ACEOF
15013 program main
15014
15015 end
15016_ACEOF
15017rm -f conftest.$ac_objext conftest$ac_exeext
15018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15019 (eval $ac_link) 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_f77_werror_flag"
15027 || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039
15040aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15041}'`
15042# Check for a 64-bit object if we didn't find anything.
15043if 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; }
15044}'`; fi
15045else
15046 echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
15049fi
15050rm -f conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15052if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15053
15054 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15055 # Warning - without using the other run time loading flags,
15056 # -berok will link without error, but may produce a broken library.
15057 no_undefined_flag_F77=' ${wl}-bernotok'
15058 allow_undefined_flag_F77=' ${wl}-berok'
15059 # Exported symbols can be pulled into shared objects from archives
15060 whole_archive_flag_spec_F77='$convenience'
15061 archive_cmds_need_lc_F77=yes
15062 # This is similar to how AIX traditionally builds its shared libraries.
15063 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15064 fi
15065 fi
15066 ;;
15067
15068 amigaos*)
15069 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)'
15070 hardcode_libdir_flag_spec_F77='-L$libdir'
15071 hardcode_minus_L_F77=yes
15072 # see comment about different semantics on the GNU ld section
15073 ld_shlibs_F77=no
15074 ;;
15075
15076 bsdi[45]*)
15077 export_dynamic_flag_spec_F77=-rdynamic
15078 ;;
15079
15080 cygwin* | mingw* | pw32*)
15081 # When not using gcc, we currently assume that we are using
15082 # Microsoft Visual C++.
15083 # hardcode_libdir_flag_spec is actually meaningless, as there is
15084 # no search path for DLLs.
15085 hardcode_libdir_flag_spec_F77=' '
15086 allow_undefined_flag_F77=unsupported
15087 # Tell ltmain to make .lib files, not .a files.
15088 libext=lib
15089 # Tell ltmain to make .dll files, not .so files.
15090 shrext_cmds=".dll"
15091 # FIXME: Setting linknames here is a bad hack.
15092 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15093 # The linker will automatically build a .lib file if we build a DLL.
15094 old_archive_From_new_cmds_F77='true'
15095 # FIXME: Should let the user specify the lib program.
15096 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15097 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15098 enable_shared_with_static_runtimes_F77=yes
15099 ;;
15100
15101 darwin* | rhapsody*)
15102 case $host_os in
15103 rhapsody* | darwin1.[012])
15104 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15105 ;;
15106 *) # Darwin 1.3 on
15107 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15108 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15109 else
15110 case ${MACOSX_DEPLOYMENT_TARGET} in
15111 10.[012])
15112 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15113 ;;
15114 10.*)
15115 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15116 ;;
15117 esac
15118 fi
15119 ;;
15120 esac
15121 archive_cmds_need_lc_F77=no
15122 hardcode_direct_F77=no
15123 hardcode_automatic_F77=yes
15124 hardcode_shlibpath_var_F77=unsupported
15125 whole_archive_flag_spec_F77=''
15126 link_all_deplibs_F77=yes
15127 if test "$GCC" = yes ; then
15128 output_verbose_link_cmd='echo'
15129 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15130 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15132 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15133 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}'
15134 else
15135 case $cc_basename in
15136 xlc*)
15137 output_verbose_link_cmd='echo'
15138 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15139 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15140 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15141 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15142 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}'
15143 ;;
15144 *)
15145 ld_shlibs_F77=no
15146 ;;
15147 esac
15148 fi
15149 ;;
15150
15151 dgux*)
15152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15153 hardcode_libdir_flag_spec_F77='-L$libdir'
15154 hardcode_shlibpath_var_F77=no
15155 ;;
15156
15157 freebsd1*)
15158 ld_shlibs_F77=no
15159 ;;
15160
15161 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15162 # support. Future versions do this automatically, but an explicit c++rt0.o
15163 # does not break anything, and helps significantly (at the cost of a little
15164 # extra space).
15165 freebsd2.2*)
15166 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15167 hardcode_libdir_flag_spec_F77='-R$libdir'
15168 hardcode_direct_F77=yes
15169 hardcode_shlibpath_var_F77=no
15170 ;;
15171
15172 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15173 freebsd2*)
15174 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15175 hardcode_direct_F77=yes
15176 hardcode_minus_L_F77=yes
15177 hardcode_shlibpath_var_F77=no
15178 ;;
15179
15180 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15181 freebsd* | kfreebsd*-gnu | dragonfly*)
15182 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15183 hardcode_libdir_flag_spec_F77='-R$libdir'
15184 hardcode_direct_F77=yes
15185 hardcode_shlibpath_var_F77=no
15186 ;;
15187
15188 hpux9*)
15189 if test "$GCC" = yes; then
15190 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'
15191 else
15192 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'
15193 fi
15194 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15195 hardcode_libdir_separator_F77=:
15196 hardcode_direct_F77=yes
15197
15198 # hardcode_minus_L: Not really in the search PATH,
15199 # but as the default location of the library.
15200 hardcode_minus_L_F77=yes
15201 export_dynamic_flag_spec_F77='${wl}-E'
15202 ;;
15203
15204 hpux10*)
15205 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15206 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15207 else
15208 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15209 fi
15210 if test "$with_gnu_ld" = no; then
15211 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15212 hardcode_libdir_separator_F77=:
15213
15214 hardcode_direct_F77=yes
15215 export_dynamic_flag_spec_F77='${wl}-E'
15216
15217 # hardcode_minus_L: Not really in the search PATH,
15218 # but as the default location of the library.
15219 hardcode_minus_L_F77=yes
15220 fi
15221 ;;
15222
15223 hpux11*)
15224 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15225 case $host_cpu in
15226 hppa*64*)
15227 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15228 ;;
15229 ia64*)
15230 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15231 ;;
15232 *)
15233 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15234 ;;
15235 esac
15236 else
15237 case $host_cpu in
15238 hppa*64*)
15239 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15240 ;;
15241 ia64*)
15242 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15243 ;;
15244 *)
15245 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15246 ;;
15247 esac
15248 fi
15249 if test "$with_gnu_ld" = no; then
15250 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15251 hardcode_libdir_separator_F77=:
15252
15253 case $host_cpu in
15254 hppa*64*|ia64*)
15255 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15256 hardcode_direct_F77=no
15257 hardcode_shlibpath_var_F77=no
15258 ;;
15259 *)
15260 hardcode_direct_F77=yes
15261 export_dynamic_flag_spec_F77='${wl}-E'
15262
15263 # hardcode_minus_L: Not really in the search PATH,
15264 # but as the default location of the library.
15265 hardcode_minus_L_F77=yes
15266 ;;
15267 esac
15268 fi
15269 ;;
15270
15271 irix5* | irix6* | nonstopux*)
15272 if test "$GCC" = yes; then
15273 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'
15274 else
15275 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'
15276 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15277 fi
15278 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15279 hardcode_libdir_separator_F77=:
15280 link_all_deplibs_F77=yes
15281 ;;
15282
15283 netbsd*)
15284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15285 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15286 else
15287 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15288 fi
15289 hardcode_libdir_flag_spec_F77='-R$libdir'
15290 hardcode_direct_F77=yes
15291 hardcode_shlibpath_var_F77=no
15292 ;;
15293
15294 newsos6)
15295 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15296 hardcode_direct_F77=yes
15297 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15298 hardcode_libdir_separator_F77=:
15299 hardcode_shlibpath_var_F77=no
15300 ;;
15301
15302 openbsd*)
15303 hardcode_direct_F77=yes
15304 hardcode_shlibpath_var_F77=no
15305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15306 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15307 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15308 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15309 export_dynamic_flag_spec_F77='${wl}-E'
15310 else
15311 case $host_os in
15312 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15313 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15314 hardcode_libdir_flag_spec_F77='-R$libdir'
15315 ;;
15316 *)
15317 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15318 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15319 ;;
15320 esac
15321 fi
15322 ;;
15323
15324 os2*)
15325 hardcode_libdir_flag_spec_F77='-L$libdir'
15326 hardcode_minus_L_F77=yes
15327 allow_undefined_flag_F77=unsupported
15328 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'
15329 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15330 ;;
15331
15332 osf3*)
15333 if test "$GCC" = yes; then
15334 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15335 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'
15336 else
15337 allow_undefined_flag_F77=' -expect_unresolved \*'
15338 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'
15339 fi
15340 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15341 hardcode_libdir_separator_F77=:
15342 ;;
15343
15344 osf4* | osf5*) # as osf3* with the addition of -msym flag
15345 if test "$GCC" = yes; then
15346 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15347 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'
15348 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15349 else
15350 allow_undefined_flag_F77=' -expect_unresolved \*'
15351 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'
15352 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~
15353 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15354
15355 # Both c and cxx compiler support -rpath directly
15356 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15357 fi
15358 hardcode_libdir_separator_F77=:
15359 ;;
15360
15361 solaris*)
15362 no_undefined_flag_F77=' -z text'
15363 if test "$GCC" = yes; then
15364 wlarc='${wl}'
15365 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15366 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15367 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15368 else
15369 wlarc=''
15370 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15371 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15372 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15373 fi
15374 hardcode_libdir_flag_spec_F77='-R$libdir'
15375 hardcode_shlibpath_var_F77=no
15376 case $host_os in
15377 solaris2.[0-5] | solaris2.[0-5].*) ;;
15378 *)
15379 # The compiler driver will combine linker options so we
15380 # cannot just pass the convience library names through
15381 # without $wl, iff we do not link with $LD.
15382 # Luckily, gcc supports the same syntax we need for Sun Studio.
15383 # Supported since Solaris 2.6 (maybe 2.5.1?)
15384 case $wlarc in
15385 '')
15386 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15387 *)
15388 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15389 esac ;;
15390 esac
15391 link_all_deplibs_F77=yes
15392 ;;
15393
15394 sunos4*)
15395 if test "x$host_vendor" = xsequent; then
15396 # Use $CC to link under sequent, because it throws in some extra .o
15397 # files that make .init and .fini sections work.
15398 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15399 else
15400 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15401 fi
15402 hardcode_libdir_flag_spec_F77='-L$libdir'
15403 hardcode_direct_F77=yes
15404 hardcode_minus_L_F77=yes
15405 hardcode_shlibpath_var_F77=no
15406 ;;
15407
15408 sysv4)
15409 case $host_vendor in
15410 sni)
15411 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 hardcode_direct_F77=yes # is this really true???
15413 ;;
15414 siemens)
15415 ## LD is ld it makes a PLAMLIB
15416 ## CC just makes a GrossModule.
15417 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15418 reload_cmds_F77='$CC -r -o $output$reload_objs'
15419 hardcode_direct_F77=no
15420 ;;
15421 motorola)
15422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15423 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15424 ;;
15425 esac
15426 runpath_var='LD_RUN_PATH'
15427 hardcode_shlibpath_var_F77=no
15428 ;;
15429
15430 sysv4.3*)
15431 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15432 hardcode_shlibpath_var_F77=no
15433 export_dynamic_flag_spec_F77='-Bexport'
15434 ;;
15435
15436 sysv4*MP*)
15437 if test -d /usr/nec; then
15438 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439 hardcode_shlibpath_var_F77=no
15440 runpath_var=LD_RUN_PATH
15441 hardcode_runpath_var=yes
15442 ld_shlibs_F77=yes
15443 fi
15444 ;;
15445
15446 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15447 no_undefined_flag_F77='${wl}-z,text'
15448 archive_cmds_need_lc_F77=no
15449 hardcode_shlibpath_var_F77=no
15450 runpath_var='LD_RUN_PATH'
15451
15452 if test "$GCC" = yes; then
15453 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15454 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15455 else
15456 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15457 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15458 fi
15459 ;;
15460
15461 sysv5* | sco3.2v5* | sco5v6*)
15462 # Note: We can NOT use -z defs as we might desire, because we do not
15463 # link with -lc, and that would cause any symbols used from libc to
15464 # always be unresolved, which means just about no library would
15465 # ever link correctly. If we're not using GNU ld we use -z text
15466 # though, which does catch some bad symbols but isn't as heavy-handed
15467 # as -z defs.
15468 no_undefined_flag_F77='${wl}-z,text'
15469 allow_undefined_flag_F77='${wl}-z,nodefs'
15470 archive_cmds_need_lc_F77=no
15471 hardcode_shlibpath_var_F77=no
15472 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15473 hardcode_libdir_separator_F77=':'
15474 link_all_deplibs_F77=yes
15475 export_dynamic_flag_spec_F77='${wl}-Bexport'
15476 runpath_var='LD_RUN_PATH'
15477
15478 if test "$GCC" = yes; then
15479 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15480 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15481 else
15482 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15483 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15484 fi
15485 ;;
15486
15487 uts4*)
15488 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489 hardcode_libdir_flag_spec_F77='-L$libdir'
15490 hardcode_shlibpath_var_F77=no
15491 ;;
15492
15493 *)
15494 ld_shlibs_F77=no
15495 ;;
15496 esac
15497 fi
15498
15499echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15500echo "${ECHO_T}$ld_shlibs_F77" >&6
15501test "$ld_shlibs_F77" = no && can_build_shared=no
15502
15503#
15504# Do we need to explicitly link libc?
15505#
15506case "x$archive_cmds_need_lc_F77" in
15507x|xyes)
15508 # Assume -lc should be added
15509 archive_cmds_need_lc_F77=yes
15510
15511 if test "$enable_shared" = yes && test "$GCC" = yes; then
15512 case $archive_cmds_F77 in
15513 *'~'*)
15514 # FIXME: we may have to deal with multi-command sequences.
15515 ;;
15516 '$CC '*)
15517 # Test whether the compiler implicitly links with -lc since on some
15518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15519 # to ld, don't add -lc before -lgcc.
15520 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15521echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15522 $rm conftest*
15523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15524
15525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15526 (eval $ac_compile) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } 2>conftest.err; then
15530 soname=conftest
15531 lib=conftest
15532 libobjs=conftest.$ac_objext
15533 deplibs=
15534 wl=$lt_prog_compiler_wl_F77
15535 pic_flag=$lt_prog_compiler_pic_F77
15536 compiler_flags=-v
15537 linker_flags=-v
15538 verstring=
15539 output_objdir=.
15540 libname=conftest
15541 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15542 allow_undefined_flag_F77=
15543 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15544 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }
15548 then
15549 archive_cmds_need_lc_F77=no
15550 else
15551 archive_cmds_need_lc_F77=yes
15552 fi
15553 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15554 else
15555 cat conftest.err 1>&5
15556 fi
15557 $rm conftest*
15558 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15559echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15560 ;;
15561 esac
15562 fi
15563 ;;
15564esac
15565
15566echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15567echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15568library_names_spec=
15569libname_spec='lib$name'
15570soname_spec=
15571shrext_cmds=".so"
15572postinstall_cmds=
15573postuninstall_cmds=
15574finish_cmds=
15575finish_eval=
15576shlibpath_var=
15577shlibpath_overrides_runpath=unknown
15578version_type=none
15579dynamic_linker="$host_os ld.so"
15580sys_lib_dlsearch_path_spec="/lib /usr/lib"
15581if test "$GCC" = yes; then
15582 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15583 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15584 # if the path contains ";" then we assume it to be the separator
15585 # otherwise default to the standard path separator (i.e. ":") - it is
15586 # assumed that no part of a normal pathname contains ";" but that should
15587 # okay in the real world where ";" in dirpaths is itself problematic.
15588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15589 else
15590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15591 fi
15592else
15593 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15594fi
15595need_lib_prefix=unknown
15596hardcode_into_libs=no
15597
15598# when you set need_version to no, make sure it does not cause -set_version
15599# flags to be left without arguments
15600need_version=unknown
15601
15602case $host_os in
15603aix3*)
15604 version_type=linux
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15606 shlibpath_var=LIBPATH
15607
15608 # AIX 3 has no versioning support, so we append a major version to the name.
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 ;;
15611
15612aix4* | aix5*)
15613 version_type=linux
15614 need_lib_prefix=no
15615 need_version=no
15616 hardcode_into_libs=yes
15617 if test "$host_cpu" = ia64; then
15618 # AIX 5 supports IA64
15619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 else
15622 # With GCC up to 2.95.x, collect2 would create an import file
15623 # for dependence libraries. The import file would start with
15624 # the line `#! .'. This would cause the generated library to
15625 # depend on `.', always an invalid library. This was fixed in
15626 # development snapshots of GCC prior to 3.0.
15627 case $host_os in
15628 aix4 | aix4.[01] | aix4.[01].*)
15629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15630 echo ' yes '
15631 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15632 :
15633 else
15634 can_build_shared=no
15635 fi
15636 ;;
15637 esac
15638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15639 # soname into executable. Probably we can add versioning support to
15640 # collect2, so additional links can be useful in future.
15641 if test "$aix_use_runtimelinking" = yes; then
15642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15643 # instead of lib<name>.a to let people know that these are not
15644 # typical AIX shared libraries.
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646 else
15647 # We preserve .a as extension for shared libraries through AIX4.2
15648 # and later when we are not doing run time linking.
15649 library_names_spec='${libname}${release}.a $libname.a'
15650 soname_spec='${libname}${release}${shared_ext}$major'
15651 fi
15652 shlibpath_var=LIBPATH
15653 fi
15654 ;;
15655
15656amigaos*)
15657 library_names_spec='$libname.ixlibrary $libname.a'
15658 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15659 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'
15660 ;;
15661
15662beos*)
15663 library_names_spec='${libname}${shared_ext}'
15664 dynamic_linker="$host_os ld.so"
15665 shlibpath_var=LIBRARY_PATH
15666 ;;
15667
15668bsdi[45]*)
15669 version_type=linux
15670 need_version=no
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672 soname_spec='${libname}${release}${shared_ext}$major'
15673 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15676 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15677 # the default ld.so.conf also contains /usr/contrib/lib and
15678 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15679 # libtool to hard-code these into programs
15680 ;;
15681
15682cygwin* | mingw* | pw32*)
15683 version_type=windows
15684 shrext_cmds=".dll"
15685 need_version=no
15686 need_lib_prefix=no
15687
15688 case $GCC,$host_os in
15689 yes,cygwin* | yes,mingw* | yes,pw32*)
15690 library_names_spec='$libname.dll.a'
15691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15692 postinstall_cmds='base_file=`basename \${file}`~
15693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15694 dldir=$destdir/`dirname \$dlpath`~
15695 test -d \$dldir || mkdir -p \$dldir~
15696 $install_prog $dir/$dlname \$dldir/$dlname~
15697 chmod a+x \$dldir/$dlname'
15698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699 dlpath=$dir/\$dldll~
15700 $rm \$dlpath'
15701 shlibpath_overrides_runpath=yes
15702
15703 case $host_os in
15704 cygwin*)
15705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15707 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15708 ;;
15709 mingw*)
15710 # MinGW DLLs use traditional 'lib' prefix
15711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15713 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15714 # It is most probably a Windows format PATH printed by
15715 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15716 # path with ; separators, and with drive letters. We can handle the
15717 # drive letters (cygwin fileutils understands them), so leave them,
15718 # especially as we might pass files found there to a mingw objdump,
15719 # which wouldn't understand a cygwinified path. Ahh.
15720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15721 else
15722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15723 fi
15724 ;;
15725 pw32*)
15726 # pw32 DLLs use 'pw' prefix rather than 'lib'
15727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15728 ;;
15729 esac
15730 ;;
15731
15732 *)
15733 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15734 ;;
15735 esac
15736 dynamic_linker='Win32 ld.exe'
15737 # FIXME: first we should search . and the directory the executable is in
15738 shlibpath_var=PATH
15739 ;;
15740
15741darwin* | rhapsody*)
15742 dynamic_linker="$host_os dyld"
15743 version_type=darwin
15744 need_lib_prefix=no
15745 need_version=no
15746 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15747 soname_spec='${libname}${release}${major}$shared_ext'
15748 shlibpath_overrides_runpath=yes
15749 shlibpath_var=DYLD_LIBRARY_PATH
15750 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15751 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15752 if test "$GCC" = yes; then
15753 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"`
15754 else
15755 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15756 fi
15757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15758 ;;
15759
15760dgux*)
15761 version_type=linux
15762 need_lib_prefix=no
15763 need_version=no
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15765 soname_spec='${libname}${release}${shared_ext}$major'
15766 shlibpath_var=LD_LIBRARY_PATH
15767 ;;
15768
15769freebsd1*)
15770 dynamic_linker=no
15771 ;;
15772
15773kfreebsd*-gnu)
15774 version_type=linux
15775 need_lib_prefix=no
15776 need_version=no
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 shlibpath_overrides_runpath=no
15781 hardcode_into_libs=yes
15782 dynamic_linker='GNU ld.so'
15783 ;;
15784
15785freebsd* | dragonfly*)
15786 # DragonFly does not have aout. When/if they implement a new
15787 # versioning mechanism, adjust this.
15788 if test -x /usr/bin/objformat; then
15789 objformat=`/usr/bin/objformat`
15790 else
15791 case $host_os in
15792 freebsd[123]*) objformat=aout ;;
15793 *) objformat=elf ;;
15794 esac
15795 fi
15796 version_type=freebsd-$objformat
15797 case $version_type in
15798 freebsd-elf*)
15799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15800 need_version=no
15801 need_lib_prefix=no
15802 ;;
15803 freebsd-*)
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15805 need_version=yes
15806 ;;
15807 esac
15808 shlibpath_var=LD_LIBRARY_PATH
15809 case $host_os in
15810 freebsd2*)
15811 shlibpath_overrides_runpath=yes
15812 ;;
15813 freebsd3.[01]* | freebsdelf3.[01]*)
15814 shlibpath_overrides_runpath=yes
15815 hardcode_into_libs=yes
15816 ;;
15817 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15818 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15819 shlibpath_overrides_runpath=no
15820 hardcode_into_libs=yes
15821 ;;
15822 freebsd*) # from 4.6 on
15823 shlibpath_overrides_runpath=yes
15824 hardcode_into_libs=yes
15825 ;;
15826 esac
15827 ;;
15828
15829gnu*)
15830 version_type=linux
15831 need_lib_prefix=no
15832 need_version=no
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 hardcode_into_libs=yes
15837 ;;
15838
15839hpux9* | hpux10* | hpux11*)
15840 # Give a soname corresponding to the major version so that dld.sl refuses to
15841 # link against other versions.
15842 version_type=sunos
15843 need_lib_prefix=no
15844 need_version=no
15845 case $host_cpu in
15846 ia64*)
15847 shrext_cmds='.so'
15848 hardcode_into_libs=yes
15849 dynamic_linker="$host_os dld.so"
15850 shlibpath_var=LD_LIBRARY_PATH
15851 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15853 soname_spec='${libname}${release}${shared_ext}$major'
15854 if test "X$HPUX_IA64_MODE" = X32; then
15855 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15856 else
15857 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15858 fi
15859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15860 ;;
15861 hppa*64*)
15862 shrext_cmds='.sl'
15863 hardcode_into_libs=yes
15864 dynamic_linker="$host_os dld.sl"
15865 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15866 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15868 soname_spec='${libname}${release}${shared_ext}$major'
15869 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15871 ;;
15872 *)
15873 shrext_cmds='.sl'
15874 dynamic_linker="$host_os dld.sl"
15875 shlibpath_var=SHLIB_PATH
15876 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15878 soname_spec='${libname}${release}${shared_ext}$major'
15879 ;;
15880 esac
15881 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15882 postinstall_cmds='chmod 555 $lib'
15883 ;;
15884
15885interix3*)
15886 version_type=linux
15887 need_lib_prefix=no
15888 need_version=no
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15890 soname_spec='${libname}${release}${shared_ext}$major'
15891 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 shlibpath_overrides_runpath=no
15894 hardcode_into_libs=yes
15895 ;;
15896
15897irix5* | irix6* | nonstopux*)
15898 case $host_os in
15899 nonstopux*) version_type=nonstopux ;;
15900 *)
15901 if test "$lt_cv_prog_gnu_ld" = yes; then
15902 version_type=linux
15903 else
15904 version_type=irix
15905 fi ;;
15906 esac
15907 need_lib_prefix=no
15908 need_version=no
15909 soname_spec='${libname}${release}${shared_ext}$major'
15910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15911 case $host_os in
15912 irix5* | nonstopux*)
15913 libsuff= shlibsuff=
15914 ;;
15915 *)
15916 case $LD in # libtool.m4 will add one of these switches to LD
15917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15918 libsuff= shlibsuff= libmagic=32-bit;;
15919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15920 libsuff=32 shlibsuff=N32 libmagic=N32;;
15921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15923 *) libsuff= shlibsuff= libmagic=never-match;;
15924 esac
15925 ;;
15926 esac
15927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15928 shlibpath_overrides_runpath=no
15929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15931 hardcode_into_libs=yes
15932 ;;
15933
15934# No shared lib support for Linux oldld, aout, or coff.
15935linux*oldld* | linux*aout* | linux*coff*)
15936 dynamic_linker=no
15937 ;;
15938
15939# This must be Linux ELF.
15940linux*)
15941 version_type=linux
15942 need_lib_prefix=no
15943 need_version=no
15944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15945 soname_spec='${libname}${release}${shared_ext}$major'
15946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15947 shlibpath_var=LD_LIBRARY_PATH
15948 shlibpath_overrides_runpath=no
15949 # This implies no fast_install, which is unacceptable.
15950 # Some rework will be needed to allow for fast_install
15951 # before this can be enabled.
15952 hardcode_into_libs=yes
15953
15954 # find out which ABI we are using
15955 libsuff=
15956 case "$host_cpu" in
15957 x86_64*|s390x*|powerpc64*)
15958 echo '#line 15958 "configure"' > conftest.$ac_ext
15959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15960 (eval $ac_compile) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; then
15964 case `/usr/bin/file conftest.$ac_objext` in
15965 *64-bit*)
15966 libsuff=64
15967 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15968 ;;
15969 esac
15970 fi
15971 rm -rf conftest*
15972 ;;
15973 esac
15974
15975 # Append ld.so.conf contents to the search path
15976 if test -f /etc/ld.so.conf; then
15977 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15978 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15979 fi
15980
15981 # We used to test for /lib/ld.so.1 and disable shared libraries on
15982 # powerpc, because MkLinux only supported shared libraries with the
15983 # GNU dynamic linker. Since this was broken with cross compilers,
15984 # most powerpc-linux boxes support dynamic linking these days and
15985 # people can always --disable-shared, the test was removed, and we
15986 # assume the GNU/Linux dynamic linker is in use.
15987 dynamic_linker='GNU/Linux ld.so'
15988 ;;
15989
15990knetbsd*-gnu)
15991 version_type=linux
15992 need_lib_prefix=no
15993 need_version=no
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15995 soname_spec='${libname}${release}${shared_ext}$major'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 shlibpath_overrides_runpath=no
15998 hardcode_into_libs=yes
15999 dynamic_linker='GNU ld.so'
16000 ;;
16001
16002netbsd*)
16003 version_type=sunos
16004 need_lib_prefix=no
16005 need_version=no
16006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16009 dynamic_linker='NetBSD (a.out) ld.so'
16010 else
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 dynamic_linker='NetBSD ld.elf_so'
16014 fi
16015 shlibpath_var=LD_LIBRARY_PATH
16016 shlibpath_overrides_runpath=yes
16017 hardcode_into_libs=yes
16018 ;;
16019
16020newsos6)
16021 version_type=linux
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023 shlibpath_var=LD_LIBRARY_PATH
16024 shlibpath_overrides_runpath=yes
16025 ;;
16026
16027nto-qnx*)
16028 version_type=linux
16029 need_lib_prefix=no
16030 need_version=no
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032 soname_spec='${libname}${release}${shared_ext}$major'
16033 shlibpath_var=LD_LIBRARY_PATH
16034 shlibpath_overrides_runpath=yes
16035 ;;
16036
16037openbsd*)
16038 version_type=sunos
16039 sys_lib_dlsearch_path_spec="/usr/lib"
16040 need_lib_prefix=no
16041 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16042 case $host_os in
16043 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16044 *) need_version=no ;;
16045 esac
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16048 shlibpath_var=LD_LIBRARY_PATH
16049 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16050 case $host_os in
16051 openbsd2.[89] | openbsd2.[89].*)
16052 shlibpath_overrides_runpath=no
16053 ;;
16054 *)
16055 shlibpath_overrides_runpath=yes
16056 ;;
16057 esac
16058 else
16059 shlibpath_overrides_runpath=yes
16060 fi
16061 ;;
16062
16063os2*)
16064 libname_spec='$name'
16065 shrext_cmds=".dll"
16066 need_lib_prefix=no
16067 library_names_spec='$libname${shared_ext} $libname.a'
16068 dynamic_linker='OS/2 ld.exe'
16069 shlibpath_var=LIBPATH
16070 ;;
16071
16072osf3* | osf4* | osf5*)
16073 version_type=osf
16074 need_lib_prefix=no
16075 need_version=no
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16080 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16081 ;;
16082
16083solaris*)
16084 version_type=linux
16085 need_lib_prefix=no
16086 need_version=no
16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088 soname_spec='${libname}${release}${shared_ext}$major'
16089 shlibpath_var=LD_LIBRARY_PATH
16090 shlibpath_overrides_runpath=yes
16091 hardcode_into_libs=yes
16092 # ldd complains unless libraries are executable
16093 postinstall_cmds='chmod +x $lib'
16094 ;;
16095
16096sunos4*)
16097 version_type=sunos
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16099 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16100 shlibpath_var=LD_LIBRARY_PATH
16101 shlibpath_overrides_runpath=yes
16102 if test "$with_gnu_ld" = yes; then
16103 need_lib_prefix=no
16104 fi
16105 need_version=yes
16106 ;;
16107
16108sysv4 | sysv4.3*)
16109 version_type=linux
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 case $host_vendor in
16114 sni)
16115 shlibpath_overrides_runpath=no
16116 need_lib_prefix=no
16117 export_dynamic_flag_spec='${wl}-Blargedynsym'
16118 runpath_var=LD_RUN_PATH
16119 ;;
16120 siemens)
16121 need_lib_prefix=no
16122 ;;
16123 motorola)
16124 need_lib_prefix=no
16125 need_version=no
16126 shlibpath_overrides_runpath=no
16127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16128 ;;
16129 esac
16130 ;;
16131
16132sysv4*MP*)
16133 if test -d /usr/nec ;then
16134 version_type=linux
16135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16136 soname_spec='$libname${shared_ext}.$major'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 fi
16139 ;;
16140
16141sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16142 version_type=freebsd-elf
16143 need_lib_prefix=no
16144 need_version=no
16145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16146 soname_spec='${libname}${release}${shared_ext}$major'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 hardcode_into_libs=yes
16149 if test "$with_gnu_ld" = yes; then
16150 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16151 shlibpath_overrides_runpath=no
16152 else
16153 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16154 shlibpath_overrides_runpath=yes
16155 case $host_os in
16156 sco3.2v5*)
16157 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16158 ;;
16159 esac
16160 fi
16161 sys_lib_dlsearch_path_spec='/usr/lib'
16162 ;;
16163
16164uts4*)
16165 version_type=linux
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167 soname_spec='${libname}${release}${shared_ext}$major'
16168 shlibpath_var=LD_LIBRARY_PATH
16169 ;;
16170
16171*)
16172 dynamic_linker=no
16173 ;;
16174esac
16175echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16176echo "${ECHO_T}$dynamic_linker" >&6
16177test "$dynamic_linker" = no && can_build_shared=no
16178
16179variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16180if test "$GCC" = yes; then
16181 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16182fi
16183
16184echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16185echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16186hardcode_action_F77=
16187if test -n "$hardcode_libdir_flag_spec_F77" || \
16188 test -n "$runpath_var_F77" || \
16189 test "X$hardcode_automatic_F77" = "Xyes" ; then
16190
16191 # We can hardcode non-existant directories.
16192 if test "$hardcode_direct_F77" != no &&
16193 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16194 # have to relink, otherwise we might link with an installed library
16195 # when we should be linking with a yet-to-be-installed one
16196 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16197 test "$hardcode_minus_L_F77" != no; then
16198 # Linking always hardcodes the temporary library directory.
16199 hardcode_action_F77=relink
16200 else
16201 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16202 hardcode_action_F77=immediate
16203 fi
16204else
16205 # We cannot hardcode anything, or else we can only hardcode existing
16206 # directories.
16207 hardcode_action_F77=unsupported
16208fi
16209echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16210echo "${ECHO_T}$hardcode_action_F77" >&6
16211
16212if test "$hardcode_action_F77" = relink; then
16213 # Fast installation is not supported
16214 enable_fast_install=no
16215elif test "$shlibpath_overrides_runpath" = yes ||
16216 test "$enable_shared" = no; then
16217 # Fast installation is not necessary
16218 enable_fast_install=needless
16219fi
16220
16221
16222# The else clause should only fire when bootstrapping the
16223# libtool distribution, otherwise you forgot to ship ltmain.sh
16224# with your package, and you will get complaints that there are
16225# no rules to generate ltmain.sh.
16226if test -f "$ltmain"; then
16227 # See if we are running on zsh, and set the options which allow our commands through
16228 # without removal of \ escapes.
16229 if test -n "${ZSH_VERSION+set}" ; then
16230 setopt NO_GLOB_SUBST
16231 fi
16232 # Now quote all the things that may contain metacharacters while being
16233 # careful not to overquote the AC_SUBSTed values. We take copies of the
16234 # variables and quote the copies for generation of the libtool script.
16235 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16236 SED SHELL STRIP \
16237 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16238 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16239 deplibs_check_method reload_flag reload_cmds need_locks \
16240 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16241 lt_cv_sys_global_symbol_to_c_name_address \
16242 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16243 old_postinstall_cmds old_postuninstall_cmds \
16244 compiler_F77 \
16245 CC_F77 \
16246 LD_F77 \
16247 lt_prog_compiler_wl_F77 \
16248 lt_prog_compiler_pic_F77 \
16249 lt_prog_compiler_static_F77 \
16250 lt_prog_compiler_no_builtin_flag_F77 \
16251 export_dynamic_flag_spec_F77 \
16252 thread_safe_flag_spec_F77 \
16253 whole_archive_flag_spec_F77 \
16254 enable_shared_with_static_runtimes_F77 \
16255 old_archive_cmds_F77 \
16256 old_archive_from_new_cmds_F77 \
16257 predep_objects_F77 \
16258 postdep_objects_F77 \
16259 predeps_F77 \
16260 postdeps_F77 \
16261 compiler_lib_search_path_F77 \
16262 archive_cmds_F77 \
16263 archive_expsym_cmds_F77 \
16264 postinstall_cmds_F77 \
16265 postuninstall_cmds_F77 \
16266 old_archive_from_expsyms_cmds_F77 \
16267 allow_undefined_flag_F77 \
16268 no_undefined_flag_F77 \
16269 export_symbols_cmds_F77 \
16270 hardcode_libdir_flag_spec_F77 \
16271 hardcode_libdir_flag_spec_ld_F77 \
16272 hardcode_libdir_separator_F77 \
16273 hardcode_automatic_F77 \
16274 module_cmds_F77 \
16275 module_expsym_cmds_F77 \
16276 lt_cv_prog_compiler_c_o_F77 \
16277 exclude_expsyms_F77 \
16278 include_expsyms_F77; do
16279
16280 case $var in
16281 old_archive_cmds_F77 | \
16282 old_archive_from_new_cmds_F77 | \
16283 archive_cmds_F77 | \
16284 archive_expsym_cmds_F77 | \
16285 module_cmds_F77 | \
16286 module_expsym_cmds_F77 | \
16287 old_archive_from_expsyms_cmds_F77 | \
16288 export_symbols_cmds_F77 | \
16289 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16290 postinstall_cmds | postuninstall_cmds | \
16291 old_postinstall_cmds | old_postuninstall_cmds | \
16292 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16293 # Double-quote double-evaled strings.
16294 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16295 ;;
16296 *)
16297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16298 ;;
16299 esac
16300 done
16301
16302 case $lt_echo in
16303 *'\$0 --fallback-echo"')
16304 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16305 ;;
16306 esac
16307
16308cfgfile="$ofile"
16309
16310 cat <<__EOF__ >> "$cfgfile"
16311# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16312
16313# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16314
16315# Shell to use when invoking shell scripts.
16316SHELL=$lt_SHELL
16317
16318# Whether or not to build shared libraries.
16319build_libtool_libs=$enable_shared
16320
16321# Whether or not to build static libraries.
16322build_old_libs=$enable_static
16323
16324# Whether or not to add -lc for building shared libraries.
16325build_libtool_need_lc=$archive_cmds_need_lc_F77
16326
16327# Whether or not to disallow shared libs when runtime libs are static
16328allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16329
16330# Whether or not to optimize for fast installation.
16331fast_install=$enable_fast_install
16332
16333# The host system.
16334host_alias=$host_alias
16335host=$host
16336host_os=$host_os
16337
16338# The build system.
16339build_alias=$build_alias
16340build=$build
16341build_os=$build_os
16342
16343# An echo program that does not interpret backslashes.
16344echo=$lt_echo
16345
16346# The archiver.
16347AR=$lt_AR
16348AR_FLAGS=$lt_AR_FLAGS
16349
16350# A C compiler.
16351LTCC=$lt_LTCC
16352
16353# LTCC compiler flags.
16354LTCFLAGS=$lt_LTCFLAGS
16355
16356# A language-specific compiler.
16357CC=$lt_compiler_F77
16358
16359# Is the compiler the GNU C compiler?
16360with_gcc=$GCC_F77
16361
16362gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
16363gcc_ver=\`gcc -dumpversion\`
16364
16365# An ERE matcher.
16366EGREP=$lt_EGREP
16367
16368# The linker used to build libraries.
16369LD=$lt_LD_F77
16370
16371# Whether we need hard or soft links.
16372LN_S=$lt_LN_S
16373
16374# A BSD-compatible nm program.
16375NM=$lt_NM
16376
16377# A symbol stripping program
16378STRIP=$lt_STRIP
16379
16380# Used to examine libraries when file_magic_cmd begins "file"
16381MAGIC_CMD=$MAGIC_CMD
16382
16383# Used on cygwin: DLL creation program.
16384DLLTOOL="$DLLTOOL"
16385
16386# Used on cygwin: object dumper.
16387OBJDUMP="$OBJDUMP"
16388
16389# Used on cygwin: assembler.
16390AS="$AS"
16391
16392# The name of the directory that contains temporary libtool files.
16393objdir=$objdir
16394
16395# How to create reloadable object files.
16396reload_flag=$lt_reload_flag
16397reload_cmds=$lt_reload_cmds
16398
16399# How to pass a linker flag through the compiler.
16400wl=$lt_lt_prog_compiler_wl_F77
16401
16402# Object file suffix (normally "o").
16403objext="$ac_objext"
16404
16405# Old archive suffix (normally "a").
16406libext="$libext"
16407
16408# Shared library suffix (normally ".so").
16409shrext_cmds='$shrext_cmds'
16410
16411# Executable file suffix (normally "").
16412exeext="$exeext"
16413
16414# Additional compiler flags for building library objects.
16415pic_flag=$lt_lt_prog_compiler_pic_F77
16416pic_mode=$pic_mode
16417
16418# What is the maximum length of a command?
16419max_cmd_len=$lt_cv_sys_max_cmd_len
16420
16421# Does compiler simultaneously support -c and -o options?
16422compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16423
16424# Must we lock files when doing compilation?
16425need_locks=$lt_need_locks
16426
16427# Do we need the lib prefix for modules?
16428need_lib_prefix=$need_lib_prefix
16429
16430# Do we need a version for libraries?
16431need_version=$need_version
16432
16433# Whether dlopen is supported.
16434dlopen_support=$enable_dlopen
16435
16436# Whether dlopen of programs is supported.
16437dlopen_self=$enable_dlopen_self
16438
16439# Whether dlopen of statically linked programs is supported.
16440dlopen_self_static=$enable_dlopen_self_static
16441
16442# Compiler flag to prevent dynamic linking.
16443link_static_flag=$lt_lt_prog_compiler_static_F77
16444
16445# Compiler flag to turn off builtin functions.
16446no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16447
16448# Compiler flag to allow reflexive dlopens.
16449export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16450
16451# Compiler flag to generate shared objects directly from archives.
16452whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16453
16454# Compiler flag to generate thread-safe objects.
16455thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16456
16457# Library versioning type.
16458version_type=$version_type
16459
16460# Format of library name prefix.
16461libname_spec=$lt_libname_spec
16462
16463# List of archive names. First name is the real one, the rest are links.
16464# The last name is the one that the linker finds with -lNAME.
16465library_names_spec=$lt_library_names_spec
16466
16467# The coded name of the library, if different from the real name.
16468soname_spec=$lt_soname_spec
16469
16470# Commands used to build and install an old-style archive.
16471RANLIB=$lt_RANLIB
16472old_archive_cmds=$lt_old_archive_cmds_F77
16473old_postinstall_cmds=$lt_old_postinstall_cmds
16474old_postuninstall_cmds=$lt_old_postuninstall_cmds
16475
16476# Create an old-style archive from a shared archive.
16477old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16478
16479# Create a temporary old-style archive to link instead of a shared archive.
16480old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16481
16482# Commands used to build and install a shared archive.
16483archive_cmds=$lt_archive_cmds_F77
16484archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16485postinstall_cmds=$lt_postinstall_cmds
16486postuninstall_cmds=$lt_postuninstall_cmds
16487
16488# Commands used to build a loadable module (assumed same as above if empty)
16489module_cmds=$lt_module_cmds_F77
16490module_expsym_cmds=$lt_module_expsym_cmds_F77
16491
16492# Commands to strip libraries.
16493old_striplib=$lt_old_striplib
16494striplib=$lt_striplib
16495
16496# Dependencies to place before the objects being linked to create a
16497# shared library.
16498predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16499
16500# Dependencies to place after the objects being linked to create a
16501# shared library.
16502postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16503
16504# Dependencies to place before the objects being linked to create a
16505# shared library.
16506predeps=$lt_predeps_F77
16507
16508# Dependencies to place after the objects being linked to create a
16509# shared library.
16510postdeps=$lt_postdeps_F77
16511
16512# The library search path used internally by the compiler when linking
16513# a shared library.
16514compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16515
16516# Method to check whether dependent libraries are shared objects.
16517deplibs_check_method=$lt_deplibs_check_method
16518
16519# Command to use when deplibs_check_method == file_magic.
16520file_magic_cmd=$lt_file_magic_cmd
16521
16522# Flag that allows shared libraries with undefined symbols to be built.
16523allow_undefined_flag=$lt_allow_undefined_flag_F77
16524
16525# Flag that forces no undefined symbols.
16526no_undefined_flag=$lt_no_undefined_flag_F77
16527
16528# Commands used to finish a libtool library installation in a directory.
16529finish_cmds=$lt_finish_cmds
16530
16531# Same as above, but a single script fragment to be evaled but not shown.
16532finish_eval=$lt_finish_eval
16533
16534# Take the output of nm and produce a listing of raw symbols and C names.
16535global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16536
16537# Transform the output of nm in a proper C declaration
16538global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16539
16540# Transform the output of nm in a C name address pair
16541global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16542
16543# This is the shared library runtime path variable.
16544runpath_var=$runpath_var
16545
16546# This is the shared library path variable.
16547shlibpath_var=$shlibpath_var
16548
16549# Is shlibpath searched before the hard-coded library search path?
16550shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16551
16552# How to hardcode a shared library path into an executable.
16553hardcode_action=$hardcode_action_F77
16554
16555# Whether we should hardcode library paths into libraries.
16556hardcode_into_libs=$hardcode_into_libs
16557
16558# Flag to hardcode \$libdir into a binary during linking.
16559# This must work even if \$libdir does not exist.
16560hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16561
16562# If ld is used when linking, flag to hardcode \$libdir into
16563# a binary during linking. This must work even if \$libdir does
16564# not exist.
16565hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16566
16567# Whether we need a single -rpath flag with a separated argument.
16568hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16569
16570# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16571# resulting binary.
16572hardcode_direct=$hardcode_direct_F77
16573
16574# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16575# resulting binary.
16576hardcode_minus_L=$hardcode_minus_L_F77
16577
16578# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16579# the resulting binary.
16580hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16581
16582# Set to yes if building a shared library automatically hardcodes DIR into the library
16583# and all subsequent libraries and executables linked against it.
16584hardcode_automatic=$hardcode_automatic_F77
16585
16586# Variables whose values should be saved in libtool wrapper scripts and
16587# restored at relink time.
16588variables_saved_for_relink="$variables_saved_for_relink"
16589
16590# Whether libtool must link a program against all its dependency libraries.
16591link_all_deplibs=$link_all_deplibs_F77
16592
16593# Compile-time system search path for libraries
16594sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16595
16596# Run-time system search path for libraries
16597sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16598
16599# Fix the shell variable \$srcfile for the compiler.
16600fix_srcfile_path="$fix_srcfile_path_F77"
16601
16602# Set to yes if exported symbols are required.
16603always_export_symbols=$always_export_symbols_F77
16604
16605# The commands to list exported symbols.
16606export_symbols_cmds=$lt_export_symbols_cmds_F77
16607
16608# The commands to extract the exported symbol list from a shared archive.
16609extract_expsyms_cmds=$lt_extract_expsyms_cmds
16610
16611# Symbols that should not be listed in the preloaded symbols.
16612exclude_expsyms=$lt_exclude_expsyms_F77
16613
16614# Symbols that must always be exported.
16615include_expsyms=$lt_include_expsyms_F77
16616
16617# ### END LIBTOOL TAG CONFIG: $tagname
16618
16619__EOF__
16620
16621
16622else
16623 # If there is no Makefile yet, we rely on a make rule to execute
16624 # `config.status --recheck' to rerun these tests and create the
16625 # libtool script then.
16626 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16627 if test -f "$ltmain_in"; then
16628 test -f Makefile && make "$ltmain"
16629 fi
16630fi
16631
16632
16633ac_ext=c
16634ac_cpp='$CPP $CPPFLAGS'
16635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16637ac_compiler_gnu=$ac_cv_c_compiler_gnu
16638
16639CC="$lt_save_CC"
16640
16641 else
16642 tagname=""
16643 fi
16644 ;;
16645
16646 GCJ)
16647 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16648
16649
16650
16651# Source file extension for Java test sources.
16652ac_ext=java
16653
16654# Object file extension for compiled Java test sources.
16655objext=o
16656objext_GCJ=$objext
16657
16658# Code to be used in simple compile tests
16659lt_simple_compile_test_code="class foo {}\n"
16660
16661# Code to be used in simple link tests
16662lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16663
16664# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16665
16666# If no C compiler was specified, use CC.
16667LTCC=${LTCC-"$CC"}
16668
16669# If no C compiler flags were specified, use CFLAGS.
16670LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16671
16672# Allow CC to be a program name with arguments.
16673compiler=$CC
16674
16675
16676# save warnings/boilerplate of simple test code
16677ac_outfile=conftest.$ac_objext
16678printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16679eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16680_lt_compiler_boilerplate=`cat conftest.err`
16681$rm conftest*
16682
16683ac_outfile=conftest.$ac_objext
16684printf "$lt_simple_link_test_code" >conftest.$ac_ext
16685eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16686_lt_linker_boilerplate=`cat conftest.err`
16687$rm conftest*
16688
16689
16690# Allow CC to be a program name with arguments.
16691lt_save_CC="$CC"
16692CC=${GCJ-"gcj"}
16693compiler=$CC
16694compiler_GCJ=$CC
16695for cc_temp in $compiler""; do
16696 case $cc_temp in
16697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16699 \-*) ;;
16700 *) break;;
16701 esac
16702done
16703cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16704
16705
16706# GCJ did not exist at the time GCC didn't implicitly link libc in.
16707archive_cmds_need_lc_GCJ=no
16708
16709old_archive_cmds_GCJ=$old_archive_cmds
16710
16711
16712lt_prog_compiler_no_builtin_flag_GCJ=
16713
16714if test "$GCC" = yes; then
16715 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16716
16717
16718echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16719echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16720if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16722else
16723 lt_cv_prog_compiler_rtti_exceptions=no
16724 ac_outfile=conftest.$ac_objext
16725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16726 lt_compiler_flag="-fno-rtti -fno-exceptions"
16727 # Insert the option either (1) after the last *FLAGS variable, or
16728 # (2) before a word containing "conftest.", or (3) at the end.
16729 # Note that $ac_compile itself does not contain backslashes and begins
16730 # with a dollar sign (not a hyphen), so the echo should work correctly.
16731 # The option is referenced via a variable to avoid confusing sed.
16732 lt_compile=`echo "$ac_compile" | $SED \
16733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16735 -e 's:$: $lt_compiler_flag:'`
16736 (eval echo "\"\$as_me:16736: $lt_compile\"" >&5)
16737 (eval "$lt_compile" 2>conftest.err)
16738 ac_status=$?
16739 cat conftest.err >&5
16740 echo "$as_me:16740: \$? = $ac_status" >&5
16741 if (exit $ac_status) && test -s "$ac_outfile"; then
16742 # The compiler can only warn and ignore the option if not recognized
16743 # So say no if there are warnings other than the usual output.
16744 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16747 lt_cv_prog_compiler_rtti_exceptions=yes
16748 fi
16749 fi
16750 $rm conftest*
16751
16752fi
16753echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16754echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16755
16756if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16757 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16758else
16759 :
16760fi
16761
16762fi
16763
16764lt_prog_compiler_wl_GCJ=
16765lt_prog_compiler_pic_GCJ=
16766lt_prog_compiler_static_GCJ=
16767
16768echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16769echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16770
16771 if test "$GCC" = yes; then
16772 lt_prog_compiler_wl_GCJ='-Wl,'
16773 lt_prog_compiler_static_GCJ='-static'
16774
16775 case $host_os in
16776 aix*)
16777 # All AIX code is PIC.
16778 if test "$host_cpu" = ia64; then
16779 # AIX 5 now supports IA64 processor
16780 lt_prog_compiler_static_GCJ='-Bstatic'
16781 fi
16782 ;;
16783
16784 amigaos*)
16785 # FIXME: we need at least 68020 code to build shared libraries, but
16786 # adding the `-m68020' flag to GCC prevents building anything better,
16787 # like `-m68040'.
16788 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16789 ;;
16790
16791 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16792 # PIC is the default for these OSes.
16793 ;;
16794
16795 mingw* | pw32* | os2*)
16796 # This hack is so that the source file can tell whether it is being
16797 # built for inclusion in a dll (and should export symbols for example).
16798 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16799 ;;
16800
16801 darwin* | rhapsody*)
16802 # PIC is the default on this platform
16803 # Common symbols not allowed in MH_DYLIB files
16804 lt_prog_compiler_pic_GCJ='-fno-common'
16805 ;;
16806
16807 interix3*)
16808 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16809 # Instead, we relocate shared libraries at runtime.
16810 ;;
16811
16812 msdosdjgpp*)
16813 # Just because we use GCC doesn't mean we suddenly get shared libraries
16814 # on systems that don't support them.
16815 lt_prog_compiler_can_build_shared_GCJ=no
16816 enable_shared=no
16817 ;;
16818
16819 sysv4*MP*)
16820 if test -d /usr/nec; then
16821 lt_prog_compiler_pic_GCJ=-Kconform_pic
16822 fi
16823 ;;
16824
16825 hpux*)
16826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16827 # not for PA HP-UX.
16828 case $host_cpu in
16829 hppa*64*|ia64*)
16830 # +Z the default
16831 ;;
16832 *)
16833 lt_prog_compiler_pic_GCJ='-fPIC'
16834 ;;
16835 esac
16836 ;;
16837
16838 *)
16839 lt_prog_compiler_pic_GCJ='-fPIC'
16840 ;;
16841 esac
16842 else
16843 # PORTME Check for flag to pass linker flags through the system compiler.
16844 case $host_os in
16845 aix*)
16846 lt_prog_compiler_wl_GCJ='-Wl,'
16847 if test "$host_cpu" = ia64; then
16848 # AIX 5 now supports IA64 processor
16849 lt_prog_compiler_static_GCJ='-Bstatic'
16850 else
16851 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16852 fi
16853 ;;
16854 darwin*)
16855 # PIC is the default on this platform
16856 # Common symbols not allowed in MH_DYLIB files
16857 case $cc_basename in
16858 xlc*)
16859 lt_prog_compiler_pic_GCJ='-qnocommon'
16860 lt_prog_compiler_wl_GCJ='-Wl,'
16861 ;;
16862 esac
16863 ;;
16864
16865 mingw* | pw32* | os2*)
16866 # This hack is so that the source file can tell whether it is being
16867 # built for inclusion in a dll (and should export symbols for example).
16868 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16869 ;;
16870
16871 hpux9* | hpux10* | hpux11*)
16872 lt_prog_compiler_wl_GCJ='-Wl,'
16873 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16874 # not for PA HP-UX.
16875 case $host_cpu in
16876 hppa*64*|ia64*)
16877 # +Z the default
16878 ;;
16879 *)
16880 lt_prog_compiler_pic_GCJ='+Z'
16881 ;;
16882 esac
16883 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16884 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16885 ;;
16886
16887 irix5* | irix6* | nonstopux*)
16888 lt_prog_compiler_wl_GCJ='-Wl,'
16889 # PIC (with -KPIC) is the default.
16890 lt_prog_compiler_static_GCJ='-non_shared'
16891 ;;
16892
16893 newsos6)
16894 lt_prog_compiler_pic_GCJ='-KPIC'
16895 lt_prog_compiler_static_GCJ='-Bstatic'
16896 ;;
16897
16898 linux*)
16899 case $cc_basename in
16900 icc* | ecc*)
16901 lt_prog_compiler_wl_GCJ='-Wl,'
16902 lt_prog_compiler_pic_GCJ='-KPIC'
16903 lt_prog_compiler_static_GCJ='-static'
16904 ;;
16905 pgcc* | pgf77* | pgf90* | pgf95*)
16906 # Portland Group compilers (*not* the Pentium gcc compiler,
16907 # which looks to be a dead project)
16908 lt_prog_compiler_wl_GCJ='-Wl,'
16909 lt_prog_compiler_pic_GCJ='-fpic'
16910 lt_prog_compiler_static_GCJ='-Bstatic'
16911 ;;
16912 ccc*)
16913 lt_prog_compiler_wl_GCJ='-Wl,'
16914 # All Alpha code is PIC.
16915 lt_prog_compiler_static_GCJ='-non_shared'
16916 ;;
16917 esac
16918 ;;
16919
16920 osf3* | osf4* | osf5*)
16921 lt_prog_compiler_wl_GCJ='-Wl,'
16922 # All OSF/1 code is PIC.
16923 lt_prog_compiler_static_GCJ='-non_shared'
16924 ;;
16925
16926 solaris*)
16927 lt_prog_compiler_pic_GCJ='-KPIC'
16928 lt_prog_compiler_static_GCJ='-Bstatic'
16929 case $cc_basename in
16930 f77* | f90* | f95*)
16931 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16932 *)
16933 lt_prog_compiler_wl_GCJ='-Wl,';;
16934 esac
16935 ;;
16936
16937 sunos4*)
16938 lt_prog_compiler_wl_GCJ='-Qoption ld '
16939 lt_prog_compiler_pic_GCJ='-PIC'
16940 lt_prog_compiler_static_GCJ='-Bstatic'
16941 ;;
16942
16943 sysv4 | sysv4.2uw2* | sysv4.3*)
16944 lt_prog_compiler_wl_GCJ='-Wl,'
16945 lt_prog_compiler_pic_GCJ='-KPIC'
16946 lt_prog_compiler_static_GCJ='-Bstatic'
16947 ;;
16948
16949 sysv4*MP*)
16950 if test -d /usr/nec ;then
16951 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16952 lt_prog_compiler_static_GCJ='-Bstatic'
16953 fi
16954 ;;
16955
16956 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16957 lt_prog_compiler_wl_GCJ='-Wl,'
16958 lt_prog_compiler_pic_GCJ='-KPIC'
16959 lt_prog_compiler_static_GCJ='-Bstatic'
16960 ;;
16961
16962 unicos*)
16963 lt_prog_compiler_wl_GCJ='-Wl,'
16964 lt_prog_compiler_can_build_shared_GCJ=no
16965 ;;
16966
16967 uts4*)
16968 lt_prog_compiler_pic_GCJ='-pic'
16969 lt_prog_compiler_static_GCJ='-Bstatic'
16970 ;;
16971
16972 *)
16973 lt_prog_compiler_can_build_shared_GCJ=no
16974 ;;
16975 esac
16976 fi
16977
16978echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16979echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16980
16981#
16982# Check to make sure the PIC flag actually works.
16983#
16984if test -n "$lt_prog_compiler_pic_GCJ"; then
16985
16986echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16987echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16988if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990else
16991 lt_prog_compiler_pic_works_GCJ=no
16992 ac_outfile=conftest.$ac_objext
16993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16994 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16995 # Insert the option either (1) after the last *FLAGS variable, or
16996 # (2) before a word containing "conftest.", or (3) at the end.
16997 # Note that $ac_compile itself does not contain backslashes and begins
16998 # with a dollar sign (not a hyphen), so the echo should work correctly.
16999 # The option is referenced via a variable to avoid confusing sed.
17000 lt_compile=`echo "$ac_compile" | $SED \
17001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17003 -e 's:$: $lt_compiler_flag:'`
17004 (eval echo "\"\$as_me:17004: $lt_compile\"" >&5)
17005 (eval "$lt_compile" 2>conftest.err)
17006 ac_status=$?
17007 cat conftest.err >&5
17008 echo "$as_me:17008: \$? = $ac_status" >&5
17009 if (exit $ac_status) && test -s "$ac_outfile"; then
17010 # The compiler can only warn and ignore the option if not recognized
17011 # So say no if there are warnings other than the usual output.
17012 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17014 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17015 lt_prog_compiler_pic_works_GCJ=yes
17016 fi
17017 fi
17018 $rm conftest*
17019
17020fi
17021echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17022echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17023
17024if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17025 case $lt_prog_compiler_pic_GCJ in
17026 "" | " "*) ;;
17027 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17028 esac
17029else
17030 lt_prog_compiler_pic_GCJ=
17031 lt_prog_compiler_can_build_shared_GCJ=no
17032fi
17033
17034fi
17035case $host_os in
17036 # For platforms which do not support PIC, -DPIC is meaningless:
17037 *djgpp*)
17038 lt_prog_compiler_pic_GCJ=
17039 ;;
17040 *)
17041 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17042 ;;
17043esac
17044
17045#
17046# Check to make sure the static flag actually works.
17047#
17048wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17049echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17050echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17051if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17053else
17054 lt_prog_compiler_static_works_GCJ=no
17055 save_LDFLAGS="$LDFLAGS"
17056 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17057 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17058 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17059 # The linker can only warn and ignore the option if not recognized
17060 # So say no if there are warnings
17061 if test -s conftest.err; then
17062 # Append any errors to the config.log.
17063 cat conftest.err 1>&5
17064 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17066 if diff conftest.exp conftest.er2 >/dev/null; then
17067 lt_prog_compiler_static_works_GCJ=yes
17068 fi
17069 else
17070 lt_prog_compiler_static_works_GCJ=yes
17071 fi
17072 fi
17073 $rm conftest*
17074 LDFLAGS="$save_LDFLAGS"
17075
17076fi
17077echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17078echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17079
17080if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17081 :
17082else
17083 lt_prog_compiler_static_GCJ=
17084fi
17085
17086
17087echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17088echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17089if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
17091else
17092 lt_cv_prog_compiler_c_o_GCJ=no
17093 $rm -r conftest 2>/dev/null
17094 mkdir conftest
17095 cd conftest
17096 mkdir out
17097 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17098
17099 lt_compiler_flag="-o out/conftest2.$ac_objext"
17100 # Insert the option either (1) after the last *FLAGS variable, or
17101 # (2) before a word containing "conftest.", or (3) at the end.
17102 # Note that $ac_compile itself does not contain backslashes and begins
17103 # with a dollar sign (not a hyphen), so the echo should work correctly.
17104 lt_compile=`echo "$ac_compile" | $SED \
17105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17107 -e 's:$: $lt_compiler_flag:'`
17108 (eval echo "\"\$as_me:17108: $lt_compile\"" >&5)
17109 (eval "$lt_compile" 2>out/conftest.err)
17110 ac_status=$?
17111 cat out/conftest.err >&5
17112 echo "$as_me:17112: \$? = $ac_status" >&5
17113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17114 then
17115 # The compiler can only warn and ignore the option if not recognized
17116 # So say no if there are warnings
17117 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17118 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17119 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17120 lt_cv_prog_compiler_c_o_GCJ=yes
17121 fi
17122 fi
17123 chmod u+w . 2>&5
17124 $rm conftest*
17125 # SGI C++ compiler will create directory out/ii_files/ for
17126 # template instantiation
17127 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17128 $rm out/* && rmdir out
17129 cd ..
17130 rmdir conftest
17131 $rm conftest*
17132
17133fi
17134echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17135echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17136
17137
17138hard_links="nottested"
17139if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17140 # do not overwrite the value of need_locks provided by the user
17141 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17142echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17143 hard_links=yes
17144 $rm conftest*
17145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17146 touch conftest.a
17147 ln conftest.a conftest.b 2>&5 || hard_links=no
17148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17149 echo "$as_me:$LINENO: result: $hard_links" >&5
17150echo "${ECHO_T}$hard_links" >&6
17151 if test "$hard_links" = no; then
17152 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17153echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17154 need_locks=warn
17155 fi
17156else
17157 need_locks=no
17158fi
17159
17160echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17161echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17162
17163 runpath_var=
17164 allow_undefined_flag_GCJ=
17165 enable_shared_with_static_runtimes_GCJ=no
17166 archive_cmds_GCJ=
17167 archive_expsym_cmds_GCJ=
17168 old_archive_From_new_cmds_GCJ=
17169 old_archive_from_expsyms_cmds_GCJ=
17170 export_dynamic_flag_spec_GCJ=
17171 whole_archive_flag_spec_GCJ=
17172 thread_safe_flag_spec_GCJ=
17173 hardcode_libdir_flag_spec_GCJ=
17174 hardcode_libdir_flag_spec_ld_GCJ=
17175 hardcode_libdir_separator_GCJ=
17176 hardcode_direct_GCJ=no
17177 hardcode_minus_L_GCJ=no
17178 hardcode_shlibpath_var_GCJ=unsupported
17179 link_all_deplibs_GCJ=unknown
17180 hardcode_automatic_GCJ=no
17181 module_cmds_GCJ=
17182 module_expsym_cmds_GCJ=
17183 always_export_symbols_GCJ=no
17184 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17185 # include_expsyms should be a list of space-separated symbols to be *always*
17186 # included in the symbol list
17187 include_expsyms_GCJ=
17188 # exclude_expsyms can be an extended regexp of symbols to exclude
17189 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17190 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17191 # as well as any symbol that contains `d'.
17192 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17193 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17194 # platforms (ab)use it in PIC code, but their linkers get confused if
17195 # the symbol is explicitly referenced. Since portable code cannot
17196 # rely on this symbol name, it's probably fine to never include it in
17197 # preloaded symbol tables.
17198 extract_expsyms_cmds=
17199 # Just being paranoid about ensuring that cc_basename is set.
17200 for cc_temp in $compiler""; do
17201 case $cc_temp in
17202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17204 \-*) ;;
17205 *) break;;
17206 esac
17207done
17208cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17209
17210 case $host_os in
17211 cygwin* | mingw* | pw32*)
17212 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17213 # When not using gcc, we currently assume that we are using
17214 # Microsoft Visual C++.
17215 if test "$GCC" != yes; then
17216 with_gnu_ld=no
17217 fi
17218 ;;
17219 interix*)
17220 # we just hope/assume this is gcc and not c89 (= MSVC++)
17221 with_gnu_ld=yes
17222 ;;
17223 openbsd*)
17224 with_gnu_ld=no
17225 ;;
17226 esac
17227
17228 ld_shlibs_GCJ=yes
17229 if test "$with_gnu_ld" = yes; then
17230 # If archive_cmds runs LD, not CC, wlarc should be empty
17231 wlarc='${wl}'
17232
17233 # Set some defaults for GNU ld with shared library support. These
17234 # are reset later if shared libraries are not supported. Putting them
17235 # here allows them to be overridden if necessary.
17236 runpath_var=LD_RUN_PATH
17237 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17238 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17239 # ancient GNU ld didn't support --whole-archive et. al.
17240 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17241 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17242 else
17243 whole_archive_flag_spec_GCJ=
17244 fi
17245 supports_anon_versioning=no
17246 case `$LD -v 2>/dev/null` in
17247 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17248 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17249 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17250 *\ 2.11.*) ;; # other 2.11 versions
17251 *) supports_anon_versioning=yes ;;
17252 esac
17253
17254 # See if GNU ld supports shared libraries.
17255 case $host_os in
17256 aix3* | aix4* | aix5*)
17257 # On AIX/PPC, the GNU linker is very broken
17258 if test "$host_cpu" != ia64; then
17259 ld_shlibs_GCJ=no
17260 cat <<EOF 1>&2
17261
17262*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17263*** to be unable to reliably create shared libraries on AIX.
17264*** Therefore, libtool is disabling shared libraries support. If you
17265*** really care for shared libraries, you may want to modify your PATH
17266*** so that a non-GNU linker is found, and then restart.
17267
17268EOF
17269 fi
17270 ;;
17271
17272 amigaos*)
17273 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)'
17274 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17275 hardcode_minus_L_GCJ=yes
17276
17277 # Samuel A. Falvo II <[email protected]> reports
17278 # that the semantics of dynamic libraries on AmigaOS, at least up
17279 # to version 4, is to share data among multiple programs linked
17280 # with the same dynamic library. Since this doesn't match the
17281 # behavior of shared libraries on other platforms, we can't use
17282 # them.
17283 ld_shlibs_GCJ=no
17284 ;;
17285
17286 beos*)
17287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17288 allow_undefined_flag_GCJ=unsupported
17289 # Joseph Beckenbach <[email protected]> says some releases of gcc
17290 # support --undefined. This deserves some investigation. FIXME
17291 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17292 else
17293 ld_shlibs_GCJ=no
17294 fi
17295 ;;
17296
17297 cygwin* | mingw* | pw32*)
17298 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17299 # as there is no search path for DLLs.
17300 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17301 allow_undefined_flag_GCJ=unsupported
17302 always_export_symbols_GCJ=no
17303 enable_shared_with_static_runtimes_GCJ=yes
17304 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17305
17306 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17307 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17308 # If the export-symbols file already is a .def file (1st line
17309 # is EXPORTS), use it as is; otherwise, prepend...
17310 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17311 cp $export_symbols $output_objdir/$soname.def;
17312 else
17313 echo EXPORTS > $output_objdir/$soname.def;
17314 cat $export_symbols >> $output_objdir/$soname.def;
17315 fi~
17316 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17317 else
17318 ld_shlibs_GCJ=no
17319 fi
17320 ;;
17321
17322 interix3*)
17323 hardcode_direct_GCJ=no
17324 hardcode_shlibpath_var_GCJ=no
17325 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17326 export_dynamic_flag_spec_GCJ='${wl}-E'
17327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17328 # Instead, shared libraries are loaded at an image base (0x10000000 by
17329 # default) and relocated if they conflict, which is a slow very memory
17330 # consuming and fragmenting process. To avoid this, we pick a random,
17331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17332 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17333 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17334 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17335 ;;
17336
17337 linux*)
17338 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17339 tmp_addflag=
17340 case $cc_basename,$host_cpu in
17341 pgcc*) # Portland Group C compiler
17342 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17343 tmp_addflag=' $pic_flag'
17344 ;;
17345 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17346 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17347 tmp_addflag=' $pic_flag -Mnomain' ;;
17348 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17349 tmp_addflag=' -i_dynamic' ;;
17350 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17351 tmp_addflag=' -i_dynamic -nofor_main' ;;
17352 ifc* | ifort*) # Intel Fortran compiler
17353 tmp_addflag=' -nofor_main' ;;
17354 esac
17355 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17356
17357 if test $supports_anon_versioning = yes; then
17358 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17360 $echo "local: *; };" >> $output_objdir/$libname.ver~
17361 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17362 fi
17363 else
17364 ld_shlibs_GCJ=no
17365 fi
17366 ;;
17367
17368 netbsd*)
17369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17370 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17371 wlarc=
17372 else
17373 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17374 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17375 fi
17376 ;;
17377
17378 solaris*)
17379 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17380 ld_shlibs_GCJ=no
17381 cat <<EOF 1>&2
17382
17383*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17384*** create shared libraries on Solaris systems. Therefore, libtool
17385*** is disabling shared libraries support. We urge you to upgrade GNU
17386*** binutils to release 2.9.1 or newer. Another option is to modify
17387*** your PATH or compiler configuration so that the native linker is
17388*** used, and then restart.
17389
17390EOF
17391 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17392 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17393 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17394 else
17395 ld_shlibs_GCJ=no
17396 fi
17397 ;;
17398
17399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17400 case `$LD -v 2>&1` in
17401 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17402 ld_shlibs_GCJ=no
17403 cat <<_LT_EOF 1>&2
17404
17405*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17406*** reliably create shared libraries on SCO systems. Therefore, libtool
17407*** is disabling shared libraries support. We urge you to upgrade GNU
17408*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17409*** your PATH or compiler configuration so that the native linker is
17410*** used, and then restart.
17411
17412_LT_EOF
17413 ;;
17414 *)
17415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17416 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17417 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17418 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17419 else
17420 ld_shlibs_GCJ=no
17421 fi
17422 ;;
17423 esac
17424 ;;
17425
17426 sunos4*)
17427 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17428 wlarc=
17429 hardcode_direct_GCJ=yes
17430 hardcode_shlibpath_var_GCJ=no
17431 ;;
17432
17433 *)
17434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17435 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17436 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17437 else
17438 ld_shlibs_GCJ=no
17439 fi
17440 ;;
17441 esac
17442
17443 if test "$ld_shlibs_GCJ" = no; then
17444 runpath_var=
17445 hardcode_libdir_flag_spec_GCJ=
17446 export_dynamic_flag_spec_GCJ=
17447 whole_archive_flag_spec_GCJ=
17448 fi
17449 else
17450 # PORTME fill in a description of your system's linker (not GNU ld)
17451 case $host_os in
17452 aix3*)
17453 allow_undefined_flag_GCJ=unsupported
17454 always_export_symbols_GCJ=yes
17455 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'
17456 # Note: this linker hardcodes the directories in LIBPATH if there
17457 # are no directories specified by -L.
17458 hardcode_minus_L_GCJ=yes
17459 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17460 # Neither direct hardcoding nor static linking is supported with a
17461 # broken collect2.
17462 hardcode_direct_GCJ=unsupported
17463 fi
17464 ;;
17465
17466 aix4* | aix5*)
17467 if test "$host_cpu" = ia64; then
17468 # On IA64, the linker does run time linking by default, so we don't
17469 # have to do anything special.
17470 aix_use_runtimelinking=no
17471 exp_sym_flag='-Bexport'
17472 no_entry_flag=""
17473 else
17474 # If we're using GNU nm, then we don't want the "-C" option.
17475 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17476 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17477 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'
17478 else
17479 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'
17480 fi
17481 aix_use_runtimelinking=no
17482
17483 # Test if we are trying to use run time linking or normal
17484 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17485 # need to do runtime linking.
17486 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17487 for ld_flag in $LDFLAGS; do
17488 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17489 aix_use_runtimelinking=yes
17490 break
17491 fi
17492 done
17493 ;;
17494 esac
17495
17496 exp_sym_flag='-bexport'
17497 no_entry_flag='-bnoentry'
17498 fi
17499
17500 # When large executables or shared objects are built, AIX ld can
17501 # have problems creating the table of contents. If linking a library
17502 # or program results in "error TOC overflow" add -mminimal-toc to
17503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17505
17506 archive_cmds_GCJ=''
17507 hardcode_direct_GCJ=yes
17508 hardcode_libdir_separator_GCJ=':'
17509 link_all_deplibs_GCJ=yes
17510
17511 if test "$GCC" = yes; then
17512 case $host_os in aix4.[012]|aix4.[012].*)
17513 # We only want to do this on AIX 4.2 and lower, the check
17514 # below for broken collect2 doesn't work under 4.3+
17515 collect2name=`${CC} -print-prog-name=collect2`
17516 if test -f "$collect2name" && \
17517 strings "$collect2name" | grep resolve_lib_name >/dev/null
17518 then
17519 # We have reworked collect2
17520 hardcode_direct_GCJ=yes
17521 else
17522 # We have old collect2
17523 hardcode_direct_GCJ=unsupported
17524 # It fails to find uninstalled libraries when the uninstalled
17525 # path is not listed in the libpath. Setting hardcode_minus_L
17526 # to unsupported forces relinking
17527 hardcode_minus_L_GCJ=yes
17528 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17529 hardcode_libdir_separator_GCJ=
17530 fi
17531 ;;
17532 esac
17533 shared_flag='-shared'
17534 if test "$aix_use_runtimelinking" = yes; then
17535 shared_flag="$shared_flag "'${wl}-G'
17536 fi
17537 else
17538 # not using gcc
17539 if test "$host_cpu" = ia64; then
17540 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17541 # chokes on -Wl,-G. The following line is correct:
17542 shared_flag='-G'
17543 else
17544 if test "$aix_use_runtimelinking" = yes; then
17545 shared_flag='${wl}-G'
17546 else
17547 shared_flag='${wl}-bM:SRE'
17548 fi
17549 fi
17550 fi
17551
17552 # It seems that -bexpall does not export symbols beginning with
17553 # underscore (_), so it is better to generate a list of symbols to export.
17554 always_export_symbols_GCJ=yes
17555 if test "$aix_use_runtimelinking" = yes; then
17556 # Warning - without using the other runtime loading flags (-brtl),
17557 # -berok will link without error, but may produce a broken library.
17558 allow_undefined_flag_GCJ='-berok'
17559 # Determine the default libpath from the value encoded in an empty executable.
17560 cat >conftest.$ac_ext <<_ACEOF
17561/* confdefs.h. */
17562_ACEOF
17563cat confdefs.h >>conftest.$ac_ext
17564cat >>conftest.$ac_ext <<_ACEOF
17565/* end confdefs.h. */
17566
17567int
17568main ()
17569{
17570
17571 ;
17572 return 0;
17573}
17574_ACEOF
17575rm -f conftest.$ac_objext conftest$ac_exeext
17576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17577 (eval $ac_link) 2>conftest.er1
17578 ac_status=$?
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try='test -z "$ac_c_werror_flag"
17585 || test ! -s conftest.err'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try='test -s conftest$ac_exeext'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597
17598aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17599}'`
17600# Check for a 64-bit object if we didn't find anything.
17601if 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; }
17602}'`; fi
17603else
17604 echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607fi
17608rm -f conftest.err conftest.$ac_objext \
17609 conftest$ac_exeext conftest.$ac_ext
17610if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17611
17612 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17613 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17614 else
17615 if test "$host_cpu" = ia64; then
17616 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17617 allow_undefined_flag_GCJ="-z nodefs"
17618 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17619 else
17620 # Determine the default libpath from the value encoded in an empty executable.
17621 cat >conftest.$ac_ext <<_ACEOF
17622/* confdefs.h. */
17623_ACEOF
17624cat confdefs.h >>conftest.$ac_ext
17625cat >>conftest.$ac_ext <<_ACEOF
17626/* end confdefs.h. */
17627
17628int
17629main ()
17630{
17631
17632 ;
17633 return 0;
17634}
17635_ACEOF
17636rm -f conftest.$ac_objext conftest$ac_exeext
17637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17638 (eval $ac_link) 2>conftest.er1
17639 ac_status=$?
17640 grep -v '^ *+' conftest.er1 >conftest.err
17641 rm -f conftest.er1
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag"
17646 || test ! -s conftest.err'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest$ac_exeext'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658
17659aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17660}'`
17661# Check for a 64-bit object if we didn't find anything.
17662if 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; }
17663}'`; fi
17664else
17665 echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667
17668fi
17669rm -f conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17671if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17672
17673 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17674 # Warning - without using the other run time loading flags,
17675 # -berok will link without error, but may produce a broken library.
17676 no_undefined_flag_GCJ=' ${wl}-bernotok'
17677 allow_undefined_flag_GCJ=' ${wl}-berok'
17678 # Exported symbols can be pulled into shared objects from archives
17679 whole_archive_flag_spec_GCJ='$convenience'
17680 archive_cmds_need_lc_GCJ=yes
17681 # This is similar to how AIX traditionally builds its shared libraries.
17682 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17683 fi
17684 fi
17685 ;;
17686
17687 amigaos*)
17688 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)'
17689 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17690 hardcode_minus_L_GCJ=yes
17691 # see comment about different semantics on the GNU ld section
17692 ld_shlibs_GCJ=no
17693 ;;
17694
17695 bsdi[45]*)
17696 export_dynamic_flag_spec_GCJ=-rdynamic
17697 ;;
17698
17699 cygwin* | mingw* | pw32*)
17700 # When not using gcc, we currently assume that we are using
17701 # Microsoft Visual C++.
17702 # hardcode_libdir_flag_spec is actually meaningless, as there is
17703 # no search path for DLLs.
17704 hardcode_libdir_flag_spec_GCJ=' '
17705 allow_undefined_flag_GCJ=unsupported
17706 # Tell ltmain to make .lib files, not .a files.
17707 libext=lib
17708 # Tell ltmain to make .dll files, not .so files.
17709 shrext_cmds=".dll"
17710 # FIXME: Setting linknames here is a bad hack.
17711 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17712 # The linker will automatically build a .lib file if we build a DLL.
17713 old_archive_From_new_cmds_GCJ='true'
17714 # FIXME: Should let the user specify the lib program.
17715 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17716 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17717 enable_shared_with_static_runtimes_GCJ=yes
17718 ;;
17719
17720 darwin* | rhapsody*)
17721 case $host_os in
17722 rhapsody* | darwin1.[012])
17723 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17724 ;;
17725 *) # Darwin 1.3 on
17726 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17727 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17728 else
17729 case ${MACOSX_DEPLOYMENT_TARGET} in
17730 10.[012])
17731 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17732 ;;
17733 10.*)
17734 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17735 ;;
17736 esac
17737 fi
17738 ;;
17739 esac
17740 archive_cmds_need_lc_GCJ=no
17741 hardcode_direct_GCJ=no
17742 hardcode_automatic_GCJ=yes
17743 hardcode_shlibpath_var_GCJ=unsupported
17744 whole_archive_flag_spec_GCJ=''
17745 link_all_deplibs_GCJ=yes
17746 if test "$GCC" = yes ; then
17747 output_verbose_link_cmd='echo'
17748 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17749 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17750 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17751 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17752 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}'
17753 else
17754 case $cc_basename in
17755 xlc*)
17756 output_verbose_link_cmd='echo'
17757 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17758 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17759 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17760 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17761 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}'
17762 ;;
17763 *)
17764 ld_shlibs_GCJ=no
17765 ;;
17766 esac
17767 fi
17768 ;;
17769
17770 dgux*)
17771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17772 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17773 hardcode_shlibpath_var_GCJ=no
17774 ;;
17775
17776 freebsd1*)
17777 ld_shlibs_GCJ=no
17778 ;;
17779
17780 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17781 # support. Future versions do this automatically, but an explicit c++rt0.o
17782 # does not break anything, and helps significantly (at the cost of a little
17783 # extra space).
17784 freebsd2.2*)
17785 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17786 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17787 hardcode_direct_GCJ=yes
17788 hardcode_shlibpath_var_GCJ=no
17789 ;;
17790
17791 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17792 freebsd2*)
17793 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17794 hardcode_direct_GCJ=yes
17795 hardcode_minus_L_GCJ=yes
17796 hardcode_shlibpath_var_GCJ=no
17797 ;;
17798
17799 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17800 freebsd* | kfreebsd*-gnu | dragonfly*)
17801 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17802 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17803 hardcode_direct_GCJ=yes
17804 hardcode_shlibpath_var_GCJ=no
17805 ;;
17806
17807 hpux9*)
17808 if test "$GCC" = yes; then
17809 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'
17810 else
17811 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'
17812 fi
17813 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17814 hardcode_libdir_separator_GCJ=:
17815 hardcode_direct_GCJ=yes
17816
17817 # hardcode_minus_L: Not really in the search PATH,
17818 # but as the default location of the library.
17819 hardcode_minus_L_GCJ=yes
17820 export_dynamic_flag_spec_GCJ='${wl}-E'
17821 ;;
17822
17823 hpux10*)
17824 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17825 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17826 else
17827 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17828 fi
17829 if test "$with_gnu_ld" = no; then
17830 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17831 hardcode_libdir_separator_GCJ=:
17832
17833 hardcode_direct_GCJ=yes
17834 export_dynamic_flag_spec_GCJ='${wl}-E'
17835
17836 # hardcode_minus_L: Not really in the search PATH,
17837 # but as the default location of the library.
17838 hardcode_minus_L_GCJ=yes
17839 fi
17840 ;;
17841
17842 hpux11*)
17843 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17844 case $host_cpu in
17845 hppa*64*)
17846 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17847 ;;
17848 ia64*)
17849 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17850 ;;
17851 *)
17852 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17853 ;;
17854 esac
17855 else
17856 case $host_cpu in
17857 hppa*64*)
17858 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17859 ;;
17860 ia64*)
17861 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17862 ;;
17863 *)
17864 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17865 ;;
17866 esac
17867 fi
17868 if test "$with_gnu_ld" = no; then
17869 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17870 hardcode_libdir_separator_GCJ=:
17871
17872 case $host_cpu in
17873 hppa*64*|ia64*)
17874 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17875 hardcode_direct_GCJ=no
17876 hardcode_shlibpath_var_GCJ=no
17877 ;;
17878 *)
17879 hardcode_direct_GCJ=yes
17880 export_dynamic_flag_spec_GCJ='${wl}-E'
17881
17882 # hardcode_minus_L: Not really in the search PATH,
17883 # but as the default location of the library.
17884 hardcode_minus_L_GCJ=yes
17885 ;;
17886 esac
17887 fi
17888 ;;
17889
17890 irix5* | irix6* | nonstopux*)
17891 if test "$GCC" = yes; then
17892 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'
17893 else
17894 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'
17895 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17896 fi
17897 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17898 hardcode_libdir_separator_GCJ=:
17899 link_all_deplibs_GCJ=yes
17900 ;;
17901
17902 netbsd*)
17903 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17905 else
17906 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17907 fi
17908 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17909 hardcode_direct_GCJ=yes
17910 hardcode_shlibpath_var_GCJ=no
17911 ;;
17912
17913 newsos6)
17914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17915 hardcode_direct_GCJ=yes
17916 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17917 hardcode_libdir_separator_GCJ=:
17918 hardcode_shlibpath_var_GCJ=no
17919 ;;
17920
17921 openbsd*)
17922 hardcode_direct_GCJ=yes
17923 hardcode_shlibpath_var_GCJ=no
17924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17925 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17926 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17927 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17928 export_dynamic_flag_spec_GCJ='${wl}-E'
17929 else
17930 case $host_os in
17931 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17932 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17933 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17934 ;;
17935 *)
17936 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17937 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17938 ;;
17939 esac
17940 fi
17941 ;;
17942
17943 os2*)
17944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17945 hardcode_minus_L_GCJ=yes
17946 allow_undefined_flag_GCJ=unsupported
17947 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'
17948 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17949 ;;
17950
17951 osf3*)
17952 if test "$GCC" = yes; then
17953 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17954 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'
17955 else
17956 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17957 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'
17958 fi
17959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17960 hardcode_libdir_separator_GCJ=:
17961 ;;
17962
17963 osf4* | osf5*) # as osf3* with the addition of -msym flag
17964 if test "$GCC" = yes; then
17965 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17966 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'
17967 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17968 else
17969 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17970 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'
17971 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~
17972 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17973
17974 # Both c and cxx compiler support -rpath directly
17975 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17976 fi
17977 hardcode_libdir_separator_GCJ=:
17978 ;;
17979
17980 solaris*)
17981 no_undefined_flag_GCJ=' -z text'
17982 if test "$GCC" = yes; then
17983 wlarc='${wl}'
17984 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17985 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17986 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17987 else
17988 wlarc=''
17989 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17990 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17991 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17992 fi
17993 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17994 hardcode_shlibpath_var_GCJ=no
17995 case $host_os in
17996 solaris2.[0-5] | solaris2.[0-5].*) ;;
17997 *)
17998 # The compiler driver will combine linker options so we
17999 # cannot just pass the convience library names through
18000 # without $wl, iff we do not link with $LD.
18001 # Luckily, gcc supports the same syntax we need for Sun Studio.
18002 # Supported since Solaris 2.6 (maybe 2.5.1?)
18003 case $wlarc in
18004 '')
18005 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18006 *)
18007 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18008 esac ;;
18009 esac
18010 link_all_deplibs_GCJ=yes
18011 ;;
18012
18013 sunos4*)
18014 if test "x$host_vendor" = xsequent; then
18015 # Use $CC to link under sequent, because it throws in some extra .o
18016 # files that make .init and .fini sections work.
18017 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18018 else
18019 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18020 fi
18021 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18022 hardcode_direct_GCJ=yes
18023 hardcode_minus_L_GCJ=yes
18024 hardcode_shlibpath_var_GCJ=no
18025 ;;
18026
18027 sysv4)
18028 case $host_vendor in
18029 sni)
18030 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18031 hardcode_direct_GCJ=yes # is this really true???
18032 ;;
18033 siemens)
18034 ## LD is ld it makes a PLAMLIB
18035 ## CC just makes a GrossModule.
18036 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18037 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18038 hardcode_direct_GCJ=no
18039 ;;
18040 motorola)
18041 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18042 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18043 ;;
18044 esac
18045 runpath_var='LD_RUN_PATH'
18046 hardcode_shlibpath_var_GCJ=no
18047 ;;
18048
18049 sysv4.3*)
18050 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18051 hardcode_shlibpath_var_GCJ=no
18052 export_dynamic_flag_spec_GCJ='-Bexport'
18053 ;;
18054
18055 sysv4*MP*)
18056 if test -d /usr/nec; then
18057 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058 hardcode_shlibpath_var_GCJ=no
18059 runpath_var=LD_RUN_PATH
18060 hardcode_runpath_var=yes
18061 ld_shlibs_GCJ=yes
18062 fi
18063 ;;
18064
18065 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18066 no_undefined_flag_GCJ='${wl}-z,text'
18067 archive_cmds_need_lc_GCJ=no
18068 hardcode_shlibpath_var_GCJ=no
18069 runpath_var='LD_RUN_PATH'
18070
18071 if test "$GCC" = yes; then
18072 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18073 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18074 else
18075 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18076 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18077 fi
18078 ;;
18079
18080 sysv5* | sco3.2v5* | sco5v6*)
18081 # Note: We can NOT use -z defs as we might desire, because we do not
18082 # link with -lc, and that would cause any symbols used from libc to
18083 # always be unresolved, which means just about no library would
18084 # ever link correctly. If we're not using GNU ld we use -z text
18085 # though, which does catch some bad symbols but isn't as heavy-handed
18086 # as -z defs.
18087 no_undefined_flag_GCJ='${wl}-z,text'
18088 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18089 archive_cmds_need_lc_GCJ=no
18090 hardcode_shlibpath_var_GCJ=no
18091 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18092 hardcode_libdir_separator_GCJ=':'
18093 link_all_deplibs_GCJ=yes
18094 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18095 runpath_var='LD_RUN_PATH'
18096
18097 if test "$GCC" = yes; then
18098 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18099 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18100 else
18101 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18102 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18103 fi
18104 ;;
18105
18106 uts4*)
18107 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18108 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18109 hardcode_shlibpath_var_GCJ=no
18110 ;;
18111
18112 *)
18113 ld_shlibs_GCJ=no
18114 ;;
18115 esac
18116 fi
18117
18118echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18119echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18120test "$ld_shlibs_GCJ" = no && can_build_shared=no
18121
18122#
18123# Do we need to explicitly link libc?
18124#
18125case "x$archive_cmds_need_lc_GCJ" in
18126x|xyes)
18127 # Assume -lc should be added
18128 archive_cmds_need_lc_GCJ=yes
18129
18130 if test "$enable_shared" = yes && test "$GCC" = yes; then
18131 case $archive_cmds_GCJ in
18132 *'~'*)
18133 # FIXME: we may have to deal with multi-command sequences.
18134 ;;
18135 '$CC '*)
18136 # Test whether the compiler implicitly links with -lc since on some
18137 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18138 # to ld, don't add -lc before -lgcc.
18139 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18140echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18141 $rm conftest*
18142 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18143
18144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145 (eval $ac_compile) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } 2>conftest.err; then
18149 soname=conftest
18150 lib=conftest
18151 libobjs=conftest.$ac_objext
18152 deplibs=
18153 wl=$lt_prog_compiler_wl_GCJ
18154 pic_flag=$lt_prog_compiler_pic_GCJ
18155 compiler_flags=-v
18156 linker_flags=-v
18157 verstring=
18158 output_objdir=.
18159 libname=conftest
18160 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18161 allow_undefined_flag_GCJ=
18162 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18163 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18164 ac_status=$?
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }
18167 then
18168 archive_cmds_need_lc_GCJ=no
18169 else
18170 archive_cmds_need_lc_GCJ=yes
18171 fi
18172 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18173 else
18174 cat conftest.err 1>&5
18175 fi
18176 $rm conftest*
18177 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18178echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18179 ;;
18180 esac
18181 fi
18182 ;;
18183esac
18184
18185echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18186echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18187library_names_spec=
18188libname_spec='lib$name'
18189soname_spec=
18190shrext_cmds=".so"
18191postinstall_cmds=
18192postuninstall_cmds=
18193finish_cmds=
18194finish_eval=
18195shlibpath_var=
18196shlibpath_overrides_runpath=unknown
18197version_type=none
18198dynamic_linker="$host_os ld.so"
18199sys_lib_dlsearch_path_spec="/lib /usr/lib"
18200if test "$GCC" = yes; then
18201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18202 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18203 # if the path contains ";" then we assume it to be the separator
18204 # otherwise default to the standard path separator (i.e. ":") - it is
18205 # assumed that no part of a normal pathname contains ";" but that should
18206 # okay in the real world where ";" in dirpaths is itself problematic.
18207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18208 else
18209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18210 fi
18211else
18212 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18213fi
18214need_lib_prefix=unknown
18215hardcode_into_libs=no
18216
18217# when you set need_version to no, make sure it does not cause -set_version
18218# flags to be left without arguments
18219need_version=unknown
18220
18221case $host_os in
18222aix3*)
18223 version_type=linux
18224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18225 shlibpath_var=LIBPATH
18226
18227 # AIX 3 has no versioning support, so we append a major version to the name.
18228 soname_spec='${libname}${release}${shared_ext}$major'
18229 ;;
18230
18231aix4* | aix5*)
18232 version_type=linux
18233 need_lib_prefix=no
18234 need_version=no
18235 hardcode_into_libs=yes
18236 if test "$host_cpu" = ia64; then
18237 # AIX 5 supports IA64
18238 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18239 shlibpath_var=LD_LIBRARY_PATH
18240 else
18241 # With GCC up to 2.95.x, collect2 would create an import file
18242 # for dependence libraries. The import file would start with
18243 # the line `#! .'. This would cause the generated library to
18244 # depend on `.', always an invalid library. This was fixed in
18245 # development snapshots of GCC prior to 3.0.
18246 case $host_os in
18247 aix4 | aix4.[01] | aix4.[01].*)
18248 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18249 echo ' yes '
18250 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18251 :
18252 else
18253 can_build_shared=no
18254 fi
18255 ;;
18256 esac
18257 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18258 # soname into executable. Probably we can add versioning support to
18259 # collect2, so additional links can be useful in future.
18260 if test "$aix_use_runtimelinking" = yes; then
18261 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18262 # instead of lib<name>.a to let people know that these are not
18263 # typical AIX shared libraries.
18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18265 else
18266 # We preserve .a as extension for shared libraries through AIX4.2
18267 # and later when we are not doing run time linking.
18268 library_names_spec='${libname}${release}.a $libname.a'
18269 soname_spec='${libname}${release}${shared_ext}$major'
18270 fi
18271 shlibpath_var=LIBPATH
18272 fi
18273 ;;
18274
18275amigaos*)
18276 library_names_spec='$libname.ixlibrary $libname.a'
18277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18278 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'
18279 ;;
18280
18281beos*)
18282 library_names_spec='${libname}${shared_ext}'
18283 dynamic_linker="$host_os ld.so"
18284 shlibpath_var=LIBRARY_PATH
18285 ;;
18286
18287bsdi[45]*)
18288 version_type=linux
18289 need_version=no
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18293 shlibpath_var=LD_LIBRARY_PATH
18294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18296 # the default ld.so.conf also contains /usr/contrib/lib and
18297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18298 # libtool to hard-code these into programs
18299 ;;
18300
18301cygwin* | mingw* | pw32*)
18302 version_type=windows
18303 shrext_cmds=".dll"
18304 need_version=no
18305 need_lib_prefix=no
18306
18307 case $GCC,$host_os in
18308 yes,cygwin* | yes,mingw* | yes,pw32*)
18309 library_names_spec='$libname.dll.a'
18310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18311 postinstall_cmds='base_file=`basename \${file}`~
18312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18313 dldir=$destdir/`dirname \$dlpath`~
18314 test -d \$dldir || mkdir -p \$dldir~
18315 $install_prog $dir/$dlname \$dldir/$dlname~
18316 chmod a+x \$dldir/$dlname'
18317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18318 dlpath=$dir/\$dldll~
18319 $rm \$dlpath'
18320 shlibpath_overrides_runpath=yes
18321
18322 case $host_os in
18323 cygwin*)
18324 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18325 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18326 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18327 ;;
18328 mingw*)
18329 # MinGW DLLs use traditional 'lib' prefix
18330 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18331 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18332 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18333 # It is most probably a Windows format PATH printed by
18334 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18335 # path with ; separators, and with drive letters. We can handle the
18336 # drive letters (cygwin fileutils understands them), so leave them,
18337 # especially as we might pass files found there to a mingw objdump,
18338 # which wouldn't understand a cygwinified path. Ahh.
18339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18340 else
18341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18342 fi
18343 ;;
18344 pw32*)
18345 # pw32 DLLs use 'pw' prefix rather than 'lib'
18346 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18347 ;;
18348 esac
18349 ;;
18350
18351 *)
18352 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18353 ;;
18354 esac
18355 dynamic_linker='Win32 ld.exe'
18356 # FIXME: first we should search . and the directory the executable is in
18357 shlibpath_var=PATH
18358 ;;
18359
18360darwin* | rhapsody*)
18361 dynamic_linker="$host_os dyld"
18362 version_type=darwin
18363 need_lib_prefix=no
18364 need_version=no
18365 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18366 soname_spec='${libname}${release}${major}$shared_ext'
18367 shlibpath_overrides_runpath=yes
18368 shlibpath_var=DYLD_LIBRARY_PATH
18369 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18370 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18371 if test "$GCC" = yes; then
18372 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"`
18373 else
18374 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18375 fi
18376 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18377 ;;
18378
18379dgux*)
18380 version_type=linux
18381 need_lib_prefix=no
18382 need_version=no
18383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18384 soname_spec='${libname}${release}${shared_ext}$major'
18385 shlibpath_var=LD_LIBRARY_PATH
18386 ;;
18387
18388freebsd1*)
18389 dynamic_linker=no
18390 ;;
18391
18392kfreebsd*-gnu)
18393 version_type=linux
18394 need_lib_prefix=no
18395 need_version=no
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18397 soname_spec='${libname}${release}${shared_ext}$major'
18398 shlibpath_var=LD_LIBRARY_PATH
18399 shlibpath_overrides_runpath=no
18400 hardcode_into_libs=yes
18401 dynamic_linker='GNU ld.so'
18402 ;;
18403
18404freebsd* | dragonfly*)
18405 # DragonFly does not have aout. When/if they implement a new
18406 # versioning mechanism, adjust this.
18407 if test -x /usr/bin/objformat; then
18408 objformat=`/usr/bin/objformat`
18409 else
18410 case $host_os in
18411 freebsd[123]*) objformat=aout ;;
18412 *) objformat=elf ;;
18413 esac
18414 fi
18415 version_type=freebsd-$objformat
18416 case $version_type in
18417 freebsd-elf*)
18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18419 need_version=no
18420 need_lib_prefix=no
18421 ;;
18422 freebsd-*)
18423 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18424 need_version=yes
18425 ;;
18426 esac
18427 shlibpath_var=LD_LIBRARY_PATH
18428 case $host_os in
18429 freebsd2*)
18430 shlibpath_overrides_runpath=yes
18431 ;;
18432 freebsd3.[01]* | freebsdelf3.[01]*)
18433 shlibpath_overrides_runpath=yes
18434 hardcode_into_libs=yes
18435 ;;
18436 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18437 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18438 shlibpath_overrides_runpath=no
18439 hardcode_into_libs=yes
18440 ;;
18441 freebsd*) # from 4.6 on
18442 shlibpath_overrides_runpath=yes
18443 hardcode_into_libs=yes
18444 ;;
18445 esac
18446 ;;
18447
18448gnu*)
18449 version_type=linux
18450 need_lib_prefix=no
18451 need_version=no
18452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18453 soname_spec='${libname}${release}${shared_ext}$major'
18454 shlibpath_var=LD_LIBRARY_PATH
18455 hardcode_into_libs=yes
18456 ;;
18457
18458hpux9* | hpux10* | hpux11*)
18459 # Give a soname corresponding to the major version so that dld.sl refuses to
18460 # link against other versions.
18461 version_type=sunos
18462 need_lib_prefix=no
18463 need_version=no
18464 case $host_cpu in
18465 ia64*)
18466 shrext_cmds='.so'
18467 hardcode_into_libs=yes
18468 dynamic_linker="$host_os dld.so"
18469 shlibpath_var=LD_LIBRARY_PATH
18470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18472 soname_spec='${libname}${release}${shared_ext}$major'
18473 if test "X$HPUX_IA64_MODE" = X32; then
18474 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18475 else
18476 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18477 fi
18478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18479 ;;
18480 hppa*64*)
18481 shrext_cmds='.sl'
18482 hardcode_into_libs=yes
18483 dynamic_linker="$host_os dld.sl"
18484 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18485 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18487 soname_spec='${libname}${release}${shared_ext}$major'
18488 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18489 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18490 ;;
18491 *)
18492 shrext_cmds='.sl'
18493 dynamic_linker="$host_os dld.sl"
18494 shlibpath_var=SHLIB_PATH
18495 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18497 soname_spec='${libname}${release}${shared_ext}$major'
18498 ;;
18499 esac
18500 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18501 postinstall_cmds='chmod 555 $lib'
18502 ;;
18503
18504interix3*)
18505 version_type=linux
18506 need_lib_prefix=no
18507 need_version=no
18508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18509 soname_spec='${libname}${release}${shared_ext}$major'
18510 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18511 shlibpath_var=LD_LIBRARY_PATH
18512 shlibpath_overrides_runpath=no
18513 hardcode_into_libs=yes
18514 ;;
18515
18516irix5* | irix6* | nonstopux*)
18517 case $host_os in
18518 nonstopux*) version_type=nonstopux ;;
18519 *)
18520 if test "$lt_cv_prog_gnu_ld" = yes; then
18521 version_type=linux
18522 else
18523 version_type=irix
18524 fi ;;
18525 esac
18526 need_lib_prefix=no
18527 need_version=no
18528 soname_spec='${libname}${release}${shared_ext}$major'
18529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18530 case $host_os in
18531 irix5* | nonstopux*)
18532 libsuff= shlibsuff=
18533 ;;
18534 *)
18535 case $LD in # libtool.m4 will add one of these switches to LD
18536 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18537 libsuff= shlibsuff= libmagic=32-bit;;
18538 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18539 libsuff=32 shlibsuff=N32 libmagic=N32;;
18540 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18541 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18542 *) libsuff= shlibsuff= libmagic=never-match;;
18543 esac
18544 ;;
18545 esac
18546 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18547 shlibpath_overrides_runpath=no
18548 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18549 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18550 hardcode_into_libs=yes
18551 ;;
18552
18553# No shared lib support for Linux oldld, aout, or coff.
18554linux*oldld* | linux*aout* | linux*coff*)
18555 dynamic_linker=no
18556 ;;
18557
18558# This must be Linux ELF.
18559linux*)
18560 version_type=linux
18561 need_lib_prefix=no
18562 need_version=no
18563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18564 soname_spec='${libname}${release}${shared_ext}$major'
18565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18566 shlibpath_var=LD_LIBRARY_PATH
18567 shlibpath_overrides_runpath=no
18568 # This implies no fast_install, which is unacceptable.
18569 # Some rework will be needed to allow for fast_install
18570 # before this can be enabled.
18571 hardcode_into_libs=yes
18572
18573 # find out which ABI we are using
18574 libsuff=
18575 case "$host_cpu" in
18576 x86_64*|s390x*|powerpc64*)
18577 echo '#line 18577 "configure"' > conftest.$ac_ext
18578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18579 (eval $ac_compile) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; then
18583 case `/usr/bin/file conftest.$ac_objext` in
18584 *64-bit*)
18585 libsuff=64
18586 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18587 ;;
18588 esac
18589 fi
18590 rm -rf conftest*
18591 ;;
18592 esac
18593
18594 # Append ld.so.conf contents to the search path
18595 if test -f /etc/ld.so.conf; then
18596 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18597 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18598 fi
18599
18600 # We used to test for /lib/ld.so.1 and disable shared libraries on
18601 # powerpc, because MkLinux only supported shared libraries with the
18602 # GNU dynamic linker. Since this was broken with cross compilers,
18603 # most powerpc-linux boxes support dynamic linking these days and
18604 # people can always --disable-shared, the test was removed, and we
18605 # assume the GNU/Linux dynamic linker is in use.
18606 dynamic_linker='GNU/Linux ld.so'
18607 ;;
18608
18609knetbsd*-gnu)
18610 version_type=linux
18611 need_lib_prefix=no
18612 need_version=no
18613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18614 soname_spec='${libname}${release}${shared_ext}$major'
18615 shlibpath_var=LD_LIBRARY_PATH
18616 shlibpath_overrides_runpath=no
18617 hardcode_into_libs=yes
18618 dynamic_linker='GNU ld.so'
18619 ;;
18620
18621netbsd*)
18622 version_type=sunos
18623 need_lib_prefix=no
18624 need_version=no
18625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18628 dynamic_linker='NetBSD (a.out) ld.so'
18629 else
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18631 soname_spec='${libname}${release}${shared_ext}$major'
18632 dynamic_linker='NetBSD ld.elf_so'
18633 fi
18634 shlibpath_var=LD_LIBRARY_PATH
18635 shlibpath_overrides_runpath=yes
18636 hardcode_into_libs=yes
18637 ;;
18638
18639newsos6)
18640 version_type=linux
18641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18642 shlibpath_var=LD_LIBRARY_PATH
18643 shlibpath_overrides_runpath=yes
18644 ;;
18645
18646nto-qnx*)
18647 version_type=linux
18648 need_lib_prefix=no
18649 need_version=no
18650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18651 soname_spec='${libname}${release}${shared_ext}$major'
18652 shlibpath_var=LD_LIBRARY_PATH
18653 shlibpath_overrides_runpath=yes
18654 ;;
18655
18656openbsd*)
18657 version_type=sunos
18658 sys_lib_dlsearch_path_spec="/usr/lib"
18659 need_lib_prefix=no
18660 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18661 case $host_os in
18662 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18663 *) need_version=no ;;
18664 esac
18665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18667 shlibpath_var=LD_LIBRARY_PATH
18668 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18669 case $host_os in
18670 openbsd2.[89] | openbsd2.[89].*)
18671 shlibpath_overrides_runpath=no
18672 ;;
18673 *)
18674 shlibpath_overrides_runpath=yes
18675 ;;
18676 esac
18677 else
18678 shlibpath_overrides_runpath=yes
18679 fi
18680 ;;
18681
18682os2*)
18683 libname_spec='$name'
18684 shrext_cmds=".dll"
18685 need_lib_prefix=no
18686 library_names_spec='$libname${shared_ext} $libname.a'
18687 dynamic_linker='OS/2 ld.exe'
18688 shlibpath_var=LIBPATH
18689 ;;
18690
18691osf3* | osf4* | osf5*)
18692 version_type=osf
18693 need_lib_prefix=no
18694 need_version=no
18695 soname_spec='${libname}${release}${shared_ext}$major'
18696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18697 shlibpath_var=LD_LIBRARY_PATH
18698 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18699 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18700 ;;
18701
18702solaris*)
18703 version_type=linux
18704 need_lib_prefix=no
18705 need_version=no
18706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18707 soname_spec='${libname}${release}${shared_ext}$major'
18708 shlibpath_var=LD_LIBRARY_PATH
18709 shlibpath_overrides_runpath=yes
18710 hardcode_into_libs=yes
18711 # ldd complains unless libraries are executable
18712 postinstall_cmds='chmod +x $lib'
18713 ;;
18714
18715sunos4*)
18716 version_type=sunos
18717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18719 shlibpath_var=LD_LIBRARY_PATH
18720 shlibpath_overrides_runpath=yes
18721 if test "$with_gnu_ld" = yes; then
18722 need_lib_prefix=no
18723 fi
18724 need_version=yes
18725 ;;
18726
18727sysv4 | sysv4.3*)
18728 version_type=linux
18729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18730 soname_spec='${libname}${release}${shared_ext}$major'
18731 shlibpath_var=LD_LIBRARY_PATH
18732 case $host_vendor in
18733 sni)
18734 shlibpath_overrides_runpath=no
18735 need_lib_prefix=no
18736 export_dynamic_flag_spec='${wl}-Blargedynsym'
18737 runpath_var=LD_RUN_PATH
18738 ;;
18739 siemens)
18740 need_lib_prefix=no
18741 ;;
18742 motorola)
18743 need_lib_prefix=no
18744 need_version=no
18745 shlibpath_overrides_runpath=no
18746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18747 ;;
18748 esac
18749 ;;
18750
18751sysv4*MP*)
18752 if test -d /usr/nec ;then
18753 version_type=linux
18754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18755 soname_spec='$libname${shared_ext}.$major'
18756 shlibpath_var=LD_LIBRARY_PATH
18757 fi
18758 ;;
18759
18760sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18761 version_type=freebsd-elf
18762 need_lib_prefix=no
18763 need_version=no
18764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18765 soname_spec='${libname}${release}${shared_ext}$major'
18766 shlibpath_var=LD_LIBRARY_PATH
18767 hardcode_into_libs=yes
18768 if test "$with_gnu_ld" = yes; then
18769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18770 shlibpath_overrides_runpath=no
18771 else
18772 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18773 shlibpath_overrides_runpath=yes
18774 case $host_os in
18775 sco3.2v5*)
18776 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18777 ;;
18778 esac
18779 fi
18780 sys_lib_dlsearch_path_spec='/usr/lib'
18781 ;;
18782
18783uts4*)
18784 version_type=linux
18785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18786 soname_spec='${libname}${release}${shared_ext}$major'
18787 shlibpath_var=LD_LIBRARY_PATH
18788 ;;
18789
18790*)
18791 dynamic_linker=no
18792 ;;
18793esac
18794echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18795echo "${ECHO_T}$dynamic_linker" >&6
18796test "$dynamic_linker" = no && can_build_shared=no
18797
18798variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18799if test "$GCC" = yes; then
18800 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18801fi
18802
18803echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18804echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18805hardcode_action_GCJ=
18806if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18807 test -n "$runpath_var_GCJ" || \
18808 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18809
18810 # We can hardcode non-existant directories.
18811 if test "$hardcode_direct_GCJ" != no &&
18812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18813 # have to relink, otherwise we might link with an installed library
18814 # when we should be linking with a yet-to-be-installed one
18815 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18816 test "$hardcode_minus_L_GCJ" != no; then
18817 # Linking always hardcodes the temporary library directory.
18818 hardcode_action_GCJ=relink
18819 else
18820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18821 hardcode_action_GCJ=immediate
18822 fi
18823else
18824 # We cannot hardcode anything, or else we can only hardcode existing
18825 # directories.
18826 hardcode_action_GCJ=unsupported
18827fi
18828echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18829echo "${ECHO_T}$hardcode_action_GCJ" >&6
18830
18831if test "$hardcode_action_GCJ" = relink; then
18832 # Fast installation is not supported
18833 enable_fast_install=no
18834elif test "$shlibpath_overrides_runpath" = yes ||
18835 test "$enable_shared" = no; then
18836 # Fast installation is not necessary
18837 enable_fast_install=needless
18838fi
18839
18840
18841# The else clause should only fire when bootstrapping the
18842# libtool distribution, otherwise you forgot to ship ltmain.sh
18843# with your package, and you will get complaints that there are
18844# no rules to generate ltmain.sh.
18845if test -f "$ltmain"; then
18846 # See if we are running on zsh, and set the options which allow our commands through
18847 # without removal of \ escapes.
18848 if test -n "${ZSH_VERSION+set}" ; then
18849 setopt NO_GLOB_SUBST
18850 fi
18851 # Now quote all the things that may contain metacharacters while being
18852 # careful not to overquote the AC_SUBSTed values. We take copies of the
18853 # variables and quote the copies for generation of the libtool script.
18854 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18855 SED SHELL STRIP \
18856 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18857 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18858 deplibs_check_method reload_flag reload_cmds need_locks \
18859 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18860 lt_cv_sys_global_symbol_to_c_name_address \
18861 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18862 old_postinstall_cmds old_postuninstall_cmds \
18863 compiler_GCJ \
18864 CC_GCJ \
18865 LD_GCJ \
18866 lt_prog_compiler_wl_GCJ \
18867 lt_prog_compiler_pic_GCJ \
18868 lt_prog_compiler_static_GCJ \
18869 lt_prog_compiler_no_builtin_flag_GCJ \
18870 export_dynamic_flag_spec_GCJ \
18871 thread_safe_flag_spec_GCJ \
18872 whole_archive_flag_spec_GCJ \
18873 enable_shared_with_static_runtimes_GCJ \
18874 old_archive_cmds_GCJ \
18875 old_archive_from_new_cmds_GCJ \
18876 predep_objects_GCJ \
18877 postdep_objects_GCJ \
18878 predeps_GCJ \
18879 postdeps_GCJ \
18880 compiler_lib_search_path_GCJ \
18881 archive_cmds_GCJ \
18882 archive_expsym_cmds_GCJ \
18883 postinstall_cmds_GCJ \
18884 postuninstall_cmds_GCJ \
18885 old_archive_from_expsyms_cmds_GCJ \
18886 allow_undefined_flag_GCJ \
18887 no_undefined_flag_GCJ \
18888 export_symbols_cmds_GCJ \
18889 hardcode_libdir_flag_spec_GCJ \
18890 hardcode_libdir_flag_spec_ld_GCJ \
18891 hardcode_libdir_separator_GCJ \
18892 hardcode_automatic_GCJ \
18893 module_cmds_GCJ \
18894 module_expsym_cmds_GCJ \
18895 lt_cv_prog_compiler_c_o_GCJ \
18896 exclude_expsyms_GCJ \
18897 include_expsyms_GCJ; do
18898
18899 case $var in
18900 old_archive_cmds_GCJ | \
18901 old_archive_from_new_cmds_GCJ | \
18902 archive_cmds_GCJ | \
18903 archive_expsym_cmds_GCJ | \
18904 module_cmds_GCJ | \
18905 module_expsym_cmds_GCJ | \
18906 old_archive_from_expsyms_cmds_GCJ | \
18907 export_symbols_cmds_GCJ | \
18908 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18909 postinstall_cmds | postuninstall_cmds | \
18910 old_postinstall_cmds | old_postuninstall_cmds | \
18911 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18912 # Double-quote double-evaled strings.
18913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18914 ;;
18915 *)
18916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18917 ;;
18918 esac
18919 done
18920
18921 case $lt_echo in
18922 *'\$0 --fallback-echo"')
18923 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18924 ;;
18925 esac
18926
18927cfgfile="$ofile"
18928
18929 cat <<__EOF__ >> "$cfgfile"
18930# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18931
18932# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18933
18934# Shell to use when invoking shell scripts.
18935SHELL=$lt_SHELL
18936
18937# Whether or not to build shared libraries.
18938build_libtool_libs=$enable_shared
18939
18940# Whether or not to build static libraries.
18941build_old_libs=$enable_static
18942
18943# Whether or not to add -lc for building shared libraries.
18944build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18945
18946# Whether or not to disallow shared libs when runtime libs are static
18947allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18948
18949# Whether or not to optimize for fast installation.
18950fast_install=$enable_fast_install
18951
18952# The host system.
18953host_alias=$host_alias
18954host=$host
18955host_os=$host_os
18956
18957# The build system.
18958build_alias=$build_alias
18959build=$build
18960build_os=$build_os
18961
18962# An echo program that does not interpret backslashes.
18963echo=$lt_echo
18964
18965# The archiver.
18966AR=$lt_AR
18967AR_FLAGS=$lt_AR_FLAGS
18968
18969# A C compiler.
18970LTCC=$lt_LTCC
18971
18972# LTCC compiler flags.
18973LTCFLAGS=$lt_LTCFLAGS
18974
18975# A language-specific compiler.
18976CC=$lt_compiler_GCJ
18977
18978# Is the compiler the GNU C compiler?
18979with_gcc=$GCC_GCJ
18980
18981gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18982gcc_ver=\`gcc -dumpversion\`
18983
18984# An ERE matcher.
18985EGREP=$lt_EGREP
18986
18987# The linker used to build libraries.
18988LD=$lt_LD_GCJ
18989
18990# Whether we need hard or soft links.
18991LN_S=$lt_LN_S
18992
18993# A BSD-compatible nm program.
18994NM=$lt_NM
18995
18996# A symbol stripping program
18997STRIP=$lt_STRIP
18998
18999# Used to examine libraries when file_magic_cmd begins "file"
19000MAGIC_CMD=$MAGIC_CMD
19001
19002# Used on cygwin: DLL creation program.
19003DLLTOOL="$DLLTOOL"
19004
19005# Used on cygwin: object dumper.
19006OBJDUMP="$OBJDUMP"
19007
19008# Used on cygwin: assembler.
19009AS="$AS"
19010
19011# The name of the directory that contains temporary libtool files.
19012objdir=$objdir
19013
19014# How to create reloadable object files.
19015reload_flag=$lt_reload_flag
19016reload_cmds=$lt_reload_cmds
19017
19018# How to pass a linker flag through the compiler.
19019wl=$lt_lt_prog_compiler_wl_GCJ
19020
19021# Object file suffix (normally "o").
19022objext="$ac_objext"
19023
19024# Old archive suffix (normally "a").
19025libext="$libext"
19026
19027# Shared library suffix (normally ".so").
19028shrext_cmds='$shrext_cmds'
19029
19030# Executable file suffix (normally "").
19031exeext="$exeext"
19032
19033# Additional compiler flags for building library objects.
19034pic_flag=$lt_lt_prog_compiler_pic_GCJ
19035pic_mode=$pic_mode
19036
19037# What is the maximum length of a command?
19038max_cmd_len=$lt_cv_sys_max_cmd_len
19039
19040# Does compiler simultaneously support -c and -o options?
19041compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19042
19043# Must we lock files when doing compilation?
19044need_locks=$lt_need_locks
19045
19046# Do we need the lib prefix for modules?
19047need_lib_prefix=$need_lib_prefix
19048
19049# Do we need a version for libraries?
19050need_version=$need_version
19051
19052# Whether dlopen is supported.
19053dlopen_support=$enable_dlopen
19054
19055# Whether dlopen of programs is supported.
19056dlopen_self=$enable_dlopen_self
19057
19058# Whether dlopen of statically linked programs is supported.
19059dlopen_self_static=$enable_dlopen_self_static
19060
19061# Compiler flag to prevent dynamic linking.
19062link_static_flag=$lt_lt_prog_compiler_static_GCJ
19063
19064# Compiler flag to turn off builtin functions.
19065no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19066
19067# Compiler flag to allow reflexive dlopens.
19068export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19069
19070# Compiler flag to generate shared objects directly from archives.
19071whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19072
19073# Compiler flag to generate thread-safe objects.
19074thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19075
19076# Library versioning type.
19077version_type=$version_type
19078
19079# Format of library name prefix.
19080libname_spec=$lt_libname_spec
19081
19082# List of archive names. First name is the real one, the rest are links.
19083# The last name is the one that the linker finds with -lNAME.
19084library_names_spec=$lt_library_names_spec
19085
19086# The coded name of the library, if different from the real name.
19087soname_spec=$lt_soname_spec
19088
19089# Commands used to build and install an old-style archive.
19090RANLIB=$lt_RANLIB
19091old_archive_cmds=$lt_old_archive_cmds_GCJ
19092old_postinstall_cmds=$lt_old_postinstall_cmds
19093old_postuninstall_cmds=$lt_old_postuninstall_cmds
19094
19095# Create an old-style archive from a shared archive.
19096old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19097
19098# Create a temporary old-style archive to link instead of a shared archive.
19099old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19100
19101# Commands used to build and install a shared archive.
19102archive_cmds=$lt_archive_cmds_GCJ
19103archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19104postinstall_cmds=$lt_postinstall_cmds
19105postuninstall_cmds=$lt_postuninstall_cmds
19106
19107# Commands used to build a loadable module (assumed same as above if empty)
19108module_cmds=$lt_module_cmds_GCJ
19109module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19110
19111# Commands to strip libraries.
19112old_striplib=$lt_old_striplib
19113striplib=$lt_striplib
19114
19115# Dependencies to place before the objects being linked to create a
19116# shared library.
19117predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19118
19119# Dependencies to place after the objects being linked to create a
19120# shared library.
19121postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19122
19123# Dependencies to place before the objects being linked to create a
19124# shared library.
19125predeps=$lt_predeps_GCJ
19126
19127# Dependencies to place after the objects being linked to create a
19128# shared library.
19129postdeps=$lt_postdeps_GCJ
19130
19131# The library search path used internally by the compiler when linking
19132# a shared library.
19133compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19134
19135# Method to check whether dependent libraries are shared objects.
19136deplibs_check_method=$lt_deplibs_check_method
19137
19138# Command to use when deplibs_check_method == file_magic.
19139file_magic_cmd=$lt_file_magic_cmd
19140
19141# Flag that allows shared libraries with undefined symbols to be built.
19142allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19143
19144# Flag that forces no undefined symbols.
19145no_undefined_flag=$lt_no_undefined_flag_GCJ
19146
19147# Commands used to finish a libtool library installation in a directory.
19148finish_cmds=$lt_finish_cmds
19149
19150# Same as above, but a single script fragment to be evaled but not shown.
19151finish_eval=$lt_finish_eval
19152
19153# Take the output of nm and produce a listing of raw symbols and C names.
19154global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19155
19156# Transform the output of nm in a proper C declaration
19157global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19158
19159# Transform the output of nm in a C name address pair
19160global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19161
19162# This is the shared library runtime path variable.
19163runpath_var=$runpath_var
19164
19165# This is the shared library path variable.
19166shlibpath_var=$shlibpath_var
19167
19168# Is shlibpath searched before the hard-coded library search path?
19169shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19170
19171# How to hardcode a shared library path into an executable.
19172hardcode_action=$hardcode_action_GCJ
19173
19174# Whether we should hardcode library paths into libraries.
19175hardcode_into_libs=$hardcode_into_libs
19176
19177# Flag to hardcode \$libdir into a binary during linking.
19178# This must work even if \$libdir does not exist.
19179hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19180
19181# If ld is used when linking, flag to hardcode \$libdir into
19182# a binary during linking. This must work even if \$libdir does
19183# not exist.
19184hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19185
19186# Whether we need a single -rpath flag with a separated argument.
19187hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19188
19189# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19190# resulting binary.
19191hardcode_direct=$hardcode_direct_GCJ
19192
19193# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19194# resulting binary.
19195hardcode_minus_L=$hardcode_minus_L_GCJ
19196
19197# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19198# the resulting binary.
19199hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19200
19201# Set to yes if building a shared library automatically hardcodes DIR into the library
19202# and all subsequent libraries and executables linked against it.
19203hardcode_automatic=$hardcode_automatic_GCJ
19204
19205# Variables whose values should be saved in libtool wrapper scripts and
19206# restored at relink time.
19207variables_saved_for_relink="$variables_saved_for_relink"
19208
19209# Whether libtool must link a program against all its dependency libraries.
19210link_all_deplibs=$link_all_deplibs_GCJ
19211
19212# Compile-time system search path for libraries
19213sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19214
19215# Run-time system search path for libraries
19216sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19217
19218# Fix the shell variable \$srcfile for the compiler.
19219fix_srcfile_path="$fix_srcfile_path_GCJ"
19220
19221# Set to yes if exported symbols are required.
19222always_export_symbols=$always_export_symbols_GCJ
19223
19224# The commands to list exported symbols.
19225export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19226
19227# The commands to extract the exported symbol list from a shared archive.
19228extract_expsyms_cmds=$lt_extract_expsyms_cmds
19229
19230# Symbols that should not be listed in the preloaded symbols.
19231exclude_expsyms=$lt_exclude_expsyms_GCJ
19232
19233# Symbols that must always be exported.
19234include_expsyms=$lt_include_expsyms_GCJ
19235
19236# ### END LIBTOOL TAG CONFIG: $tagname
19237
19238__EOF__
19239
19240
19241else
19242 # If there is no Makefile yet, we rely on a make rule to execute
19243 # `config.status --recheck' to rerun these tests and create the
19244 # libtool script then.
19245 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19246 if test -f "$ltmain_in"; then
19247 test -f Makefile && make "$ltmain"
19248 fi
19249fi
19250
19251
19252ac_ext=c
19253ac_cpp='$CPP $CPPFLAGS'
19254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19256ac_compiler_gnu=$ac_cv_c_compiler_gnu
19257
19258CC="$lt_save_CC"
19259
19260 else
19261 tagname=""
19262 fi
19263 ;;
19264
19265 RC)
19266
19267
19268
19269# Source file extension for RC test sources.
19270ac_ext=rc
19271
19272# Object file extension for compiled RC test sources.
19273objext=o
19274objext_RC=$objext
19275
19276# Code to be used in simple compile tests
19277lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19278
19279# Code to be used in simple link tests
19280lt_simple_link_test_code="$lt_simple_compile_test_code"
19281
19282# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19283
19284# If no C compiler was specified, use CC.
19285LTCC=${LTCC-"$CC"}
19286
19287# If no C compiler flags were specified, use CFLAGS.
19288LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19289
19290# Allow CC to be a program name with arguments.
19291compiler=$CC
19292
19293
19294# save warnings/boilerplate of simple test code
19295ac_outfile=conftest.$ac_objext
19296printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19297eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19298_lt_compiler_boilerplate=`cat conftest.err`
19299$rm conftest*
19300
19301ac_outfile=conftest.$ac_objext
19302printf "$lt_simple_link_test_code" >conftest.$ac_ext
19303eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19304_lt_linker_boilerplate=`cat conftest.err`
19305$rm conftest*
19306
19307
19308# Allow CC to be a program name with arguments.
19309lt_save_CC="$CC"
19310CC=${RC-"windres"}
19311compiler=$CC
19312compiler_RC=$CC
19313for cc_temp in $compiler""; do
19314 case $cc_temp in
19315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19317 \-*) ;;
19318 *) break;;
19319 esac
19320done
19321cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19322
19323lt_cv_prog_compiler_c_o_RC=yes
19324
19325# The else clause should only fire when bootstrapping the
19326# libtool distribution, otherwise you forgot to ship ltmain.sh
19327# with your package, and you will get complaints that there are
19328# no rules to generate ltmain.sh.
19329if test -f "$ltmain"; then
19330 # See if we are running on zsh, and set the options which allow our commands through
19331 # without removal of \ escapes.
19332 if test -n "${ZSH_VERSION+set}" ; then
19333 setopt NO_GLOB_SUBST
19334 fi
19335 # Now quote all the things that may contain metacharacters while being
19336 # careful not to overquote the AC_SUBSTed values. We take copies of the
19337 # variables and quote the copies for generation of the libtool script.
19338 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19339 SED SHELL STRIP \
19340 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19341 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19342 deplibs_check_method reload_flag reload_cmds need_locks \
19343 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19344 lt_cv_sys_global_symbol_to_c_name_address \
19345 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19346 old_postinstall_cmds old_postuninstall_cmds \
19347 compiler_RC \
19348 CC_RC \
19349 LD_RC \
19350 lt_prog_compiler_wl_RC \
19351 lt_prog_compiler_pic_RC \
19352 lt_prog_compiler_static_RC \
19353 lt_prog_compiler_no_builtin_flag_RC \
19354 export_dynamic_flag_spec_RC \
19355 thread_safe_flag_spec_RC \
19356 whole_archive_flag_spec_RC \
19357 enable_shared_with_static_runtimes_RC \
19358 old_archive_cmds_RC \
19359 old_archive_from_new_cmds_RC \
19360 predep_objects_RC \
19361 postdep_objects_RC \
19362 predeps_RC \
19363 postdeps_RC \
19364 compiler_lib_search_path_RC \
19365 archive_cmds_RC \
19366 archive_expsym_cmds_RC \
19367 postinstall_cmds_RC \
19368 postuninstall_cmds_RC \
19369 old_archive_from_expsyms_cmds_RC \
19370 allow_undefined_flag_RC \
19371 no_undefined_flag_RC \
19372 export_symbols_cmds_RC \
19373 hardcode_libdir_flag_spec_RC \
19374 hardcode_libdir_flag_spec_ld_RC \
19375 hardcode_libdir_separator_RC \
19376 hardcode_automatic_RC \
19377 module_cmds_RC \
19378 module_expsym_cmds_RC \
19379 lt_cv_prog_compiler_c_o_RC \
19380 exclude_expsyms_RC \
19381 include_expsyms_RC; do
19382
19383 case $var in
19384 old_archive_cmds_RC | \
19385 old_archive_from_new_cmds_RC | \
19386 archive_cmds_RC | \
19387 archive_expsym_cmds_RC | \
19388 module_cmds_RC | \
19389 module_expsym_cmds_RC | \
19390 old_archive_from_expsyms_cmds_RC | \
19391 export_symbols_cmds_RC | \
19392 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19393 postinstall_cmds | postuninstall_cmds | \
19394 old_postinstall_cmds | old_postuninstall_cmds | \
19395 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19396 # Double-quote double-evaled strings.
19397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19398 ;;
19399 *)
19400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19401 ;;
19402 esac
19403 done
19404
19405 case $lt_echo in
19406 *'\$0 --fallback-echo"')
19407 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19408 ;;
19409 esac
19410
19411cfgfile="$ofile"
19412
19413 cat <<__EOF__ >> "$cfgfile"
19414# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19415
19416# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19417
19418# Shell to use when invoking shell scripts.
19419SHELL=$lt_SHELL
19420
19421# Whether or not to build shared libraries.
19422build_libtool_libs=$enable_shared
19423
19424# Whether or not to build static libraries.
19425build_old_libs=$enable_static
19426
19427# Whether or not to add -lc for building shared libraries.
19428build_libtool_need_lc=$archive_cmds_need_lc_RC
19429
19430# Whether or not to disallow shared libs when runtime libs are static
19431allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19432
19433# Whether or not to optimize for fast installation.
19434fast_install=$enable_fast_install
19435
19436# The host system.
19437host_alias=$host_alias
19438host=$host
19439host_os=$host_os
19440
19441# The build system.
19442build_alias=$build_alias
19443build=$build
19444build_os=$build_os
19445
19446# An echo program that does not interpret backslashes.
19447echo=$lt_echo
19448
19449# The archiver.
19450AR=$lt_AR
19451AR_FLAGS=$lt_AR_FLAGS
19452
19453# A C compiler.
19454LTCC=$lt_LTCC
19455
19456# LTCC compiler flags.
19457LTCFLAGS=$lt_LTCFLAGS
19458
19459# A language-specific compiler.
19460CC=$lt_compiler_RC
19461
19462# Is the compiler the GNU C compiler?
19463with_gcc=$GCC_RC
19464
19465gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19466gcc_ver=\`gcc -dumpversion\`
19467
19468# An ERE matcher.
19469EGREP=$lt_EGREP
19470
19471# The linker used to build libraries.
19472LD=$lt_LD_RC
19473
19474# Whether we need hard or soft links.
19475LN_S=$lt_LN_S
19476
19477# A BSD-compatible nm program.
19478NM=$lt_NM
19479
19480# A symbol stripping program
19481STRIP=$lt_STRIP
19482
19483# Used to examine libraries when file_magic_cmd begins "file"
19484MAGIC_CMD=$MAGIC_CMD
19485
19486# Used on cygwin: DLL creation program.
19487DLLTOOL="$DLLTOOL"
19488
19489# Used on cygwin: object dumper.
19490OBJDUMP="$OBJDUMP"
19491
19492# Used on cygwin: assembler.
19493AS="$AS"
19494
19495# The name of the directory that contains temporary libtool files.
19496objdir=$objdir
19497
19498# How to create reloadable object files.
19499reload_flag=$lt_reload_flag
19500reload_cmds=$lt_reload_cmds
19501
19502# How to pass a linker flag through the compiler.
19503wl=$lt_lt_prog_compiler_wl_RC
19504
19505# Object file suffix (normally "o").
19506objext="$ac_objext"
19507
19508# Old archive suffix (normally "a").
19509libext="$libext"
19510
19511# Shared library suffix (normally ".so").
19512shrext_cmds='$shrext_cmds'
19513
19514# Executable file suffix (normally "").
19515exeext="$exeext"
19516
19517# Additional compiler flags for building library objects.
19518pic_flag=$lt_lt_prog_compiler_pic_RC
19519pic_mode=$pic_mode
19520
19521# What is the maximum length of a command?
19522max_cmd_len=$lt_cv_sys_max_cmd_len
19523
19524# Does compiler simultaneously support -c and -o options?
19525compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19526
19527# Must we lock files when doing compilation?
19528need_locks=$lt_need_locks
19529
19530# Do we need the lib prefix for modules?
19531need_lib_prefix=$need_lib_prefix
19532
19533# Do we need a version for libraries?
19534need_version=$need_version
19535
19536# Whether dlopen is supported.
19537dlopen_support=$enable_dlopen
19538
19539# Whether dlopen of programs is supported.
19540dlopen_self=$enable_dlopen_self
19541
19542# Whether dlopen of statically linked programs is supported.
19543dlopen_self_static=$enable_dlopen_self_static
19544
19545# Compiler flag to prevent dynamic linking.
19546link_static_flag=$lt_lt_prog_compiler_static_RC
19547
19548# Compiler flag to turn off builtin functions.
19549no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19550
19551# Compiler flag to allow reflexive dlopens.
19552export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19553
19554# Compiler flag to generate shared objects directly from archives.
19555whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19556
19557# Compiler flag to generate thread-safe objects.
19558thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19559
19560# Library versioning type.
19561version_type=$version_type
19562
19563# Format of library name prefix.
19564libname_spec=$lt_libname_spec
19565
19566# List of archive names. First name is the real one, the rest are links.
19567# The last name is the one that the linker finds with -lNAME.
19568library_names_spec=$lt_library_names_spec
19569
19570# The coded name of the library, if different from the real name.
19571soname_spec=$lt_soname_spec
19572
19573# Commands used to build and install an old-style archive.
19574RANLIB=$lt_RANLIB
19575old_archive_cmds=$lt_old_archive_cmds_RC
19576old_postinstall_cmds=$lt_old_postinstall_cmds
19577old_postuninstall_cmds=$lt_old_postuninstall_cmds
19578
19579# Create an old-style archive from a shared archive.
19580old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19581
19582# Create a temporary old-style archive to link instead of a shared archive.
19583old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19584
19585# Commands used to build and install a shared archive.
19586archive_cmds=$lt_archive_cmds_RC
19587archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19588postinstall_cmds=$lt_postinstall_cmds
19589postuninstall_cmds=$lt_postuninstall_cmds
19590
19591# Commands used to build a loadable module (assumed same as above if empty)
19592module_cmds=$lt_module_cmds_RC
19593module_expsym_cmds=$lt_module_expsym_cmds_RC
19594
19595# Commands to strip libraries.
19596old_striplib=$lt_old_striplib
19597striplib=$lt_striplib
19598
19599# Dependencies to place before the objects being linked to create a
19600# shared library.
19601predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19602
19603# Dependencies to place after the objects being linked to create a
19604# shared library.
19605postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19606
19607# Dependencies to place before the objects being linked to create a
19608# shared library.
19609predeps=$lt_predeps_RC
19610
19611# Dependencies to place after the objects being linked to create a
19612# shared library.
19613postdeps=$lt_postdeps_RC
19614
19615# The library search path used internally by the compiler when linking
19616# a shared library.
19617compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19618
19619# Method to check whether dependent libraries are shared objects.
19620deplibs_check_method=$lt_deplibs_check_method
19621
19622# Command to use when deplibs_check_method == file_magic.
19623file_magic_cmd=$lt_file_magic_cmd
19624
19625# Flag that allows shared libraries with undefined symbols to be built.
19626allow_undefined_flag=$lt_allow_undefined_flag_RC
19627
19628# Flag that forces no undefined symbols.
19629no_undefined_flag=$lt_no_undefined_flag_RC
19630
19631# Commands used to finish a libtool library installation in a directory.
19632finish_cmds=$lt_finish_cmds
19633
19634# Same as above, but a single script fragment to be evaled but not shown.
19635finish_eval=$lt_finish_eval
19636
19637# Take the output of nm and produce a listing of raw symbols and C names.
19638global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19639
19640# Transform the output of nm in a proper C declaration
19641global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19642
19643# Transform the output of nm in a C name address pair
19644global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19645
19646# This is the shared library runtime path variable.
19647runpath_var=$runpath_var
19648
19649# This is the shared library path variable.
19650shlibpath_var=$shlibpath_var
19651
19652# Is shlibpath searched before the hard-coded library search path?
19653shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19654
19655# How to hardcode a shared library path into an executable.
19656hardcode_action=$hardcode_action_RC
19657
19658# Whether we should hardcode library paths into libraries.
19659hardcode_into_libs=$hardcode_into_libs
19660
19661# Flag to hardcode \$libdir into a binary during linking.
19662# This must work even if \$libdir does not exist.
19663hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19664
19665# If ld is used when linking, flag to hardcode \$libdir into
19666# a binary during linking. This must work even if \$libdir does
19667# not exist.
19668hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19669
19670# Whether we need a single -rpath flag with a separated argument.
19671hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19672
19673# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19674# resulting binary.
19675hardcode_direct=$hardcode_direct_RC
19676
19677# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19678# resulting binary.
19679hardcode_minus_L=$hardcode_minus_L_RC
19680
19681# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19682# the resulting binary.
19683hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19684
19685# Set to yes if building a shared library automatically hardcodes DIR into the library
19686# and all subsequent libraries and executables linked against it.
19687hardcode_automatic=$hardcode_automatic_RC
19688
19689# Variables whose values should be saved in libtool wrapper scripts and
19690# restored at relink time.
19691variables_saved_for_relink="$variables_saved_for_relink"
19692
19693# Whether libtool must link a program against all its dependency libraries.
19694link_all_deplibs=$link_all_deplibs_RC
19695
19696# Compile-time system search path for libraries
19697sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19698
19699# Run-time system search path for libraries
19700sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19701
19702# Fix the shell variable \$srcfile for the compiler.
19703fix_srcfile_path="$fix_srcfile_path_RC"
19704
19705# Set to yes if exported symbols are required.
19706always_export_symbols=$always_export_symbols_RC
19707
19708# The commands to list exported symbols.
19709export_symbols_cmds=$lt_export_symbols_cmds_RC
19710
19711# The commands to extract the exported symbol list from a shared archive.
19712extract_expsyms_cmds=$lt_extract_expsyms_cmds
19713
19714# Symbols that should not be listed in the preloaded symbols.
19715exclude_expsyms=$lt_exclude_expsyms_RC
19716
19717# Symbols that must always be exported.
19718include_expsyms=$lt_include_expsyms_RC
19719
19720# ### END LIBTOOL TAG CONFIG: $tagname
19721
19722__EOF__
19723
19724
19725else
19726 # If there is no Makefile yet, we rely on a make rule to execute
19727 # `config.status --recheck' to rerun these tests and create the
19728 # libtool script then.
19729 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19730 if test -f "$ltmain_in"; then
19731 test -f Makefile && make "$ltmain"
19732 fi
19733fi
19734
19735
19736ac_ext=c
19737ac_cpp='$CPP $CPPFLAGS'
19738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19740ac_compiler_gnu=$ac_cv_c_compiler_gnu
19741
19742CC="$lt_save_CC"
19743
19744 ;;
19745
19746 *)
19747 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19748echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19749 { (exit 1); exit 1; }; }
19750 ;;
19751 esac
19752
19753 # Append the new tag name to the list of available tags.
19754 if test -n "$tagname" ; then
19755 available_tags="$available_tags $tagname"
19756 fi
19757 fi
19758 done
19759 IFS="$lt_save_ifs"
19760
19761 # Now substitute the updated list of available tags.
19762 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19763 mv "${ofile}T" "$ofile"
19764 chmod +x "$ofile"
19765 else
19766 rm -f "${ofile}T"
19767 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19768echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19769 { (exit 1); exit 1; }; }
19770 fi
19771fi
19772
19773
19774
19775# This can be used to rebuild libtool when needed
19776LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19777
19778# Always use our own libtool.
19779LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19780
19781# Prevent multiple expansion
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809for ac_header in sys/types.h sys/time.h stdlib.h unistd.h string.h
19810do
19811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19812if eval "test \"\${$as_ac_Header+set}\" = set"; then
19813 echo "$as_me:$LINENO: checking for $ac_header" >&5
19814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19815if eval "test \"\${$as_ac_Header+set}\" = set"; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19817fi
19818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19820else
19821 # Is the header compilable?
19822echo "$as_me:$LINENO: checking $ac_header usability" >&5
19823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19824cat >conftest.$ac_ext <<_ACEOF
19825/* confdefs.h. */
19826_ACEOF
19827cat confdefs.h >>conftest.$ac_ext
19828cat >>conftest.$ac_ext <<_ACEOF
19829/* end confdefs.h. */
19830$ac_includes_default
19831#include <$ac_header>
19832_ACEOF
19833rm -f conftest.$ac_objext
19834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19835 (eval $ac_compile) 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -z "$ac_c_werror_flag"
19843 || test ! -s conftest.err'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest.$ac_objext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_header_compiler=yes
19856else
19857 echo "$as_me: failed program was:" >&5
19858sed 's/^/| /' conftest.$ac_ext >&5
19859
19860ac_header_compiler=no
19861fi
19862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19864echo "${ECHO_T}$ac_header_compiler" >&6
19865
19866# Is the header present?
19867echo "$as_me:$LINENO: checking $ac_header presence" >&5
19868echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19869cat >conftest.$ac_ext <<_ACEOF
19870/* confdefs.h. */
19871_ACEOF
19872cat confdefs.h >>conftest.$ac_ext
19873cat >>conftest.$ac_ext <<_ACEOF
19874/* end confdefs.h. */
19875#include <$ac_header>
19876_ACEOF
19877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } >/dev/null; then
19885 if test -s conftest.err; then
19886 ac_cpp_err=$ac_c_preproc_warn_flag
19887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19888 else
19889 ac_cpp_err=
19890 fi
19891else
19892 ac_cpp_err=yes
19893fi
19894if test -z "$ac_cpp_err"; then
19895 ac_header_preproc=yes
19896else
19897 echo "$as_me: failed program was:" >&5
19898sed 's/^/| /' conftest.$ac_ext >&5
19899
19900 ac_header_preproc=no
19901fi
19902rm -f conftest.err conftest.$ac_ext
19903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19904echo "${ECHO_T}$ac_header_preproc" >&6
19905
19906# So? What about this header?
19907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19908 yes:no: )
19909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19913 ac_header_preproc=yes
19914 ;;
19915 no:yes:* )
19916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19919echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19923echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19928 (
19929 cat <<\_ASBOX
19930## ------------------------------------------ ##
19931## Report this to the AC_PACKAGE_NAME lists. ##
19932## ------------------------------------------ ##
19933_ASBOX
19934 ) |
19935 sed "s/^/$as_me: WARNING: /" >&2
19936 ;;
19937esac
19938echo "$as_me:$LINENO: checking for $ac_header" >&5
19939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19940if eval "test \"\${$as_ac_Header+set}\" = set"; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19942else
19943 eval "$as_ac_Header=\$ac_header_preproc"
19944fi
19945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19947
19948fi
19949if test `eval echo '${'$as_ac_Header'}'` = yes; then
19950 cat >>confdefs.h <<_ACEOF
19951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19952_ACEOF
19953
19954fi
19955
19956done
19957
19958
19959
19960
19961
19962
19963
19964for ac_header in ieeefp.h nan.h math.h fp_class.h float.h ansidecl.h
19965do
19966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19967if eval "test \"\${$as_ac_Header+set}\" = set"; then
19968 echo "$as_me:$LINENO: checking for $ac_header" >&5
19969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19970if eval "test \"\${$as_ac_Header+set}\" = set"; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19972fi
19973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19975else
19976 # Is the header compilable?
19977echo "$as_me:$LINENO: checking $ac_header usability" >&5
19978echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19979cat >conftest.$ac_ext <<_ACEOF
19980/* confdefs.h. */
19981_ACEOF
19982cat confdefs.h >>conftest.$ac_ext
19983cat >>conftest.$ac_ext <<_ACEOF
19984/* end confdefs.h. */
19985$ac_includes_default
19986#include <$ac_header>
19987_ACEOF
19988rm -f conftest.$ac_objext
19989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19990 (eval $ac_compile) 2>conftest.er1
19991 ac_status=$?
19992 grep -v '^ *+' conftest.er1 >conftest.err
19993 rm -f conftest.er1
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try='test -z "$ac_c_werror_flag"
19998 || test ! -s conftest.err'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; } &&
20004 { ac_try='test -s conftest.$ac_objext'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 ac_header_compiler=yes
20011else
20012 echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015ac_header_compiler=no
20016fi
20017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20018echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20019echo "${ECHO_T}$ac_header_compiler" >&6
20020
20021# Is the header present?
20022echo "$as_me:$LINENO: checking $ac_header presence" >&5
20023echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20024cat >conftest.$ac_ext <<_ACEOF
20025/* confdefs.h. */
20026_ACEOF
20027cat confdefs.h >>conftest.$ac_ext
20028cat >>conftest.$ac_ext <<_ACEOF
20029/* end confdefs.h. */
20030#include <$ac_header>
20031_ACEOF
20032if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20034 ac_status=$?
20035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } >/dev/null; then
20040 if test -s conftest.err; then
20041 ac_cpp_err=$ac_c_preproc_warn_flag
20042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20043 else
20044 ac_cpp_err=
20045 fi
20046else
20047 ac_cpp_err=yes
20048fi
20049if test -z "$ac_cpp_err"; then
20050 ac_header_preproc=yes
20051else
20052 echo "$as_me: failed program was:" >&5
20053sed 's/^/| /' conftest.$ac_ext >&5
20054
20055 ac_header_preproc=no
20056fi
20057rm -f conftest.err conftest.$ac_ext
20058echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20059echo "${ECHO_T}$ac_header_preproc" >&6
20060
20061# So? What about this header?
20062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20063 yes:no: )
20064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20068 ac_header_preproc=yes
20069 ;;
20070 no:yes:* )
20071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20074echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20078echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20083 (
20084 cat <<\_ASBOX
20085## ------------------------------------------ ##
20086## Report this to the AC_PACKAGE_NAME lists. ##
20087## ------------------------------------------ ##
20088_ASBOX
20089 ) |
20090 sed "s/^/$as_me: WARNING: /" >&2
20091 ;;
20092esac
20093echo "$as_me:$LINENO: checking for $ac_header" >&5
20094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20095if eval "test \"\${$as_ac_Header+set}\" = set"; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097else
20098 eval "$as_ac_Header=\$ac_header_preproc"
20099fi
20100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20102
20103fi
20104if test `eval echo '${'$as_ac_Header'}'` = yes; then
20105 cat >>confdefs.h <<_ACEOF
20106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20107_ACEOF
20108
20109fi
20110
20111done
20112
20113
20114
20115
20116
20117
20118for ac_header in sys/timeb.h time.h sys/stat.h sys/select.h stdarg.h
20119do
20120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20121if eval "test \"\${$as_ac_Header+set}\" = set"; then
20122 echo "$as_me:$LINENO: checking for $ac_header" >&5
20123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20124if eval "test \"\${$as_ac_Header+set}\" = set"; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126fi
20127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20129else
20130 # Is the header compilable?
20131echo "$as_me:$LINENO: checking $ac_header usability" >&5
20132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20133cat >conftest.$ac_ext <<_ACEOF
20134/* confdefs.h. */
20135_ACEOF
20136cat confdefs.h >>conftest.$ac_ext
20137cat >>conftest.$ac_ext <<_ACEOF
20138/* end confdefs.h. */
20139$ac_includes_default
20140#include <$ac_header>
20141_ACEOF
20142rm -f conftest.$ac_objext
20143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20144 (eval $ac_compile) 2>conftest.er1
20145 ac_status=$?
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
20151 { ac_try='test -z "$ac_c_werror_flag"
20152 || test ! -s conftest.err'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; } &&
20158 { ac_try='test -s conftest.$ac_objext'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 ac_header_compiler=yes
20165else
20166 echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169ac_header_compiler=no
20170fi
20171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20172echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20173echo "${ECHO_T}$ac_header_compiler" >&6
20174
20175# Is the header present?
20176echo "$as_me:$LINENO: checking $ac_header presence" >&5
20177echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20178cat >conftest.$ac_ext <<_ACEOF
20179/* confdefs.h. */
20180_ACEOF
20181cat confdefs.h >>conftest.$ac_ext
20182cat >>conftest.$ac_ext <<_ACEOF
20183/* end confdefs.h. */
20184#include <$ac_header>
20185_ACEOF
20186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20188 ac_status=$?
20189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } >/dev/null; then
20194 if test -s conftest.err; then
20195 ac_cpp_err=$ac_c_preproc_warn_flag
20196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20197 else
20198 ac_cpp_err=
20199 fi
20200else
20201 ac_cpp_err=yes
20202fi
20203if test -z "$ac_cpp_err"; then
20204 ac_header_preproc=yes
20205else
20206 echo "$as_me: failed program was:" >&5
20207sed 's/^/| /' conftest.$ac_ext >&5
20208
20209 ac_header_preproc=no
20210fi
20211rm -f conftest.err conftest.$ac_ext
20212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20213echo "${ECHO_T}$ac_header_preproc" >&6
20214
20215# So? What about this header?
20216case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20217 yes:no: )
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20219echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20221echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20222 ac_header_preproc=yes
20223 ;;
20224 no:yes:* )
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20226echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20228echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20230echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20232echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20234echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20236echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20237 (
20238 cat <<\_ASBOX
20239## ------------------------------------------ ##
20240## Report this to the AC_PACKAGE_NAME lists. ##
20241## ------------------------------------------ ##
20242_ASBOX
20243 ) |
20244 sed "s/^/$as_me: WARNING: /" >&2
20245 ;;
20246esac
20247echo "$as_me:$LINENO: checking for $ac_header" >&5
20248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20249if eval "test \"\${$as_ac_Header+set}\" = set"; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20251else
20252 eval "$as_ac_Header=\$ac_header_preproc"
20253fi
20254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20256
20257fi
20258if test `eval echo '${'$as_ac_Header'}'` = yes; then
20259 cat >>confdefs.h <<_ACEOF
20260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20261_ACEOF
20262
20263fi
20264
20265done
20266
20267
20268
20269for ac_func in stat _stat
20270do
20271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20272echo "$as_me:$LINENO: checking for $ac_func" >&5
20273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20274if eval "test \"\${$as_ac_var+set}\" = set"; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276else
20277 cat >conftest.$ac_ext <<_ACEOF
20278/* confdefs.h. */
20279_ACEOF
20280cat confdefs.h >>conftest.$ac_ext
20281cat >>conftest.$ac_ext <<_ACEOF
20282/* end confdefs.h. */
20283/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20285#define $ac_func innocuous_$ac_func
20286
20287/* System header to define __stub macros and hopefully few prototypes,
20288 which can conflict with char $ac_func (); below.
20289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20290 <limits.h> exists even on freestanding compilers. */
20291
20292#ifdef __STDC__
20293# include <limits.h>
20294#else
20295# include <assert.h>
20296#endif
20297
20298#undef $ac_func
20299
20300/* Override any gcc2 internal prototype to avoid an error. */
20301#ifdef __cplusplus
20302extern "C"
20303{
20304#endif
20305/* We use char because int might match the return type of a gcc2
20306 builtin and then its argument prototype would still apply. */
20307char $ac_func ();
20308/* The GNU C library defines this for functions which it implements
20309 to always fail with ENOSYS. Some functions are actually named
20310 something starting with __ and the normal name is an alias. */
20311#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20312choke me
20313#else
20314char (*f) () = $ac_func;
20315#endif
20316#ifdef __cplusplus
20317}
20318#endif
20319
20320int
20321main ()
20322{
20323return f != $ac_func;
20324 ;
20325 return 0;
20326}
20327_ACEOF
20328rm -f conftest.$ac_objext conftest$ac_exeext
20329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20330 (eval $ac_link) 2>conftest.er1
20331 ac_status=$?
20332 grep -v '^ *+' conftest.er1 >conftest.err
20333 rm -f conftest.er1
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } &&
20337 { ac_try='test -z "$ac_c_werror_flag"
20338 || test ! -s conftest.err'
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); }; } &&
20344 { ac_try='test -s conftest$ac_exeext'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
20350 eval "$as_ac_var=yes"
20351else
20352 echo "$as_me: failed program was:" >&5
20353sed 's/^/| /' conftest.$ac_ext >&5
20354
20355eval "$as_ac_var=no"
20356fi
20357rm -f conftest.err conftest.$ac_objext \
20358 conftest$ac_exeext conftest.$ac_ext
20359fi
20360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20361echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20362if test `eval echo '${'$as_ac_var'}'` = yes; then
20363 cat >>confdefs.h <<_ACEOF
20364#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20365_ACEOF
20366
20367fi
20368done
20369
20370echo "$as_me:$LINENO: checking for isnan" >&5
20371echo $ECHO_N "checking for isnan... $ECHO_C" >&6
20372if test "${ac_cv_func_isnan+set}" = set; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20374else
20375 cat >conftest.$ac_ext <<_ACEOF
20376/* confdefs.h. */
20377_ACEOF
20378cat confdefs.h >>conftest.$ac_ext
20379cat >>conftest.$ac_ext <<_ACEOF
20380/* end confdefs.h. */
20381/* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
20382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20383#define isnan innocuous_isnan
20384
20385/* System header to define __stub macros and hopefully few prototypes,
20386 which can conflict with char isnan (); below.
20387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20388 <limits.h> exists even on freestanding compilers. */
20389
20390#ifdef __STDC__
20391# include <limits.h>
20392#else
20393# include <assert.h>
20394#endif
20395
20396#undef isnan
20397
20398/* Override any gcc2 internal prototype to avoid an error. */
20399#ifdef __cplusplus
20400extern "C"
20401{
20402#endif
20403/* We use char because int might match the return type of a gcc2
20404 builtin and then its argument prototype would still apply. */
20405char isnan ();
20406/* The GNU C library defines this for functions which it implements
20407 to always fail with ENOSYS. Some functions are actually named
20408 something starting with __ and the normal name is an alias. */
20409#if defined (__stub_isnan) || defined (__stub___isnan)
20410choke me
20411#else
20412char (*f) () = isnan;
20413#endif
20414#ifdef __cplusplus
20415}
20416#endif
20417
20418int
20419main ()
20420{
20421return f != isnan;
20422 ;
20423 return 0;
20424}
20425_ACEOF
20426rm -f conftest.$ac_objext conftest$ac_exeext
20427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20428 (eval $ac_link) 2>conftest.er1
20429 ac_status=$?
20430 grep -v '^ *+' conftest.er1 >conftest.err
20431 rm -f conftest.er1
20432 cat conftest.err >&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } &&
20435 { ac_try='test -z "$ac_c_werror_flag"
20436 || test ! -s conftest.err'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; } &&
20442 { ac_try='test -s conftest$ac_exeext'
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; }; then
20448 ac_cv_func_isnan=yes
20449else
20450 echo "$as_me: failed program was:" >&5
20451sed 's/^/| /' conftest.$ac_ext >&5
20452
20453ac_cv_func_isnan=no
20454fi
20455rm -f conftest.err conftest.$ac_objext \
20456 conftest$ac_exeext conftest.$ac_ext
20457fi
20458echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
20459echo "${ECHO_T}$ac_cv_func_isnan" >&6
20460if test $ac_cv_func_isnan = yes; then
20461 :
20462else
20463 echo "$as_me:$LINENO: checking for isnan in -lm" >&5
20464echo $ECHO_N "checking for isnan in -lm... $ECHO_C" >&6
20465if test "${ac_cv_lib_m_isnan+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20467else
20468 ac_check_lib_save_LIBS=$LIBS
20469LIBS="-lm $LIBS"
20470cat >conftest.$ac_ext <<_ACEOF
20471/* confdefs.h. */
20472_ACEOF
20473cat confdefs.h >>conftest.$ac_ext
20474cat >>conftest.$ac_ext <<_ACEOF
20475/* end confdefs.h. */
20476
20477/* Override any gcc2 internal prototype to avoid an error. */
20478#ifdef __cplusplus
20479extern "C"
20480#endif
20481/* We use char because int might match the return type of a gcc2
20482 builtin and then its argument prototype would still apply. */
20483char isnan ();
20484int
20485main ()
20486{
20487isnan ();
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"
20502 || test ! -s conftest.err'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; } &&
20508 { ac_try='test -s conftest$ac_exeext'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; }; then
20514 ac_cv_lib_m_isnan=yes
20515else
20516 echo "$as_me: failed program was:" >&5
20517sed 's/^/| /' conftest.$ac_ext >&5
20518
20519ac_cv_lib_m_isnan=no
20520fi
20521rm -f conftest.err conftest.$ac_objext \
20522 conftest$ac_exeext conftest.$ac_ext
20523LIBS=$ac_check_lib_save_LIBS
20524fi
20525echo "$as_me:$LINENO: result: $ac_cv_lib_m_isnan" >&5
20526echo "${ECHO_T}$ac_cv_lib_m_isnan" >&6
20527if test $ac_cv_lib_m_isnan = yes; then
20528 M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
20529#define HAVE_ISNAN 1
20530_ACEOF
20531
20532fi
20533
20534fi
20535
20536
20537echo "$as_me:$LINENO: checking for isinf" >&5
20538echo $ECHO_N "checking for isinf... $ECHO_C" >&6
20539if test "${ac_cv_func_isinf+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20541else
20542 cat >conftest.$ac_ext <<_ACEOF
20543/* confdefs.h. */
20544_ACEOF
20545cat confdefs.h >>conftest.$ac_ext
20546cat >>conftest.$ac_ext <<_ACEOF
20547/* end confdefs.h. */
20548/* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
20549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20550#define isinf innocuous_isinf
20551
20552/* System header to define __stub macros and hopefully few prototypes,
20553 which can conflict with char isinf (); below.
20554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20555 <limits.h> exists even on freestanding compilers. */
20556
20557#ifdef __STDC__
20558# include <limits.h>
20559#else
20560# include <assert.h>
20561#endif
20562
20563#undef isinf
20564
20565/* Override any gcc2 internal prototype to avoid an error. */
20566#ifdef __cplusplus
20567extern "C"
20568{
20569#endif
20570/* We use char because int might match the return type of a gcc2
20571 builtin and then its argument prototype would still apply. */
20572char isinf ();
20573/* The GNU C library defines this for functions which it implements
20574 to always fail with ENOSYS. Some functions are actually named
20575 something starting with __ and the normal name is an alias. */
20576#if defined (__stub_isinf) || defined (__stub___isinf)
20577choke me
20578#else
20579char (*f) () = isinf;
20580#endif
20581#ifdef __cplusplus
20582}
20583#endif
20584
20585int
20586main ()
20587{
20588return f != isinf;
20589 ;
20590 return 0;
20591}
20592_ACEOF
20593rm -f conftest.$ac_objext conftest$ac_exeext
20594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20595 (eval $ac_link) 2>conftest.er1
20596 ac_status=$?
20597 grep -v '^ *+' conftest.er1 >conftest.err
20598 rm -f conftest.er1
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } &&
20602 { ac_try='test -z "$ac_c_werror_flag"
20603 || test ! -s conftest.err'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; } &&
20609 { ac_try='test -s conftest$ac_exeext'
20610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611 (eval $ac_try) 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }; then
20615 ac_cv_func_isinf=yes
20616else
20617 echo "$as_me: failed program was:" >&5
20618sed 's/^/| /' conftest.$ac_ext >&5
20619
20620ac_cv_func_isinf=no
20621fi
20622rm -f conftest.err conftest.$ac_objext \
20623 conftest$ac_exeext conftest.$ac_ext
20624fi
20625echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20626echo "${ECHO_T}$ac_cv_func_isinf" >&6
20627if test $ac_cv_func_isinf = yes; then
20628 :
20629else
20630 echo "$as_me:$LINENO: checking for isinf in -lm" >&5
20631echo $ECHO_N "checking for isinf in -lm... $ECHO_C" >&6
20632if test "${ac_cv_lib_m_isinf+set}" = set; then
20633 echo $ECHO_N "(cached) $ECHO_C" >&6
20634else
20635 ac_check_lib_save_LIBS=$LIBS
20636LIBS="-lm $LIBS"
20637cat >conftest.$ac_ext <<_ACEOF
20638/* confdefs.h. */
20639_ACEOF
20640cat confdefs.h >>conftest.$ac_ext
20641cat >>conftest.$ac_ext <<_ACEOF
20642/* end confdefs.h. */
20643
20644/* Override any gcc2 internal prototype to avoid an error. */
20645#ifdef __cplusplus
20646extern "C"
20647#endif
20648/* We use char because int might match the return type of a gcc2
20649 builtin and then its argument prototype would still apply. */
20650char isinf ();
20651int
20652main ()
20653{
20654isinf ();
20655 ;
20656 return 0;
20657}
20658_ACEOF
20659rm -f conftest.$ac_objext conftest$ac_exeext
20660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20661 (eval $ac_link) 2>conftest.er1
20662 ac_status=$?
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } &&
20668 { ac_try='test -z "$ac_c_werror_flag"
20669 || test ! -s conftest.err'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; } &&
20675 { ac_try='test -s conftest$ac_exeext'
20676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677 (eval $ac_try) 2>&5
20678 ac_status=$?
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); }; }; then
20681 ac_cv_lib_m_isinf=yes
20682else
20683 echo "$as_me: failed program was:" >&5
20684sed 's/^/| /' conftest.$ac_ext >&5
20685
20686ac_cv_lib_m_isinf=no
20687fi
20688rm -f conftest.err conftest.$ac_objext \
20689 conftest$ac_exeext conftest.$ac_ext
20690LIBS=$ac_check_lib_save_LIBS
20691fi
20692echo "$as_me:$LINENO: result: $ac_cv_lib_m_isinf" >&5
20693echo "${ECHO_T}$ac_cv_lib_m_isinf" >&6
20694if test $ac_cv_lib_m_isinf = yes; then
20695 M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
20696#define HAVE_ISINF 1
20697_ACEOF
20698
20699fi
20700
20701fi
20702
20703
20704echo "$as_me:$LINENO: checking for pow" >&5
20705echo $ECHO_N "checking for pow... $ECHO_C" >&6
20706if test "${ac_cv_func_pow+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20708else
20709 cat >conftest.$ac_ext <<_ACEOF
20710/* confdefs.h. */
20711_ACEOF
20712cat confdefs.h >>conftest.$ac_ext
20713cat >>conftest.$ac_ext <<_ACEOF
20714/* end confdefs.h. */
20715/* Define pow to an innocuous variant, in case <limits.h> declares pow.
20716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20717#define pow innocuous_pow
20718
20719/* System header to define __stub macros and hopefully few prototypes,
20720 which can conflict with char pow (); below.
20721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20722 <limits.h> exists even on freestanding compilers. */
20723
20724#ifdef __STDC__
20725# include <limits.h>
20726#else
20727# include <assert.h>
20728#endif
20729
20730#undef pow
20731
20732/* Override any gcc2 internal prototype to avoid an error. */
20733#ifdef __cplusplus
20734extern "C"
20735{
20736#endif
20737/* We use char because int might match the return type of a gcc2
20738 builtin and then its argument prototype would still apply. */
20739char pow ();
20740/* The GNU C library defines this for functions which it implements
20741 to always fail with ENOSYS. Some functions are actually named
20742 something starting with __ and the normal name is an alias. */
20743#if defined (__stub_pow) || defined (__stub___pow)
20744choke me
20745#else
20746char (*f) () = pow;
20747#endif
20748#ifdef __cplusplus
20749}
20750#endif
20751
20752int
20753main ()
20754{
20755return f != pow;
20756 ;
20757 return 0;
20758}
20759_ACEOF
20760rm -f conftest.$ac_objext conftest$ac_exeext
20761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20762 (eval $ac_link) 2>conftest.er1
20763 ac_status=$?
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
20769 { ac_try='test -z "$ac_c_werror_flag"
20770 || test ! -s conftest.err'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest$ac_exeext'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_func_pow=yes
20783else
20784 echo "$as_me: failed program was:" >&5
20785sed 's/^/| /' conftest.$ac_ext >&5
20786
20787ac_cv_func_pow=no
20788fi
20789rm -f conftest.err conftest.$ac_objext \
20790 conftest$ac_exeext conftest.$ac_ext
20791fi
20792echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
20793echo "${ECHO_T}$ac_cv_func_pow" >&6
20794if test $ac_cv_func_pow = yes; then
20795 :
20796else
20797 echo "$as_me:$LINENO: checking for pow in -lm" >&5
20798echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
20799if test "${ac_cv_lib_m_pow+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20801else
20802 ac_check_lib_save_LIBS=$LIBS
20803LIBS="-lm $LIBS"
20804cat >conftest.$ac_ext <<_ACEOF
20805/* confdefs.h. */
20806_ACEOF
20807cat confdefs.h >>conftest.$ac_ext
20808cat >>conftest.$ac_ext <<_ACEOF
20809/* end confdefs.h. */
20810
20811/* Override any gcc2 internal prototype to avoid an error. */
20812#ifdef __cplusplus
20813extern "C"
20814#endif
20815/* We use char because int might match the return type of a gcc2
20816 builtin and then its argument prototype would still apply. */
20817char pow ();
20818int
20819main ()
20820{
20821pow ();
20822 ;
20823 return 0;
20824}
20825_ACEOF
20826rm -f conftest.$ac_objext conftest$ac_exeext
20827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20828 (eval $ac_link) 2>conftest.er1
20829 ac_status=$?
20830 grep -v '^ *+' conftest.er1 >conftest.err
20831 rm -f conftest.er1
20832 cat conftest.err >&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } &&
20835 { ac_try='test -z "$ac_c_werror_flag"
20836 || test ! -s conftest.err'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20839 ac_status=$?
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; } &&
20842 { ac_try='test -s conftest$ac_exeext'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20845 ac_status=$?
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; }; then
20848 ac_cv_lib_m_pow=yes
20849else
20850 echo "$as_me: failed program was:" >&5
20851sed 's/^/| /' conftest.$ac_ext >&5
20852
20853ac_cv_lib_m_pow=no
20854fi
20855rm -f conftest.err conftest.$ac_objext \
20856 conftest$ac_exeext conftest.$ac_ext
20857LIBS=$ac_check_lib_save_LIBS
20858fi
20859echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
20860echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
20861if test $ac_cv_lib_m_pow = yes; then
20862 M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
20863#define HAVE_POW 1
20864_ACEOF
20865
20866fi
20867
20868fi
20869
20870
20871echo "$as_me:$LINENO: checking for floor" >&5
20872echo $ECHO_N "checking for floor... $ECHO_C" >&6
20873if test "${ac_cv_func_floor+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20875else
20876 cat >conftest.$ac_ext <<_ACEOF
20877/* confdefs.h. */
20878_ACEOF
20879cat confdefs.h >>conftest.$ac_ext
20880cat >>conftest.$ac_ext <<_ACEOF
20881/* end confdefs.h. */
20882/* Define floor to an innocuous variant, in case <limits.h> declares floor.
20883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20884#define floor innocuous_floor
20885
20886/* System header to define __stub macros and hopefully few prototypes,
20887 which can conflict with char floor (); below.
20888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20889 <limits.h> exists even on freestanding compilers. */
20890
20891#ifdef __STDC__
20892# include <limits.h>
20893#else
20894# include <assert.h>
20895#endif
20896
20897#undef floor
20898
20899/* Override any gcc2 internal prototype to avoid an error. */
20900#ifdef __cplusplus
20901extern "C"
20902{
20903#endif
20904/* We use char because int might match the return type of a gcc2
20905 builtin and then its argument prototype would still apply. */
20906char floor ();
20907/* The GNU C library defines this for functions which it implements
20908 to always fail with ENOSYS. Some functions are actually named
20909 something starting with __ and the normal name is an alias. */
20910#if defined (__stub_floor) || defined (__stub___floor)
20911choke me
20912#else
20913char (*f) () = floor;
20914#endif
20915#ifdef __cplusplus
20916}
20917#endif
20918
20919int
20920main ()
20921{
20922return f != floor;
20923 ;
20924 return 0;
20925}
20926_ACEOF
20927rm -f conftest.$ac_objext conftest$ac_exeext
20928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20929 (eval $ac_link) 2>conftest.er1
20930 ac_status=$?
20931 grep -v '^ *+' conftest.er1 >conftest.err
20932 rm -f conftest.er1
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } &&
20936 { ac_try='test -z "$ac_c_werror_flag"
20937 || test ! -s conftest.err'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try='test -s conftest$ac_exeext'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20949 ac_cv_func_floor=yes
20950else
20951 echo "$as_me: failed program was:" >&5
20952sed 's/^/| /' conftest.$ac_ext >&5
20953
20954ac_cv_func_floor=no
20955fi
20956rm -f conftest.err conftest.$ac_objext \
20957 conftest$ac_exeext conftest.$ac_ext
20958fi
20959echo "$as_me:$LINENO: result: $ac_cv_func_floor" >&5
20960echo "${ECHO_T}$ac_cv_func_floor" >&6
20961if test $ac_cv_func_floor = yes; then
20962 :
20963else
20964 echo "$as_me:$LINENO: checking for floor in -lm" >&5
20965echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
20966if test "${ac_cv_lib_m_floor+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20968else
20969 ac_check_lib_save_LIBS=$LIBS
20970LIBS="-lm $LIBS"
20971cat >conftest.$ac_ext <<_ACEOF
20972/* confdefs.h. */
20973_ACEOF
20974cat confdefs.h >>conftest.$ac_ext
20975cat >>conftest.$ac_ext <<_ACEOF
20976/* end confdefs.h. */
20977
20978/* Override any gcc2 internal prototype to avoid an error. */
20979#ifdef __cplusplus
20980extern "C"
20981#endif
20982/* We use char because int might match the return type of a gcc2
20983 builtin and then its argument prototype would still apply. */
20984char floor ();
20985int
20986main ()
20987{
20988floor ();
20989 ;
20990 return 0;
20991}
20992_ACEOF
20993rm -f conftest.$ac_objext conftest$ac_exeext
20994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20995 (eval $ac_link) 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
21002 { ac_try='test -z "$ac_c_werror_flag"
21003 || test ! -s conftest.err'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; } &&
21009 { ac_try='test -s conftest$ac_exeext'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21015 ac_cv_lib_m_floor=yes
21016else
21017 echo "$as_me: failed program was:" >&5
21018sed 's/^/| /' conftest.$ac_ext >&5
21019
21020ac_cv_lib_m_floor=no
21021fi
21022rm -f conftest.err conftest.$ac_objext \
21023 conftest$ac_exeext conftest.$ac_ext
21024LIBS=$ac_check_lib_save_LIBS
21025fi
21026echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
21027echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
21028if test $ac_cv_lib_m_floor = yes; then
21029 M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
21030#define HAVE_FLOOR 1
21031_ACEOF
21032
21033fi
21034
21035fi
21036
21037
21038echo "$as_me:$LINENO: checking for fabs" >&5
21039echo $ECHO_N "checking for fabs... $ECHO_C" >&6
21040if test "${ac_cv_func_fabs+set}" = set; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
21042else
21043 cat >conftest.$ac_ext <<_ACEOF
21044/* confdefs.h. */
21045_ACEOF
21046cat confdefs.h >>conftest.$ac_ext
21047cat >>conftest.$ac_ext <<_ACEOF
21048/* end confdefs.h. */
21049/* Define fabs to an innocuous variant, in case <limits.h> declares fabs.
21050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21051#define fabs innocuous_fabs
21052
21053/* System header to define __stub macros and hopefully few prototypes,
21054 which can conflict with char fabs (); below.
21055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21056 <limits.h> exists even on freestanding compilers. */
21057
21058#ifdef __STDC__
21059# include <limits.h>
21060#else
21061# include <assert.h>
21062#endif
21063
21064#undef fabs
21065
21066/* Override any gcc2 internal prototype to avoid an error. */
21067#ifdef __cplusplus
21068extern "C"
21069{
21070#endif
21071/* We use char because int might match the return type of a gcc2
21072 builtin and then its argument prototype would still apply. */
21073char fabs ();
21074/* The GNU C library defines this for functions which it implements
21075 to always fail with ENOSYS. Some functions are actually named
21076 something starting with __ and the normal name is an alias. */
21077#if defined (__stub_fabs) || defined (__stub___fabs)
21078choke me
21079#else
21080char (*f) () = fabs;
21081#endif
21082#ifdef __cplusplus
21083}
21084#endif
21085
21086int
21087main ()
21088{
21089return f != fabs;
21090 ;
21091 return 0;
21092}
21093_ACEOF
21094rm -f conftest.$ac_objext conftest$ac_exeext
21095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21096 (eval $ac_link) 2>conftest.er1
21097 ac_status=$?
21098 grep -v '^ *+' conftest.er1 >conftest.err
21099 rm -f conftest.er1
21100 cat conftest.err >&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } &&
21103 { ac_try='test -z "$ac_c_werror_flag"
21104 || test ! -s conftest.err'
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); }; } &&
21110 { ac_try='test -s conftest$ac_exeext'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 ac_cv_func_fabs=yes
21117else
21118 echo "$as_me: failed program was:" >&5
21119sed 's/^/| /' conftest.$ac_ext >&5
21120
21121ac_cv_func_fabs=no
21122fi
21123rm -f conftest.err conftest.$ac_objext \
21124 conftest$ac_exeext conftest.$ac_ext
21125fi
21126echo "$as_me:$LINENO: result: $ac_cv_func_fabs" >&5
21127echo "${ECHO_T}$ac_cv_func_fabs" >&6
21128if test $ac_cv_func_fabs = yes; then
21129 :
21130else
21131 echo "$as_me:$LINENO: checking for fabs in -lm" >&5
21132echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
21133if test "${ac_cv_lib_m_fabs+set}" = set; then
21134 echo $ECHO_N "(cached) $ECHO_C" >&6
21135else
21136 ac_check_lib_save_LIBS=$LIBS
21137LIBS="-lm $LIBS"
21138cat >conftest.$ac_ext <<_ACEOF
21139/* confdefs.h. */
21140_ACEOF
21141cat confdefs.h >>conftest.$ac_ext
21142cat >>conftest.$ac_ext <<_ACEOF
21143/* end confdefs.h. */
21144
21145/* Override any gcc2 internal prototype to avoid an error. */
21146#ifdef __cplusplus
21147extern "C"
21148#endif
21149/* We use char because int might match the return type of a gcc2
21150 builtin and then its argument prototype would still apply. */
21151char fabs ();
21152int
21153main ()
21154{
21155fabs ();
21156 ;
21157 return 0;
21158}
21159_ACEOF
21160rm -f conftest.$ac_objext conftest$ac_exeext
21161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21162 (eval $ac_link) 2>conftest.er1
21163 ac_status=$?
21164 grep -v '^ *+' conftest.er1 >conftest.err
21165 rm -f conftest.er1
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } &&
21169 { ac_try='test -z "$ac_c_werror_flag"
21170 || test ! -s conftest.err'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21173 ac_status=$?
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; } &&
21176 { ac_try='test -s conftest$ac_exeext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_cv_lib_m_fabs=yes
21183else
21184 echo "$as_me: failed program was:" >&5
21185sed 's/^/| /' conftest.$ac_ext >&5
21186
21187ac_cv_lib_m_fabs=no
21188fi
21189rm -f conftest.err conftest.$ac_objext \
21190 conftest$ac_exeext conftest.$ac_ext
21191LIBS=$ac_check_lib_save_LIBS
21192fi
21193echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
21194echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
21195if test $ac_cv_lib_m_fabs = yes; then
21196 M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
21197#define HAVE_FABS 1
21198_ACEOF
21199
21200fi
21201
21202fi
21203
21204
21205for ac_func in gettimeofday
21206do
21207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21208echo "$as_me:$LINENO: checking for $ac_func" >&5
21209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21210if eval "test \"\${$as_ac_var+set}\" = set"; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21212else
21213 cat >conftest.$ac_ext <<_ACEOF
21214/* confdefs.h. */
21215_ACEOF
21216cat confdefs.h >>conftest.$ac_ext
21217cat >>conftest.$ac_ext <<_ACEOF
21218/* end confdefs.h. */
21219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21221#define $ac_func innocuous_$ac_func
21222
21223/* System header to define __stub macros and hopefully few prototypes,
21224 which can conflict with char $ac_func (); below.
21225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21226 <limits.h> exists even on freestanding compilers. */
21227
21228#ifdef __STDC__
21229# include <limits.h>
21230#else
21231# include <assert.h>
21232#endif
21233
21234#undef $ac_func
21235
21236/* Override any gcc2 internal prototype to avoid an error. */
21237#ifdef __cplusplus
21238extern "C"
21239{
21240#endif
21241/* We use char because int might match the return type of a gcc2
21242 builtin and then its argument prototype would still apply. */
21243char $ac_func ();
21244/* The GNU C library defines this for functions which it implements
21245 to always fail with ENOSYS. Some functions are actually named
21246 something starting with __ and the normal name is an alias. */
21247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21248choke me
21249#else
21250char (*f) () = $ac_func;
21251#endif
21252#ifdef __cplusplus
21253}
21254#endif
21255
21256int
21257main ()
21258{
21259return f != $ac_func;
21260 ;
21261 return 0;
21262}
21263_ACEOF
21264rm -f conftest.$ac_objext conftest$ac_exeext
21265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21266 (eval $ac_link) 2>conftest.er1
21267 ac_status=$?
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } &&
21273 { ac_try='test -z "$ac_c_werror_flag"
21274 || test ! -s conftest.err'
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21277 ac_status=$?
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; } &&
21280 { ac_try='test -s conftest$ac_exeext'
21281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282 (eval $ac_try) 2>&5
21283 ac_status=$?
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); }; }; then
21286 eval "$as_ac_var=yes"
21287else
21288 echo "$as_me: failed program was:" >&5
21289sed 's/^/| /' conftest.$ac_ext >&5
21290
21291eval "$as_ac_var=no"
21292fi
21293rm -f conftest.err conftest.$ac_objext \
21294 conftest$ac_exeext conftest.$ac_ext
21295fi
21296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21298if test `eval echo '${'$as_ac_var'}'` = yes; then
21299 cat >>confdefs.h <<_ACEOF
21300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21301_ACEOF
21302
21303fi
21304done
21305
21306
21307
21308
21309
21310
21311
21312
21313for ac_func in mktime localtime localtime_r asctime time gmtime_r ftime
21314do
21315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21316echo "$as_me:$LINENO: checking for $ac_func" >&5
21317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21318if eval "test \"\${$as_ac_var+set}\" = set"; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21320else
21321 cat >conftest.$ac_ext <<_ACEOF
21322/* confdefs.h. */
21323_ACEOF
21324cat confdefs.h >>conftest.$ac_ext
21325cat >>conftest.$ac_ext <<_ACEOF
21326/* end confdefs.h. */
21327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21329#define $ac_func innocuous_$ac_func
21330
21331/* System header to define __stub macros and hopefully few prototypes,
21332 which can conflict with char $ac_func (); below.
21333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21334 <limits.h> exists even on freestanding compilers. */
21335
21336#ifdef __STDC__
21337# include <limits.h>
21338#else
21339# include <assert.h>
21340#endif
21341
21342#undef $ac_func
21343
21344/* Override any gcc2 internal prototype to avoid an error. */
21345#ifdef __cplusplus
21346extern "C"
21347{
21348#endif
21349/* We use char because int might match the return type of a gcc2
21350 builtin and then its argument prototype would still apply. */
21351char $ac_func ();
21352/* The GNU C library defines this for functions which it implements
21353 to always fail with ENOSYS. Some functions are actually named
21354 something starting with __ and the normal name is an alias. */
21355#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21356choke me
21357#else
21358char (*f) () = $ac_func;
21359#endif
21360#ifdef __cplusplus
21361}
21362#endif
21363
21364int
21365main ()
21366{
21367return f != $ac_func;
21368 ;
21369 return 0;
21370}
21371_ACEOF
21372rm -f conftest.$ac_objext conftest$ac_exeext
21373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21374 (eval $ac_link) 2>conftest.er1
21375 ac_status=$?
21376 grep -v '^ *+' conftest.er1 >conftest.err
21377 rm -f conftest.er1
21378 cat conftest.err >&5
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); } &&
21381 { ac_try='test -z "$ac_c_werror_flag"
21382 || test ! -s conftest.err'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; } &&
21388 { ac_try='test -s conftest$ac_exeext'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21391 ac_status=$?
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; }; then
21394 eval "$as_ac_var=yes"
21395else
21396 echo "$as_me: failed program was:" >&5
21397sed 's/^/| /' conftest.$ac_ext >&5
21398
21399eval "$as_ac_var=no"
21400fi
21401rm -f conftest.err conftest.$ac_objext \
21402 conftest$ac_exeext conftest.$ac_ext
21403fi
21404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21406if test `eval echo '${'$as_ac_var'}'` = yes; then
21407 cat >>confdefs.h <<_ACEOF
21408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21409_ACEOF
21410
21411fi
21412done
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
21424do
21425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21426echo "$as_me:$LINENO: checking for $ac_func" >&5
21427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21428if eval "test \"\${$as_ac_var+set}\" = set"; then
21429 echo $ECHO_N "(cached) $ECHO_C" >&6
21430else
21431 cat >conftest.$ac_ext <<_ACEOF
21432/* confdefs.h. */
21433_ACEOF
21434cat confdefs.h >>conftest.$ac_ext
21435cat >>conftest.$ac_ext <<_ACEOF
21436/* end confdefs.h. */
21437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21439#define $ac_func innocuous_$ac_func
21440
21441/* System header to define __stub macros and hopefully few prototypes,
21442 which can conflict with char $ac_func (); below.
21443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21444 <limits.h> exists even on freestanding compilers. */
21445
21446#ifdef __STDC__
21447# include <limits.h>
21448#else
21449# include <assert.h>
21450#endif
21451
21452#undef $ac_func
21453
21454/* Override any gcc2 internal prototype to avoid an error. */
21455#ifdef __cplusplus
21456extern "C"
21457{
21458#endif
21459/* We use char because int might match the return type of a gcc2
21460 builtin and then its argument prototype would still apply. */
21461char $ac_func ();
21462/* The GNU C library defines this for functions which it implements
21463 to always fail with ENOSYS. Some functions are actually named
21464 something starting with __ and the normal name is an alias. */
21465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21466choke me
21467#else
21468char (*f) () = $ac_func;
21469#endif
21470#ifdef __cplusplus
21471}
21472#endif
21473
21474int
21475main ()
21476{
21477return f != $ac_func;
21478 ;
21479 return 0;
21480}
21481_ACEOF
21482rm -f conftest.$ac_objext conftest$ac_exeext
21483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21484 (eval $ac_link) 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } &&
21491 { ac_try='test -z "$ac_c_werror_flag"
21492 || test ! -s conftest.err'
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest$ac_exeext'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }; then
21504 eval "$as_ac_var=yes"
21505else
21506 echo "$as_me: failed program was:" >&5
21507sed 's/^/| /' conftest.$ac_ext >&5
21508
21509eval "$as_ac_var=no"
21510fi
21511rm -f conftest.err conftest.$ac_objext \
21512 conftest$ac_exeext conftest.$ac_ext
21513fi
21514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21515echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21516if test `eval echo '${'$as_ac_var'}'` = yes; then
21517 cat >>confdefs.h <<_ACEOF
21518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21519_ACEOF
21520
21521else
21522 NEED_TRIO=1
21523fi
21524done
21525
21526
21527
21528if test "${NEED_TRIO}" = "1" ; then
21529 echo Reusing trio library for string functions
21530 WITH_TRIO=1
21531else
21532 WITH_TRIO=0
21533fi
21534
21535
21536
21537
21538
21539# Extract the first word of "perl", so it can be a program name with args.
21540set dummy perl; ac_word=$2
21541echo "$as_me:$LINENO: checking for $ac_word" >&5
21542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21543if test "${ac_cv_prog_PERL+set}" = set; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
21545else
21546 if test -n "$PERL"; then
21547 ac_cv_prog_PERL="$PERL" # Let the user override the test.
21548else
21549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21550for as_dir in $PATH
21551do
21552 IFS=$as_save_IFS
21553 test -z "$as_dir" && as_dir=.
21554 for ac_exec_ext in '' $ac_executable_extensions; do
21555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21556 ac_cv_prog_PERL="perl"
21557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21558 break 2
21559 fi
21560done
21561done
21562
21563 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
21564fi
21565fi
21566PERL=$ac_cv_prog_PERL
21567if test -n "$PERL"; then
21568 echo "$as_me:$LINENO: result: $PERL" >&5
21569echo "${ECHO_T}$PERL" >&6
21570else
21571 echo "$as_me:$LINENO: result: no" >&5
21572echo "${ECHO_T}no" >&6
21573fi
21574
21575
21576
21577if test "$PERL" != "false"; then
21578 WITH_PERL_TRUE=
21579 WITH_PERL_FALSE='#'
21580else
21581 WITH_PERL_TRUE='#'
21582 WITH_PERL_FALSE=
21583fi
21584
21585
21586
21587PYTHON_VERSION=
21588PYTHON_INCLUDES=
21589PYTHON_SITE_PACKAGES=
21590pythondir=
21591
21592# Check whether --with-python or --without-python was given.
21593if test "${with_python+set}" = set; then
21594 withval="$with_python"
21595
21596fi;
21597if test "$with_python" != "no" ; then
21598 if test -x "$with_python/bin/python"
21599 then
21600 echo Found python in $with_python/bin/python
21601 PYTHON="$with_python/bin/python"
21602 else
21603 if test -x "$with_python"
21604 then
21605 echo Found python in $with_python
21606 PYTHON="$with_python"
21607 else
21608 if test -x "$PYTHON"
21609 then
21610 echo Found python in environment PYTHON=$PYTHON
21611 with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
21612 else
21613 # Extract the first word of "python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
21614set dummy python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
21615echo "$as_me:$LINENO: checking for $ac_word" >&5
21616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21617if test "${ac_cv_path_PYTHON+set}" = set; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21619else
21620 case $PYTHON in
21621 [\\/]* | ?:[\\/]*)
21622 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21623 ;;
21624 *)
21625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21626for as_dir in $PATH
21627do
21628 IFS=$as_save_IFS
21629 test -z "$as_dir" && as_dir=.
21630 for ac_exec_ext in '' $ac_executable_extensions; do
21631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21632 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21634 break 2
21635 fi
21636done
21637done
21638
21639 ;;
21640esac
21641fi
21642PYTHON=$ac_cv_path_PYTHON
21643
21644if test -n "$PYTHON"; then
21645 echo "$as_me:$LINENO: result: $PYTHON" >&5
21646echo "${ECHO_T}$PYTHON" >&6
21647else
21648 echo "$as_me:$LINENO: result: no" >&5
21649echo "${ECHO_T}no" >&6
21650fi
21651
21652 fi
21653 fi
21654 fi
21655 if test "$PYTHON" != ""
21656 then
21657 echo "PYTHON is pointing at $PYTHON"
21658 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
21659 echo Found Python version $PYTHON_VERSION
21660 LIBXML2_PYTHON=`$PYTHON -c "try : import libxml2 ; print 1
21661except: print 0"`
21662 if test "$LIBXML2_PYTHON" = "1"
21663 then
21664 echo Found libxml2-python module
21665 else
21666 echo Warning: Missing libxml2-python
21667 fi
21668 fi
21669 if test "$PYTHON_VERSION" != ""
21670 then
21671 if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
21672 -d $with_python/lib/python$PYTHON_VERSION/site-packages
21673 then
21674 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
21675 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
21676 else
21677 if test -r $prefix/include/python$PYTHON_VERSION/Python.h
21678 then
21679 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
21680 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
21681 else
21682 if test -r /usr/include/python$PYTHON_VERSION/Python.h
21683 then
21684 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
21685 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
21686 else
21687 echo could not find python$PYTHON_VERSION/Python.h
21688 fi
21689 fi
21690 if test ! -d "$PYTHON_SITE_PACKAGES"
21691 then
21692 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
21693 fi
21694 fi
21695 fi
21696 if test "$with_python" != ""
21697 then
21698 pythondir='$(PYTHON_SITE_PACKAGES)'
21699 else
21700 pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
21701 fi
21702fi
21703
21704
21705if test "$PYTHON_INCLUDES" != ""; then
21706 WITH_PYTHON_TRUE=
21707 WITH_PYTHON_FALSE='#'
21708else
21709 WITH_PYTHON_TRUE='#'
21710 WITH_PYTHON_FALSE=
21711fi
21712
21713if test "$PYTHON_INCLUDES" != ""
21714then
21715 PYTHON_SUBDIR=python
21716else
21717 PYTHON_SUBDIR=
21718fi
21719
21720
21721
21722
21723# Check whether --with-crypto or --without-crypto was given.
21724if test "${with_crypto+set}" = set; then
21725 withval="$with_crypto"
21726
21727fi;
21728WITH_CRYPTO=0
21729if test "$with_crypto" = "no" ; then
21730 echo Disabling crypto support
21731 LIBGCRYPT_CFLAGS=""
21732 LIBGCRYPT_LIBS=""
21733else
21734 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
21735set dummy libgcrypt-config; ac_word=$2
21736echo "$as_me:$LINENO: checking for $ac_word" >&5
21737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21738if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
21739 echo $ECHO_N "(cached) $ECHO_C" >&6
21740else
21741 case $LIBGCRYPT_CONFIG in
21742 [\\/]* | ?:[\\/]*)
21743 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
21744 ;;
21745 *)
21746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21747for as_dir in $PATH
21748do
21749 IFS=$as_save_IFS
21750 test -z "$as_dir" && as_dir=.
21751 for ac_exec_ext in '' $ac_executable_extensions; do
21752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21753 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21755 break 2
21756 fi
21757done
21758done
21759
21760 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
21761 ;;
21762esac
21763fi
21764LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
21765
21766if test -n "$LIBGCRYPT_CONFIG"; then
21767 echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
21768echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
21769else
21770 echo "$as_me:$LINENO: result: no" >&5
21771echo "${ECHO_T}no" >&6
21772fi
21773
21774 if test "$LIBGCRYPT_CONFIG" != "no" ; then
21775 LIBGCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version`
21776 if test `echo $LIBGCRYPT_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -lt `echo "1.1.42" | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
21777 then
21778 LIBGCRYPT_CFLAGS=""
21779 LIBGCRYPT_LIBS=""
21780 echo gcrypt library version < 1.1.42 - Crypto extensions will not be available.
21781 else
21782 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags`
21783 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs`
21784
21785cat >>confdefs.h <<\_ACEOF
21786#define HAVE_GCRYPT 1
21787_ACEOF
21788
21789 echo Crypto extensions will be available.
21790 WITH_CRYPTO=1
21791 fi
21792 else
21793 LIBGCRYPT_CFLAGS=""
21794 LIBGCRYPT_LIBS=""
21795 echo Crypto extensions will not be available. Install libgcrypt and reconfigure to make available.
21796 fi
21797fi
21798
21799
21800
21801
21802if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ] || \
21803 [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxslt" ]
21804 then
21805 if test "${with_mem_debug}" = "" ;
21806 then
21807 with_mem_debug="yes"
21808 fi
21809 CFLAGS="-Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline "
21810 if test "`uname -m`" != "x86_64" ;
21811 then
21812 STATIC_BINARIES="-static"
21813 else
21814 STATIC_BINARIES=
21815 fi
21816 if test "$LOGNAME" = "veillard"
21817 then
21818 LIBXML_SRC="/u/veillard/XML"
21819 EXTRA_LIBS="$EXTRA_LIBS -ldl"
21820 fi
21821else
21822 STATIC_BINARIES=
21823fi
21824
21825
21826
21827# Check whether --with-debug or --without-debug was given.
21828if test "${with_debug+set}" = set; then
21829 withval="$with_debug"
21830
21831fi;
21832if test "$with_debug" = "no" ; then
21833 echo Disabling debug support
21834 WITH_XSLT_DEBUG=0
21835else
21836 WITH_XSLT_DEBUG=1
21837fi
21838
21839
21840
21841# Check whether --with-mem_debug or --without-mem_debug was given.
21842if test "${with_mem_debug+set}" = set; then
21843 withval="$with_mem_debug"
21844
21845fi;
21846if test "$with_mem_debug" = "yes" ; then
21847 echo Enabling memory debug support
21848 WITH_MEM_DEBUG=1
21849else
21850 WITH_MEM_DEBUG=0
21851fi
21852
21853
21854
21855# Check whether --with-with_debugger or --without-with_debugger was given.
21856if test "${with_with_debugger+set}" = set; then
21857 withval="$with_with_debugger"
21858
21859fi;
21860if test "$with_debugger" = "no" ; then
21861 echo Disabling debugger
21862 WITH_DEBUGGER=0
21863else
21864 echo Enabling debugger
21865 WITH_DEBUGGER=1
21866 cat >>confdefs.h <<\_ACEOF
21867#define WITH_DEBUGGER 1
21868_ACEOF
21869
21870fi
21871
21872
21873
21874LIBXML_CONFIG_PREFIX=""
21875LIBXML_SRC=""
21876
21877
21878# Check whether --with-libxml-prefix or --without-libxml-prefix was given.
21879if test "${with_libxml_prefix+set}" = set; then
21880 withval="$with_libxml_prefix"
21881 LIBXML_CONFIG_PREFIX=$withval
21882
21883fi;
21884
21885
21886# Check whether --with-libxml-include-prefix or --without-libxml-include-prefix was given.
21887if test "${with_libxml_include_prefix+set}" = set; then
21888 withval="$with_libxml_include_prefix"
21889 LIBXML_CFLAGS="-I$withval"
21890
21891fi;
21892
21893
21894# Check whether --with-libxml-libs-prefix or --without-libxml-libs-prefix was given.
21895if test "${with_libxml_libs_prefix+set}" = set; then
21896 withval="$with_libxml_libs_prefix"
21897 LIBXML_LIBS="-L$withval"
21898
21899fi;
21900
21901
21902# Check whether --with-libxml-src or --without-libxml-src was given.
21903if test "${with_libxml_src+set}" = set; then
21904 withval="$with_libxml_src"
21905 LIBXML_SRC="$withval"
21906
21907fi;
21908
21909
21910
21911
21912echo "$as_me:$LINENO: checking for libxml libraries >= $LIBXML_REQUIRED_VERSION" >&5
21913echo $ECHO_N "checking for libxml libraries >= $LIBXML_REQUIRED_VERSION... $ECHO_C" >&6
21914if test "x$LIBXML_CONFIG_PREFIX" != "x"
21915then
21916 XML_CONFIG=${LIBXML_CONFIG_PREFIX}/bin/xml2-config
21917else
21918 XML_CONFIG=xml2-config
21919fi
21920
21921if test "${GCC}" != "yes" ; then
21922 case "${host}" in
21923 *-*-hpux* )
21924 CFLAGS="${CFLAGS} -Wp,-H30000"
21925 ;;
21926 *-dec-osf* )
21927 CFLAGS="${CFLAGS} -ieee"
21928 ;;
21929 esac
21930else
21931 CFLAGS="${CFLAGS} -Wall"
21932 case "${host}" in
21933 alpha*-*-linux* )
21934 CFLAGS="${CFLAGS} -mieee"
21935 ;;
21936 alpha*-*-osf* )
21937 CFLAGS="${CFLAGS} -mieee"
21938 ;;
21939 esac
21940fi
21941
21942
21943if test "x$LIBXML_SRC" != "x"
21944then
21945 CWD=`pwd`
21946 if cd $LIBXML_SRC
21947 then
21948 SRC_DIR=`pwd`
21949 XML_CONFIG=${SRC_DIR}/xml2-config
21950 LIBXML_CFLAGS="-I${SRC_DIR}/include"
21951 LIBXML_LIBS="-L${SRC_DIR}"
21952 cd $CWD
21953 else
21954 { { echo "$as_me:$LINENO: error: libxml source dir not found (${LIBXML_SRC}), typo?" >&5
21955echo "$as_me: error: libxml source dir not found (${LIBXML_SRC}), typo?" >&2;}
21956 { (exit 1); exit 1; }; }
21957 fi
21958fi
21959
21960
21961if ${XML_CONFIG} --libs print > /dev/null 2>&1
21962then
21963 XMLVERS=`$XML_CONFIG --version`
21964 if test `echo $XMLVERS | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -ge `echo $LIBXML_REQUIRED_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
21965 then
21966 LIBXML_LIBS="$LIBXML_LIBS `$XML_CONFIG --libs`"
21967 LIBXML_CFLAGS="$LIBXML_CFLAGS `$XML_CONFIG --cflags`"
21968 echo "$as_me:$LINENO: result: $XMLVERS found" >&5
21969echo "${ECHO_T}$XMLVERS found" >&6
21970 else
21971 { { echo "$as_me:$LINENO: error: Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt" >&5
21972echo "$as_me: error: Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt" >&2;}
21973 { (exit 1); exit 1; }; }
21974 fi
21975else
21976 { { echo "$as_me:$LINENO: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/." >&5
21977echo "$as_me: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/." >&2;}
21978 { (exit 1); exit 1; }; }
21979fi
21980
21981
21982
21983
21984
21985
21986
21987# Check whether --with-plugins or --without-plugins was given.
21988if test "${with_plugins+set}" = set; then
21989 withval="$with_plugins"
21990
21991fi;
21992if test "$with_plugins" = ""
21993then
21994 with_plugins=yes
21995fi
21996
21997echo "$as_me:$LINENO: checking whether shared libraries will be built (required for plugins)" >&5
21998echo $ECHO_N "checking whether shared libraries will be built (required for plugins)... $ECHO_C" >&6
21999if test "$enable_shared" = "no" -a "$with_plugins" = "yes"; then
22000 echo "$as_me:$LINENO: result: no" >&5
22001echo "${ECHO_T}no" >&6
22002 { echo "$as_me:$LINENO: WARNING: Disabling plugin support." >&5
22003echo "$as_me: WARNING: Disabling plugin support." >&2;}
22004 { echo "$as_me:$LINENO: WARNING: Plugins require that shared libraries be built." >&5
22005echo "$as_me: WARNING: Plugins require that shared libraries be built." >&2;}
22006 with_plugins=no
22007else
22008 echo "$as_me:$LINENO: result: yes" >&5
22009echo "${ECHO_T}yes" >&6
22010fi
22011
22012if test "$with_plugins" = "yes" ; then
22013 echo "$as_me:$LINENO: checking libxml2 module support" >&5
22014echo $ECHO_N "checking libxml2 module support... $ECHO_C" >&6
22015 WITH_MODULES="`$XML_CONFIG --modules`"
22016 if test "${WITH_MODULES}" = "1"; then
22017 echo "$as_me:$LINENO: result: yes" >&5
22018echo "${ECHO_T}yes" >&6
22019 else
22020 echo "$as_me:$LINENO: result: no" >&5
22021echo "${ECHO_T}no" >&6
22022 WITH_MODULES="0"
22023 fi
22024else
22025 WITH_MODULES="0"
22026fi
22027
22028
22029
22030
22031if test "$WITH_MODULES" = "1"; then
22032 WITH_MODULES_TRUE=
22033 WITH_MODULES_FALSE='#'
22034else
22035 WITH_MODULES_TRUE='#'
22036 WITH_MODULES_FALSE=
22037fi
22038
22039
22040module_prefix=$prefix
22041test "x$module_prefix" = xNONE && module_prefix=$ac_default_prefix
22042LIBXSLT_DEFAULT_PLUGINS_PATH="$module_prefix/lib/libxslt-plugins"
22043
22044
22045if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ; then
22046 if test "`uname -i`" != "x86_64" -a -e $HOME/XML/.libs/libxml2.a ;
22047 then
22048 LIBXML_LIBS="$HOME/XML/.libs/libxml2.a -lpthread -lz"
22049 fi
22050 DV_LINK="1"
22051 XSLTPROCDV="xsltproc.dv"
22052 INSTALLED_XSLT_LIB=""
22053 LIBXML_SRC="$HOME/XML/"
22054fi
22055
22056WIN32_EXTRA_LIBADD=
22057WIN32_EXTRA_LDFLAGS=
22058case "$host" in
22059 *-*-mingw*)
22060 WIN32_EXTRA_LIBADD="-lwsock32"
22061 WIN32_EXTRA_LDFLAGS="-no-undefined"
22062
22063cat >>confdefs.h <<\_ACEOF
22064#define _WINSOCKAPI_ 1
22065_ACEOF
22066
22067
22068cat >>confdefs.h <<\_ACEOF
22069#define snprintf _snprintf
22070_ACEOF
22071
22072
22073cat >>confdefs.h <<\_ACEOF
22074#define vsnprintf _vsnprintf
22075_ACEOF
22076
22077 ;;
22078esac
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093XSLT_LIBDIR='-L${libdir}'
22094XSLT_INCLUDEDIR='-I${includedir}'
22095XSLT_LIBS="-lxslt $LIBXML_LIBS $M_LIBS"
22096
22097
22098
22099
22100EXSLT_LIBDIR='-L${libdir}'
22101EXSLT_INCLUDEDIR='-I${includedir}'
22102EXSLT_LIBS="-lexslt $XSLT_LIBS $LIBGCRYPT_LIBS"
22103
22104
22105
22106
22107EXTRA_LIBS="$EXTRA_LIBS $LIBXML_LIBS $M_LIBS"
22108
22109
22110
22111
22112RELDATE=`date +'%a %b %e %Y'`
22113
22114
22115( cd $srcdir
22116rm -f COPYING.LIB COPYING
22117$LN_S Copyright COPYING
22118)
22119
22120
22121 ac_config_files="$ac_config_files Makefile libxslt.pc libexslt.pc libxslt/Makefile libxslt/xsltconfig.h libxslt/xsltwin32config.h libexslt/Makefile libexslt/exsltconfig.h xsltproc/Makefile python/Makefile python/tests/Makefile tests/Makefile tests/docs/Makefile tests/REC1/Makefile tests/REC2/Makefile tests/REC/Makefile tests/general/Makefile tests/reports/Makefile tests/extensions/Makefile tests/namespaces/Makefile tests/keys/Makefile tests/numbers/Makefile tests/documents/Makefile tests/xmlspec/Makefile tests/multiple/Makefile tests/xinclude/Makefile tests/XSLTMark/Makefile tests/docbook/Makefile tests/exslt/Makefile tests/exslt/common/Makefile tests/exslt/functions/Makefile tests/exslt/math/Makefile tests/exslt/sets/Makefile tests/exslt/strings/Makefile tests/exslt/date/Makefile tests/exslt/dynamic/Makefile tests/plugins/Makefile doc/Makefile xslt-config libxslt.spec"
22122cat >confcache <<\_ACEOF
22123# This file is a shell script that caches the results of configure
22124# tests run on this system so they can be shared between configure
22125# scripts and configure runs, see configure's option --config-cache.
22126# It is not useful on other systems. If it contains results you don't
22127# want to keep, you may remove or edit it.
22128#
22129# config.status only pays attention to the cache file if you give it
22130# the --recheck option to rerun configure.
22131#
22132# `ac_cv_env_foo' variables (set or unset) will be overridden when
22133# loading this file, other *unset* `ac_cv_foo' will be assigned the
22134# following values.
22135
22136_ACEOF
22137
22138# The following way of writing the cache mishandles newlines in values,
22139# but we know of no workaround that is simple, portable, and efficient.
22140# So, don't put newlines in cache variables' values.
22141# Ultrix sh set writes to stderr and can't be redirected directly,
22142# and sets the high bit in the cache file unless we assign to the vars.
22143{
22144 (set) 2>&1 |
22145 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22146 *ac_space=\ *)
22147 # `set' does not quote correctly, so add quotes (double-quote
22148 # substitution turns \\\\ into \\, and sed turns \\ into \).
22149 sed -n \
22150 "s/'/'\\\\''/g;
22151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22152 ;;
22153 *)
22154 # `set' quotes correctly as required by POSIX, so do not add quotes.
22155 sed -n \
22156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22157 ;;
22158 esac;
22159} |
22160 sed '
22161 t clear
22162 : clear
22163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22164 t end
22165 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22166 : end' >>confcache
22167if diff $cache_file confcache >/dev/null 2>&1; then :; else
22168 if test -w $cache_file; then
22169 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22170 cat confcache >$cache_file
22171 else
22172 echo "not updating unwritable cache $cache_file"
22173 fi
22174fi
22175rm -f confcache
22176
22177test "x$prefix" = xNONE && prefix=$ac_default_prefix
22178# Let make expand exec_prefix.
22179test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22180
22181# VPATH may cause trouble with some makes, so we remove $(srcdir),
22182# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22183# trailing colons and then remove the whole line if VPATH becomes empty
22184# (actually we leave an empty line to preserve line numbers).
22185if test "x$srcdir" = x.; then
22186 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22187s/:*\$(srcdir):*/:/;
22188s/:*\${srcdir}:*/:/;
22189s/:*@srcdir@:*/:/;
22190s/^\([^=]*=[ ]*\):*/\1/;
22191s/:*$//;
22192s/^[^=]*=[ ]*$//;
22193}'
22194fi
22195
22196DEFS=-DHAVE_CONFIG_H
22197
22198ac_libobjs=
22199ac_ltlibobjs=
22200for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22201 # 1. Remove the extension, and $U if already installed.
22202 ac_i=`echo "$ac_i" |
22203 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22204 # 2. Add them.
22205 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22206 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22207done
22208LIBOBJS=$ac_libobjs
22209
22210LTLIBOBJS=$ac_ltlibobjs
22211
22212
22213if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22214 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22215Usually this means the macro was only invoked conditionally." >&5
22216echo "$as_me: error: conditional \"AMDEP\" was never defined.
22217Usually this means the macro was only invoked conditionally." >&2;}
22218 { (exit 1); exit 1; }; }
22219fi
22220if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22221 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22222Usually this means the macro was only invoked conditionally." >&5
22223echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22224Usually this means the macro was only invoked conditionally." >&2;}
22225 { (exit 1); exit 1; }; }
22226fi
22227if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22228 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22229Usually this means the macro was only invoked conditionally." >&5
22230echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22231Usually this means the macro was only invoked conditionally." >&2;}
22232 { (exit 1); exit 1; }; }
22233fi
22234if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22235 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22236Usually this means the macro was only invoked conditionally." >&5
22237echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22238Usually this means the macro was only invoked conditionally." >&2;}
22239 { (exit 1); exit 1; }; }
22240fi
22241if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
22242 { { echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
22243Usually this means the macro was only invoked conditionally." >&5
22244echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
22245Usually this means the macro was only invoked conditionally." >&2;}
22246 { (exit 1); exit 1; }; }
22247fi
22248if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
22249 { { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined.
22250Usually this means the macro was only invoked conditionally." >&5
22251echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
22252Usually this means the macro was only invoked conditionally." >&2;}
22253 { (exit 1); exit 1; }; }
22254fi
22255if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
22256 { { echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined.
22257Usually this means the macro was only invoked conditionally." >&5
22258echo "$as_me: error: conditional \"WITH_MODULES\" was never defined.
22259Usually this means the macro was only invoked conditionally." >&2;}
22260 { (exit 1); exit 1; }; }
22261fi
22262
22263: ${CONFIG_STATUS=./config.status}
22264ac_clean_files_save=$ac_clean_files
22265ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22266{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22267echo "$as_me: creating $CONFIG_STATUS" >&6;}
22268cat >$CONFIG_STATUS <<_ACEOF
22269#! $SHELL
22270# Generated by $as_me.
22271# Run this file to recreate the current configuration.
22272# Compiler output produced by configure, useful for debugging
22273# configure, is in config.log if it exists.
22274
22275debug=false
22276ac_cs_recheck=false
22277ac_cs_silent=false
22278SHELL=\${CONFIG_SHELL-$SHELL}
22279_ACEOF
22280
22281cat >>$CONFIG_STATUS <<\_ACEOF
22282## --------------------- ##
22283## M4sh Initialization. ##
22284## --------------------- ##
22285
22286# Be Bourne compatible
22287if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22288 emulate sh
22289 NULLCMD=:
22290 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22291 # is contrary to our usage. Disable this feature.
22292 alias -g '${1+"$@"}'='"$@"'
22293elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22294 set -o posix
22295fi
22296DUALCASE=1; export DUALCASE # for MKS sh
22297
22298# Support unset when possible.
22299if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22300 as_unset=unset
22301else
22302 as_unset=false
22303fi
22304
22305
22306# Work around bugs in pre-3.0 UWIN ksh.
22307$as_unset ENV MAIL MAILPATH
22308PS1='$ '
22309PS2='> '
22310PS4='+ '
22311
22312# NLS nuisances.
22313for as_var in \
22314 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22315 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22316 LC_TELEPHONE LC_TIME
22317do
22318 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22319 eval $as_var=C; export $as_var
22320 else
22321 $as_unset $as_var
22322 fi
22323done
22324
22325# Required to use basename.
22326if expr a : '\(a\)' >/dev/null 2>&1; then
22327 as_expr=expr
22328else
22329 as_expr=false
22330fi
22331
22332if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22333 as_basename=basename
22334else
22335 as_basename=false
22336fi
22337
22338
22339# Name of the executable.
22340as_me=`$as_basename "$0" ||
22341$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22342 X"$0" : 'X\(//\)$' \| \
22343 X"$0" : 'X\(/\)$' \| \
22344 . : '\(.\)' 2>/dev/null ||
22345echo X/"$0" |
22346 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22347 /^X\/\(\/\/\)$/{ s//\1/; q; }
22348 /^X\/\(\/\).*/{ s//\1/; q; }
22349 s/.*/./; q'`
22350
22351
22352# PATH needs CR, and LINENO needs CR and PATH.
22353# Avoid depending upon Character Ranges.
22354as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22355as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22356as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22357as_cr_digits='0123456789'
22358as_cr_alnum=$as_cr_Letters$as_cr_digits
22359
22360# The user is always right.
22361if test "${PATH_SEPARATOR+set}" != set; then
22362 echo "#! /bin/sh" >conf$$.sh
22363 echo "exit 0" >>conf$$.sh
22364 chmod +x conf$$.sh
22365 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22366 PATH_SEPARATOR=';'
22367 else
22368 PATH_SEPARATOR=:
22369 fi
22370 rm -f conf$$.sh
22371fi
22372
22373
22374 as_lineno_1=$LINENO
22375 as_lineno_2=$LINENO
22376 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22377 test "x$as_lineno_1" != "x$as_lineno_2" &&
22378 test "x$as_lineno_3" = "x$as_lineno_2" || {
22379 # Find who we are. Look in the path if we contain no path at all
22380 # relative or not.
22381 case $0 in
22382 *[\\/]* ) as_myself=$0 ;;
22383 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22384for as_dir in $PATH
22385do
22386 IFS=$as_save_IFS
22387 test -z "$as_dir" && as_dir=.
22388 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22389done
22390
22391 ;;
22392 esac
22393 # We did not find ourselves, most probably we were run as `sh COMMAND'
22394 # in which case we are not to be found in the path.
22395 if test "x$as_myself" = x; then
22396 as_myself=$0
22397 fi
22398 if test ! -f "$as_myself"; then
22399 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22400echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22401 { (exit 1); exit 1; }; }
22402 fi
22403 case $CONFIG_SHELL in
22404 '')
22405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22406for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22407do
22408 IFS=$as_save_IFS
22409 test -z "$as_dir" && as_dir=.
22410 for as_base in sh bash ksh sh5; do
22411 case $as_dir in
22412 /*)
22413 if ("$as_dir/$as_base" -c '
22414 as_lineno_1=$LINENO
22415 as_lineno_2=$LINENO
22416 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22417 test "x$as_lineno_1" != "x$as_lineno_2" &&
22418 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22419 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22420 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22421 CONFIG_SHELL=$as_dir/$as_base
22422 export CONFIG_SHELL
22423 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22424 fi;;
22425 esac
22426 done
22427done
22428;;
22429 esac
22430
22431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22432 # uniformly replaced by the line number. The first 'sed' inserts a
22433 # line-number line before each line; the second 'sed' does the real
22434 # work. The second script uses 'N' to pair each line-number line
22435 # with the numbered line, and appends trailing '-' during
22436 # substitution so that $LINENO is not a special case at line end.
22437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22438 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22439 sed '=' <$as_myself |
22440 sed '
22441 N
22442 s,$,-,
22443 : loop
22444 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22445 t loop
22446 s,-$,,
22447 s,^['$as_cr_digits']*\n,,
22448 ' >$as_me.lineno &&
22449 chmod +x $as_me.lineno ||
22450 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22451echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22452 { (exit 1); exit 1; }; }
22453
22454 # Don't try to exec as it changes $[0], causing all sort of problems
22455 # (the dirname of $[0] is not the place where we might find the
22456 # original and so on. Autoconf is especially sensible to this).
22457 . ./$as_me.lineno
22458 # Exit status is that of the last command.
22459 exit
22460}
22461
22462
22463case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22464 *c*,-n*) ECHO_N= ECHO_C='
22465' ECHO_T=' ' ;;
22466 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22467 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22468esac
22469
22470if expr a : '\(a\)' >/dev/null 2>&1; then
22471 as_expr=expr
22472else
22473 as_expr=false
22474fi
22475
22476rm -f conf$$ conf$$.exe conf$$.file
22477echo >conf$$.file
22478if ln -s conf$$.file conf$$ 2>/dev/null; then
22479 # We could just check for DJGPP; but this test a) works b) is more generic
22480 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22481 if test -f conf$$.exe; then
22482 # Don't use ln at all; we don't have any links
22483 as_ln_s='cp -p'
22484 else
22485 as_ln_s='ln -s'
22486 fi
22487elif ln conf$$.file conf$$ 2>/dev/null; then
22488 as_ln_s=ln
22489else
22490 as_ln_s='cp -p'
22491fi
22492rm -f conf$$ conf$$.exe conf$$.file
22493
22494if mkdir -p . 2>/dev/null; then
22495 as_mkdir_p=:
22496else
22497 test -d ./-p && rmdir ./-p
22498 as_mkdir_p=false
22499fi
22500
22501as_executable_p="test -f"
22502
22503# Sed expression to map a string onto a valid CPP name.
22504as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22505
22506# Sed expression to map a string onto a valid variable name.
22507as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22508
22509
22510# IFS
22511# We need space, tab and new line, in precisely that order.
22512as_nl='
22513'
22514IFS=" $as_nl"
22515
22516# CDPATH.
22517$as_unset CDPATH
22518
22519exec 6>&1
22520
22521# Open the log real soon, to keep \$[0] and so on meaningful, and to
22522# report actual input values of CONFIG_FILES etc. instead of their
22523# values after options handling. Logging --version etc. is OK.
22524exec 5>>config.log
22525{
22526 echo
22527 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22528## Running $as_me. ##
22529_ASBOX
22530} >&5
22531cat >&5 <<_CSEOF
22532
22533This file was extended by $as_me, which was
22534generated by GNU Autoconf 2.59. Invocation command line was
22535
22536 CONFIG_FILES = $CONFIG_FILES
22537 CONFIG_HEADERS = $CONFIG_HEADERS
22538 CONFIG_LINKS = $CONFIG_LINKS
22539 CONFIG_COMMANDS = $CONFIG_COMMANDS
22540 $ $0 $@
22541
22542_CSEOF
22543echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22544echo >&5
22545_ACEOF
22546
22547# Files that config.status was made for.
22548if test -n "$ac_config_files"; then
22549 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22550fi
22551
22552if test -n "$ac_config_headers"; then
22553 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22554fi
22555
22556if test -n "$ac_config_links"; then
22557 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22558fi
22559
22560if test -n "$ac_config_commands"; then
22561 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22562fi
22563
22564cat >>$CONFIG_STATUS <<\_ACEOF
22565
22566ac_cs_usage="\
22567\`$as_me' instantiates files from templates according to the
22568current configuration.
22569
22570Usage: $0 [OPTIONS] [FILE]...
22571
22572 -h, --help print this help, then exit
22573 -V, --version print version number, then exit
22574 -q, --quiet do not print progress messages
22575 -d, --debug don't remove temporary files
22576 --recheck update $as_me by reconfiguring in the same conditions
22577 --file=FILE[:TEMPLATE]
22578 instantiate the configuration file FILE
22579 --header=FILE[:TEMPLATE]
22580 instantiate the configuration header FILE
22581
22582Configuration files:
22583$config_files
22584
22585Configuration headers:
22586$config_headers
22587
22588Configuration commands:
22589$config_commands
22590
22591Report bugs to <[email protected]>."
22592_ACEOF
22593
22594cat >>$CONFIG_STATUS <<_ACEOF
22595ac_cs_version="\\
22596config.status
22597configured by $0, generated by GNU Autoconf 2.59,
22598 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22599
22600Copyright (C) 2003 Free Software Foundation, Inc.
22601This config.status script is free software; the Free Software Foundation
22602gives unlimited permission to copy, distribute and modify it."
22603srcdir=$srcdir
22604INSTALL="$INSTALL"
22605_ACEOF
22606
22607cat >>$CONFIG_STATUS <<\_ACEOF
22608# If no file are specified by the user, then we need to provide default
22609# value. By we need to know if files were specified by the user.
22610ac_need_defaults=:
22611while test $# != 0
22612do
22613 case $1 in
22614 --*=*)
22615 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22616 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22617 ac_shift=:
22618 ;;
22619 -*)
22620 ac_option=$1
22621 ac_optarg=$2
22622 ac_shift=shift
22623 ;;
22624 *) # This is not an option, so the user has probably given explicit
22625 # arguments.
22626 ac_option=$1
22627 ac_need_defaults=false;;
22628 esac
22629
22630 case $ac_option in
22631 # Handling of the options.
22632_ACEOF
22633cat >>$CONFIG_STATUS <<\_ACEOF
22634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22635 ac_cs_recheck=: ;;
22636 --version | --vers* | -V )
22637 echo "$ac_cs_version"; exit 0 ;;
22638 --he | --h)
22639 # Conflict between --help and --header
22640 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22641Try \`$0 --help' for more information." >&5
22642echo "$as_me: error: ambiguous option: $1
22643Try \`$0 --help' for more information." >&2;}
22644 { (exit 1); exit 1; }; };;
22645 --help | --hel | -h )
22646 echo "$ac_cs_usage"; exit 0 ;;
22647 --debug | --d* | -d )
22648 debug=: ;;
22649 --file | --fil | --fi | --f )
22650 $ac_shift
22651 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22652 ac_need_defaults=false;;
22653 --header | --heade | --head | --hea )
22654 $ac_shift
22655 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22656 ac_need_defaults=false;;
22657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22658 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22659 ac_cs_silent=: ;;
22660
22661 # This is an error.
22662 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22663Try \`$0 --help' for more information." >&5
22664echo "$as_me: error: unrecognized option: $1
22665Try \`$0 --help' for more information." >&2;}
22666 { (exit 1); exit 1; }; } ;;
22667
22668 *) ac_config_targets="$ac_config_targets $1" ;;
22669
22670 esac
22671 shift
22672done
22673
22674ac_configure_extra_args=
22675
22676if $ac_cs_silent; then
22677 exec 6>/dev/null
22678 ac_configure_extra_args="$ac_configure_extra_args --silent"
22679fi
22680
22681_ACEOF
22682cat >>$CONFIG_STATUS <<_ACEOF
22683if \$ac_cs_recheck; then
22684 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22685 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22686fi
22687
22688_ACEOF
22689
22690cat >>$CONFIG_STATUS <<_ACEOF
22691#
22692# INIT-COMMANDS section.
22693#
22694
22695AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22696
22697_ACEOF
22698
22699
22700
22701cat >>$CONFIG_STATUS <<\_ACEOF
22702for ac_config_target in $ac_config_targets
22703do
22704 case "$ac_config_target" in
22705 # Handling of arguments.
22706 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22707 "libxslt.pc" ) CONFIG_FILES="$CONFIG_FILES libxslt.pc" ;;
22708 "libexslt.pc" ) CONFIG_FILES="$CONFIG_FILES libexslt.pc" ;;
22709 "libxslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES libxslt/Makefile" ;;
22710 "libxslt/xsltconfig.h" ) CONFIG_FILES="$CONFIG_FILES libxslt/xsltconfig.h" ;;
22711 "libxslt/xsltwin32config.h" ) CONFIG_FILES="$CONFIG_FILES libxslt/xsltwin32config.h" ;;
22712 "libexslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES libexslt/Makefile" ;;
22713 "libexslt/exsltconfig.h" ) CONFIG_FILES="$CONFIG_FILES libexslt/exsltconfig.h" ;;
22714 "xsltproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES xsltproc/Makefile" ;;
22715 "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
22716 "python/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
22717 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22718 "tests/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/docs/Makefile" ;;
22719 "tests/REC1/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/REC1/Makefile" ;;
22720 "tests/REC2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/REC2/Makefile" ;;
22721 "tests/REC/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/REC/Makefile" ;;
22722 "tests/general/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/general/Makefile" ;;
22723 "tests/reports/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/reports/Makefile" ;;
22724 "tests/extensions/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/extensions/Makefile" ;;
22725 "tests/namespaces/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/namespaces/Makefile" ;;
22726 "tests/keys/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/keys/Makefile" ;;
22727 "tests/numbers/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/numbers/Makefile" ;;
22728 "tests/documents/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/documents/Makefile" ;;
22729 "tests/xmlspec/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/xmlspec/Makefile" ;;
22730 "tests/multiple/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/multiple/Makefile" ;;
22731 "tests/xinclude/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/xinclude/Makefile" ;;
22732 "tests/XSLTMark/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/XSLTMark/Makefile" ;;
22733 "tests/docbook/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/docbook/Makefile" ;;
22734 "tests/exslt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/Makefile" ;;
22735 "tests/exslt/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/common/Makefile" ;;
22736 "tests/exslt/functions/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/functions/Makefile" ;;
22737 "tests/exslt/math/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/math/Makefile" ;;
22738 "tests/exslt/sets/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/sets/Makefile" ;;
22739 "tests/exslt/strings/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/strings/Makefile" ;;
22740 "tests/exslt/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/date/Makefile" ;;
22741 "tests/exslt/dynamic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/exslt/dynamic/Makefile" ;;
22742 "tests/plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/plugins/Makefile" ;;
22743 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22744 "xslt-config" ) CONFIG_FILES="$CONFIG_FILES xslt-config" ;;
22745 "libxslt.spec" ) CONFIG_FILES="$CONFIG_FILES libxslt.spec" ;;
22746 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22747 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22748 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22749echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22750 { (exit 1); exit 1; }; };;
22751 esac
22752done
22753
22754# If the user did not use the arguments to specify the items to instantiate,
22755# then the envvar interface is used. Set only those that are not.
22756# We use the long form for the default assignment because of an extremely
22757# bizarre bug on SunOS 4.1.3.
22758if $ac_need_defaults; then
22759 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22760 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22761 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22762fi
22763
22764# Have a temporary directory for convenience. Make it in the build tree
22765# simply because there is no reason to put it here, and in addition,
22766# creating and moving files from /tmp can sometimes cause problems.
22767# Create a temporary directory, and hook for its removal unless debugging.
22768$debug ||
22769{
22770 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22771 trap '{ (exit 1); exit 1; }' 1 2 13 15
22772}
22773
22774# Create a (secure) tmp directory for tmp files.
22775
22776{
22777 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22778 test -n "$tmp" && test -d "$tmp"
22779} ||
22780{
22781 tmp=./confstat$$-$RANDOM
22782 (umask 077 && mkdir $tmp)
22783} ||
22784{
22785 echo "$me: cannot create a temporary directory in ." >&2
22786 { (exit 1); exit 1; }
22787}
22788
22789_ACEOF
22790
22791cat >>$CONFIG_STATUS <<_ACEOF
22792
22793#
22794# CONFIG_FILES section.
22795#
22796
22797# No need to generate the scripts if there are no CONFIG_FILES.
22798# This happens for instance when ./config.status config.h
22799if test -n "\$CONFIG_FILES"; then
22800 # Protect against being on the right side of a sed subst in config.status.
22801 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22802 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22803s,@SHELL@,$SHELL,;t t
22804s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22805s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22806s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22807s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22808s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22809s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22810s,@exec_prefix@,$exec_prefix,;t t
22811s,@prefix@,$prefix,;t t
22812s,@program_transform_name@,$program_transform_name,;t t
22813s,@bindir@,$bindir,;t t
22814s,@sbindir@,$sbindir,;t t
22815s,@libexecdir@,$libexecdir,;t t
22816s,@datadir@,$datadir,;t t
22817s,@sysconfdir@,$sysconfdir,;t t
22818s,@sharedstatedir@,$sharedstatedir,;t t
22819s,@localstatedir@,$localstatedir,;t t
22820s,@libdir@,$libdir,;t t
22821s,@includedir@,$includedir,;t t
22822s,@oldincludedir@,$oldincludedir,;t t
22823s,@infodir@,$infodir,;t t
22824s,@mandir@,$mandir,;t t
22825s,@build_alias@,$build_alias,;t t
22826s,@host_alias@,$host_alias,;t t
22827s,@target_alias@,$target_alias,;t t
22828s,@DEFS@,$DEFS,;t t
22829s,@ECHO_C@,$ECHO_C,;t t
22830s,@ECHO_N@,$ECHO_N,;t t
22831s,@ECHO_T@,$ECHO_T,;t t
22832s,@LIBS@,$LIBS,;t t
22833s,@build@,$build,;t t
22834s,@build_cpu@,$build_cpu,;t t
22835s,@build_vendor@,$build_vendor,;t t
22836s,@build_os@,$build_os,;t t
22837s,@host@,$host,;t t
22838s,@host_cpu@,$host_cpu,;t t
22839s,@host_vendor@,$host_vendor,;t t
22840s,@host_os@,$host_os,;t t
22841s,@LIBXSLT_MAJOR_VERSION@,$LIBXSLT_MAJOR_VERSION,;t t
22842s,@LIBXSLT_MINOR_VERSION@,$LIBXSLT_MINOR_VERSION,;t t
22843s,@LIBXSLT_MICRO_VERSION@,$LIBXSLT_MICRO_VERSION,;t t
22844s,@LIBXSLT_VERSION@,$LIBXSLT_VERSION,;t t
22845s,@LIBXSLT_VERSION_INFO@,$LIBXSLT_VERSION_INFO,;t t
22846s,@LIBXSLT_VERSION_NUMBER@,$LIBXSLT_VERSION_NUMBER,;t t
22847s,@LIBXSLT_VERSION_EXTRA@,$LIBXSLT_VERSION_EXTRA,;t t
22848s,@LIBXSLT_MAJOR_MINOR_VERSION@,$LIBXSLT_MAJOR_MINOR_VERSION,;t t
22849s,@LIBEXSLT_MAJOR_VERSION@,$LIBEXSLT_MAJOR_VERSION,;t t
22850s,@LIBEXSLT_MINOR_VERSION@,$LIBEXSLT_MINOR_VERSION,;t t
22851s,@LIBEXSLT_MICRO_VERSION@,$LIBEXSLT_MICRO_VERSION,;t t
22852s,@LIBEXSLT_VERSION@,$LIBEXSLT_VERSION,;t t
22853s,@LIBEXSLT_VERSION_INFO@,$LIBEXSLT_VERSION_INFO,;t t
22854s,@LIBEXSLT_VERSION_NUMBER@,$LIBEXSLT_VERSION_NUMBER,;t t
22855s,@LIBEXSLT_VERSION_EXTRA@,$LIBEXSLT_VERSION_EXTRA,;t t
22856s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22857s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22858s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22859s,@CYGPATH_W@,$CYGPATH_W,;t t
22860s,@PACKAGE@,$PACKAGE,;t t
22861s,@VERSION@,$VERSION,;t t
22862s,@ACLOCAL@,$ACLOCAL,;t t
22863s,@AUTOCONF@,$AUTOCONF,;t t
22864s,@AUTOMAKE@,$AUTOMAKE,;t t
22865s,@AUTOHEADER@,$AUTOHEADER,;t t
22866s,@MAKEINFO@,$MAKEINFO,;t t
22867s,@install_sh@,$install_sh,;t t
22868s,@STRIP@,$STRIP,;t t
22869s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22870s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22871s,@mkdir_p@,$mkdir_p,;t t
22872s,@AWK@,$AWK,;t t
22873s,@SET_MAKE@,$SET_MAKE,;t t
22874s,@am__leading_dot@,$am__leading_dot,;t t
22875s,@AMTAR@,$AMTAR,;t t
22876s,@am__tar@,$am__tar,;t t
22877s,@am__untar@,$am__untar,;t t
22878s,@HTML_DIR@,$HTML_DIR,;t t
22879s,@CC@,$CC,;t t
22880s,@CFLAGS@,$CFLAGS,;t t
22881s,@LDFLAGS@,$LDFLAGS,;t t
22882s,@CPPFLAGS@,$CPPFLAGS,;t t
22883s,@ac_ct_CC@,$ac_ct_CC,;t t
22884s,@EXEEXT@,$EXEEXT,;t t
22885s,@OBJEXT@,$OBJEXT,;t t
22886s,@DEPDIR@,$DEPDIR,;t t
22887s,@am__include@,$am__include,;t t
22888s,@am__quote@,$am__quote,;t t
22889s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22890s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22891s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22892s,@CCDEPMODE@,$CCDEPMODE,;t t
22893s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22894s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22895s,@CPP@,$CPP,;t t
22896s,@RM@,$RM,;t t
22897s,@MV@,$MV,;t t
22898s,@TAR@,$TAR,;t t
22899s,@EGREP@,$EGREP,;t t
22900s,@SED@,$SED,;t t
22901s,@LN_S@,$LN_S,;t t
22902s,@ECHO@,$ECHO,;t t
22903s,@AR@,$AR,;t t
22904s,@ac_ct_AR@,$ac_ct_AR,;t t
22905s,@RANLIB@,$RANLIB,;t t
22906s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22907s,@CXX@,$CXX,;t t
22908s,@CXXFLAGS@,$CXXFLAGS,;t t
22909s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22910s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22911s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22912s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22913s,@CXXCPP@,$CXXCPP,;t t
22914s,@F77@,$F77,;t t
22915s,@FFLAGS@,$FFLAGS,;t t
22916s,@ac_ct_F77@,$ac_ct_F77,;t t
22917s,@LIBTOOL@,$LIBTOOL,;t t
22918s,@WITH_TRIO@,$WITH_TRIO,;t t
22919s,@PERL@,$PERL,;t t
22920s,@WITH_PERL_TRUE@,$WITH_PERL_TRUE,;t t
22921s,@WITH_PERL_FALSE@,$WITH_PERL_FALSE,;t t
22922s,@PYTHON@,$PYTHON,;t t
22923s,@WITH_PYTHON_TRUE@,$WITH_PYTHON_TRUE,;t t
22924s,@WITH_PYTHON_FALSE@,$WITH_PYTHON_FALSE,;t t
22925s,@pythondir@,$pythondir,;t t
22926s,@PYTHON_SUBDIR@,$PYTHON_SUBDIR,;t t
22927s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
22928s,@WITH_CRYPTO@,$WITH_CRYPTO,;t t
22929s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
22930s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
22931s,@STATIC_BINARIES@,$STATIC_BINARIES,;t t
22932s,@WITH_XSLT_DEBUG@,$WITH_XSLT_DEBUG,;t t
22933s,@WITH_MEM_DEBUG@,$WITH_MEM_DEBUG,;t t
22934s,@WITH_DEBUGGER@,$WITH_DEBUGGER,;t t
22935s,@LIBXML_SRC@,$LIBXML_SRC,;t t
22936s,@LIBXML_REQUIRED_VERSION@,$LIBXML_REQUIRED_VERSION,;t t
22937s,@WITH_MODULES@,$WITH_MODULES,;t t
22938s,@WITH_MODULES_TRUE@,$WITH_MODULES_TRUE,;t t
22939s,@WITH_MODULES_FALSE@,$WITH_MODULES_FALSE,;t t
22940s,@LIBXSLT_DEFAULT_PLUGINS_PATH@,$LIBXSLT_DEFAULT_PLUGINS_PATH,;t t
22941s,@WIN32_EXTRA_LIBADD@,$WIN32_EXTRA_LIBADD,;t t
22942s,@WIN32_EXTRA_LDFLAGS@,$WIN32_EXTRA_LDFLAGS,;t t
22943s,@XSLTPROCDV@,$XSLTPROCDV,;t t
22944s,@PYTHONSODV@,$PYTHONSODV,;t t
22945s,@XML_CONFIG@,$XML_CONFIG,;t t
22946s,@LIBXML_LIBS@,$LIBXML_LIBS,;t t
22947s,@LIBXML_CFLAGS@,$LIBXML_CFLAGS,;t t
22948s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
22949s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
22950s,@PYTHON_SITE_PACKAGES@,$PYTHON_SITE_PACKAGES,;t t
22951s,@XSLT_LIBDIR@,$XSLT_LIBDIR,;t t
22952s,@XSLT_INCLUDEDIR@,$XSLT_INCLUDEDIR,;t t
22953s,@XSLT_LIBS@,$XSLT_LIBS,;t t
22954s,@EXSLT_LIBDIR@,$EXSLT_LIBDIR,;t t
22955s,@EXSLT_INCLUDEDIR@,$EXSLT_INCLUDEDIR,;t t
22956s,@EXSLT_LIBS@,$EXSLT_LIBS,;t t
22957s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
22958s,@M_LIBS@,$M_LIBS,;t t
22959s,@RELDATE@,$RELDATE,;t t
22960s,@LIBOBJS@,$LIBOBJS,;t t
22961s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22962CEOF
22963
22964_ACEOF
22965
22966 cat >>$CONFIG_STATUS <<\_ACEOF
22967 # Split the substitutions into bite-sized pieces for seds with
22968 # small command number limits, like on Digital OSF/1 and HP-UX.
22969 ac_max_sed_lines=48
22970 ac_sed_frag=1 # Number of current file.
22971 ac_beg=1 # First line for current file.
22972 ac_end=$ac_max_sed_lines # Line after last line for current file.
22973 ac_more_lines=:
22974 ac_sed_cmds=
22975 while $ac_more_lines; do
22976 if test $ac_beg -gt 1; then
22977 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22978 else
22979 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22980 fi
22981 if test ! -s $tmp/subs.frag; then
22982 ac_more_lines=false
22983 else
22984 # The purpose of the label and of the branching condition is to
22985 # speed up the sed processing (if there are no `@' at all, there
22986 # is no need to browse any of the substitutions).
22987 # These are the two extra sed commands mentioned above.
22988 (echo ':t
22989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22990 if test -z "$ac_sed_cmds"; then
22991 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22992 else
22993 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22994 fi
22995 ac_sed_frag=`expr $ac_sed_frag + 1`
22996 ac_beg=$ac_end
22997 ac_end=`expr $ac_end + $ac_max_sed_lines`
22998 fi
22999 done
23000 if test -z "$ac_sed_cmds"; then
23001 ac_sed_cmds=cat
23002 fi
23003fi # test -n "$CONFIG_FILES"
23004
23005_ACEOF
23006cat >>$CONFIG_STATUS <<\_ACEOF
23007for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23009 case $ac_file in
23010 - | *:- | *:-:* ) # input from stdin
23011 cat >$tmp/stdin
23012 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23014 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23016 * ) ac_file_in=$ac_file.in ;;
23017 esac
23018
23019 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23020 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23021$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23022 X"$ac_file" : 'X\(//\)[^/]' \| \
23023 X"$ac_file" : 'X\(//\)$' \| \
23024 X"$ac_file" : 'X\(/\)' \| \
23025 . : '\(.\)' 2>/dev/null ||
23026echo X"$ac_file" |
23027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23029 /^X\(\/\/\)$/{ s//\1/; q; }
23030 /^X\(\/\).*/{ s//\1/; q; }
23031 s/.*/./; q'`
23032 { if $as_mkdir_p; then
23033 mkdir -p "$ac_dir"
23034 else
23035 as_dir="$ac_dir"
23036 as_dirs=
23037 while test ! -d "$as_dir"; do
23038 as_dirs="$as_dir $as_dirs"
23039 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23040$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23041 X"$as_dir" : 'X\(//\)[^/]' \| \
23042 X"$as_dir" : 'X\(//\)$' \| \
23043 X"$as_dir" : 'X\(/\)' \| \
23044 . : '\(.\)' 2>/dev/null ||
23045echo X"$as_dir" |
23046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23048 /^X\(\/\/\)$/{ s//\1/; q; }
23049 /^X\(\/\).*/{ s//\1/; q; }
23050 s/.*/./; q'`
23051 done
23052 test ! -n "$as_dirs" || mkdir $as_dirs
23053 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23054echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23055 { (exit 1); exit 1; }; }; }
23056
23057 ac_builddir=.
23058
23059if test "$ac_dir" != .; then
23060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23061 # A "../" for each directory in $ac_dir_suffix.
23062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23063else
23064 ac_dir_suffix= ac_top_builddir=
23065fi
23066
23067case $srcdir in
23068 .) # No --srcdir option. We are building in place.
23069 ac_srcdir=.
23070 if test -z "$ac_top_builddir"; then
23071 ac_top_srcdir=.
23072 else
23073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23074 fi ;;
23075 [\\/]* | ?:[\\/]* ) # Absolute path.
23076 ac_srcdir=$srcdir$ac_dir_suffix;
23077 ac_top_srcdir=$srcdir ;;
23078 *) # Relative path.
23079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23081esac
23082
23083# Do not use `cd foo && pwd` to compute absolute paths, because
23084# the directories may not exist.
23085case `pwd` in
23086.) ac_abs_builddir="$ac_dir";;
23087*)
23088 case "$ac_dir" in
23089 .) ac_abs_builddir=`pwd`;;
23090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23092 esac;;
23093esac
23094case $ac_abs_builddir in
23095.) ac_abs_top_builddir=${ac_top_builddir}.;;
23096*)
23097 case ${ac_top_builddir}. in
23098 .) ac_abs_top_builddir=$ac_abs_builddir;;
23099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23101 esac;;
23102esac
23103case $ac_abs_builddir in
23104.) ac_abs_srcdir=$ac_srcdir;;
23105*)
23106 case $ac_srcdir in
23107 .) ac_abs_srcdir=$ac_abs_builddir;;
23108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23110 esac;;
23111esac
23112case $ac_abs_builddir in
23113.) ac_abs_top_srcdir=$ac_top_srcdir;;
23114*)
23115 case $ac_top_srcdir in
23116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23119 esac;;
23120esac
23121
23122
23123 case $INSTALL in
23124 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23125 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23126 esac
23127
23128 if test x"$ac_file" != x-; then
23129 { echo "$as_me:$LINENO: creating $ac_file" >&5
23130echo "$as_me: creating $ac_file" >&6;}
23131 rm -f "$ac_file"
23132 fi
23133 # Let's still pretend it is `configure' which instantiates (i.e., don't
23134 # use $as_me), people would be surprised to read:
23135 # /* config.h. Generated by config.status. */
23136 if test x"$ac_file" = x-; then
23137 configure_input=
23138 else
23139 configure_input="$ac_file. "
23140 fi
23141 configure_input=$configure_input"Generated from `echo $ac_file_in |
23142 sed 's,.*/,,'` by configure."
23143
23144 # First look for the input files in the build tree, otherwise in the
23145 # src tree.
23146 ac_file_inputs=`IFS=:
23147 for f in $ac_file_in; do
23148 case $f in
23149 -) echo $tmp/stdin ;;
23150 [\\/$]*)
23151 # Absolute (can't be DOS-style, as IFS=:)
23152 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23153echo "$as_me: error: cannot find input file: $f" >&2;}
23154 { (exit 1); exit 1; }; }
23155 echo "$f";;
23156 *) # Relative
23157 if test -f "$f"; then
23158 # Build tree
23159 echo "$f"
23160 elif test -f "$srcdir/$f"; then
23161 # Source tree
23162 echo "$srcdir/$f"
23163 else
23164 # /dev/null tree
23165 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23166echo "$as_me: error: cannot find input file: $f" >&2;}
23167 { (exit 1); exit 1; }; }
23168 fi;;
23169 esac
23170 done` || { (exit 1); exit 1; }
23171_ACEOF
23172cat >>$CONFIG_STATUS <<_ACEOF
23173 sed "$ac_vpsub
23174$extrasub
23175_ACEOF
23176cat >>$CONFIG_STATUS <<\_ACEOF
23177:t
23178/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23179s,@configure_input@,$configure_input,;t t
23180s,@srcdir@,$ac_srcdir,;t t
23181s,@abs_srcdir@,$ac_abs_srcdir,;t t
23182s,@top_srcdir@,$ac_top_srcdir,;t t
23183s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23184s,@builddir@,$ac_builddir,;t t
23185s,@abs_builddir@,$ac_abs_builddir,;t t
23186s,@top_builddir@,$ac_top_builddir,;t t
23187s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23188s,@INSTALL@,$ac_INSTALL,;t t
23189" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23190 rm -f $tmp/stdin
23191 if test x"$ac_file" != x-; then
23192 mv $tmp/out $ac_file
23193 else
23194 cat $tmp/out
23195 rm -f $tmp/out
23196 fi
23197
23198done
23199_ACEOF
23200cat >>$CONFIG_STATUS <<\_ACEOF
23201
23202#
23203# CONFIG_HEADER section.
23204#
23205
23206# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23207# NAME is the cpp macro being defined and VALUE is the value it is being given.
23208#
23209# ac_d sets the value in "#define NAME VALUE" lines.
23210ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23211ac_dB='[ ].*$,\1#\2'
23212ac_dC=' '
23213ac_dD=',;t'
23214# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23215ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23216ac_uB='$,\1#\2define\3'
23217ac_uC=' '
23218ac_uD=',;t'
23219
23220for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23221 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23222 case $ac_file in
23223 - | *:- | *:-:* ) # input from stdin
23224 cat >$tmp/stdin
23225 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23226 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23227 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23228 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23229 * ) ac_file_in=$ac_file.in ;;
23230 esac
23231
23232 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23233echo "$as_me: creating $ac_file" >&6;}
23234
23235 # First look for the input files in the build tree, otherwise in the
23236 # src tree.
23237 ac_file_inputs=`IFS=:
23238 for f in $ac_file_in; do
23239 case $f in
23240 -) echo $tmp/stdin ;;
23241 [\\/$]*)
23242 # Absolute (can't be DOS-style, as IFS=:)
23243 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23244echo "$as_me: error: cannot find input file: $f" >&2;}
23245 { (exit 1); exit 1; }; }
23246 # Do quote $f, to prevent DOS paths from being IFS'd.
23247 echo "$f";;
23248 *) # Relative
23249 if test -f "$f"; then
23250 # Build tree
23251 echo "$f"
23252 elif test -f "$srcdir/$f"; then
23253 # Source tree
23254 echo "$srcdir/$f"
23255 else
23256 # /dev/null tree
23257 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23258echo "$as_me: error: cannot find input file: $f" >&2;}
23259 { (exit 1); exit 1; }; }
23260 fi;;
23261 esac
23262 done` || { (exit 1); exit 1; }
23263 # Remove the trailing spaces.
23264 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23265
23266_ACEOF
23267
23268# Transform confdefs.h into two sed scripts, `conftest.defines' and
23269# `conftest.undefs', that substitutes the proper values into
23270# config.h.in to produce config.h. The first handles `#define'
23271# templates, and the second `#undef' templates.
23272# And first: Protect against being on the right side of a sed subst in
23273# config.status. Protect against being in an unquoted here document
23274# in config.status.
23275rm -f conftest.defines conftest.undefs
23276# Using a here document instead of a string reduces the quoting nightmare.
23277# Putting comments in sed scripts is not portable.
23278#
23279# `end' is used to avoid that the second main sed command (meant for
23280# 0-ary CPP macros) applies to n-ary macro definitions.
23281# See the Autoconf documentation for `clear'.
23282cat >confdef2sed.sed <<\_ACEOF
23283s/[\\&,]/\\&/g
23284s,[\\$`],\\&,g
23285t clear
23286: clear
23287s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23288t end
23289s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23290: end
23291_ACEOF
23292# If some macros were called several times there might be several times
23293# the same #defines, which is useless. Nevertheless, we may not want to
23294# sort them, since we want the *last* AC-DEFINE to be honored.
23295uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23296sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23297rm -f confdef2sed.sed
23298
23299# This sed command replaces #undef with comments. This is necessary, for
23300# example, in the case of _POSIX_SOURCE, which is predefined and required
23301# on some systems where configure will not decide to define it.
23302cat >>conftest.undefs <<\_ACEOF
23303s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23304_ACEOF
23305
23306# Break up conftest.defines because some shells have a limit on the size
23307# of here documents, and old seds have small limits too (100 cmds).
23308echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23309echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23310echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23311echo ' :' >>$CONFIG_STATUS
23312rm -f conftest.tail
23313while grep . conftest.defines >/dev/null
23314do
23315 # Write a limited-size here document to $tmp/defines.sed.
23316 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23317 # Speed up: don't consider the non `#define' lines.
23318 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23319 # Work around the forget-to-reset-the-flag bug.
23320 echo 't clr' >>$CONFIG_STATUS
23321 echo ': clr' >>$CONFIG_STATUS
23322 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23323 echo 'CEOF
23324 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23325 rm -f $tmp/in
23326 mv $tmp/out $tmp/in
23327' >>$CONFIG_STATUS
23328 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23329 rm -f conftest.defines
23330 mv conftest.tail conftest.defines
23331done
23332rm -f conftest.defines
23333echo ' fi # grep' >>$CONFIG_STATUS
23334echo >>$CONFIG_STATUS
23335
23336# Break up conftest.undefs because some shells have a limit on the size
23337# of here documents, and old seds have small limits too (100 cmds).
23338echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23339rm -f conftest.tail
23340while grep . conftest.undefs >/dev/null
23341do
23342 # Write a limited-size here document to $tmp/undefs.sed.
23343 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23344 # Speed up: don't consider the non `#undef'
23345 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23346 # Work around the forget-to-reset-the-flag bug.
23347 echo 't clr' >>$CONFIG_STATUS
23348 echo ': clr' >>$CONFIG_STATUS
23349 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23350 echo 'CEOF
23351 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23352 rm -f $tmp/in
23353 mv $tmp/out $tmp/in
23354' >>$CONFIG_STATUS
23355 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23356 rm -f conftest.undefs
23357 mv conftest.tail conftest.undefs
23358done
23359rm -f conftest.undefs
23360
23361cat >>$CONFIG_STATUS <<\_ACEOF
23362 # Let's still pretend it is `configure' which instantiates (i.e., don't
23363 # use $as_me), people would be surprised to read:
23364 # /* config.h. Generated by config.status. */
23365 if test x"$ac_file" = x-; then
23366 echo "/* Generated by configure. */" >$tmp/config.h
23367 else
23368 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23369 fi
23370 cat $tmp/in >>$tmp/config.h
23371 rm -f $tmp/in
23372 if test x"$ac_file" != x-; then
23373 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23374 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23375echo "$as_me: $ac_file is unchanged" >&6;}
23376 else
23377 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23378$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23379 X"$ac_file" : 'X\(//\)[^/]' \| \
23380 X"$ac_file" : 'X\(//\)$' \| \
23381 X"$ac_file" : 'X\(/\)' \| \
23382 . : '\(.\)' 2>/dev/null ||
23383echo X"$ac_file" |
23384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23386 /^X\(\/\/\)$/{ s//\1/; q; }
23387 /^X\(\/\).*/{ s//\1/; q; }
23388 s/.*/./; q'`
23389 { if $as_mkdir_p; then
23390 mkdir -p "$ac_dir"
23391 else
23392 as_dir="$ac_dir"
23393 as_dirs=
23394 while test ! -d "$as_dir"; do
23395 as_dirs="$as_dir $as_dirs"
23396 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23398 X"$as_dir" : 'X\(//\)[^/]' \| \
23399 X"$as_dir" : 'X\(//\)$' \| \
23400 X"$as_dir" : 'X\(/\)' \| \
23401 . : '\(.\)' 2>/dev/null ||
23402echo X"$as_dir" |
23403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23405 /^X\(\/\/\)$/{ s//\1/; q; }
23406 /^X\(\/\).*/{ s//\1/; q; }
23407 s/.*/./; q'`
23408 done
23409 test ! -n "$as_dirs" || mkdir $as_dirs
23410 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23411echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23412 { (exit 1); exit 1; }; }; }
23413
23414 rm -f $ac_file
23415 mv $tmp/config.h $ac_file
23416 fi
23417 else
23418 cat $tmp/config.h
23419 rm -f $tmp/config.h
23420 fi
23421# Compute $ac_file's index in $config_headers.
23422_am_stamp_count=1
23423for _am_header in $config_headers :; do
23424 case $_am_header in
23425 $ac_file | $ac_file:* )
23426 break ;;
23427 * )
23428 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23429 esac
23430done
23431echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23432$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23433 X$ac_file : 'X\(//\)[^/]' \| \
23434 X$ac_file : 'X\(//\)$' \| \
23435 X$ac_file : 'X\(/\)' \| \
23436 . : '\(.\)' 2>/dev/null ||
23437echo X$ac_file |
23438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23440 /^X\(\/\/\)$/{ s//\1/; q; }
23441 /^X\(\/\).*/{ s//\1/; q; }
23442 s/.*/./; q'`/stamp-h$_am_stamp_count
23443done
23444_ACEOF
23445cat >>$CONFIG_STATUS <<\_ACEOF
23446
23447#
23448# CONFIG_COMMANDS section.
23449#
23450for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23451 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23452 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23453 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23454$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23455 X"$ac_dest" : 'X\(//\)[^/]' \| \
23456 X"$ac_dest" : 'X\(//\)$' \| \
23457 X"$ac_dest" : 'X\(/\)' \| \
23458 . : '\(.\)' 2>/dev/null ||
23459echo X"$ac_dest" |
23460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23462 /^X\(\/\/\)$/{ s//\1/; q; }
23463 /^X\(\/\).*/{ s//\1/; q; }
23464 s/.*/./; q'`
23465 { if $as_mkdir_p; then
23466 mkdir -p "$ac_dir"
23467 else
23468 as_dir="$ac_dir"
23469 as_dirs=
23470 while test ! -d "$as_dir"; do
23471 as_dirs="$as_dir $as_dirs"
23472 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23473$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23474 X"$as_dir" : 'X\(//\)[^/]' \| \
23475 X"$as_dir" : 'X\(//\)$' \| \
23476 X"$as_dir" : 'X\(/\)' \| \
23477 . : '\(.\)' 2>/dev/null ||
23478echo X"$as_dir" |
23479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23481 /^X\(\/\/\)$/{ s//\1/; q; }
23482 /^X\(\/\).*/{ s//\1/; q; }
23483 s/.*/./; q'`
23484 done
23485 test ! -n "$as_dirs" || mkdir $as_dirs
23486 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23487echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23488 { (exit 1); exit 1; }; }; }
23489
23490 ac_builddir=.
23491
23492if test "$ac_dir" != .; then
23493 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23494 # A "../" for each directory in $ac_dir_suffix.
23495 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23496else
23497 ac_dir_suffix= ac_top_builddir=
23498fi
23499
23500case $srcdir in
23501 .) # No --srcdir option. We are building in place.
23502 ac_srcdir=.
23503 if test -z "$ac_top_builddir"; then
23504 ac_top_srcdir=.
23505 else
23506 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23507 fi ;;
23508 [\\/]* | ?:[\\/]* ) # Absolute path.
23509 ac_srcdir=$srcdir$ac_dir_suffix;
23510 ac_top_srcdir=$srcdir ;;
23511 *) # Relative path.
23512 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23513 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23514esac
23515
23516# Do not use `cd foo && pwd` to compute absolute paths, because
23517# the directories may not exist.
23518case `pwd` in
23519.) ac_abs_builddir="$ac_dir";;
23520*)
23521 case "$ac_dir" in
23522 .) ac_abs_builddir=`pwd`;;
23523 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23524 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23525 esac;;
23526esac
23527case $ac_abs_builddir in
23528.) ac_abs_top_builddir=${ac_top_builddir}.;;
23529*)
23530 case ${ac_top_builddir}. in
23531 .) ac_abs_top_builddir=$ac_abs_builddir;;
23532 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23533 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23534 esac;;
23535esac
23536case $ac_abs_builddir in
23537.) ac_abs_srcdir=$ac_srcdir;;
23538*)
23539 case $ac_srcdir in
23540 .) ac_abs_srcdir=$ac_abs_builddir;;
23541 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23542 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23543 esac;;
23544esac
23545case $ac_abs_builddir in
23546.) ac_abs_top_srcdir=$ac_top_srcdir;;
23547*)
23548 case $ac_top_srcdir in
23549 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23550 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23551 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23552 esac;;
23553esac
23554
23555
23556 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23557echo "$as_me: executing $ac_dest commands" >&6;}
23558 case $ac_dest in
23559 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23560 # Strip MF so we end up with the name of the file.
23561 mf=`echo "$mf" | sed -e 's/:.*$//'`
23562 # Check whether this is an Automake generated Makefile or not.
23563 # We used to match only the files named `Makefile.in', but
23564 # some people rename them; so instead we look at the file content.
23565 # Grep'ing the first line is not enough: some people post-process
23566 # each Makefile.in and add a new line on top of each file to say so.
23567 # So let's grep whole file.
23568 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23569 dirpart=`(dirname "$mf") 2>/dev/null ||
23570$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23571 X"$mf" : 'X\(//\)[^/]' \| \
23572 X"$mf" : 'X\(//\)$' \| \
23573 X"$mf" : 'X\(/\)' \| \
23574 . : '\(.\)' 2>/dev/null ||
23575echo X"$mf" |
23576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23578 /^X\(\/\/\)$/{ s//\1/; q; }
23579 /^X\(\/\).*/{ s//\1/; q; }
23580 s/.*/./; q'`
23581 else
23582 continue
23583 fi
23584 # Extract the definition of DEPDIR, am__include, and am__quote
23585 # from the Makefile without running `make'.
23586 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23587 test -z "$DEPDIR" && continue
23588 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23589 test -z "am__include" && continue
23590 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23591 # When using ansi2knr, U may be empty or an underscore; expand it
23592 U=`sed -n 's/^U = //p' < "$mf"`
23593 # Find all dependency output files, they are included files with
23594 # $(DEPDIR) in their names. We invoke sed twice because it is the
23595 # simplest approach to changing $(DEPDIR) to its actual value in the
23596 # expansion.
23597 for file in `sed -n "
23598 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23599 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23600 # Make sure the directory exists.
23601 test -f "$dirpart/$file" && continue
23602 fdir=`(dirname "$file") 2>/dev/null ||
23603$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23604 X"$file" : 'X\(//\)[^/]' \| \
23605 X"$file" : 'X\(//\)$' \| \
23606 X"$file" : 'X\(/\)' \| \
23607 . : '\(.\)' 2>/dev/null ||
23608echo X"$file" |
23609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23611 /^X\(\/\/\)$/{ s//\1/; q; }
23612 /^X\(\/\).*/{ s//\1/; q; }
23613 s/.*/./; q'`
23614 { if $as_mkdir_p; then
23615 mkdir -p $dirpart/$fdir
23616 else
23617 as_dir=$dirpart/$fdir
23618 as_dirs=
23619 while test ! -d "$as_dir"; do
23620 as_dirs="$as_dir $as_dirs"
23621 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23622$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23623 X"$as_dir" : 'X\(//\)[^/]' \| \
23624 X"$as_dir" : 'X\(//\)$' \| \
23625 X"$as_dir" : 'X\(/\)' \| \
23626 . : '\(.\)' 2>/dev/null ||
23627echo X"$as_dir" |
23628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23630 /^X\(\/\/\)$/{ s//\1/; q; }
23631 /^X\(\/\).*/{ s//\1/; q; }
23632 s/.*/./; q'`
23633 done
23634 test ! -n "$as_dirs" || mkdir $as_dirs
23635 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23636echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23637 { (exit 1); exit 1; }; }; }
23638
23639 # echo "creating $dirpart/$file"
23640 echo '# dummy' > "$dirpart/$file"
23641 done
23642done
23643 ;;
23644 esac
23645done
23646_ACEOF
23647
23648cat >>$CONFIG_STATUS <<\_ACEOF
23649
23650{ (exit 0); exit 0; }
23651_ACEOF
23652chmod +x $CONFIG_STATUS
23653ac_clean_files=$ac_clean_files_save
23654
23655
23656# configure is writing to config.log, and then calls config.status.
23657# config.status does its own redirection, appending to config.log.
23658# Unfortunately, on DOS this fails, as config.log is still kept open
23659# by configure, so config.status won't be able to write to it; its
23660# output is simply discarded. So we exec the FD to /dev/null,
23661# effectively closing config.log, so it can be properly (re)opened and
23662# appended to by config.status. When coming back to configure, we
23663# need to make the FD available again.
23664if test "$no_create" != yes; then
23665 ac_cs_success=:
23666 ac_config_status_args=
23667 test "$silent" = yes &&
23668 ac_config_status_args="$ac_config_status_args --quiet"
23669 exec 5>/dev/null
23670 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23671 exec 5>>config.log
23672 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23673 # would make configure fail if this is the last instruction.
23674 $ac_cs_success || { (exit 1); exit 1; }
23675fi
23676
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette