blob: 043d50a3cb5837ebbe43ca1ad97ac4f855671cb6 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003# Generated by GNU Autoconf 2.59.
Lev Walkinf15320b2004-06-03 03:38:44 +00004#
Lev Walkin8e8b5482004-06-17 23:42:48 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00006# 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
Lev Walkin8e8b5482004-06-17 23:42:48 +000022DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000023
24# Support unset when possible.
Lev Walkin8e8b5482004-06-17 23:42:48 +000025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Lev Walkinf15320b2004-06-03 03:38:44 +000026 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
Lev Walkin8e8b5482004-06-17 23:42:48 +000044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Lev Walkinf15320b2004-06-03 03:38:44 +000045 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
Lev Walkin8e8b5482004-06-17 23:42:48 +0000221 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +0000222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000229
230# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000232
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
Lev Walkin8e8b5482004-06-17 23:42:48 +0000244
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.
281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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
Lev Walkinf15320b2004-06-03 03:38:44 +0000398# 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="libasn1parser/asn1p_y.y"
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
Lev Walkind8b940c2004-08-11 05:35:51 +0000466ac_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 target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot PATH MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CONFIGURE_DEPENDS CPLUSPLUS_FOUND_TRUE CPLUSPLUS_FOUND_FALSE YACC LEX LEXLIB LEX_OUTPUT_ROOT ADD_CFLAGS LIBOBJS LTLIBOBJS'
Lev Walkinf15320b2004-06-03 03:38:44 +0000467ac_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 \
Lev Walkin8e8b5482004-06-17 23:42:48 +0000825 localstatedir libdir includedir oldincludedir infodir mandir
Lev Walkinf15320b2004-06-03 03:38:44 +0000826do
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\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +0000865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +0000869echo 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
Lev Walkin8e8b5482004-06-17 23:42:48 +0000927ac_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
Lev Walkinf15320b2004-06-03 03:38:44 +0000947
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
Lev Walkin8e8b5482004-06-17 23:42:48 +0000980 [$ac_default_prefix]
Lev Walkinf15320b2004-06-03 03:38:44 +0000981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Lev Walkin8e8b5482004-06-17 23:42:48 +0000982 [PREFIX]
Lev Walkinf15320b2004-06-03 03:38:44 +0000983
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 --target=TARGET configure for building compilers for TARGET [HOST]
1017_ACEOF
1018fi
1019
1020if test -n "$ac_init_help"; then
1021
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001027 --enable-maintainer-mode enable make rules and dependencies not useful
1028 (and sometimes confusing) to the casual installer
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-dependency-tracking speeds up one-time build
1036 --enable-dependency-tracking do not reject slow dependency extractors
Lev Walkinf15320b2004-06-03 03:38:44 +00001037 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --disable-autoconf disable automatic generation of configure script
1039 --enable-Werror abort compilation after any C compiler warning
1040
1041Optional Packages:
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Lev Walkin8e8b5482004-06-17 23:42:48 +00001044 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1045 --with-pic try to use only PIC/non-PIC objects [default=use
1046 both]
1047 --with-tags[=TAGS]
1048 include additional configurations [automatic]
Lev Walkinf15320b2004-06-03 03:38:44 +00001049
1050Some influential environment variables:
1051 CC C compiler command
1052 CFLAGS C compiler flags
1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1054 nonstandard directory <lib dir>
1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056 headers in a nonstandard directory <include dir>
1057 CPP C preprocessor
Lev Walkin8e8b5482004-06-17 23:42:48 +00001058 CXX C++ compiler command
1059 CXXFLAGS C++ compiler flags
1060 CXXCPP C++ preprocessor
1061 F77 Fortran 77 compiler command
1062 FFLAGS Fortran 77 compiler flags
Lev Walkinf15320b2004-06-03 03:38:44 +00001063
1064Use these variables to override the choices made by `configure' or to help
1065it to find libraries and programs with nonstandard names/locations.
1066
1067_ACEOF
1068fi
1069
1070if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1072 ac_popdir=`pwd`
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1075 ac_builddir=.
1076
1077if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081else
1082 ac_dir_suffix= ac_top_builddir=
1083fi
1084
1085case $srcdir in
1086 .) # No --srcdir option. We are building in place.
1087 ac_srcdir=.
1088 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=.
1090 else
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 fi ;;
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1096 *) # Relative path.
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00001100
1101# Do not use `cd foo && pwd` to compute absolute paths, because
1102# the directories may not exist.
1103case `pwd` in
1104.) ac_abs_builddir="$ac_dir";;
1105*)
1106 case "$ac_dir" in
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110 esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_top_builddir=${ac_top_builddir}.;;
1114*)
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119 esac;;
1120esac
1121case $ac_abs_builddir in
1122.) ac_abs_srcdir=$ac_srcdir;;
1123*)
1124 case $ac_srcdir in
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128 esac;;
1129esac
1130case $ac_abs_builddir in
1131.) ac_abs_top_srcdir=$ac_top_srcdir;;
1132*)
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 esac;;
1138esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001139
1140 cd $ac_dir
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1143 echo
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1146 echo
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
Lev Walkin8e8b5482004-06-17 23:42:48 +00001149 test -f $ac_srcdir/configure.in; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001150 echo
1151 $ac_configure --help
1152 else
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 fi
1155 cd $ac_popdir
1156 done
1157fi
1158
1159test -n "$ac_init_help" && exit 0
1160if $ac_init_version; then
1161 cat <<\_ACEOF
1162
Lev Walkin8e8b5482004-06-17 23:42:48 +00001163Copyright (C) 2003 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00001164This configure script is free software; the Free Software Foundation
1165gives unlimited permission to copy, distribute and modify it.
1166_ACEOF
1167 exit 0
1168fi
1169exec 5>config.log
1170cat >&5 <<_ACEOF
1171This file contains any messages produced by compilers while
1172running configure, to aid debugging if configure makes a mistake.
1173
1174It was created by $as_me, which was
Lev Walkin8e8b5482004-06-17 23:42:48 +00001175generated by GNU Autoconf 2.59. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +00001176
1177 $ $0 $@
1178
1179_ACEOF
1180{
1181cat <<_ASUNAME
1182## --------- ##
1183## Platform. ##
1184## --------- ##
1185
1186hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1187uname -m = `(uname -m) 2>/dev/null || echo unknown`
1188uname -r = `(uname -r) 2>/dev/null || echo unknown`
1189uname -s = `(uname -s) 2>/dev/null || echo unknown`
1190uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191
1192/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1193/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194
1195/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1196/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1197/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1198hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1199/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1200/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1201/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1202
1203_ASUNAME
1204
1205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206for as_dir in $PATH
1207do
1208 IFS=$as_save_IFS
1209 test -z "$as_dir" && as_dir=.
1210 echo "PATH: $as_dir"
1211done
1212
1213} >&5
1214
1215cat >&5 <<_ACEOF
1216
1217
1218## ----------- ##
1219## Core tests. ##
1220## ----------- ##
1221
1222_ACEOF
1223
1224
1225# Keep a trace of the command line.
1226# Strip out --no-create and --no-recursion so they do not pile up.
1227# Strip out --silent because we don't want to record it for future runs.
1228# Also quote any args containing shell meta-characters.
1229# Make two passes to allow for proper duplicate-argument suppression.
1230ac_configure_args=
1231ac_configure_args0=
1232ac_configure_args1=
1233ac_sep=
1234ac_must_keep_next=false
1235for ac_pass in 1 2
1236do
1237 for ac_arg
1238 do
1239 case $ac_arg in
1240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 continue ;;
1244 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1246 esac
1247 case $ac_pass in
1248 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1249 2)
1250 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1251 if test $ac_must_keep_next = true; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001252 ac_must_keep_next=false # Got value, back to normal.
Lev Walkinf15320b2004-06-03 03:38:44 +00001253 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00001254 case $ac_arg in
1255 *=* | --config-cache | -C | -disable-* | --disable-* \
1256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1258 | -with-* | --with-* | -without-* | --without-* | --x)
1259 case "$ac_configure_args0 " in
1260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1261 esac
1262 ;;
1263 -* ) ac_must_keep_next=true ;;
1264 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001265 fi
1266 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1267 # Get rid of the leading space.
1268 ac_sep=" "
1269 ;;
1270 esac
1271 done
1272done
1273$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1274$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1275
1276# When interrupted or exit'd, cleanup temporary files, and complete
1277# config.log. We remove comments because anyway the quotes in there
1278# would cause problems or look ugly.
1279# WARNING: Be sure not to use single quotes in there, as some shells,
1280# such as our DU 5.0 friend, will then `close' the trap.
1281trap 'exit_status=$?
1282 # Save into config.log some information that might help in debugging.
1283 {
1284 echo
1285
1286 cat <<\_ASBOX
1287## ---------------- ##
1288## Cache variables. ##
1289## ---------------- ##
1290_ASBOX
1291 echo
1292 # The following way of writing the cache mishandles newlines in values,
1293{
1294 (set) 2>&1 |
1295 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1296 *ac_space=\ *)
1297 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001298 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00001300 ;;
1301 *)
1302 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00001304 ;;
1305 esac;
1306}
1307 echo
1308
1309 cat <<\_ASBOX
1310## ----------------- ##
1311## Output variables. ##
1312## ----------------- ##
1313_ASBOX
1314 echo
1315 for ac_var in $ac_subst_vars
1316 do
1317 eval ac_val=$`echo $ac_var`
1318 echo "$ac_var='"'"'$ac_val'"'"'"
1319 done | sort
1320 echo
1321
1322 if test -n "$ac_subst_files"; then
1323 cat <<\_ASBOX
1324## ------------- ##
1325## Output files. ##
1326## ------------- ##
1327_ASBOX
1328 echo
1329 for ac_var in $ac_subst_files
1330 do
1331 eval ac_val=$`echo $ac_var`
Lev Walkin8e8b5482004-06-17 23:42:48 +00001332 echo "$ac_var='"'"'$ac_val'"'"'"
Lev Walkinf15320b2004-06-03 03:38:44 +00001333 done | sort
1334 echo
1335 fi
1336
1337 if test -s confdefs.h; then
1338 cat <<\_ASBOX
1339## ----------- ##
1340## confdefs.h. ##
1341## ----------- ##
1342_ASBOX
1343 echo
1344 sed "/^$/d" confdefs.h | sort
1345 echo
1346 fi
1347 test "$ac_signal" != 0 &&
1348 echo "$as_me: caught signal $ac_signal"
1349 echo "$as_me: exit $exit_status"
1350 } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00001351 rm -f core *.core &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001352 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1353 exit $exit_status
1354 ' 0
1355for ac_signal in 1 2 13 15; do
1356 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1357done
1358ac_signal=0
1359
1360# confdefs.h avoids OS command line length limits that DEFS can exceed.
1361rm -rf conftest* confdefs.h
1362# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1363echo >confdefs.h
1364
1365# Predefined preprocessor variables.
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_NAME "$PACKAGE_NAME"
1369_ACEOF
1370
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1374_ACEOF
1375
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_VERSION "$PACKAGE_VERSION"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_STRING "$PACKAGE_STRING"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1389_ACEOF
1390
1391
1392# Let the site file select an alternate cache file if it wants to.
1393# Prefer explicitly selected file to automatically selected ones.
1394if test -z "$CONFIG_SITE"; then
1395 if test "x$prefix" != xNONE; then
1396 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1397 else
1398 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1399 fi
1400fi
1401for ac_site_file in $CONFIG_SITE; do
1402 if test -r "$ac_site_file"; then
1403 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1404echo "$as_me: loading site script $ac_site_file" >&6;}
1405 sed 's/^/| /' "$ac_site_file" >&5
1406 . "$ac_site_file"
1407 fi
1408done
1409
1410if test -r "$cache_file"; then
1411 # Some versions of bash will fail to source /dev/null (special
1412 # files actually), so we avoid doing that.
1413 if test -f "$cache_file"; then
1414 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1415echo "$as_me: loading cache $cache_file" >&6;}
1416 case $cache_file in
1417 [\\/]* | ?:[\\/]* ) . $cache_file;;
1418 *) . ./$cache_file;;
1419 esac
1420 fi
1421else
1422 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1423echo "$as_me: creating cache $cache_file" >&6;}
1424 >$cache_file
1425fi
1426
1427# Check that the precious variables saved in the cache have kept the same
1428# value.
1429ac_cache_corrupted=false
1430for ac_var in `(set) 2>&1 |
Lev Walkin8e8b5482004-06-17 23:42:48 +00001431 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Lev Walkinf15320b2004-06-03 03:38:44 +00001432 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1433 eval ac_new_set=\$ac_env_${ac_var}_set
1434 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1435 eval ac_new_val="\$ac_env_${ac_var}_value"
1436 case $ac_old_set,$ac_new_set in
1437 set,)
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1439echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1441 ,set)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1443echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,);;
1446 *)
1447 if test "x$ac_old_val" != "x$ac_new_val"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001449echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001450 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001451echo "$as_me: former value: $ac_old_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001452 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001453echo "$as_me: current value: $ac_new_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001454 ac_cache_corrupted=:
Lev Walkinf15320b2004-06-03 03:38:44 +00001455 fi;;
1456 esac
1457 # Pass precious variables to config.status.
1458 if test "$ac_new_set" = set; then
1459 case $ac_new_val in
1460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1461 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1462 *) ac_arg=$ac_var=$ac_new_val ;;
1463 esac
1464 case " $ac_configure_args " in
1465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1466 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1467 esac
1468 fi
1469done
1470if $ac_cache_corrupted; then
1471 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1472echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1473 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1474echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1475 { (exit 1); exit 1; }; }
1476fi
1477
1478ac_ext=c
1479ac_cpp='$CPP $CPPFLAGS'
1480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502ac_aux_dir=
1503for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 break
1508 elif test -f $ac_dir/install.sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 break
1512 elif test -f $ac_dir/shtool; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1515 break
1516 fi
1517done
1518if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1522fi
1523ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526
1527# Make sure we can run config.sub.
1528$ac_config_sub sun4 >/dev/null 2>&1 ||
1529 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533echo "$as_me:$LINENO: checking build system type" >&5
1534echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535if test "${ac_cv_build+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 ac_cv_build_alias=$build_alias
1539test -z "$ac_cv_build_alias" &&
1540 ac_cv_build_alias=`$ac_config_guess`
1541test -z "$ac_cv_build_alias" &&
1542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544 { (exit 1); exit 1; }; }
1545ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1549
1550fi
1551echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552echo "${ECHO_T}$ac_cv_build" >&6
1553build=$ac_cv_build
1554build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559echo "$as_me:$LINENO: checking host system type" >&5
1560echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 ac_cv_host_alias=$host_alias
1565test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572fi
1573echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574echo "${ECHO_T}$ac_cv_host" >&6
1575host=$ac_cv_host
1576host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581echo "$as_me:$LINENO: checking target system type" >&5
1582echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 ac_cv_target_alias=$target_alias
1587test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596echo "${ECHO_T}$ac_cv_target" >&6
1597target=$ac_cv_target
1598target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603# The aliases save the names the user supplied, while $host etc.
1604# will get canonicalized.
1605test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
1609
Lev Walkin8e8b5482004-06-17 23:42:48 +00001610am__api_version="1.8"
Lev Walkinf15320b2004-06-03 03:38:44 +00001611# Find a good install program. We prefer a C program (faster),
1612# so one script is as good as another. But avoid the broken or
1613# incompatible versions:
1614# SysV /etc/install, /usr/sbin/install
1615# SunOS /usr/etc/install
1616# IRIX /sbin/install
1617# AIX /bin/install
1618# AmigaOS /C/install, which installs bootblocks on floppy discs
1619# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1620# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1621# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +00001622# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +00001623# ./install, which can be erroneously created by make from ./install.sh.
1624echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1625echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1626if test -z "$INSTALL"; then
1627if test "${ac_cv_path_install+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631for as_dir in $PATH
1632do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 # Account for people who put trailing slashes in PATH elements.
1636case $as_dir/ in
1637 ./ | .// | /cC/* | \
1638 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001639 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00001640 /usr/ucb/* ) ;;
1641 *)
1642 # OSF1 and SCO ODT 3.0 have their own names for install.
1643 # Don't use installbsd from OSF since it installs stuff as root
1644 # by default.
1645 for ac_prog in ginstall scoinst install; do
1646 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00001647 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1648 if test $ac_prog = install &&
1649 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1650 # AIX install. It has an incompatible calling convention.
1651 :
1652 elif test $ac_prog = install &&
1653 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1654 # program-specific install script used by HP pwplus--don't use.
1655 :
1656 else
1657 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1658 break 3
1659 fi
1660 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00001661 done
1662 done
1663 ;;
1664esac
1665done
1666
1667
1668fi
1669 if test "${ac_cv_path_install+set}" = set; then
1670 INSTALL=$ac_cv_path_install
1671 else
1672 # As a last resort, use the slow shell script. We don't cache a
1673 # path for INSTALL within a source directory, because that will
1674 # break other packages using the cache if that directory is
1675 # removed, or if the path is relative.
1676 INSTALL=$ac_install_sh
1677 fi
1678fi
1679echo "$as_me:$LINENO: result: $INSTALL" >&5
1680echo "${ECHO_T}$INSTALL" >&6
1681
1682# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1683# It thinks the first close brace ends the variable substitution.
1684test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1685
1686test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1687
1688test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1689
1690echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1691echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1692# Just in case
1693sleep 1
1694echo timestamp > conftest.file
1695# Do `set' in a subshell so we don't clobber the current shell's
1696# arguments. Must try -L first in case configure is actually a
1697# symlink; some systems play weird games with the mod time of symlinks
1698# (eg FreeBSD returns the mod time of the symlink's containing
1699# directory).
1700if (
1701 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1702 if test "$*" = "X"; then
1703 # -L didn't work.
1704 set X `ls -t $srcdir/configure conftest.file`
1705 fi
1706 rm -f conftest.file
1707 if test "$*" != "X $srcdir/configure conftest.file" \
1708 && test "$*" != "X conftest.file $srcdir/configure"; then
1709
1710 # If neither matched, then we have a broken ls. This can happen
1711 # if, for instance, CONFIG_SHELL is bash and it inherits a
1712 # broken ls alias from the environment. This has actually
1713 # happened. Such a system could not be considered "sane".
1714 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1715alias in your environment" >&5
1716echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1717alias in your environment" >&2;}
1718 { (exit 1); exit 1; }; }
1719 fi
1720
1721 test "$2" = conftest.file
1722 )
1723then
1724 # Ok.
1725 :
1726else
1727 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1728Check your system clock" >&5
1729echo "$as_me: error: newly created file is older than distributed files!
1730Check your system clock" >&2;}
1731 { (exit 1); exit 1; }; }
1732fi
1733echo "$as_me:$LINENO: result: yes" >&5
1734echo "${ECHO_T}yes" >&6
1735test "$program_prefix" != NONE &&
1736 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1737# Use a double $ so make ignores it.
1738test "$program_suffix" != NONE &&
1739 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1740# Double any \ or $. echo might interpret backslashes.
1741# By default was `s,x,x', remove it if useless.
1742cat <<\_ACEOF >conftest.sed
1743s/[\\$]/&&/g;s/;s,x,x,$//
1744_ACEOF
1745program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1746rm conftest.sed
1747
Lev Walkinf15320b2004-06-03 03:38:44 +00001748# expand $ac_aux_dir to an absolute path
Lev Walkin8e8b5482004-06-17 23:42:48 +00001749am_aux_dir=`cd $ac_aux_dir && pwd`
Lev Walkinf15320b2004-06-03 03:38:44 +00001750
1751test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1752# Use eval to expand $SHELL
1753if eval "$MISSING --run true"; then
1754 am_missing_run="$MISSING --run "
1755else
1756 am_missing_run=
Lev Walkin8e8b5482004-06-17 23:42:48 +00001757 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1758echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1759fi
1760
1761if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1762 # Keeping the `.' argument allows $(mkdir_p) to be used without
1763 # argument. Indeed, we sometimes output rules like
1764 # $(mkdir_p) $(somedir)
1765 # where $(somedir) is conditionally defined.
1766 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1767 # expensive solution, as it forces Make to start a sub-shell.)
1768 mkdir_p='mkdir -p -- .'
1769else
1770 # On NextStep and OpenStep, the `mkdir' command does not
1771 # recognize any option. It will interpret all options as
1772 # directories to create, and then abort because `.' already
1773 # exists.
1774 for d in ./-p ./--version;
1775 do
1776 test -d $d && rmdir $d
1777 done
1778 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1779 if test -f "$ac_aux_dir/mkinstalldirs"; then
1780 mkdir_p='$(mkinstalldirs)'
1781 else
1782 mkdir_p='$(install_sh) -d'
1783 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00001784fi
1785
1786for ac_prog in gawk mawk nawk awk
1787do
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789set dummy $ac_prog; ac_word=$2
1790echo "$as_me:$LINENO: checking for $ac_word" >&5
1791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792if test "${ac_cv_prog_AWK+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794else
1795 if test -n "$AWK"; then
1796 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1797else
1798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799for as_dir in $PATH
1800do
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_AWK="$ac_prog"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
1808 fi
1809done
1810done
1811
1812fi
1813fi
1814AWK=$ac_cv_prog_AWK
1815if test -n "$AWK"; then
1816 echo "$as_me:$LINENO: result: $AWK" >&5
1817echo "${ECHO_T}$AWK" >&6
1818else
1819 echo "$as_me:$LINENO: result: no" >&5
1820echo "${ECHO_T}no" >&6
1821fi
1822
1823 test -n "$AWK" && break
1824done
1825
1826echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1827echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00001828set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001829if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832 cat >conftest.make <<\_ACEOF
1833all:
1834 @echo 'ac_maketemp="$(MAKE)"'
1835_ACEOF
1836# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1837eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1838if test -n "$ac_maketemp"; then
1839 eval ac_cv_prog_make_${ac_make}_set=yes
1840else
1841 eval ac_cv_prog_make_${ac_make}_set=no
1842fi
1843rm -f conftest.make
1844fi
1845if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1846 echo "$as_me:$LINENO: result: yes" >&5
1847echo "${ECHO_T}yes" >&6
1848 SET_MAKE=
1849else
1850 echo "$as_me:$LINENO: result: no" >&5
1851echo "${ECHO_T}no" >&6
1852 SET_MAKE="MAKE=${MAKE-make}"
1853fi
1854
Lev Walkin8e8b5482004-06-17 23:42:48 +00001855rm -rf .tst 2>/dev/null
1856mkdir .tst 2>/dev/null
1857if test -d .tst; then
1858 am__leading_dot=.
Lev Walkinf15320b2004-06-03 03:38:44 +00001859else
Lev Walkin8e8b5482004-06-17 23:42:48 +00001860 am__leading_dot=_
Lev Walkinf15320b2004-06-03 03:38:44 +00001861fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00001862rmdir .tst 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +00001863
1864# test to see if srcdir already configured
Lev Walkin8e8b5482004-06-17 23:42:48 +00001865if test "`cd $srcdir && pwd`" != "`pwd`" &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001866 test -f $srcdir/config.status; then
1867 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1868echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1869 { (exit 1); exit 1; }; }
1870fi
1871
Lev Walkin8e8b5482004-06-17 23:42:48 +00001872# test whether we have cygpath
1873if test -z "$CYGPATH_W"; then
1874 if (cygpath --version) >/dev/null 2>/dev/null; then
1875 CYGPATH_W='cygpath -w'
1876 else
1877 CYGPATH_W=echo
1878 fi
1879fi
1880
1881
Lev Walkinf15320b2004-06-03 03:38:44 +00001882# Define the identity of the package.
Lev Walkin8e8b5482004-06-17 23:42:48 +00001883 PACKAGE=asn1c
Lev Walkin8059bc42004-08-26 06:19:23 +00001884 VERSION=0.9.3
Lev Walkin8e8b5482004-06-17 23:42:48 +00001885
Lev Walkinf15320b2004-06-03 03:38:44 +00001886
1887cat >>confdefs.h <<_ACEOF
1888#define PACKAGE "$PACKAGE"
1889_ACEOF
1890
1891
1892cat >>confdefs.h <<_ACEOF
1893#define VERSION "$VERSION"
1894_ACEOF
1895
Lev Walkinf15320b2004-06-03 03:38:44 +00001896# Some tools Automake needs.
1897
Lev Walkin8e8b5482004-06-17 23:42:48 +00001898ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00001899
1900
1901AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1902
1903
Lev Walkin8e8b5482004-06-17 23:42:48 +00001904AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00001905
1906
1907AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1908
1909
1910MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1911
1912
1913AMTAR=${AMTAR-"${am_missing_run}tar"}
1914
1915install_sh=${install_sh-"$am_aux_dir/install-sh"}
1916
Lev Walkin8e8b5482004-06-17 23:42:48 +00001917# Installed binaries are usually stripped using `strip' when the user
1918# run `make install-strip'. However `strip' might not be the right
1919# tool to use in cross-compilation environments, therefore Automake
1920# will honor the `STRIP' environment variable to overrule this program.
1921if test "$cross_compiling" != no; then
1922 if test -n "$ac_tool_prefix"; then
1923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1924set dummy ${ac_tool_prefix}strip; ac_word=$2
1925echo "$as_me:$LINENO: checking for $ac_word" >&5
1926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927if test "${ac_cv_prog_STRIP+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
1930 if test -n "$STRIP"; then
1931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1932else
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 break 2
1943 fi
1944done
1945done
1946
1947fi
1948fi
1949STRIP=$ac_cv_prog_STRIP
1950if test -n "$STRIP"; then
1951 echo "$as_me:$LINENO: result: $STRIP" >&5
1952echo "${ECHO_T}$STRIP" >&6
1953else
1954 echo "$as_me:$LINENO: result: no" >&5
1955echo "${ECHO_T}no" >&6
1956fi
1957
1958fi
1959if test -z "$ac_cv_prog_STRIP"; then
1960 ac_ct_STRIP=$STRIP
1961 # Extract the first word of "strip", so it can be a program name with args.
1962set dummy strip; ac_word=$2
1963echo "$as_me:$LINENO: checking for $ac_word" >&5
1964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967else
1968 if test -n "$ac_ct_STRIP"; then
1969 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1970else
1971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972for as_dir in $PATH
1973do
1974 IFS=$as_save_IFS
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 ac_cv_prog_ac_ct_STRIP="strip"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 break 2
1981 fi
1982done
1983done
1984
1985 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1986fi
1987fi
1988ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1989if test -n "$ac_ct_STRIP"; then
1990 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1991echo "${ECHO_T}$ac_ct_STRIP" >&6
1992else
1993 echo "$as_me:$LINENO: result: no" >&5
1994echo "${ECHO_T}no" >&6
1995fi
1996
1997 STRIP=$ac_ct_STRIP
1998else
1999 STRIP="$ac_cv_prog_STRIP"
2000fi
2001
2002fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002003INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2004
2005# We need awk for the "check" target. The system "awk" is bad on
2006# some platforms.
2007
2008
2009
2010
Lev Walkin8e8b5482004-06-17 23:42:48 +00002011
2012
Lev Walkinf15320b2004-06-03 03:38:44 +00002013echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2014echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2015 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2016if test "${enable_maintainer_mode+set}" = set; then
2017 enableval="$enable_maintainer_mode"
2018 USE_MAINTAINER_MODE=$enableval
2019else
2020 USE_MAINTAINER_MODE=no
2021fi;
2022 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2023echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2024
2025
2026if test $USE_MAINTAINER_MODE = yes; then
2027 MAINTAINER_MODE_TRUE=
2028 MAINTAINER_MODE_FALSE='#'
2029else
2030 MAINTAINER_MODE_TRUE='#'
2031 MAINTAINER_MODE_FALSE=
2032fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002033
Lev Walkinf15320b2004-06-03 03:38:44 +00002034 MAINT=$MAINTAINER_MODE_TRUE
2035
2036
2037
2038# Check whether --enable-shared or --disable-shared was given.
2039if test "${enable_shared+set}" = set; then
2040 enableval="$enable_shared"
2041 p=${PACKAGE-default}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002042 case $enableval in
2043 yes) enable_shared=yes ;;
2044 no) enable_shared=no ;;
2045 *)
2046 enable_shared=no
2047 # Look at the argument we got. We use all the common list separators.
2048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2049 for pkg in $enableval; do
2050 IFS="$lt_save_ifs"
2051 if test "X$pkg" = "X$p"; then
2052 enable_shared=yes
2053 fi
2054 done
2055 IFS="$lt_save_ifs"
2056 ;;
2057 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002058else
2059 enable_shared=yes
2060fi;
Lev Walkin8e8b5482004-06-17 23:42:48 +00002061
Lev Walkinf15320b2004-06-03 03:38:44 +00002062# Check whether --enable-static or --disable-static was given.
2063if test "${enable_static+set}" = set; then
2064 enableval="$enable_static"
2065 p=${PACKAGE-default}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002066 case $enableval in
2067 yes) enable_static=yes ;;
2068 no) enable_static=no ;;
2069 *)
2070 enable_static=no
2071 # Look at the argument we got. We use all the common list separators.
2072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2073 for pkg in $enableval; do
2074 IFS="$lt_save_ifs"
2075 if test "X$pkg" = "X$p"; then
2076 enable_static=yes
2077 fi
2078 done
2079 IFS="$lt_save_ifs"
2080 ;;
2081 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002082else
2083 enable_static=yes
2084fi;
Lev Walkin8e8b5482004-06-17 23:42:48 +00002085
Lev Walkinf15320b2004-06-03 03:38:44 +00002086# Check whether --enable-fast-install or --disable-fast-install was given.
2087if test "${enable_fast_install+set}" = set; then
2088 enableval="$enable_fast_install"
2089 p=${PACKAGE-default}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002090 case $enableval in
2091 yes) enable_fast_install=yes ;;
2092 no) enable_fast_install=no ;;
2093 *)
2094 enable_fast_install=no
2095 # Look at the argument we got. We use all the common list separators.
2096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2097 for pkg in $enableval; do
2098 IFS="$lt_save_ifs"
2099 if test "X$pkg" = "X$p"; then
2100 enable_fast_install=yes
2101 fi
2102 done
2103 IFS="$lt_save_ifs"
2104 ;;
2105 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002106else
2107 enable_fast_install=yes
2108fi;
Lev Walkinf15320b2004-06-03 03:38:44 +00002109
Lev Walkin8e8b5482004-06-17 23:42:48 +00002110DEPDIR="${am__leading_dot}deps"
Lev Walkinf15320b2004-06-03 03:38:44 +00002111
Lev Walkin8e8b5482004-06-17 23:42:48 +00002112 ac_config_commands="$ac_config_commands depfiles"
Lev Walkinf15320b2004-06-03 03:38:44 +00002113
Lev Walkinf15320b2004-06-03 03:38:44 +00002114
2115am_make=${MAKE-make}
2116cat > confinc << 'END'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002117am__doit:
Lev Walkinf15320b2004-06-03 03:38:44 +00002118 @echo done
Lev Walkin8e8b5482004-06-17 23:42:48 +00002119.PHONY: am__doit
Lev Walkinf15320b2004-06-03 03:38:44 +00002120END
2121# If we don't find an include directive, just comment out the code.
2122echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2123echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00002124am__include="#"
Lev Walkinf15320b2004-06-03 03:38:44 +00002125am__quote=
2126_am_result=none
2127# First try GNU make style include.
2128echo "include confinc" > confmf
2129# We grep out `Entering directory' and `Leaving directory'
2130# messages which can occur if `w' ends up in MAKEFLAGS.
2131# In particular we don't look at `^make:' because GNU make might
2132# be invoked under some other name (usually "gmake"), in which
2133# case it prints its new name instead of `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002134if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002135 am__include=include
2136 am__quote=
2137 _am_result=GNU
2138fi
2139# Now try BSD make style include.
2140if test "$am__include" = "#"; then
2141 echo '.include "confinc"' > confmf
2142 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2143 am__include=.include
Lev Walkin8e8b5482004-06-17 23:42:48 +00002144 am__quote="\""
Lev Walkinf15320b2004-06-03 03:38:44 +00002145 _am_result=BSD
2146 fi
2147fi
2148
2149
2150echo "$as_me:$LINENO: result: $_am_result" >&5
2151echo "${ECHO_T}$_am_result" >&6
2152rm -f confinc confmf
2153
Lev Walkin8e8b5482004-06-17 23:42:48 +00002154# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2155if test "${enable_dependency_tracking+set}" = set; then
2156 enableval="$enable_dependency_tracking"
2157
2158fi;
2159if test "x$enable_dependency_tracking" != xno; then
2160 am_depcomp="$ac_aux_dir/depcomp"
2161 AMDEPBACKSLASH='\'
2162fi
2163
2164
2165if test "x$enable_dependency_tracking" != xno; then
2166 AMDEP_TRUE=
2167 AMDEP_FALSE='#'
2168else
2169 AMDEP_TRUE='#'
2170 AMDEP_FALSE=
2171fi
2172
2173
2174
Lev Walkinf15320b2004-06-03 03:38:44 +00002175ac_ext=c
2176ac_cpp='$CPP $CPPFLAGS'
2177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179ac_compiler_gnu=$ac_cv_c_compiler_gnu
2180if test -n "$ac_tool_prefix"; then
2181 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2182set dummy ${ac_tool_prefix}gcc; ac_word=$2
2183echo "$as_me:$LINENO: checking for $ac_word" >&5
2184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2185if test "${ac_cv_prog_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188 if test -n "$CC"; then
2189 ac_cv_prog_CC="$CC" # Let the user override the test.
2190else
2191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192for as_dir in $PATH
2193do
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2198 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2201 fi
2202done
2203done
2204
2205fi
2206fi
2207CC=$ac_cv_prog_CC
2208if test -n "$CC"; then
2209 echo "$as_me:$LINENO: result: $CC" >&5
2210echo "${ECHO_T}$CC" >&6
2211else
2212 echo "$as_me:$LINENO: result: no" >&5
2213echo "${ECHO_T}no" >&6
2214fi
2215
2216fi
2217if test -z "$ac_cv_prog_CC"; then
2218 ac_ct_CC=$CC
2219 # Extract the first word of "gcc", so it can be a program name with args.
2220set dummy gcc; ac_word=$2
2221echo "$as_me:$LINENO: checking for $ac_word" >&5
2222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225else
2226 if test -n "$ac_ct_CC"; then
2227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2228else
2229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230for as_dir in $PATH
2231do
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236 ac_cv_prog_ac_ct_CC="gcc"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 break 2
2239 fi
2240done
2241done
2242
2243fi
2244fi
2245ac_ct_CC=$ac_cv_prog_ac_ct_CC
2246if test -n "$ac_ct_CC"; then
2247 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2248echo "${ECHO_T}$ac_ct_CC" >&6
2249else
2250 echo "$as_me:$LINENO: result: no" >&5
2251echo "${ECHO_T}no" >&6
2252fi
2253
2254 CC=$ac_ct_CC
2255else
2256 CC="$ac_cv_prog_CC"
2257fi
2258
2259if test -z "$CC"; then
2260 if test -n "$ac_tool_prefix"; then
2261 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2262set dummy ${ac_tool_prefix}cc; ac_word=$2
2263echo "$as_me:$LINENO: checking for $ac_word" >&5
2264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265if test "${ac_cv_prog_CC+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268 if test -n "$CC"; then
2269 ac_cv_prog_CC="$CC" # Let the user override the test.
2270else
2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272for as_dir in $PATH
2273do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278 ac_cv_prog_CC="${ac_tool_prefix}cc"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2281 fi
2282done
2283done
2284
2285fi
2286fi
2287CC=$ac_cv_prog_CC
2288if test -n "$CC"; then
2289 echo "$as_me:$LINENO: result: $CC" >&5
2290echo "${ECHO_T}$CC" >&6
2291else
2292 echo "$as_me:$LINENO: result: no" >&5
2293echo "${ECHO_T}no" >&6
2294fi
2295
2296fi
2297if test -z "$ac_cv_prog_CC"; then
2298 ac_ct_CC=$CC
2299 # Extract the first word of "cc", so it can be a program name with args.
2300set dummy cc; ac_word=$2
2301echo "$as_me:$LINENO: checking for $ac_word" >&5
2302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2303if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305else
2306 if test -n "$ac_ct_CC"; then
2307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2308else
2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310for as_dir in $PATH
2311do
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316 ac_cv_prog_ac_ct_CC="cc"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2319 fi
2320done
2321done
2322
2323fi
2324fi
2325ac_ct_CC=$ac_cv_prog_ac_ct_CC
2326if test -n "$ac_ct_CC"; then
2327 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2328echo "${ECHO_T}$ac_ct_CC" >&6
2329else
2330 echo "$as_me:$LINENO: result: no" >&5
2331echo "${ECHO_T}no" >&6
2332fi
2333
2334 CC=$ac_ct_CC
2335else
2336 CC="$ac_cv_prog_CC"
2337fi
2338
2339fi
2340if test -z "$CC"; then
2341 # Extract the first word of "cc", so it can be a program name with args.
2342set dummy cc; ac_word=$2
2343echo "$as_me:$LINENO: checking for $ac_word" >&5
2344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345if test "${ac_cv_prog_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348 if test -n "$CC"; then
2349 ac_cv_prog_CC="$CC" # Let the user override the test.
2350else
2351 ac_prog_rejected=no
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2359 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2360 ac_prog_rejected=yes
2361 continue
2362 fi
2363 ac_cv_prog_CC="cc"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 break 2
2366 fi
2367done
2368done
2369
2370if test $ac_prog_rejected = yes; then
2371 # We found a bogon in the path, so make sure we never use it.
2372 set dummy $ac_cv_prog_CC
2373 shift
2374 if test $# != 0; then
2375 # We chose a different compiler from the bogus one.
2376 # However, it has the same basename, so the bogon will be chosen
2377 # first if we set CC to just the basename; use the full file name.
2378 shift
2379 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2380 fi
2381fi
2382fi
2383fi
2384CC=$ac_cv_prog_CC
2385if test -n "$CC"; then
2386 echo "$as_me:$LINENO: result: $CC" >&5
2387echo "${ECHO_T}$CC" >&6
2388else
2389 echo "$as_me:$LINENO: result: no" >&5
2390echo "${ECHO_T}no" >&6
2391fi
2392
2393fi
2394if test -z "$CC"; then
2395 if test -n "$ac_tool_prefix"; then
2396 for ac_prog in cl
2397 do
2398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2400echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2402if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419done
2420done
2421
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
2426 echo "$as_me:$LINENO: result: $CC" >&5
2427echo "${ECHO_T}$CC" >&6
2428else
2429 echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6
2431fi
2432
2433 test -n "$CC" && break
2434 done
2435fi
2436if test -z "$CC"; then
2437 ac_ct_CC=$CC
2438 for ac_prog in cl
2439do
2440 # Extract the first word of "$ac_prog", so it can be a program name with args.
2441set dummy $ac_prog; ac_word=$2
2442echo "$as_me:$LINENO: checking for $ac_word" >&5
2443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2444if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2446else
2447 if test -n "$ac_ct_CC"; then
2448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457 ac_cv_prog_ac_ct_CC="$ac_prog"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 break 2
2460 fi
2461done
2462done
2463
2464fi
2465fi
2466ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467if test -n "$ac_ct_CC"; then
2468 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2469echo "${ECHO_T}$ac_ct_CC" >&6
2470else
2471 echo "$as_me:$LINENO: result: no" >&5
2472echo "${ECHO_T}no" >&6
2473fi
2474
2475 test -n "$ac_ct_CC" && break
2476done
2477
2478 CC=$ac_ct_CC
2479fi
2480
2481fi
2482
2483
2484test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2485See \`config.log' for more details." >&5
2486echo "$as_me: error: no acceptable C compiler found in \$PATH
2487See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2489
2490# Provide some information about the compiler.
2491echo "$as_me:$LINENO:" \
2492 "checking for C compiler version" >&5
2493ac_compiler=`set X $ac_compile; echo $2`
2494{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2495 (eval $ac_compiler --version </dev/null >&5) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }
2499{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2500 (eval $ac_compiler -v </dev/null >&5) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }
2504{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2505 (eval $ac_compiler -V </dev/null >&5) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }
2509
2510cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002511/* confdefs.h. */
2512_ACEOF
2513cat confdefs.h >>conftest.$ac_ext
2514cat >>conftest.$ac_ext <<_ACEOF
2515/* end confdefs.h. */
2516
2517int
2518main ()
2519{
2520
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525ac_clean_files_save=$ac_clean_files
2526ac_clean_files="$ac_clean_files a.out a.exe b.out"
2527# Try to create an executable without -o first, disregard a.out.
2528# It will help us diagnose broken compilers, and finding out an intuition
2529# of exeext.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002530echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2531echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002532ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2533if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2534 (eval $ac_link_default) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; then
2538 # Find the output, starting from the most likely. This scheme is
2539# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2540# resort.
2541
2542# Be careful to initialize this variable, since it used to be cached.
2543# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2544ac_cv_exeext=
2545# b.out is created by i960 compilers.
2546for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2547do
2548 test -f "$ac_file" || continue
2549 case $ac_file in
2550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002551 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002552 conftest.$ac_ext )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002553 # This is the source file.
2554 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002555 [ab].out )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002556 # We found the default executable, but exeext='' is most
2557 # certainly right.
2558 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002559 *.* )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2561 # FIXME: I believe we export ac_cv_exeext for Libtool,
2562 # but it would be cool to find out if it's true. Does anybody
2563 # maintain Libtool? --akim.
2564 export ac_cv_exeext
2565 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002566 * )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002567 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002568 esac
2569done
2570else
2571 echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2575See \`config.log' for more details." >&5
2576echo "$as_me: error: C compiler cannot create executables
2577See \`config.log' for more details." >&2;}
2578 { (exit 77); exit 77; }; }
2579fi
2580
2581ac_exeext=$ac_cv_exeext
2582echo "$as_me:$LINENO: result: $ac_file" >&5
2583echo "${ECHO_T}$ac_file" >&6
2584
2585# Check the compiler produces executables we can run. If not, either
2586# the compiler is broken, or we cross compile.
2587echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2588echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2589# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2590# If not cross compiling, check that we can run a simple program.
2591if test "$cross_compiling" != yes; then
2592 if { ac_try='./$ac_file'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 cross_compiling=no
2599 else
2600 if test "$cross_compiling" = maybe; then
2601 cross_compiling=yes
2602 else
2603 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2604If you meant to cross compile, use \`--host'.
2605See \`config.log' for more details." >&5
2606echo "$as_me: error: cannot run C compiled programs.
2607If you meant to cross compile, use \`--host'.
2608See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2610 fi
2611 fi
2612fi
2613echo "$as_me:$LINENO: result: yes" >&5
2614echo "${ECHO_T}yes" >&6
2615
2616rm -f a.out a.exe conftest$ac_cv_exeext b.out
2617ac_clean_files=$ac_clean_files_save
2618# Check the compiler produces executables we can run. If not, either
2619# the compiler is broken, or we cross compile.
2620echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2621echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2622echo "$as_me:$LINENO: result: $cross_compiling" >&5
2623echo "${ECHO_T}$cross_compiling" >&6
2624
2625echo "$as_me:$LINENO: checking for suffix of executables" >&5
2626echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2628 (eval $ac_link) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; then
2632 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2633# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2634# work properly (i.e., refer to `conftest.exe'), while it won't with
2635# `rm'.
2636for ac_file in conftest.exe conftest conftest.*; do
2637 test -f "$ac_file" || continue
2638 case $ac_file in
2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2640 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Lev Walkin8e8b5482004-06-17 23:42:48 +00002641 export ac_cv_exeext
2642 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002643 * ) break;;
2644 esac
2645done
2646else
2647 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2648See \`config.log' for more details." >&5
2649echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2650See \`config.log' for more details." >&2;}
2651 { (exit 1); exit 1; }; }
2652fi
2653
2654rm -f conftest$ac_cv_exeext
2655echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2656echo "${ECHO_T}$ac_cv_exeext" >&6
2657
2658rm -f conftest.$ac_ext
2659EXEEXT=$ac_cv_exeext
2660ac_exeext=$EXEEXT
2661echo "$as_me:$LINENO: checking for suffix of object files" >&5
2662echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2663if test "${ac_cv_objext+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665else
2666 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002667/* confdefs.h. */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
2671/* end confdefs.h. */
2672
2673int
2674main ()
2675{
2676
2677 ;
2678 return 0;
2679}
2680_ACEOF
2681rm -f conftest.o conftest.obj
2682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; then
2687 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2688 case $ac_file in
2689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2690 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2691 break;;
2692 esac
2693done
2694else
2695 echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2699See \`config.log' for more details." >&5
2700echo "$as_me: error: cannot compute suffix of object files: cannot compile
2701See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
2703fi
2704
2705rm -f conftest.$ac_cv_objext conftest.$ac_ext
2706fi
2707echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2708echo "${ECHO_T}$ac_cv_objext" >&6
2709OBJEXT=$ac_cv_objext
2710ac_objext=$OBJEXT
2711echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2712echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2713if test "${ac_cv_c_compiler_gnu+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715else
2716 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
2722
2723int
2724main ()
2725{
2726#ifndef __GNUC__
2727 choke me
2728#endif
2729
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734rm -f conftest.$ac_objext
2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00002736 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00002737 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00002738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00002743 { ac_try='test -z "$ac_c_werror_flag"
2744 || test ! -s conftest.err'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00002751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 ac_compiler_gnu=yes
2757else
2758 echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761ac_compiler_gnu=no
2762fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00002764ac_cv_c_compiler_gnu=$ac_compiler_gnu
2765
2766fi
2767echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2768echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2769GCC=`test $ac_compiler_gnu = yes && echo yes`
2770ac_test_CFLAGS=${CFLAGS+set}
2771ac_save_CFLAGS=$CFLAGS
2772CFLAGS="-g"
2773echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2775if test "${ac_cv_prog_cc_g+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002779/* confdefs.h. */
2780_ACEOF
2781cat confdefs.h >>conftest.$ac_ext
2782cat >>conftest.$ac_ext <<_ACEOF
2783/* end confdefs.h. */
2784
2785int
2786main ()
2787{
2788
2789 ;
2790 return 0;
2791}
2792_ACEOF
2793rm -f conftest.$ac_objext
2794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00002795 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00002796 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00002797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00002802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00002810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_cv_prog_cc_g=yes
2816else
2817 echo "$as_me: failed program was:" >&5
2818sed 's/^/| /' conftest.$ac_ext >&5
2819
2820ac_cv_prog_cc_g=no
2821fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00002823fi
2824echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2825echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2826if test "$ac_test_CFLAGS" = set; then
2827 CFLAGS=$ac_save_CFLAGS
2828elif test $ac_cv_prog_cc_g = yes; then
2829 if test "$GCC" = yes; then
2830 CFLAGS="-g -O2"
2831 else
2832 CFLAGS="-g"
2833 fi
2834else
2835 if test "$GCC" = yes; then
2836 CFLAGS="-O2"
2837 else
2838 CFLAGS=
2839 fi
2840fi
2841echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2842echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2843if test "${ac_cv_prog_cc_stdc+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846 ac_cv_prog_cc_stdc=no
2847ac_save_CC=$CC
2848cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002849/* confdefs.h. */
2850_ACEOF
2851cat confdefs.h >>conftest.$ac_ext
2852cat >>conftest.$ac_ext <<_ACEOF
2853/* end confdefs.h. */
2854#include <stdarg.h>
2855#include <stdio.h>
2856#include <sys/types.h>
2857#include <sys/stat.h>
2858/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2859struct buf { int x; };
2860FILE * (*rcsopen) (struct buf *, struct stat *, int);
2861static char *e (p, i)
2862 char **p;
2863 int i;
2864{
2865 return p[i];
2866}
2867static char *f (char * (*g) (char **, int), char **p, ...)
2868{
2869 char *s;
2870 va_list v;
2871 va_start (v,p);
2872 s = g (p, va_arg (v,int));
2873 va_end (v);
2874 return s;
2875}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002876
2877/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2878 function prototypes and stuff, but not '\xHH' hex character constants.
2879 These don't provoke an error unfortunately, instead are silently treated
2880 as 'x'. The following induces an error, until -std1 is added to get
2881 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2882 array size at least. It's necessary to write '\x00'==0 to get something
2883 that's true only with -std1. */
2884int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2885
Lev Walkinf15320b2004-06-03 03:38:44 +00002886int test (int i, double x);
2887struct s1 {int (*f) (int a);};
2888struct s2 {int (*f) (double a);};
2889int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890int argc;
2891char **argv;
2892int
2893main ()
2894{
2895return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900# Don't try gcc -ansi; that turns off useful extensions and
2901# breaks some systems' header files.
2902# AIX -qlanglvl=ansi
2903# Ultrix and OSF/1 -std1
2904# HP-UX 10.20 and later -Ae
2905# HP-UX older versions -Aa -D_HPUX_SOURCE
2906# SVR4 -Xc -D__EXTENSIONS__
2907for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2908do
2909 CC="$ac_save_CC $ac_arg"
2910 rm -f conftest.$ac_objext
2911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00002912 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00002913 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00002914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00002919 { ac_try='test -z "$ac_c_werror_flag"
2920 || test ! -s conftest.err'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; } &&
2926 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00002927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_prog_cc_stdc=$ac_arg
2933break
2934else
2935 echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002939rm -f conftest.err conftest.$ac_objext
Lev Walkinf15320b2004-06-03 03:38:44 +00002940done
2941rm -f conftest.$ac_ext conftest.$ac_objext
2942CC=$ac_save_CC
2943
2944fi
2945
2946case "x$ac_cv_prog_cc_stdc" in
2947 x|xno)
2948 echo "$as_me:$LINENO: result: none needed" >&5
2949echo "${ECHO_T}none needed" >&6 ;;
2950 *)
2951 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2952echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2953 CC="$CC $ac_cv_prog_cc_stdc" ;;
2954esac
2955
2956# Some people use a C++ compiler to compile C. Since we use `exit',
2957# in C++ we need to declare it. In case someone uses the same compiler
2958# for both compiling C and C++ we need to have the C++ compiler decide
2959# the declaration of exit, since it's the most demanding environment.
2960cat >conftest.$ac_ext <<_ACEOF
2961#ifndef __cplusplus
2962 choke me
2963#endif
2964_ACEOF
2965rm -f conftest.$ac_objext
2966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00002967 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00002968 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00002969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00002974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00002982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 for ac_declaration in \
Lev Walkin8e8b5482004-06-17 23:42:48 +00002988 '' \
Lev Walkinf15320b2004-06-03 03:38:44 +00002989 'extern "C" void std::exit (int) throw (); using std::exit;' \
2990 'extern "C" void std::exit (int); using std::exit;' \
2991 'extern "C" void exit (int) throw ();' \
2992 'extern "C" void exit (int);' \
2993 'void exit (int);'
2994do
2995 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
Lev Walkinf15320b2004-06-03 03:38:44 +00003001$ac_declaration
Lev Walkin8e8b5482004-06-17 23:42:48 +00003002#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +00003003int
3004main ()
3005{
3006exit (42);
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003013 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003014 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003020 { ac_try='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00003028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 :
3034else
3035 echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038continue
3039fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003041 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003042/* confdefs.h. */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h. */
3047$ac_declaration
3048int
3049main ()
3050{
3051exit (42);
3052 ;
3053 return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext
3057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003058 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003059 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003065 { ac_try='test -z "$ac_c_werror_flag"
3066 || test ! -s conftest.err'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; } &&
3072 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +00003073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 break
3079else
3080 echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003085done
3086rm -f conftest*
3087if test -n "$ac_declaration"; then
3088 echo '#ifdef __cplusplus' >>confdefs.h
3089 echo $ac_declaration >>confdefs.h
3090 echo '#endif' >>confdefs.h
3091fi
3092
3093else
3094 echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
3097fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003099ac_ext=c
3100ac_cpp='$CPP $CPPFLAGS'
3101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104
3105depcc="$CC" am_compiler_list=
3106
3107echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3108echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3109if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
3112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3113 # We make a subdir and do the tests there. Otherwise we can end up
3114 # making bogus files that we don't know about and never remove. For
3115 # instance it was reported that on HP-UX the gcc test will end up
3116 # making a dummy file named `D' -- because `-MD' means `put the output
3117 # in D'.
3118 mkdir conftest.dir
3119 # Copy depcomp to subdir because otherwise we won't find it if we're
3120 # using a relative directory.
3121 cp "$am_depcomp" conftest.dir
3122 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +00003123 # We will build objects and dependencies in a subdirectory because
3124 # it helps to detect inapplicable dependency modes. For instance
3125 # both Tru64's cc and ICC support -MD to output dependencies as a
3126 # side effect of compilation, but ICC will put the dependencies in
3127 # the current directory while Tru64 will put them in the object
3128 # directory.
3129 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +00003130
3131 am_cv_CC_dependencies_compiler_type=none
3132 if test "$am_compiler_list" = ""; then
3133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3134 fi
3135 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003136 # Setup a source with many dependencies, because some compilers
3137 # like to wrap large dependency lists on column 80 (with \), and
3138 # we should not choose a depcomp mode which is confused by this.
3139 #
Lev Walkinf15320b2004-06-03 03:38:44 +00003140 # We need to recreate these files for each test, as the compiler may
3141 # overwrite some of them when testing with obscure command lines.
3142 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003143 : > sub/conftest.c
3144 for i in 1 2 3 4 5 6; do
3145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3146 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3147 # Solaris 8's {/usr,}/bin/sh.
3148 touch sub/conftst$i.h
3149 done
3150 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +00003151
3152 case $depmode in
3153 nosideeffect)
3154 # after this tag, mechanisms are not by side-effect, so they'll
3155 # only be used when explicitly requested
3156 if test "x$enable_dependency_tracking" = xyes; then
3157 continue
3158 else
3159 break
3160 fi
3161 ;;
3162 none) break ;;
3163 esac
3164 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3165 # mode. It turns out that the SunPro C++ compiler does not properly
3166 # handle `-M -o', and we need to detect this.
3167 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003168 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3170 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3171 >/dev/null 2>conftest.err &&
3172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3173 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +00003174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003175 # icc doesn't choke on unknown options, it will just issue warnings
3176 # or remarks (even with -Werror). So we grep stderr for any message
3177 # that says an option was ignored or not supported.
3178 # When given -MP, icc 7.0 and 7.1 complain thusly:
3179 # icc: Command line warning: ignoring option '-M'; no argument required
3180 # The diagnosis changed in icc 8.0:
3181 # icc: Command line remark: option '-MP' not supported
3182 if (grep 'ignoring option' conftest.err ||
3183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3184 am_cv_CC_dependencies_compiler_type=$depmode
3185 break
3186 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003187 fi
3188 done
3189
3190 cd ..
3191 rm -rf conftest.dir
3192else
3193 am_cv_CC_dependencies_compiler_type=none
3194fi
3195
3196fi
3197echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3198echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003199CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3200
3201
3202
3203if
3204 test "x$enable_dependency_tracking" != xno \
3205 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3206 am__fastdepCC_TRUE=
3207 am__fastdepCC_FALSE='#'
3208else
3209 am__fastdepCC_TRUE='#'
3210 am__fastdepCC_FALSE=
3211fi
3212
3213
3214echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3215echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3216if test "${lt_cv_path_SED+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219 # Loop through the user's path and test for sed and gsed.
3220# Then use that list of sed's as ones to test for truncation.
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for lt_ac_prog in sed gsed; do
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3229 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3230 fi
3231 done
3232 done
3233done
3234lt_ac_max=0
3235lt_ac_count=0
3236# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3237# along with /bin/sed that truncates output.
3238for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3239 test ! -f $lt_ac_sed && break
3240 cat /dev/null > conftest.in
3241 lt_ac_count=0
3242 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3243 # Check for GNU sed and select it if it is found.
3244 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3245 lt_cv_path_SED=$lt_ac_sed
3246 break
3247 fi
3248 while true; do
3249 cat conftest.in conftest.in >conftest.tmp
3250 mv conftest.tmp conftest.in
3251 cp conftest.in conftest.nl
3252 echo >>conftest.nl
3253 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3254 cmp -s conftest.out conftest.nl || break
3255 # 10000 chars as input seems more than enough
3256 test $lt_ac_count -gt 10 && break
3257 lt_ac_count=`expr $lt_ac_count + 1`
3258 if test $lt_ac_count -gt $lt_ac_max; then
3259 lt_ac_max=$lt_ac_count
3260 lt_cv_path_SED=$lt_ac_sed
3261 fi
3262 done
3263done
3264SED=$lt_cv_path_SED
3265
3266fi
3267
3268echo "$as_me:$LINENO: result: $SED" >&5
3269echo "${ECHO_T}$SED" >&6
3270
3271echo "$as_me:$LINENO: checking for egrep" >&5
3272echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3273if test "${ac_cv_prog_egrep+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3277 then ac_cv_prog_egrep='grep -E'
3278 else ac_cv_prog_egrep='egrep'
3279 fi
3280fi
3281echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3282echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3283 EGREP=$ac_cv_prog_egrep
Lev Walkinf15320b2004-06-03 03:38:44 +00003284
3285
3286
3287# Check whether --with-gnu-ld or --without-gnu-ld was given.
3288if test "${with_gnu_ld+set}" = set; then
3289 withval="$with_gnu_ld"
3290 test "$withval" = no || with_gnu_ld=yes
3291else
3292 with_gnu_ld=no
3293fi;
3294ac_prog=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00003295if test "$GCC" = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003296 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003297 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3298echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3299 case $host in
3300 *-*-mingw*)
3301 # gcc leaves a trailing carriage return which upsets mingw
3302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3303 *)
3304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3305 esac
3306 case $ac_prog in
Lev Walkinf15320b2004-06-03 03:38:44 +00003307 # Accept absolute paths.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003308 [\\/]* | ?:[\\/]*)
Lev Walkinf15320b2004-06-03 03:38:44 +00003309 re_direlt='/[^/][^/]*/\.\./'
Lev Walkin8e8b5482004-06-17 23:42:48 +00003310 # Canonicalize the pathname of ld
3311 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
Lev Walkinf15320b2004-06-03 03:38:44 +00003312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003313 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Lev Walkinf15320b2004-06-03 03:38:44 +00003314 done
3315 test -z "$LD" && LD="$ac_prog"
3316 ;;
3317 "")
3318 # If it fails, then pretend we aren't using GCC.
3319 ac_prog=ld
3320 ;;
3321 *)
3322 # If it is relative, then search for the first ld in PATH.
3323 with_gnu_ld=unknown
3324 ;;
3325 esac
3326elif test "$with_gnu_ld" = yes; then
3327 echo "$as_me:$LINENO: checking for GNU ld" >&5
3328echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3329else
3330 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3331echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3332fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003333if test "${lt_cv_path_LD+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
3336 if test -z "$LD"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00003338 for ac_dir in $PATH; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003339 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00003340 test -z "$ac_dir" && ac_dir=.
3341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003342 lt_cv_path_LD="$ac_dir/$ac_prog"
Lev Walkinf15320b2004-06-03 03:38:44 +00003343 # Check to see if the program is GNU ld. I'd rather use --version,
3344 # but apparently some GNU ld's only accept -v.
3345 # Break only if it was the GNU/non-GNU ld that we prefer.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3347 *GNU* | *'with BFD'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00003348 test "$with_gnu_ld" != no && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00003349 ;;
3350 *)
Lev Walkinf15320b2004-06-03 03:38:44 +00003351 test "$with_gnu_ld" != yes && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00003352 ;;
3353 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003354 fi
3355 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00003356 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00003357else
Lev Walkin8e8b5482004-06-17 23:42:48 +00003358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Lev Walkinf15320b2004-06-03 03:38:44 +00003359fi
3360fi
3361
Lev Walkin8e8b5482004-06-17 23:42:48 +00003362LD="$lt_cv_path_LD"
Lev Walkinf15320b2004-06-03 03:38:44 +00003363if test -n "$LD"; then
3364 echo "$as_me:$LINENO: result: $LD" >&5
3365echo "${ECHO_T}$LD" >&6
3366else
3367 echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369fi
3370test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3371echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3372 { (exit 1); exit 1; }; }
3373echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3374echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003375if test "${lt_cv_prog_gnu_ld+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377else
3378 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003379case `$LD -v 2>&1 </dev/null` in
3380*GNU* | *'with BFD'*)
3381 lt_cv_prog_gnu_ld=yes
3382 ;;
3383*)
3384 lt_cv_prog_gnu_ld=no
3385 ;;
3386esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003387fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003388echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3389echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3390with_gnu_ld=$lt_cv_prog_gnu_ld
Lev Walkinf15320b2004-06-03 03:38:44 +00003391
3392
Lev Walkin8e8b5482004-06-17 23:42:48 +00003393echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3394echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3395if test "${lt_cv_ld_reload_flag+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397else
3398 lt_cv_ld_reload_flag='-r'
3399fi
3400echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3401echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3402reload_flag=$lt_cv_ld_reload_flag
3403case $reload_flag in
3404"" | " "*) ;;
3405*) reload_flag=" $reload_flag" ;;
3406esac
3407reload_cmds='$LD$reload_flag -o $output$reload_objs'
3408
Lev Walkinf15320b2004-06-03 03:38:44 +00003409echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3410echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003411if test "${lt_cv_path_NM+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 if test -n "$NM"; then
3415 # Let the user override the test.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003416 lt_cv_path_NM="$NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00003417else
Lev Walkin8e8b5482004-06-17 23:42:48 +00003418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00003419 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003420 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00003421 test -z "$ac_dir" && ac_dir=.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003422 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003424 # Check to see if the nm accepts a BSD-compat flag.
3425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3426 # nm: unknown option "B" ignored
Lev Walkin8e8b5482004-06-17 23:42:48 +00003427 # Tru64's nm complains that /dev/null is an invalid object file
3428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3429 */dev/null* | *'Invalid file or object type'*)
3430 lt_cv_path_NM="$tmp_nm -B"
Lev Walkinf15320b2004-06-03 03:38:44 +00003431 break
Lev Walkin8e8b5482004-06-17 23:42:48 +00003432 ;;
3433 *)
3434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3435 */dev/null*)
3436 lt_cv_path_NM="$tmp_nm -p"
3437 break
3438 ;;
3439 *)
3440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3441 continue # so that we can try to find one that supports BSD flags
3442 ;;
3443 esac
3444 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003445 fi
3446 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00003447 IFS="$lt_save_ifs"
3448 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
Lev Walkinf15320b2004-06-03 03:38:44 +00003449fi
3450fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003451echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3452echo "${ECHO_T}$lt_cv_path_NM" >&6
3453NM="$lt_cv_path_NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00003454
3455echo "$as_me:$LINENO: checking whether ln -s works" >&5
3456echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3457LN_S=$as_ln_s
3458if test "$LN_S" = "ln -s"; then
3459 echo "$as_me:$LINENO: result: yes" >&5
3460echo "${ECHO_T}yes" >&6
3461else
3462 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3463echo "${ECHO_T}no, using $LN_S" >&6
3464fi
3465
Lev Walkin8e8b5482004-06-17 23:42:48 +00003466echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3467echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3468if test "${lt_cv_deplibs_check_method+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470else
3471 lt_cv_file_magic_cmd='$MAGIC_CMD'
3472lt_cv_file_magic_test_file=
3473lt_cv_deplibs_check_method='unknown'
3474# Need to set the preceding variable on all platforms that support
3475# interlibrary dependencies.
3476# 'none' -- dependencies not supported.
3477# `unknown' -- same as none, but documents that we really don't know.
3478# 'pass_all' -- all dependencies passed with no checks.
3479# 'test_compile' -- check by making test program.
3480# 'file_magic [[regex]]' -- check by looking for files in library path
3481# which responds to the $file_magic_cmd with a given extended regex.
3482# If you have `file' or equivalent on your system and you're not sure
3483# whether `pass_all' will *always* work, you probably want this one.
Lev Walkinf15320b2004-06-03 03:38:44 +00003484
Lev Walkin8e8b5482004-06-17 23:42:48 +00003485case $host_os in
3486aix4* | aix5*)
3487 lt_cv_deplibs_check_method=pass_all
3488 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003489
Lev Walkin8e8b5482004-06-17 23:42:48 +00003490beos*)
3491 lt_cv_deplibs_check_method=pass_all
3492 ;;
3493
3494bsdi4*)
3495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3496 lt_cv_file_magic_cmd='/usr/bin/file -L'
3497 lt_cv_file_magic_test_file=/shlib/libc.so
3498 ;;
3499
3500cygwin*)
3501 # func_win32_libid is a shell function defined in ltmain.sh
3502 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3503 lt_cv_file_magic_cmd='func_win32_libid'
3504 ;;
3505
3506mingw* | pw32*)
3507 # Base MSYS/MinGW do not provide the 'file' command needed by
3508 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3509 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3510 lt_cv_file_magic_cmd='$OBJDUMP -f'
3511 ;;
3512
3513darwin* | rhapsody*)
3514 lt_cv_deplibs_check_method=pass_all
3515 ;;
3516
3517freebsd* | kfreebsd*-gnu)
3518 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3519 case $host_cpu in
3520 i*86 )
3521 # Not sure whether the presence of OpenBSD here was a mistake.
3522 # Let's accept both of them until this is cleared up.
3523 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3524 lt_cv_file_magic_cmd=/usr/bin/file
3525 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3526 ;;
3527 esac
3528 else
3529 lt_cv_deplibs_check_method=pass_all
3530 fi
3531 ;;
3532
3533gnu*)
3534 lt_cv_deplibs_check_method=pass_all
3535 ;;
3536
3537hpux10.20* | hpux11*)
3538 lt_cv_file_magic_cmd=/usr/bin/file
3539 case "$host_cpu" in
3540 ia64*)
3541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3543 ;;
3544 hppa*64*)
3545 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]'
3546 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3547 ;;
3548 *)
3549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3550 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3551 ;;
3552 esac
3553 ;;
3554
3555irix5* | irix6* | nonstopux*)
3556 case $LD in
3557 *-32|*"-32 ") libmagic=32-bit;;
3558 *-n32|*"-n32 ") libmagic=N32;;
3559 *-64|*"-64 ") libmagic=64-bit;;
3560 *) libmagic=never-match;;
3561 esac
3562 lt_cv_deplibs_check_method=pass_all
3563 ;;
3564
3565# This must be Linux ELF.
3566linux*)
3567 case $host_cpu in
3568 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3569 lt_cv_deplibs_check_method=pass_all ;;
3570 *)
3571 # glibc up to 2.1.1 does not perform some relocations on ARM
3572 # this will be overridden with pass_all, but let us keep it just in case
3573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3574 esac
3575 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3576 lt_cv_deplibs_check_method=pass_all
3577 ;;
3578
3579netbsd*)
3580 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3582 else
3583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3584 fi
3585 ;;
3586
3587newos6*)
3588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3589 lt_cv_file_magic_cmd=/usr/bin/file
3590 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3591 ;;
3592
3593nto-qnx*)
3594 lt_cv_deplibs_check_method=unknown
3595 ;;
3596
3597openbsd*)
3598 lt_cv_file_magic_cmd=/usr/bin/file
3599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3600 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3602 else
3603 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3604 fi
3605 ;;
3606
3607osf3* | osf4* | osf5*)
3608 lt_cv_deplibs_check_method=pass_all
3609 ;;
3610
3611sco3.2v5*)
3612 lt_cv_deplibs_check_method=pass_all
3613 ;;
3614
3615solaris*)
3616 lt_cv_deplibs_check_method=pass_all
3617 ;;
3618
3619sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3620 case $host_vendor in
3621 motorola)
3622 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]'
3623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3624 ;;
3625 ncr)
3626 lt_cv_deplibs_check_method=pass_all
3627 ;;
3628 sequent)
3629 lt_cv_file_magic_cmd='/bin/file'
3630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3631 ;;
3632 sni)
3633 lt_cv_file_magic_cmd='/bin/file'
3634 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3635 lt_cv_file_magic_test_file=/lib/libc.so
3636 ;;
3637 siemens)
3638 lt_cv_deplibs_check_method=pass_all
3639 ;;
3640 esac
3641 ;;
3642
3643sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3644 lt_cv_deplibs_check_method=pass_all
3645 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003646esac
3647
Lev Walkin8e8b5482004-06-17 23:42:48 +00003648fi
3649echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3650echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3651file_magic_cmd=$lt_cv_file_magic_cmd
3652deplibs_check_method=$lt_cv_deplibs_check_method
3653test -z "$deplibs_check_method" && deplibs_check_method=unknown
3654
3655
3656
3657
3658# If no C compiler was specified, use CC.
3659LTCC=${LTCC-"$CC"}
3660
3661# Allow CC to be a program name with arguments.
3662compiler=$CC
Lev Walkinf15320b2004-06-03 03:38:44 +00003663
3664
3665# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3666if test "${enable_libtool_lock+set}" = set; then
3667 enableval="$enable_libtool_lock"
3668
3669fi;
Lev Walkin8e8b5482004-06-17 23:42:48 +00003670test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00003671
3672# Some flags need to be propagated to the compiler or linker for good
3673# libtool support.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003674case $host in
3675ia64-*-hpux*)
Lev Walkinf15320b2004-06-03 03:38:44 +00003676 # Find out which ABI we are using.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003677 echo 'int i;' > conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3679 (eval $ac_compile) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003683 case `/usr/bin/file conftest.$ac_objext` in
3684 *ELF-32*)
3685 HPUX_IA64_MODE="32"
3686 ;;
3687 *ELF-64*)
3688 HPUX_IA64_MODE="64"
3689 ;;
3690 esac
3691 fi
3692 rm -rf conftest*
3693 ;;
3694*-*-irix6*)
3695 # Find out which ABI we are using.
3696 echo '#line 3696 "configure"' > conftest.$ac_ext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; then
3702 if test "$lt_cv_prog_gnu_ld" = yes; then
3703 case `/usr/bin/file conftest.$ac_objext` in
3704 *32-bit*)
3705 LD="${LD-ld} -melf32bsmip"
3706 ;;
3707 *N32*)
3708 LD="${LD-ld} -melf32bmipn32"
3709 ;;
3710 *64-bit*)
3711 LD="${LD-ld} -melf64bmip"
3712 ;;
3713 esac
3714 else
3715 case `/usr/bin/file conftest.$ac_objext` in
Lev Walkinf15320b2004-06-03 03:38:44 +00003716 *32-bit*)
3717 LD="${LD-ld} -32"
3718 ;;
3719 *N32*)
3720 LD="${LD-ld} -n32"
3721 ;;
3722 *64-bit*)
3723 LD="${LD-ld} -64"
3724 ;;
3725 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00003726 fi
3727 fi
3728 rm -rf conftest*
3729 ;;
3730
3731x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3732 # Find out which ABI we are using.
3733 echo 'int i;' > conftest.$ac_ext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; then
3739 case "`/usr/bin/file conftest.o`" in
3740 *32-bit*)
3741 case $host in
3742 x86_64-*linux*)
3743 LD="${LD-ld} -m elf_i386"
3744 ;;
3745 ppc64-*linux*|powerpc64-*linux*)
3746 LD="${LD-ld} -m elf32ppclinux"
3747 ;;
3748 s390x-*linux*)
3749 LD="${LD-ld} -m elf_s390"
3750 ;;
3751 sparc64-*linux*)
3752 LD="${LD-ld} -m elf32_sparc"
3753 ;;
3754 esac
3755 ;;
3756 *64-bit*)
3757 case $host in
3758 x86_64-*linux*)
3759 LD="${LD-ld} -m elf_x86_64"
3760 ;;
3761 ppc*-*linux*|powerpc*-*linux*)
3762 LD="${LD-ld} -m elf64ppc"
3763 ;;
3764 s390*-*linux*)
3765 LD="${LD-ld} -m elf64_s390"
3766 ;;
3767 sparc*-*linux*)
3768 LD="${LD-ld} -m elf64_sparc"
3769 ;;
3770 esac
3771 ;;
3772 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003773 fi
3774 rm -rf conftest*
3775 ;;
3776
3777*-*-sco3.2v5*)
3778 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3779 SAVE_CFLAGS="$CFLAGS"
3780 CFLAGS="$CFLAGS -belf"
3781 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3782echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3783if test "${lt_cv_cc_needs_belf+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
Lev Walkin8e8b5482004-06-17 23:42:48 +00003786 ac_ext=c
3787ac_cpp='$CPP $CPPFLAGS'
3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003793/* confdefs.h. */
3794_ACEOF
3795cat confdefs.h >>conftest.$ac_ext
3796cat >>conftest.$ac_ext <<_ACEOF
3797/* end confdefs.h. */
3798
3799int
3800main ()
3801{
3802
3803 ;
3804 return 0;
3805}
3806_ACEOF
3807rm -f conftest.$ac_objext conftest$ac_exeext
3808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003809 (eval $ac_link) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003810 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003816 { ac_try='test -z "$ac_c_werror_flag"
3817 || test ! -s conftest.err'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; } &&
3823 { ac_try='test -s conftest$ac_exeext'
Lev Walkinf15320b2004-06-03 03:38:44 +00003824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 (eval $ac_try) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3829 lt_cv_cc_needs_belf=yes
3830else
3831 echo "$as_me: failed program was:" >&5
3832sed 's/^/| /' conftest.$ac_ext >&5
3833
3834lt_cv_cc_needs_belf=no
3835fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003836rm -f conftest.err conftest.$ac_objext \
3837 conftest$ac_exeext conftest.$ac_ext
3838 ac_ext=c
3839ac_cpp='$CPP $CPPFLAGS'
3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
Lev Walkinf15320b2004-06-03 03:38:44 +00003844fi
3845echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3846echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3847 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3848 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3849 CFLAGS="$SAVE_CFLAGS"
3850 fi
3851 ;;
3852
Lev Walkinf15320b2004-06-03 03:38:44 +00003853esac
3854
Lev Walkin8e8b5482004-06-17 23:42:48 +00003855need_locks="$enable_libtool_lock"
Lev Walkinf15320b2004-06-03 03:38:44 +00003856
Lev Walkinf15320b2004-06-03 03:38:44 +00003857
Lev Walkin8e8b5482004-06-17 23:42:48 +00003858ac_ext=c
3859ac_cpp='$CPP $CPPFLAGS'
3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3864echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3865# On Suns, sometimes $CPP names a directory.
3866if test -n "$CPP" && test -d "$CPP"; then
3867 CPP=
Lev Walkinf15320b2004-06-03 03:38:44 +00003868fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003869if test -z "$CPP"; then
3870 if test "${ac_cv_prog_CPP+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873 # Double quotes because CPP needs to be expanded
3874 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3875 do
3876 ac_preproc_ok=false
3877for ac_c_preproc_warn_flag in '' yes
3878do
3879 # Use a header file that comes with gcc, so configuring glibc
3880 # with a fresh cross-compiler works.
3881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3882 # <limits.h> exists even on freestanding compilers.
3883 # On the NeXT, cc -E runs the code through the compiler's parser,
3884 # not just through cpp. "Syntax error" is here to catch this case.
3885 cat >conftest.$ac_ext <<_ACEOF
3886/* confdefs.h. */
3887_ACEOF
3888cat confdefs.h >>conftest.$ac_ext
3889cat >>conftest.$ac_ext <<_ACEOF
3890/* end confdefs.h. */
3891#ifdef __STDC__
3892# include <limits.h>
3893#else
3894# include <assert.h>
3895#endif
3896 Syntax error
3897_ACEOF
3898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3900 ac_status=$?
3901 grep -v '^ *+' conftest.er1 >conftest.err
3902 rm -f conftest.er1
3903 cat conftest.err >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } >/dev/null; then
3906 if test -s conftest.err; then
3907 ac_cpp_err=$ac_c_preproc_warn_flag
3908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3909 else
3910 ac_cpp_err=
Lev Walkinf15320b2004-06-03 03:38:44 +00003911 fi
3912else
Lev Walkin8e8b5482004-06-17 23:42:48 +00003913 ac_cpp_err=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00003914fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003915if test -z "$ac_cpp_err"; then
3916 :
3917else
3918 echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921 # Broken: fails on valid input.
3922continue
3923fi
3924rm -f conftest.err conftest.$ac_ext
3925
3926 # OK, works on sane cases. Now check whether non-existent headers
3927 # can be detected and how.
3928 cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h. */
3934#include <ac_nonexistent.h>
3935_ACEOF
3936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3938 ac_status=$?
3939 grep -v '^ *+' conftest.er1 >conftest.err
3940 rm -f conftest.er1
3941 cat conftest.err >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } >/dev/null; then
3944 if test -s conftest.err; then
3945 ac_cpp_err=$ac_c_preproc_warn_flag
3946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3947 else
3948 ac_cpp_err=
3949 fi
3950else
3951 ac_cpp_err=yes
3952fi
3953if test -z "$ac_cpp_err"; then
3954 # Broken: success on invalid input.
3955continue
3956else
3957 echo "$as_me: failed program was:" >&5
3958sed 's/^/| /' conftest.$ac_ext >&5
3959
3960 # Passes both tests.
3961ac_preproc_ok=:
3962break
3963fi
3964rm -f conftest.err conftest.$ac_ext
3965
3966done
3967# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3968rm -f conftest.err conftest.$ac_ext
3969if $ac_preproc_ok; then
3970 break
3971fi
3972
3973 done
3974 ac_cv_prog_CPP=$CPP
3975
3976fi
3977 CPP=$ac_cv_prog_CPP
3978else
3979 ac_cv_prog_CPP=$CPP
3980fi
3981echo "$as_me:$LINENO: result: $CPP" >&5
3982echo "${ECHO_T}$CPP" >&6
3983ac_preproc_ok=false
3984for ac_c_preproc_warn_flag in '' yes
3985do
3986 # Use a header file that comes with gcc, so configuring glibc
3987 # with a fresh cross-compiler works.
3988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 # <limits.h> exists even on freestanding compilers.
3990 # On the NeXT, cc -E runs the code through the compiler's parser,
3991 # not just through cpp. "Syntax error" is here to catch this case.
3992 cat >conftest.$ac_ext <<_ACEOF
3993/* confdefs.h. */
3994_ACEOF
3995cat confdefs.h >>conftest.$ac_ext
3996cat >>conftest.$ac_ext <<_ACEOF
3997/* end confdefs.h. */
3998#ifdef __STDC__
3999# include <limits.h>
4000#else
4001# include <assert.h>
4002#endif
4003 Syntax error
4004_ACEOF
4005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } >/dev/null; then
4013 if test -s conftest.err; then
4014 ac_cpp_err=$ac_c_preproc_warn_flag
4015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4016 else
4017 ac_cpp_err=
4018 fi
4019else
4020 ac_cpp_err=yes
4021fi
4022if test -z "$ac_cpp_err"; then
4023 :
4024else
4025 echo "$as_me: failed program was:" >&5
4026sed 's/^/| /' conftest.$ac_ext >&5
4027
4028 # Broken: fails on valid input.
4029continue
4030fi
4031rm -f conftest.err conftest.$ac_ext
4032
4033 # OK, works on sane cases. Now check whether non-existent headers
4034 # can be detected and how.
4035 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h. */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h. */
4041#include <ac_nonexistent.h>
4042_ACEOF
4043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } >/dev/null; then
4051 if test -s conftest.err; then
4052 ac_cpp_err=$ac_c_preproc_warn_flag
4053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4054 else
4055 ac_cpp_err=
4056 fi
4057else
4058 ac_cpp_err=yes
4059fi
4060if test -z "$ac_cpp_err"; then
4061 # Broken: success on invalid input.
4062continue
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 # Passes both tests.
4068ac_preproc_ok=:
4069break
4070fi
4071rm -f conftest.err conftest.$ac_ext
4072
4073done
4074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4075rm -f conftest.err conftest.$ac_ext
4076if $ac_preproc_ok; then
4077 :
4078else
4079 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4080See \`config.log' for more details." >&5
4081echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4082See \`config.log' for more details." >&2;}
4083 { (exit 1); exit 1; }; }
4084fi
4085
4086ac_ext=c
4087ac_cpp='$CPP $CPPFLAGS'
4088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092
4093echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4094echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4095if test "${ac_cv_header_stdc+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098 cat >conftest.$ac_ext <<_ACEOF
4099/* confdefs.h. */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h. */
4104#include <stdlib.h>
4105#include <stdarg.h>
4106#include <string.h>
4107#include <float.h>
4108
4109int
4110main ()
4111{
4112
4113 ;
4114 return 0;
4115}
4116_ACEOF
4117rm -f conftest.$ac_objext
4118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag"
4127 || test ! -s conftest.err'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 (eval $ac_try) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; } &&
4133 { ac_try='test -s conftest.$ac_objext'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 ac_cv_header_stdc=yes
4140else
4141 echo "$as_me: failed program was:" >&5
4142sed 's/^/| /' conftest.$ac_ext >&5
4143
4144ac_cv_header_stdc=no
4145fi
4146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4147
4148if test $ac_cv_header_stdc = yes; then
4149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150 cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h. */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h. */
4156#include <string.h>
4157
4158_ACEOF
4159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160 $EGREP "memchr" >/dev/null 2>&1; then
4161 :
4162else
4163 ac_cv_header_stdc=no
4164fi
4165rm -f conftest*
4166
4167fi
4168
4169if test $ac_cv_header_stdc = yes; then
4170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4171 cat >conftest.$ac_ext <<_ACEOF
4172/* confdefs.h. */
4173_ACEOF
4174cat confdefs.h >>conftest.$ac_ext
4175cat >>conftest.$ac_ext <<_ACEOF
4176/* end confdefs.h. */
4177#include <stdlib.h>
4178
4179_ACEOF
4180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181 $EGREP "free" >/dev/null 2>&1; then
4182 :
4183else
4184 ac_cv_header_stdc=no
4185fi
4186rm -f conftest*
4187
4188fi
4189
4190if test $ac_cv_header_stdc = yes; then
4191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4192 if test "$cross_compiling" = yes; then
4193 :
4194else
4195 cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h. */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4200/* end confdefs.h. */
4201#include <ctype.h>
4202#if ((' ' & 0x0FF) == 0x020)
4203# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4204# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4205#else
4206# define ISLOWER(c) \
4207 (('a' <= (c) && (c) <= 'i') \
4208 || ('j' <= (c) && (c) <= 'r') \
4209 || ('s' <= (c) && (c) <= 'z'))
4210# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211#endif
4212
4213#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4214int
4215main ()
4216{
4217 int i;
4218 for (i = 0; i < 256; i++)
4219 if (XOR (islower (i), ISLOWER (i))
4220 || toupper (i) != TOUPPER (i))
4221 exit(2);
4222 exit (0);
4223}
4224_ACEOF
4225rm -f conftest$ac_exeext
4226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4227 (eval $ac_link) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 :
4237else
4238 echo "$as_me: program exited with status $ac_status" >&5
4239echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242( exit $ac_status )
4243ac_cv_header_stdc=no
4244fi
4245rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4246fi
4247fi
4248fi
4249echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4250echo "${ECHO_T}$ac_cv_header_stdc" >&6
4251if test $ac_cv_header_stdc = yes; then
4252
4253cat >>confdefs.h <<\_ACEOF
4254#define STDC_HEADERS 1
4255_ACEOF
4256
4257fi
4258
4259# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4270 inttypes.h stdint.h unistd.h
4271do
4272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4273echo "$as_me:$LINENO: checking for $ac_header" >&5
4274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4275if eval "test \"\${$as_ac_Header+set}\" = set"; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278 cat >conftest.$ac_ext <<_ACEOF
4279/* confdefs.h. */
4280_ACEOF
4281cat confdefs.h >>conftest.$ac_ext
4282cat >>conftest.$ac_ext <<_ACEOF
4283/* end confdefs.h. */
4284$ac_includes_default
4285
4286#include <$ac_header>
4287_ACEOF
4288rm -f conftest.$ac_objext
4289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag"
4298 || test ! -s conftest.err'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest.$ac_objext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 (eval $ac_try) 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 eval "$as_ac_Header=yes"
4311else
4312 echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315eval "$as_ac_Header=no"
4316fi
4317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4318fi
4319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4321if test `eval echo '${'$as_ac_Header'}'` = yes; then
4322 cat >>confdefs.h <<_ACEOF
4323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4324_ACEOF
4325
4326fi
4327
4328done
4329
4330
4331
4332for ac_header in dlfcn.h
4333do
4334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4335if eval "test \"\${$as_ac_Header+set}\" = set"; then
4336 echo "$as_me:$LINENO: checking for $ac_header" >&5
4337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4338if eval "test \"\${$as_ac_Header+set}\" = set"; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340fi
4341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4343else
4344 # Is the header compilable?
4345echo "$as_me:$LINENO: checking $ac_header usability" >&5
4346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4347cat >conftest.$ac_ext <<_ACEOF
4348/* confdefs.h. */
4349_ACEOF
4350cat confdefs.h >>conftest.$ac_ext
4351cat >>conftest.$ac_ext <<_ACEOF
4352/* end confdefs.h. */
4353$ac_includes_default
4354#include <$ac_header>
4355_ACEOF
4356rm -f conftest.$ac_objext
4357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_c_werror_flag"
4366 || test ! -s conftest.err'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; } &&
4372 { ac_try='test -s conftest.$ac_objext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_header_compiler=yes
4379else
4380 echo "$as_me: failed program was:" >&5
4381sed 's/^/| /' conftest.$ac_ext >&5
4382
4383ac_header_compiler=no
4384fi
4385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4387echo "${ECHO_T}$ac_header_compiler" >&6
4388
4389# Is the header present?
4390echo "$as_me:$LINENO: checking $ac_header presence" >&5
4391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4392cat >conftest.$ac_ext <<_ACEOF
4393/* confdefs.h. */
4394_ACEOF
4395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
4397/* end confdefs.h. */
4398#include <$ac_header>
4399_ACEOF
4400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } >/dev/null; then
4408 if test -s conftest.err; then
4409 ac_cpp_err=$ac_c_preproc_warn_flag
4410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4411 else
4412 ac_cpp_err=
4413 fi
4414else
4415 ac_cpp_err=yes
4416fi
4417if test -z "$ac_cpp_err"; then
4418 ac_header_preproc=yes
4419else
4420 echo "$as_me: failed program was:" >&5
4421sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 ac_header_preproc=no
4424fi
4425rm -f conftest.err conftest.$ac_ext
4426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4427echo "${ECHO_T}$ac_header_preproc" >&6
4428
4429# So? What about this header?
4430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4431 yes:no: )
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4436 ac_header_preproc=yes
4437 ;;
4438 no:yes:* )
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4442echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4446echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4451 (
4452 cat <<\_ASBOX
4453## ------------------------------------------ ##
4454## Report this to the AC_PACKAGE_NAME lists. ##
4455## ------------------------------------------ ##
4456_ASBOX
4457 ) |
4458 sed "s/^/$as_me: WARNING: /" >&2
4459 ;;
4460esac
4461echo "$as_me:$LINENO: checking for $ac_header" >&5
4462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4463if eval "test \"\${$as_ac_Header+set}\" = set"; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466 eval "$as_ac_Header=\$ac_header_preproc"
4467fi
4468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4470
4471fi
4472if test `eval echo '${'$as_ac_Header'}'` = yes; then
4473 cat >>confdefs.h <<_ACEOF
4474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475_ACEOF
4476
4477fi
4478
4479done
4480
4481ac_ext=cc
4482ac_cpp='$CXXCPP $CPPFLAGS'
4483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4486if test -n "$ac_tool_prefix"; then
4487 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4488 do
4489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4490set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4491echo "$as_me:$LINENO: checking for $ac_word" >&5
4492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493if test "${ac_cv_prog_CXX+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496 if test -n "$CXX"; then
4497 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4498else
4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510done
4511done
4512
4513fi
4514fi
4515CXX=$ac_cv_prog_CXX
4516if test -n "$CXX"; then
4517 echo "$as_me:$LINENO: result: $CXX" >&5
4518echo "${ECHO_T}$CXX" >&6
4519else
4520 echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6
4522fi
4523
4524 test -n "$CXX" && break
4525 done
4526fi
4527if test -z "$CXX"; then
4528 ac_ct_CXX=$CXX
4529 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4530do
4531 # Extract the first word of "$ac_prog", so it can be a program name with args.
4532set dummy $ac_prog; ac_word=$2
4533echo "$as_me:$LINENO: checking for $ac_word" >&5
4534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4535if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537else
4538 if test -n "$ac_ct_CXX"; then
4539 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4540else
4541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542for as_dir in $PATH
4543do
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4548 ac_cv_prog_ac_ct_CXX="$ac_prog"
4549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4551 fi
4552done
4553done
4554
4555fi
4556fi
4557ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4558if test -n "$ac_ct_CXX"; then
4559 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4560echo "${ECHO_T}$ac_ct_CXX" >&6
4561else
4562 echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6
4564fi
4565
4566 test -n "$ac_ct_CXX" && break
4567done
4568test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4569
4570 CXX=$ac_ct_CXX
4571fi
4572
4573
4574# Provide some information about the compiler.
4575echo "$as_me:$LINENO:" \
4576 "checking for C++ compiler version" >&5
4577ac_compiler=`set X $ac_compile; echo $2`
4578{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4579 (eval $ac_compiler --version </dev/null >&5) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }
4583{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4584 (eval $ac_compiler -v </dev/null >&5) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }
4588{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4589 (eval $ac_compiler -V </dev/null >&5) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }
4593
4594echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4595echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4596if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h. */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h. */
4605
4606int
4607main ()
4608{
4609#ifndef __GNUC__
4610 choke me
4611#endif
4612
4613 ;
4614 return 0;
4615}
4616_ACEOF
4617rm -f conftest.$ac_objext
4618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4619 (eval $ac_compile) 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try='test -z "$ac_cxx_werror_flag"
4627 || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try='test -s conftest.$ac_objext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_compiler_gnu=yes
4640else
4641 echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644ac_compiler_gnu=no
4645fi
4646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4647ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4648
4649fi
4650echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4651echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4652GXX=`test $ac_compiler_gnu = yes && echo yes`
4653ac_test_CXXFLAGS=${CXXFLAGS+set}
4654ac_save_CXXFLAGS=$CXXFLAGS
4655CXXFLAGS="-g"
4656echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4657echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4658if test "${ac_cv_prog_cxx_g+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661 cat >conftest.$ac_ext <<_ACEOF
4662/* confdefs.h. */
4663_ACEOF
4664cat confdefs.h >>conftest.$ac_ext
4665cat >>conftest.$ac_ext <<_ACEOF
4666/* end confdefs.h. */
4667
4668int
4669main ()
4670{
4671
4672 ;
4673 return 0;
4674}
4675_ACEOF
4676rm -f conftest.$ac_objext
4677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>conftest.er1
4679 ac_status=$?
4680 grep -v '^ *+' conftest.er1 >conftest.err
4681 rm -f conftest.er1
4682 cat conftest.err >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try='test -z "$ac_cxx_werror_flag"
4686 || test ! -s conftest.err'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try='test -s conftest.$ac_objext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 ac_cv_prog_cxx_g=yes
4699else
4700 echo "$as_me: failed program was:" >&5
4701sed 's/^/| /' conftest.$ac_ext >&5
4702
4703ac_cv_prog_cxx_g=no
4704fi
4705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4706fi
4707echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4708echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4709if test "$ac_test_CXXFLAGS" = set; then
4710 CXXFLAGS=$ac_save_CXXFLAGS
4711elif test $ac_cv_prog_cxx_g = yes; then
4712 if test "$GXX" = yes; then
4713 CXXFLAGS="-g -O2"
4714 else
4715 CXXFLAGS="-g"
4716 fi
4717else
4718 if test "$GXX" = yes; then
4719 CXXFLAGS="-O2"
4720 else
4721 CXXFLAGS=
4722 fi
4723fi
4724for ac_declaration in \
4725 '' \
4726 'extern "C" void std::exit (int) throw (); using std::exit;' \
4727 'extern "C" void std::exit (int); using std::exit;' \
4728 'extern "C" void exit (int) throw ();' \
4729 'extern "C" void exit (int);' \
4730 'void exit (int);'
4731do
4732 cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
4738$ac_declaration
4739#include <stdlib.h>
4740int
4741main ()
4742{
4743exit (42);
4744 ;
4745 return 0;
4746}
4747_ACEOF
4748rm -f conftest.$ac_objext
4749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } &&
4757 { ac_try='test -z "$ac_cxx_werror_flag"
4758 || test ! -s conftest.err'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; } &&
4764 { ac_try='test -s conftest.$ac_objext'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 (eval $ac_try) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 :
4771else
4772 echo "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775continue
4776fi
4777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4778 cat >conftest.$ac_ext <<_ACEOF
4779/* confdefs.h. */
4780_ACEOF
4781cat confdefs.h >>conftest.$ac_ext
4782cat >>conftest.$ac_ext <<_ACEOF
4783/* end confdefs.h. */
4784$ac_declaration
4785int
4786main ()
4787{
4788exit (42);
4789 ;
4790 return 0;
4791}
4792_ACEOF
4793rm -f conftest.$ac_objext
4794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795 (eval $ac_compile) 2>conftest.er1
4796 ac_status=$?
4797 grep -v '^ *+' conftest.er1 >conftest.err
4798 rm -f conftest.er1
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -z "$ac_cxx_werror_flag"
4803 || test ! -s conftest.err'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 break
4816else
4817 echo "$as_me: failed program was:" >&5
4818sed 's/^/| /' conftest.$ac_ext >&5
4819
4820fi
4821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822done
4823rm -f conftest*
4824if test -n "$ac_declaration"; then
4825 echo '#ifdef __cplusplus' >>confdefs.h
4826 echo $ac_declaration >>confdefs.h
4827 echo '#endif' >>confdefs.h
4828fi
4829
4830ac_ext=cc
4831ac_cpp='$CXXCPP $CPPFLAGS'
4832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4835
4836depcc="$CXX" am_compiler_list=
4837
4838echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4839echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4840if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842else
4843 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4844 # We make a subdir and do the tests there. Otherwise we can end up
4845 # making bogus files that we don't know about and never remove. For
4846 # instance it was reported that on HP-UX the gcc test will end up
4847 # making a dummy file named `D' -- because `-MD' means `put the output
4848 # in D'.
4849 mkdir conftest.dir
4850 # Copy depcomp to subdir because otherwise we won't find it if we're
4851 # using a relative directory.
4852 cp "$am_depcomp" conftest.dir
4853 cd conftest.dir
4854 # We will build objects and dependencies in a subdirectory because
4855 # it helps to detect inapplicable dependency modes. For instance
4856 # both Tru64's cc and ICC support -MD to output dependencies as a
4857 # side effect of compilation, but ICC will put the dependencies in
4858 # the current directory while Tru64 will put them in the object
4859 # directory.
4860 mkdir sub
4861
4862 am_cv_CXX_dependencies_compiler_type=none
4863 if test "$am_compiler_list" = ""; then
4864 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4865 fi
4866 for depmode in $am_compiler_list; do
4867 # Setup a source with many dependencies, because some compilers
4868 # like to wrap large dependency lists on column 80 (with \), and
4869 # we should not choose a depcomp mode which is confused by this.
4870 #
4871 # We need to recreate these files for each test, as the compiler may
4872 # overwrite some of them when testing with obscure command lines.
4873 # This happens at least with the AIX C compiler.
4874 : > sub/conftest.c
4875 for i in 1 2 3 4 5 6; do
4876 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4877 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4878 # Solaris 8's {/usr,}/bin/sh.
4879 touch sub/conftst$i.h
4880 done
4881 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4882
4883 case $depmode in
4884 nosideeffect)
4885 # after this tag, mechanisms are not by side-effect, so they'll
4886 # only be used when explicitly requested
4887 if test "x$enable_dependency_tracking" = xyes; then
4888 continue
4889 else
4890 break
4891 fi
4892 ;;
4893 none) break ;;
4894 esac
4895 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4896 # mode. It turns out that the SunPro C++ compiler does not properly
4897 # handle `-M -o', and we need to detect this.
4898 if depmode=$depmode \
4899 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4900 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4901 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4902 >/dev/null 2>conftest.err &&
4903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4904 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4906 # icc doesn't choke on unknown options, it will just issue warnings
4907 # or remarks (even with -Werror). So we grep stderr for any message
4908 # that says an option was ignored or not supported.
4909 # When given -MP, icc 7.0 and 7.1 complain thusly:
4910 # icc: Command line warning: ignoring option '-M'; no argument required
4911 # The diagnosis changed in icc 8.0:
4912 # icc: Command line remark: option '-MP' not supported
4913 if (grep 'ignoring option' conftest.err ||
4914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4915 am_cv_CXX_dependencies_compiler_type=$depmode
4916 break
4917 fi
4918 fi
4919 done
4920
4921 cd ..
4922 rm -rf conftest.dir
4923else
4924 am_cv_CXX_dependencies_compiler_type=none
4925fi
4926
4927fi
4928echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4929echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4930CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4931
4932
4933
4934if
4935 test "x$enable_dependency_tracking" != xno \
4936 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4937 am__fastdepCXX_TRUE=
4938 am__fastdepCXX_FALSE='#'
4939else
4940 am__fastdepCXX_TRUE='#'
4941 am__fastdepCXX_FALSE=
4942fi
4943
4944
4945ac_ext=cc
4946ac_cpp='$CXXCPP $CPPFLAGS'
4947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4950echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4951echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4952if test -z "$CXXCPP"; then
4953 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956 # Double quotes because CXXCPP needs to be expanded
4957 for CXXCPP in "$CXX -E" "/lib/cpp"
4958 do
4959 ac_preproc_ok=false
4960for ac_cxx_preproc_warn_flag in '' yes
4961do
4962 # Use a header file that comes with gcc, so configuring glibc
4963 # with a fresh cross-compiler works.
4964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4965 # <limits.h> exists even on freestanding compilers.
4966 # On the NeXT, cc -E runs the code through the compiler's parser,
4967 # not just through cpp. "Syntax error" is here to catch this case.
4968 cat >conftest.$ac_ext <<_ACEOF
4969/* confdefs.h. */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h. */
4974#ifdef __STDC__
4975# include <limits.h>
4976#else
4977# include <assert.h>
4978#endif
4979 Syntax error
4980_ACEOF
4981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } >/dev/null; then
4989 if test -s conftest.err; then
4990 ac_cpp_err=$ac_cxx_preproc_warn_flag
4991 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4992 else
4993 ac_cpp_err=
4994 fi
4995else
4996 ac_cpp_err=yes
4997fi
4998if test -z "$ac_cpp_err"; then
4999 :
5000else
5001 echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 # Broken: fails on valid input.
5005continue
5006fi
5007rm -f conftest.err conftest.$ac_ext
5008
5009 # OK, works on sane cases. Now check whether non-existent headers
5010 # can be detected and how.
5011 cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h. */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h. */
5017#include <ac_nonexistent.h>
5018_ACEOF
5019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } >/dev/null; then
5027 if test -s conftest.err; then
5028 ac_cpp_err=$ac_cxx_preproc_warn_flag
5029 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5030 else
5031 ac_cpp_err=
5032 fi
5033else
5034 ac_cpp_err=yes
5035fi
5036if test -z "$ac_cpp_err"; then
5037 # Broken: success on invalid input.
5038continue
5039else
5040 echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043 # Passes both tests.
5044ac_preproc_ok=:
5045break
5046fi
5047rm -f conftest.err conftest.$ac_ext
5048
5049done
5050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5051rm -f conftest.err conftest.$ac_ext
5052if $ac_preproc_ok; then
5053 break
5054fi
5055
5056 done
5057 ac_cv_prog_CXXCPP=$CXXCPP
5058
5059fi
5060 CXXCPP=$ac_cv_prog_CXXCPP
5061else
5062 ac_cv_prog_CXXCPP=$CXXCPP
5063fi
5064echo "$as_me:$LINENO: result: $CXXCPP" >&5
5065echo "${ECHO_T}$CXXCPP" >&6
5066ac_preproc_ok=false
5067for ac_cxx_preproc_warn_flag in '' yes
5068do
5069 # Use a header file that comes with gcc, so configuring glibc
5070 # with a fresh cross-compiler works.
5071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072 # <limits.h> exists even on freestanding compilers.
5073 # On the NeXT, cc -E runs the code through the compiler's parser,
5074 # not just through cpp. "Syntax error" is here to catch this case.
5075 cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h. */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h. */
5081#ifdef __STDC__
5082# include <limits.h>
5083#else
5084# include <assert.h>
5085#endif
5086 Syntax error
5087_ACEOF
5088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5090 ac_status=$?
5091 grep -v '^ *+' conftest.er1 >conftest.err
5092 rm -f conftest.er1
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } >/dev/null; then
5096 if test -s conftest.err; then
5097 ac_cpp_err=$ac_cxx_preproc_warn_flag
5098 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5099 else
5100 ac_cpp_err=
5101 fi
5102else
5103 ac_cpp_err=yes
5104fi
5105if test -z "$ac_cpp_err"; then
5106 :
5107else
5108 echo "$as_me: failed program was:" >&5
5109sed 's/^/| /' conftest.$ac_ext >&5
5110
5111 # Broken: fails on valid input.
5112continue
5113fi
5114rm -f conftest.err conftest.$ac_ext
5115
5116 # OK, works on sane cases. Now check whether non-existent headers
5117 # can be detected and how.
5118 cat >conftest.$ac_ext <<_ACEOF
5119/* confdefs.h. */
5120_ACEOF
5121cat confdefs.h >>conftest.$ac_ext
5122cat >>conftest.$ac_ext <<_ACEOF
5123/* end confdefs.h. */
5124#include <ac_nonexistent.h>
5125_ACEOF
5126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5128 ac_status=$?
5129 grep -v '^ *+' conftest.er1 >conftest.err
5130 rm -f conftest.er1
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } >/dev/null; then
5134 if test -s conftest.err; then
5135 ac_cpp_err=$ac_cxx_preproc_warn_flag
5136 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5137 else
5138 ac_cpp_err=
5139 fi
5140else
5141 ac_cpp_err=yes
5142fi
5143if test -z "$ac_cpp_err"; then
5144 # Broken: success on invalid input.
5145continue
5146else
5147 echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150 # Passes both tests.
5151ac_preproc_ok=:
5152break
5153fi
5154rm -f conftest.err conftest.$ac_ext
5155
5156done
5157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5158rm -f conftest.err conftest.$ac_ext
5159if $ac_preproc_ok; then
5160 :
5161else
5162 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5163See \`config.log' for more details." >&5
5164echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5165See \`config.log' for more details." >&2;}
5166 { (exit 1); exit 1; }; }
5167fi
5168
5169ac_ext=cc
5170ac_cpp='$CXXCPP $CPPFLAGS'
5171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5174
5175
5176ac_ext=f
5177ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5178ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5180if test -n "$ac_tool_prefix"; then
5181 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5182 do
5183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5185echo "$as_me:$LINENO: checking for $ac_word" >&5
5186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5187if test "${ac_cv_prog_F77+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190 if test -n "$F77"; then
5191 ac_cv_prog_F77="$F77" # Let the user override the test.
5192else
5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204done
5205done
5206
5207fi
5208fi
5209F77=$ac_cv_prog_F77
5210if test -n "$F77"; then
5211 echo "$as_me:$LINENO: result: $F77" >&5
5212echo "${ECHO_T}$F77" >&6
5213else
5214 echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
5216fi
5217
5218 test -n "$F77" && break
5219 done
5220fi
5221if test -z "$F77"; then
5222 ac_ct_F77=$F77
5223 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5224do
5225 # Extract the first word of "$ac_prog", so it can be a program name with args.
5226set dummy $ac_prog; ac_word=$2
5227echo "$as_me:$LINENO: checking for $ac_word" >&5
5228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232 if test -n "$ac_ct_F77"; then
5233 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5234else
5235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_ac_ct_F77="$ac_prog"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246done
5247done
5248
5249fi
5250fi
5251ac_ct_F77=$ac_cv_prog_ac_ct_F77
5252if test -n "$ac_ct_F77"; then
5253 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5254echo "${ECHO_T}$ac_ct_F77" >&6
5255else
5256 echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6
5258fi
5259
5260 test -n "$ac_ct_F77" && break
5261done
5262
5263 F77=$ac_ct_F77
5264fi
5265
5266
5267# Provide some information about the compiler.
5268echo "$as_me:5268:" \
5269 "checking for Fortran 77 compiler version" >&5
5270ac_compiler=`set X $ac_compile; echo $2`
5271{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5272 (eval $ac_compiler --version </dev/null >&5) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }
5276{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5277 (eval $ac_compiler -v </dev/null >&5) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }
5281{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5282 (eval $ac_compiler -V </dev/null >&5) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }
5286rm -f a.out
5287
5288# If we don't use `.F' as extension, the preprocessor is not run on the
5289# input file. (Note that this only needs to work for GNU compilers.)
5290ac_save_ext=$ac_ext
5291ac_ext=F
5292echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5293echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5294if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296else
5297 cat >conftest.$ac_ext <<_ACEOF
5298 program main
5299#ifndef __GNUC__
5300 choke me
5301#endif
5302
5303 end
5304_ACEOF
5305rm -f conftest.$ac_objext
5306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5307 (eval $ac_compile) 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -z "$ac_f77_werror_flag"
5315 || test ! -s conftest.err'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; } &&
5321 { ac_try='test -s conftest.$ac_objext'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 (eval $ac_try) 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; }; then
5327 ac_compiler_gnu=yes
5328else
5329 echo "$as_me: failed program was:" >&5
5330sed 's/^/| /' conftest.$ac_ext >&5
5331
5332ac_compiler_gnu=no
5333fi
5334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5335ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5336
5337fi
5338echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5339echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5340ac_ext=$ac_save_ext
5341ac_test_FFLAGS=${FFLAGS+set}
5342ac_save_FFLAGS=$FFLAGS
5343FFLAGS=
5344echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5345echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5346if test "${ac_cv_prog_f77_g+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349 FFLAGS=-g
5350cat >conftest.$ac_ext <<_ACEOF
5351 program main
5352
5353 end
5354_ACEOF
5355rm -f conftest.$ac_objext
5356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>conftest.er1
5358 ac_status=$?
5359 grep -v '^ *+' conftest.er1 >conftest.err
5360 rm -f conftest.er1
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -z "$ac_f77_werror_flag"
5365 || test ! -s conftest.err'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; } &&
5371 { ac_try='test -s conftest.$ac_objext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 (eval $ac_try) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5377 ac_cv_prog_f77_g=yes
5378else
5379 echo "$as_me: failed program was:" >&5
5380sed 's/^/| /' conftest.$ac_ext >&5
5381
5382ac_cv_prog_f77_g=no
5383fi
5384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5385
5386fi
5387echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5388echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5389if test "$ac_test_FFLAGS" = set; then
5390 FFLAGS=$ac_save_FFLAGS
5391elif test $ac_cv_prog_f77_g = yes; then
5392 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5393 FFLAGS="-g -O2"
5394 else
5395 FFLAGS="-g"
5396 fi
5397else
5398 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5399 FFLAGS="-O2"
5400 else
5401 FFLAGS=
5402 fi
5403fi
5404
5405G77=`test $ac_compiler_gnu = yes && echo yes`
5406ac_ext=c
5407ac_cpp='$CPP $CPPFLAGS'
5408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411
5412
5413
5414# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5415
5416# find the maximum length of command line arguments
5417echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5418echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5419if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421else
5422 i=0
5423 teststring="ABCD"
5424
5425 case $build_os in
5426 msdosdjgpp*)
5427 # On DJGPP, this test can blow up pretty badly due to problems in libc
5428 # (any single argument exceeding 2000 bytes causes a buffer overrun
5429 # during glob expansion). Even if it were fixed, the result of this
5430 # check would be larger than it should be.
5431 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5432 ;;
5433
5434 gnu*)
5435 # Under GNU Hurd, this test is not required because there is
5436 # no limit to the length of command line arguments.
5437 # Libtool will interpret -1 as no limit whatsoever
5438 lt_cv_sys_max_cmd_len=-1;
5439 ;;
5440
5441 cygwin* | mingw*)
5442 # On Win9x/ME, this test blows up -- it succeeds, but takes
5443 # about 5 minutes as the teststring grows exponentially.
5444 # Worse, since 9x/ME are not pre-emptively multitasking,
5445 # you end up with a "frozen" computer, even though with patience
5446 # the test eventually succeeds (with a max line length of 256k).
5447 # Instead, let's just punt: use the minimum linelength reported by
5448 # all of the supported platforms: 8192 (on NT/2K/XP).
5449 lt_cv_sys_max_cmd_len=8192;
5450 ;;
5451
5452 amigaos*)
5453 # On AmigaOS with pdksh, this test takes hours, literally.
5454 # So we just punt and use a minimum line length of 8192.
5455 lt_cv_sys_max_cmd_len=8192;
5456 ;;
5457
5458 *)
5459 # If test is not a shell built-in, we'll probably end up computing a
5460 # maximum length that is only half of the actual maximum length, but
5461 # we can't tell.
5462 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5463 = "XX$teststring") >/dev/null 2>&1 &&
5464 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5465 lt_cv_sys_max_cmd_len=$new_result &&
5466 test $i != 17 # 1/2 MB should be enough
5467 do
5468 i=`expr $i + 1`
5469 teststring=$teststring$teststring
5470 done
5471 teststring=
5472 # Add a significant safety factor because C++ compilers can tack on massive
5473 # amounts of additional arguments before passing them to the linker.
5474 # It appears as though 1/2 is a usable value.
5475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5476 ;;
5477 esac
5478
5479fi
5480
5481if test -n $lt_cv_sys_max_cmd_len ; then
5482 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5483echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5484else
5485 echo "$as_me:$LINENO: result: none" >&5
5486echo "${ECHO_T}none" >&6
5487fi
5488
5489
5490
5491
5492# Check for command to grab the raw symbol name followed by C symbol from nm.
5493echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5494echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5495if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
5498
5499# These are sane defaults that work on at least a few old systems.
5500# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5501
5502# Character class describing NM global symbol codes.
5503symcode='[BCDEGRST]'
5504
5505# Regexp to match symbols that can be accessed directly from C.
5506sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5507
5508# Transform the above into a raw symbol and a C symbol.
5509symxfrm='\1 \2\3 \3'
5510
5511# Transform an extracted symbol line into a proper C declaration
5512lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5513
5514# Transform an extracted symbol line into symbol name and symbol address
5515lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5516
5517# Define system-specific variables.
5518case $host_os in
5519aix*)
5520 symcode='[BCDT]'
5521 ;;
5522cygwin* | mingw* | pw32*)
5523 symcode='[ABCDGISTW]'
5524 ;;
5525hpux*) # Its linker distinguishes data from code symbols
5526 if test "$host_cpu" = ia64; then
5527 symcode='[ABCDEGRST]'
5528 fi
5529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5530 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'"
5531 ;;
5532irix* | nonstopux*)
5533 symcode='[BCDEGRST]'
5534 ;;
5535osf*)
5536 symcode='[BCDEGQRST]'
5537 ;;
5538solaris* | sysv5*)
5539 symcode='[BDRT]'
5540 ;;
5541sysv4)
5542 symcode='[DFNSTU]'
5543 ;;
5544esac
5545
5546# Handle CRLF in mingw tool chain
5547opt_cr=
5548case $build_os in
5549mingw*)
5550 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5551 ;;
5552esac
5553
5554# If we're using GNU nm, then use its standard symbol codes.
5555case `$NM -V 2>&1` in
5556*GNU* | *'with BFD'*)
5557 symcode='[ABCDGIRSTW]' ;;
5558esac
5559
5560# Try without a prefix undercore, then with it.
5561for ac_symprfx in "" "_"; do
5562
5563 # Write the raw and C identifiers.
5564 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5565
5566 # Check to see that the pipe works correctly.
5567 pipe_works=no
5568
5569 rm -f conftest*
5570 cat > conftest.$ac_ext <<EOF
5571#ifdef __cplusplus
5572extern "C" {
5573#endif
5574char nm_test_var;
5575void nm_test_func(){}
5576#ifdef __cplusplus
5577}
5578#endif
5579int main(){nm_test_var='a';nm_test_func();return(0);}
5580EOF
5581
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; then
5587 # Now try to grab the symbols.
5588 nlist=conftest.nm
5589 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5590 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && test -s "$nlist"; then
5594 # Try sorting and uniquifying the output.
5595 if sort "$nlist" | uniq > "$nlist"T; then
5596 mv -f "$nlist"T "$nlist"
5597 else
5598 rm -f "$nlist"T
5599 fi
5600
5601 # Make sure that we snagged all the symbols we need.
5602 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5603 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5604 cat <<EOF > conftest.$ac_ext
5605#ifdef __cplusplus
5606extern "C" {
5607#endif
5608
5609EOF
5610 # Now generate the symbol file.
5611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5612
5613 cat <<EOF >> conftest.$ac_ext
5614#if defined (__STDC__) && __STDC__
5615# define lt_ptr_t void *
5616#else
5617# define lt_ptr_t char *
5618# define const
5619#endif
5620
5621/* The mapping between symbol names and symbols. */
5622const struct {
5623 const char *name;
5624 lt_ptr_t address;
5625}
5626lt_preloaded_symbols[] =
5627{
5628EOF
5629 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5630 cat <<\EOF >> conftest.$ac_ext
5631 {0, (lt_ptr_t) 0}
5632};
5633
5634#ifdef __cplusplus
5635}
5636#endif
5637EOF
5638 # Now try linking the two files.
5639 mv conftest.$ac_objext conftstm.$ac_objext
5640 lt_save_LIBS="$LIBS"
5641 lt_save_CFLAGS="$CFLAGS"
5642 LIBS="conftstm.$ac_objext"
5643 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645 (eval $ac_link) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5649 pipe_works=yes
5650 fi
5651 LIBS="$lt_save_LIBS"
5652 CFLAGS="$lt_save_CFLAGS"
5653 else
5654 echo "cannot find nm_test_func in $nlist" >&5
5655 fi
5656 else
5657 echo "cannot find nm_test_var in $nlist" >&5
5658 fi
5659 else
5660 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5661 fi
5662 else
5663 echo "$progname: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5665 fi
5666 rm -f conftest* conftst*
5667
5668 # Do not use the global_symbol_pipe unless it works.
5669 if test "$pipe_works" = yes; then
5670 break
5671 else
5672 lt_cv_sys_global_symbol_pipe=
5673 fi
5674done
5675
5676fi
5677
5678if test -z "$lt_cv_sys_global_symbol_pipe"; then
5679 lt_cv_sys_global_symbol_to_cdecl=
5680fi
5681if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5682 echo "$as_me:$LINENO: result: failed" >&5
5683echo "${ECHO_T}failed" >&6
5684else
5685 echo "$as_me:$LINENO: result: ok" >&5
5686echo "${ECHO_T}ok" >&6
5687fi
5688
5689echo "$as_me:$LINENO: checking for objdir" >&5
5690echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5691if test "${lt_cv_objdir+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693else
5694 rm -f .libs 2>/dev/null
5695mkdir .libs 2>/dev/null
5696if test -d .libs; then
5697 lt_cv_objdir=.libs
5698else
5699 # MS-DOS does not allow filenames that begin with a dot.
5700 lt_cv_objdir=_libs
5701fi
5702rmdir .libs 2>/dev/null
5703fi
5704echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5705echo "${ECHO_T}$lt_cv_objdir" >&6
5706objdir=$lt_cv_objdir
5707
5708
5709
5710
5711
5712case $host_os in
5713aix3*)
5714 # AIX sometimes has problems with the GCC collect2 program. For some
5715 # reason, if we set the COLLECT_NAMES environment variable, the problems
5716 # vanish in a puff of smoke.
5717 if test "X${COLLECT_NAMES+set}" != Xset; then
5718 COLLECT_NAMES=
5719 export COLLECT_NAMES
5720 fi
5721 ;;
5722esac
5723
5724# Sed substitution that helps us do robust quoting. It backslashifies
5725# metacharacters that are still active within double-quoted strings.
5726Xsed='sed -e s/^X//'
5727sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5728
5729# Same as above, but do not quote variable references.
5730double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5731
5732# Sed substitution to delay expansion of an escaped shell variable in a
5733# double_quote_subst'ed string.
5734delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5735
5736# Sed substitution to avoid accidental globbing in evaled expressions
5737no_glob_subst='s/\*/\\\*/g'
5738
5739# Constants:
5740rm="rm -f"
5741
5742# Global variables:
5743default_ofile=libtool
5744can_build_shared=yes
5745
5746# All known linkers require a `.a' archive for static linking (except M$VC,
5747# which needs '.lib').
5748libext=a
5749ltmain="$ac_aux_dir/ltmain.sh"
5750ofile="$default_ofile"
5751with_gnu_ld="$lt_cv_prog_gnu_ld"
5752
5753if test -n "$ac_tool_prefix"; then
5754 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5755set dummy ${ac_tool_prefix}ar; ac_word=$2
5756echo "$as_me:$LINENO: checking for $ac_word" >&5
5757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758if test "${ac_cv_prog_AR+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761 if test -n "$AR"; then
5762 ac_cv_prog_AR="$AR" # Let the user override the test.
5763else
5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_AR="${ac_tool_prefix}ar"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5774 fi
5775done
5776done
5777
5778fi
5779fi
5780AR=$ac_cv_prog_AR
5781if test -n "$AR"; then
5782 echo "$as_me:$LINENO: result: $AR" >&5
5783echo "${ECHO_T}$AR" >&6
5784else
5785 echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6
5787fi
5788
5789fi
5790if test -z "$ac_cv_prog_AR"; then
5791 ac_ct_AR=$AR
5792 # Extract the first word of "ar", so it can be a program name with args.
5793set dummy ar; ac_word=$2
5794echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799 if test -n "$ac_ct_AR"; then
5800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5801else
5802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_AR="ar"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814done
5815
5816 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5817fi
5818fi
5819ac_ct_AR=$ac_cv_prog_ac_ct_AR
5820if test -n "$ac_ct_AR"; then
5821 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5822echo "${ECHO_T}$ac_ct_AR" >&6
5823else
5824 echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6
5826fi
5827
5828 AR=$ac_ct_AR
5829else
5830 AR="$ac_cv_prog_AR"
5831fi
5832
5833if test -n "$ac_tool_prefix"; then
5834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5835set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5836echo "$as_me:$LINENO: checking for $ac_word" >&5
5837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838if test "${ac_cv_prog_RANLIB+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841 if test -n "$RANLIB"; then
5842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855done
5856done
5857
5858fi
5859fi
5860RANLIB=$ac_cv_prog_RANLIB
5861if test -n "$RANLIB"; then
5862 echo "$as_me:$LINENO: result: $RANLIB" >&5
5863echo "${ECHO_T}$RANLIB" >&6
5864else
5865 echo "$as_me:$LINENO: result: no" >&5
5866echo "${ECHO_T}no" >&6
5867fi
5868
5869fi
5870if test -z "$ac_cv_prog_RANLIB"; then
5871 ac_ct_RANLIB=$RANLIB
5872 # Extract the first word of "ranlib", so it can be a program name with args.
5873set dummy ranlib; ac_word=$2
5874echo "$as_me:$LINENO: checking for $ac_word" >&5
5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 if test -n "$ac_ct_RANLIB"; then
5880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_ac_ct_RANLIB="ranlib"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893done
5894done
5895
5896 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5897fi
5898fi
5899ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5900if test -n "$ac_ct_RANLIB"; then
5901 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5902echo "${ECHO_T}$ac_ct_RANLIB" >&6
5903else
5904 echo "$as_me:$LINENO: result: no" >&5
5905echo "${ECHO_T}no" >&6
5906fi
5907
5908 RANLIB=$ac_ct_RANLIB
5909else
5910 RANLIB="$ac_cv_prog_RANLIB"
5911fi
5912
5913if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5915set dummy ${ac_tool_prefix}strip; ac_word=$2
5916echo "$as_me:$LINENO: checking for $ac_word" >&5
5917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918if test "${ac_cv_prog_STRIP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921 if test -n "$STRIP"; then
5922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936done
5937
5938fi
5939fi
5940STRIP=$ac_cv_prog_STRIP
5941if test -n "$STRIP"; then
5942 echo "$as_me:$LINENO: result: $STRIP" >&5
5943echo "${ECHO_T}$STRIP" >&6
5944else
5945 echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6
5947fi
5948
5949fi
5950if test -z "$ac_cv_prog_STRIP"; then
5951 ac_ct_STRIP=$STRIP
5952 # Extract the first word of "strip", so it can be a program name with args.
5953set dummy strip; ac_word=$2
5954echo "$as_me:$LINENO: checking for $ac_word" >&5
5955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959 if test -n "$ac_ct_STRIP"; then
5960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5961else
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_ac_ct_STRIP="strip"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5972 fi
5973done
5974done
5975
5976 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5977fi
5978fi
5979ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5980if test -n "$ac_ct_STRIP"; then
5981 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5982echo "${ECHO_T}$ac_ct_STRIP" >&6
5983else
5984 echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
5986fi
5987
5988 STRIP=$ac_ct_STRIP
5989else
5990 STRIP="$ac_cv_prog_STRIP"
5991fi
5992
5993
5994old_CC="$CC"
5995old_CFLAGS="$CFLAGS"
5996
5997# Set sane defaults for various variables
5998test -z "$AR" && AR=ar
5999test -z "$AR_FLAGS" && AR_FLAGS=cru
6000test -z "$AS" && AS=as
6001test -z "$CC" && CC=cc
6002test -z "$LTCC" && LTCC=$CC
6003test -z "$DLLTOOL" && DLLTOOL=dlltool
6004test -z "$LD" && LD=ld
6005test -z "$LN_S" && LN_S="ln -s"
6006test -z "$MAGIC_CMD" && MAGIC_CMD=file
6007test -z "$NM" && NM=nm
6008test -z "$SED" && SED=sed
6009test -z "$OBJDUMP" && OBJDUMP=objdump
6010test -z "$RANLIB" && RANLIB=:
6011test -z "$STRIP" && STRIP=:
6012test -z "$ac_objext" && ac_objext=o
6013
6014# Determine commands to create old-style static archives.
6015old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6016old_postinstall_cmds='chmod 644 $oldlib'
6017old_postuninstall_cmds=
6018
6019if test -n "$RANLIB"; then
6020 case $host_os in
6021 openbsd*)
6022 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6023 ;;
6024 *)
6025 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6026 ;;
6027 esac
6028 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6029fi
6030
6031# Only perform the check for file, if the check method requires it
6032case $deplibs_check_method in
6033file_magic*)
6034 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6035 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6036echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6037if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040 case $MAGIC_CMD in
6041[\\/*] | ?:[\\/]*)
6042 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6043 ;;
6044*)
6045 lt_save_MAGIC_CMD="$MAGIC_CMD"
6046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6047 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6048 for ac_dir in $ac_dummy; do
6049 IFS="$lt_save_ifs"
6050 test -z "$ac_dir" && ac_dir=.
6051 if test -f $ac_dir/${ac_tool_prefix}file; then
6052 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6053 if test -n "$file_magic_test_file"; then
6054 case $deplibs_check_method in
6055 "file_magic "*)
6056 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6058 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6059 $EGREP "$file_magic_regex" > /dev/null; then
6060 :
6061 else
6062 cat <<EOF 1>&2
6063
6064*** Warning: the command libtool uses to detect shared libraries,
6065*** $file_magic_cmd, produces output that libtool cannot recognize.
6066*** The result is that libtool may fail to recognize shared libraries
6067*** as such. This will affect the creation of libtool libraries that
6068*** depend on shared libraries, but programs linked with such libtool
6069*** libraries will work regardless of this problem. Nevertheless, you
6070*** may want to report the problem to your system manager and/or to
6071*** bug-libtool@gnu.org
6072
6073EOF
6074 fi ;;
6075 esac
6076 fi
6077 break
6078 fi
6079 done
6080 IFS="$lt_save_ifs"
6081 MAGIC_CMD="$lt_save_MAGIC_CMD"
6082 ;;
6083esac
6084fi
6085
6086MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6087if test -n "$MAGIC_CMD"; then
6088 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6089echo "${ECHO_T}$MAGIC_CMD" >&6
6090else
6091 echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
6093fi
6094
6095if test -z "$lt_cv_path_MAGIC_CMD"; then
6096 if test -n "$ac_tool_prefix"; then
6097 echo "$as_me:$LINENO: checking for file" >&5
6098echo $ECHO_N "checking for file... $ECHO_C" >&6
6099if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101else
6102 case $MAGIC_CMD in
6103[\\/*] | ?:[\\/]*)
6104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6105 ;;
6106*)
6107 lt_save_MAGIC_CMD="$MAGIC_CMD"
6108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6110 for ac_dir in $ac_dummy; do
6111 IFS="$lt_save_ifs"
6112 test -z "$ac_dir" && ac_dir=.
6113 if test -f $ac_dir/file; then
6114 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6115 if test -n "$file_magic_test_file"; then
6116 case $deplibs_check_method in
6117 "file_magic "*)
6118 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6121 $EGREP "$file_magic_regex" > /dev/null; then
6122 :
6123 else
6124 cat <<EOF 1>&2
6125
6126*** Warning: the command libtool uses to detect shared libraries,
6127*** $file_magic_cmd, produces output that libtool cannot recognize.
6128*** The result is that libtool may fail to recognize shared libraries
6129*** as such. This will affect the creation of libtool libraries that
6130*** depend on shared libraries, but programs linked with such libtool
6131*** libraries will work regardless of this problem. Nevertheless, you
6132*** may want to report the problem to your system manager and/or to
6133*** bug-libtool@gnu.org
6134
6135EOF
6136 fi ;;
6137 esac
6138 fi
6139 break
6140 fi
6141 done
6142 IFS="$lt_save_ifs"
6143 MAGIC_CMD="$lt_save_MAGIC_CMD"
6144 ;;
6145esac
6146fi
6147
6148MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6149if test -n "$MAGIC_CMD"; then
6150 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6151echo "${ECHO_T}$MAGIC_CMD" >&6
6152else
6153 echo "$as_me:$LINENO: result: no" >&5
6154echo "${ECHO_T}no" >&6
6155fi
6156
6157 else
6158 MAGIC_CMD=:
6159 fi
6160fi
6161
6162 fi
6163 ;;
6164esac
6165
6166enable_dlopen=no
6167enable_win32_dll=no
6168
6169# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6170if test "${enable_libtool_lock+set}" = set; then
6171 enableval="$enable_libtool_lock"
6172
6173fi;
6174test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6175
6176
6177# Check whether --with-pic or --without-pic was given.
6178if test "${with_pic+set}" = set; then
6179 withval="$with_pic"
6180 pic_mode="$withval"
6181else
6182 pic_mode=default
6183fi;
6184test -z "$pic_mode" && pic_mode=default
6185
6186# Use C for the default configuration in the libtool script
6187tagname=
6188lt_save_CC="$CC"
6189ac_ext=c
6190ac_cpp='$CPP $CPPFLAGS'
6191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194
6195
6196# Source file extension for C test sources.
6197ac_ext=c
6198
6199# Object file extension for compiled C test sources.
6200objext=o
6201objext=$objext
6202
6203# Code to be used in simple compile tests
6204lt_simple_compile_test_code="int some_variable = 0;\n"
6205
6206# Code to be used in simple link tests
6207lt_simple_link_test_code='int main(){return(0);}\n'
6208
6209
6210# If no C compiler was specified, use CC.
6211LTCC=${LTCC-"$CC"}
6212
6213# Allow CC to be a program name with arguments.
6214compiler=$CC
6215
6216
6217#
6218# Check for any special shared library compilation flags.
6219#
6220lt_prog_cc_shlib=
6221if test "$GCC" = no; then
6222 case $host_os in
6223 sco3.2v5*)
6224 lt_prog_cc_shlib='-belf'
6225 ;;
6226 esac
6227fi
6228if test -n "$lt_prog_cc_shlib"; then
6229 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6230echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6231 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6232 else
6233 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6234echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6235 lt_cv_prog_cc_can_build_shared=no
6236 fi
6237fi
6238
6239
6240#
6241# Check to make sure the static flag actually works.
6242#
6243echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6244echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6245if test "${lt_prog_compiler_static_works+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247else
6248 lt_prog_compiler_static_works=no
6249 save_LDFLAGS="$LDFLAGS"
6250 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6251 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6252 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6253 # The compiler can only warn and ignore the option if not recognized
6254 # So say no if there are warnings
6255 if test -s conftest.err; then
6256 # Append any errors to the config.log.
6257 cat conftest.err 1>&5
6258 else
6259 lt_prog_compiler_static_works=yes
6260 fi
6261 fi
6262 $rm conftest*
6263 LDFLAGS="$save_LDFLAGS"
6264
6265fi
6266echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6267echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6268
6269if test x"$lt_prog_compiler_static_works" = xyes; then
6270 :
6271else
6272 lt_prog_compiler_static=
6273fi
6274
6275
6276
6277
6278lt_prog_compiler_no_builtin_flag=
6279
6280if test "$GCC" = yes; then
6281 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6282
6283
6284echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6285echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6286if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288else
6289 lt_cv_prog_compiler_rtti_exceptions=no
6290 ac_outfile=conftest.$ac_objext
6291 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6292 lt_compiler_flag="-fno-rtti -fno-exceptions"
6293 # Insert the option either (1) after the last *FLAGS variable, or
6294 # (2) before a word containing "conftest.", or (3) at the end.
6295 # Note that $ac_compile itself does not contain backslashes and begins
6296 # with a dollar sign (not a hyphen), so the echo should work correctly.
6297 # The option is referenced via a variable to avoid confusing sed.
6298 lt_compile=`echo "$ac_compile" | $SED \
6299 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6301 -e 's:$: $lt_compiler_flag:'`
6302 (eval echo "\"\$as_me:6302: $lt_compile\"" >&5)
6303 (eval "$lt_compile" 2>conftest.err)
6304 ac_status=$?
6305 cat conftest.err >&5
6306 echo "$as_me:6306: \$? = $ac_status" >&5
6307 if (exit $ac_status) && test -s "$ac_outfile"; then
6308 # The compiler can only warn and ignore the option if not recognized
6309 # So say no if there are warnings
6310 if test ! -s conftest.err; then
6311 lt_cv_prog_compiler_rtti_exceptions=yes
6312 fi
6313 fi
6314 $rm conftest*
6315
6316fi
6317echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6318echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6319
6320if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6321 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6322else
6323 :
6324fi
6325
6326fi
6327
6328lt_prog_compiler_wl=
6329lt_prog_compiler_pic=
6330lt_prog_compiler_static=
6331
6332echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6333echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6334
6335 if test "$GCC" = yes; then
6336 lt_prog_compiler_wl='-Wl,'
6337 lt_prog_compiler_static='-static'
6338
6339 case $host_os in
6340 aix*)
6341 # All AIX code is PIC.
6342 if test "$host_cpu" = ia64; then
6343 # AIX 5 now supports IA64 processor
6344 lt_prog_compiler_static='-Bstatic'
6345 fi
6346 ;;
6347
6348 amigaos*)
6349 # FIXME: we need at least 68020 code to build shared libraries, but
6350 # adding the `-m68020' flag to GCC prevents building anything better,
6351 # like `-m68040'.
6352 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6353 ;;
6354
6355 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6356 # PIC is the default for these OSes.
6357 ;;
6358
6359 mingw* | pw32* | os2*)
6360 # This hack is so that the source file can tell whether it is being
6361 # built for inclusion in a dll (and should export symbols for example).
6362 lt_prog_compiler_pic='-DDLL_EXPORT'
6363 ;;
6364
6365 darwin* | rhapsody*)
6366 # PIC is the default on this platform
6367 # Common symbols not allowed in MH_DYLIB files
6368 lt_prog_compiler_pic='-fno-common'
6369 ;;
6370
6371 msdosdjgpp*)
6372 # Just because we use GCC doesn't mean we suddenly get shared libraries
6373 # on systems that don't support them.
6374 lt_prog_compiler_can_build_shared=no
6375 enable_shared=no
6376 ;;
6377
6378 sysv4*MP*)
6379 if test -d /usr/nec; then
6380 lt_prog_compiler_pic=-Kconform_pic
6381 fi
6382 ;;
6383
6384 hpux*)
6385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6386 # not for PA HP-UX.
6387 case "$host_cpu" in
6388 hppa*64*|ia64*)
6389 # +Z the default
6390 ;;
6391 *)
6392 lt_prog_compiler_pic='-fPIC'
6393 ;;
6394 esac
6395 ;;
6396
6397 *)
6398 lt_prog_compiler_pic='-fPIC'
6399 ;;
6400 esac
6401 else
6402 # PORTME Check for flag to pass linker flags through the system compiler.
6403 case $host_os in
6404 aix*)
6405 lt_prog_compiler_wl='-Wl,'
6406 if test "$host_cpu" = ia64; then
6407 # AIX 5 now supports IA64 processor
6408 lt_prog_compiler_static='-Bstatic'
6409 else
6410 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6411 fi
6412 ;;
6413
6414 mingw* | pw32* | os2*)
6415 # This hack is so that the source file can tell whether it is being
6416 # built for inclusion in a dll (and should export symbols for example).
6417 lt_prog_compiler_pic='-DDLL_EXPORT'
6418 ;;
6419
6420 hpux9* | hpux10* | hpux11*)
6421 lt_prog_compiler_wl='-Wl,'
6422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6423 # not for PA HP-UX.
6424 case "$host_cpu" in
6425 hppa*64*|ia64*)
6426 # +Z the default
6427 ;;
6428 *)
6429 lt_prog_compiler_pic='+Z'
6430 ;;
6431 esac
6432 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6433 lt_prog_compiler_static='${wl}-a ${wl}archive'
6434 ;;
6435
6436 irix5* | irix6* | nonstopux*)
6437 lt_prog_compiler_wl='-Wl,'
6438 # PIC (with -KPIC) is the default.
6439 lt_prog_compiler_static='-non_shared'
6440 ;;
6441
6442 newsos6)
6443 lt_prog_compiler_pic='-KPIC'
6444 lt_prog_compiler_static='-Bstatic'
6445 ;;
6446
6447 linux*)
6448 case $CC in
6449 icc* | ecc*)
6450 lt_prog_compiler_wl='-Wl,'
6451 lt_prog_compiler_pic='-KPIC'
6452 lt_prog_compiler_static='-static'
6453 ;;
6454 ccc*)
6455 lt_prog_compiler_wl='-Wl,'
6456 # All Alpha code is PIC.
6457 lt_prog_compiler_static='-non_shared'
6458 ;;
6459 esac
6460 ;;
6461
6462 osf3* | osf4* | osf5*)
6463 lt_prog_compiler_wl='-Wl,'
6464 # All OSF/1 code is PIC.
6465 lt_prog_compiler_static='-non_shared'
6466 ;;
6467
6468 sco3.2v5*)
6469 lt_prog_compiler_pic='-Kpic'
6470 lt_prog_compiler_static='-dn'
6471 ;;
6472
6473 solaris*)
6474 lt_prog_compiler_wl='-Wl,'
6475 lt_prog_compiler_pic='-KPIC'
6476 lt_prog_compiler_static='-Bstatic'
6477 ;;
6478
6479 sunos4*)
6480 lt_prog_compiler_wl='-Qoption ld '
6481 lt_prog_compiler_pic='-PIC'
6482 lt_prog_compiler_static='-Bstatic'
6483 ;;
6484
6485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6486 lt_prog_compiler_wl='-Wl,'
6487 lt_prog_compiler_pic='-KPIC'
6488 lt_prog_compiler_static='-Bstatic'
6489 ;;
6490
6491 sysv4*MP*)
6492 if test -d /usr/nec ;then
6493 lt_prog_compiler_pic='-Kconform_pic'
6494 lt_prog_compiler_static='-Bstatic'
6495 fi
6496 ;;
6497
6498 uts4*)
6499 lt_prog_compiler_pic='-pic'
6500 lt_prog_compiler_static='-Bstatic'
6501 ;;
6502
6503 *)
6504 lt_prog_compiler_can_build_shared=no
6505 ;;
6506 esac
6507 fi
6508
6509echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6510echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6511
6512#
6513# Check to make sure the PIC flag actually works.
6514#
6515if test -n "$lt_prog_compiler_pic"; then
6516
6517echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6518echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6519if test "${lt_prog_compiler_pic_works+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521else
6522 lt_prog_compiler_pic_works=no
6523 ac_outfile=conftest.$ac_objext
6524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6525 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6526 # Insert the option either (1) after the last *FLAGS variable, or
6527 # (2) before a word containing "conftest.", or (3) at the end.
6528 # Note that $ac_compile itself does not contain backslashes and begins
6529 # with a dollar sign (not a hyphen), so the echo should work correctly.
6530 # The option is referenced via a variable to avoid confusing sed.
6531 lt_compile=`echo "$ac_compile" | $SED \
6532 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6534 -e 's:$: $lt_compiler_flag:'`
6535 (eval echo "\"\$as_me:6535: $lt_compile\"" >&5)
6536 (eval "$lt_compile" 2>conftest.err)
6537 ac_status=$?
6538 cat conftest.err >&5
6539 echo "$as_me:6539: \$? = $ac_status" >&5
6540 if (exit $ac_status) && test -s "$ac_outfile"; then
6541 # The compiler can only warn and ignore the option if not recognized
6542 # So say no if there are warnings
6543 if test ! -s conftest.err; then
6544 lt_prog_compiler_pic_works=yes
6545 fi
6546 fi
6547 $rm conftest*
6548
6549fi
6550echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6551echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6552
6553if test x"$lt_prog_compiler_pic_works" = xyes; then
6554 case $lt_prog_compiler_pic in
6555 "" | " "*) ;;
6556 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6557 esac
6558else
6559 lt_prog_compiler_pic=
6560 lt_prog_compiler_can_build_shared=no
6561fi
6562
6563fi
6564case "$host_os" in
6565 # For platforms which do not support PIC, -DPIC is meaningless:
6566 *djgpp*)
6567 lt_prog_compiler_pic=
6568 ;;
6569 *)
6570 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6571 ;;
6572esac
6573
6574echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6575echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6576if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579 lt_cv_prog_compiler_c_o=no
6580 $rm -r conftest 2>/dev/null
6581 mkdir conftest
6582 cd conftest
6583 mkdir out
6584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6585
6586 lt_compiler_flag="-o out/conftest2.$ac_objext"
6587 # Insert the option either (1) after the last *FLAGS variable, or
6588 # (2) before a word containing "conftest.", or (3) at the end.
6589 # Note that $ac_compile itself does not contain backslashes and begins
6590 # with a dollar sign (not a hyphen), so the echo should work correctly.
6591 lt_compile=`echo "$ac_compile" | $SED \
6592 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6594 -e 's:$: $lt_compiler_flag:'`
6595 (eval echo "\"\$as_me:6595: $lt_compile\"" >&5)
6596 (eval "$lt_compile" 2>out/conftest.err)
6597 ac_status=$?
6598 cat out/conftest.err >&5
6599 echo "$as_me:6599: \$? = $ac_status" >&5
6600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6601 then
6602 # The compiler can only warn and ignore the option if not recognized
6603 # So say no if there are warnings
6604 if test ! -s out/conftest.err; then
6605 lt_cv_prog_compiler_c_o=yes
6606 fi
6607 fi
6608 chmod u+w .
6609 $rm conftest*
6610 # SGI C++ compiler will create directory out/ii_files/ for
6611 # template instantiation
6612 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6613 $rm out/* && rmdir out
6614 cd ..
6615 rmdir conftest
6616 $rm conftest*
6617
6618fi
6619echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6620echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6621
6622
6623hard_links="nottested"
6624if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6625 # do not overwrite the value of need_locks provided by the user
6626 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6627echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6628 hard_links=yes
6629 $rm conftest*
6630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6631 touch conftest.a
6632 ln conftest.a conftest.b 2>&5 || hard_links=no
6633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6634 echo "$as_me:$LINENO: result: $hard_links" >&5
6635echo "${ECHO_T}$hard_links" >&6
6636 if test "$hard_links" = no; then
6637 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6638echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6639 need_locks=warn
6640 fi
6641else
6642 need_locks=no
6643fi
6644
6645echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6646echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6647
6648 runpath_var=
6649 allow_undefined_flag=
6650 enable_shared_with_static_runtimes=no
6651 archive_cmds=
6652 archive_expsym_cmds=
6653 old_archive_From_new_cmds=
6654 old_archive_from_expsyms_cmds=
6655 export_dynamic_flag_spec=
6656 whole_archive_flag_spec=
6657 thread_safe_flag_spec=
6658 hardcode_libdir_flag_spec=
6659 hardcode_libdir_flag_spec_ld=
6660 hardcode_libdir_separator=
6661 hardcode_direct=no
6662 hardcode_minus_L=no
6663 hardcode_shlibpath_var=unsupported
6664 link_all_deplibs=unknown
6665 hardcode_automatic=no
6666 module_cmds=
6667 module_expsym_cmds=
6668 always_export_symbols=no
6669 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6670 # include_expsyms should be a list of space-separated symbols to be *always*
6671 # included in the symbol list
6672 include_expsyms=
6673 # exclude_expsyms can be an extended regexp of symbols to exclude
6674 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6675 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6676 # as well as any symbol that contains `d'.
6677 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6678 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6679 # platforms (ab)use it in PIC code, but their linkers get confused if
6680 # the symbol is explicitly referenced. Since portable code cannot
6681 # rely on this symbol name, it's probably fine to never include it in
6682 # preloaded symbol tables.
6683 extract_expsyms_cmds=
6684
6685 case $host_os in
6686 cygwin* | mingw* | pw32*)
6687 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6688 # When not using gcc, we currently assume that we are using
6689 # Microsoft Visual C++.
6690 if test "$GCC" != yes; then
6691 with_gnu_ld=no
6692 fi
6693 ;;
6694 openbsd*)
6695 with_gnu_ld=no
6696 ;;
6697 esac
6698
6699 ld_shlibs=yes
6700 if test "$with_gnu_ld" = yes; then
6701 # If archive_cmds runs LD, not CC, wlarc should be empty
6702 wlarc='${wl}'
6703
6704 # See if GNU ld supports shared libraries.
6705 case $host_os in
6706 aix3* | aix4* | aix5*)
6707 # On AIX/PPC, the GNU linker is very broken
6708 if test "$host_cpu" != ia64; then
6709 ld_shlibs=no
6710 cat <<EOF 1>&2
6711
6712*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6713*** to be unable to reliably create shared libraries on AIX.
6714*** Therefore, libtool is disabling shared libraries support. If you
6715*** really care for shared libraries, you may want to modify your PATH
6716*** so that a non-GNU linker is found, and then restart.
6717
6718EOF
6719 fi
6720 ;;
6721
6722 amigaos*)
6723 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)'
6724 hardcode_libdir_flag_spec='-L$libdir'
6725 hardcode_minus_L=yes
6726
6727 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6728 # that the semantics of dynamic libraries on AmigaOS, at least up
6729 # to version 4, is to share data among multiple programs linked
6730 # with the same dynamic library. Since this doesn't match the
6731 # behavior of shared libraries on other platforms, we can't use
6732 # them.
6733 ld_shlibs=no
6734 ;;
6735
6736 beos*)
6737 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6738 allow_undefined_flag=unsupported
6739 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6740 # support --undefined. This deserves some investigation. FIXME
6741 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6742 else
6743 ld_shlibs=no
6744 fi
6745 ;;
6746
6747 cygwin* | mingw* | pw32*)
6748 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6749 # as there is no search path for DLLs.
6750 hardcode_libdir_flag_spec='-L$libdir'
6751 allow_undefined_flag=unsupported
6752 always_export_symbols=no
6753 enable_shared_with_static_runtimes=yes
6754 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6755
6756 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6758 # If the export-symbols file already is a .def file (1st line
6759 # is EXPORTS), use it as is; otherwise, prepend...
6760 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6761 cp $export_symbols $output_objdir/$soname.def;
6762 else
6763 echo EXPORTS > $output_objdir/$soname.def;
6764 cat $export_symbols >> $output_objdir/$soname.def;
6765 fi~
6766 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6767 else
6768 ld_shlibs=no
6769 fi
6770 ;;
6771
6772 netbsd*)
6773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6774 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6775 wlarc=
6776 else
6777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6779 fi
6780 ;;
6781
6782 solaris* | sysv5*)
6783 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6784 ld_shlibs=no
6785 cat <<EOF 1>&2
6786
6787*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6788*** create shared libraries on Solaris systems. Therefore, libtool
6789*** is disabling shared libraries support. We urge you to upgrade GNU
6790*** binutils to release 2.9.1 or newer. Another option is to modify
6791*** your PATH or compiler configuration so that the native linker is
6792*** used, and then restart.
6793
6794EOF
6795 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6798 else
6799 ld_shlibs=no
6800 fi
6801 ;;
6802
6803 sunos4*)
6804 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6805 wlarc=
6806 hardcode_direct=yes
6807 hardcode_shlibpath_var=no
6808 ;;
6809
6810 linux*)
6811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6812 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6813 archive_cmds="$tmp_archive_cmds"
6814 supports_anon_versioning=no
6815 case `$LD -v 2>/dev/null` in
6816 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6817 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6818 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6819 *\ 2.11.*) ;; # other 2.11 versions
6820 *) supports_anon_versioning=yes ;;
6821 esac
6822 if test $supports_anon_versioning = yes; then
6823 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6824cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6825$echo "local: *; };" >> $output_objdir/$libname.ver~
6826 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6827 else
6828 archive_expsym_cmds="$tmp_archive_cmds"
6829 fi
6830 else
6831 ld_shlibs=no
6832 fi
6833 ;;
6834
6835 *)
6836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6839 else
6840 ld_shlibs=no
6841 fi
6842 ;;
6843 esac
6844
6845 if test "$ld_shlibs" = yes; then
6846 runpath_var=LD_RUN_PATH
6847 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6848 export_dynamic_flag_spec='${wl}--export-dynamic'
6849 # ancient GNU ld didn't support --whole-archive et. al.
6850 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6851 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6852 else
6853 whole_archive_flag_spec=
6854 fi
6855 fi
6856 else
6857 # PORTME fill in a description of your system's linker (not GNU ld)
6858 case $host_os in
6859 aix3*)
6860 allow_undefined_flag=unsupported
6861 always_export_symbols=yes
6862 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'
6863 # Note: this linker hardcodes the directories in LIBPATH if there
6864 # are no directories specified by -L.
6865 hardcode_minus_L=yes
6866 if test "$GCC" = yes && test -z "$link_static_flag"; then
6867 # Neither direct hardcoding nor static linking is supported with a
6868 # broken collect2.
6869 hardcode_direct=unsupported
6870 fi
6871 ;;
6872
6873 aix4* | aix5*)
6874 if test "$host_cpu" = ia64; then
6875 # On IA64, the linker does run time linking by default, so we don't
6876 # have to do anything special.
6877 aix_use_runtimelinking=no
6878 exp_sym_flag='-Bexport'
6879 no_entry_flag=""
6880 else
6881 # If we're using GNU nm, then we don't want the "-C" option.
6882 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6883 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6884 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'
6885 else
6886 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'
6887 fi
6888 aix_use_runtimelinking=no
6889
6890 # Test if we are trying to use run time linking or normal
6891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6892 # need to do runtime linking.
6893 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6894 for ld_flag in $LDFLAGS; do
6895 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6896 aix_use_runtimelinking=yes
6897 break
6898 fi
6899 done
6900 esac
6901
6902 exp_sym_flag='-bexport'
6903 no_entry_flag='-bnoentry'
6904 fi
6905
6906 # When large executables or shared objects are built, AIX ld can
6907 # have problems creating the table of contents. If linking a library
6908 # or program results in "error TOC overflow" add -mminimal-toc to
6909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6911
6912 archive_cmds=''
6913 hardcode_direct=yes
6914 hardcode_libdir_separator=':'
6915 link_all_deplibs=yes
6916
6917 if test "$GCC" = yes; then
6918 case $host_os in aix4.012|aix4.012.*)
6919 # We only want to do this on AIX 4.2 and lower, the check
6920 # below for broken collect2 doesn't work under 4.3+
6921 collect2name=`${CC} -print-prog-name=collect2`
6922 if test -f "$collect2name" && \
6923 strings "$collect2name" | grep resolve_lib_name >/dev/null
6924 then
6925 # We have reworked collect2
6926 hardcode_direct=yes
6927 else
6928 # We have old collect2
6929 hardcode_direct=unsupported
6930 # It fails to find uninstalled libraries when the uninstalled
6931 # path is not listed in the libpath. Setting hardcode_minus_L
6932 # to unsupported forces relinking
6933 hardcode_minus_L=yes
6934 hardcode_libdir_flag_spec='-L$libdir'
6935 hardcode_libdir_separator=
6936 fi
6937 esac
6938 shared_flag='-shared'
6939 else
6940 # not using gcc
6941 if test "$host_cpu" = ia64; then
6942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6943 # chokes on -Wl,-G. The following line is correct:
6944 shared_flag='-G'
6945 else
6946 if test "$aix_use_runtimelinking" = yes; then
6947 shared_flag='${wl}-G'
6948 else
6949 shared_flag='${wl}-bM:SRE'
6950 fi
6951 fi
6952 fi
6953
6954 # It seems that -bexpall does not export symbols beginning with
6955 # underscore (_), so it is better to generate a list of symbols to export.
6956 always_export_symbols=yes
6957 if test "$aix_use_runtimelinking" = yes; then
6958 # Warning - without using the other runtime loading flags (-brtl),
6959 # -berok will link without error, but may produce a broken library.
6960 allow_undefined_flag='-berok'
6961 # Determine the default libpath from the value encoded in an empty executable.
6962 cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h. */
6968
6969int
6970main ()
6971{
6972
6973 ;
6974 return 0;
6975}
6976_ACEOF
6977rm -f conftest.$ac_objext conftest$ac_exeext
6978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979 (eval $ac_link) 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest$ac_exeext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999
7000aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7001}'`
7002# Check for a 64-bit object if we didn't find anything.
7003if 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; }
7004}'`; fi
7005else
7006 echo "$as_me: failed program was:" >&5
7007sed 's/^/| /' conftest.$ac_ext >&5
7008
7009fi
7010rm -f conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
7012if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7013
7014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7015 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7016 else
7017 if test "$host_cpu" = ia64; then
7018 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7019 allow_undefined_flag="-z nodefs"
7020 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7021 else
7022 # Determine the default libpath from the value encoded in an empty executable.
7023 cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h. */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h. */
7029
7030int
7031main ()
7032{
7033
7034 ;
7035 return 0;
7036}
7037_ACEOF
7038rm -f conftest.$ac_objext conftest$ac_exeext
7039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } &&
7047 { ac_try='test -z "$ac_c_werror_flag"
7048 || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } &&
7054 { ac_try='test -s conftest$ac_exeext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060
7061aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7062}'`
7063# Check for a 64-bit object if we didn't find anything.
7064if 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; }
7065}'`; fi
7066else
7067 echo "$as_me: failed program was:" >&5
7068sed 's/^/| /' conftest.$ac_ext >&5
7069
7070fi
7071rm -f conftest.err conftest.$ac_objext \
7072 conftest$ac_exeext conftest.$ac_ext
7073if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7074
7075 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7076 # Warning - without using the other run time loading flags,
7077 # -berok will link without error, but may produce a broken library.
7078 no_undefined_flag=' ${wl}-bernotok'
7079 allow_undefined_flag=' ${wl}-berok'
7080 # -bexpall does not export symbols beginning with underscore (_)
7081 always_export_symbols=yes
7082 # Exported symbols can be pulled into shared objects from archives
7083 whole_archive_flag_spec=' '
7084 archive_cmds_need_lc=yes
7085 # This is similar to how AIX traditionally builds it's shared libraries.
7086 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7087 fi
7088 fi
7089 ;;
7090
7091 amigaos*)
7092 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)'
7093 hardcode_libdir_flag_spec='-L$libdir'
7094 hardcode_minus_L=yes
7095 # see comment about different semantics on the GNU ld section
7096 ld_shlibs=no
7097 ;;
7098
7099 bsdi4*)
7100 export_dynamic_flag_spec=-rdynamic
7101 ;;
7102
7103 cygwin* | mingw* | pw32*)
7104 # When not using gcc, we currently assume that we are using
7105 # Microsoft Visual C++.
7106 # hardcode_libdir_flag_spec is actually meaningless, as there is
7107 # no search path for DLLs.
7108 hardcode_libdir_flag_spec=' '
7109 allow_undefined_flag=unsupported
7110 # Tell ltmain to make .lib files, not .a files.
7111 libext=lib
7112 # Tell ltmain to make .dll files, not .so files.
7113 shrext_cmds=".dll"
7114 # FIXME: Setting linknames here is a bad hack.
7115 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7116 # The linker will automatically build a .lib file if we build a DLL.
7117 old_archive_From_new_cmds='true'
7118 # FIXME: Should let the user specify the lib program.
7119 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7120 fix_srcfile_path='`cygpath -w "$srcfile"`'
7121 enable_shared_with_static_runtimes=yes
7122 ;;
7123
7124 darwin* | rhapsody*)
7125 if test "$GXX" = yes ; then
7126 archive_cmds_need_lc=no
7127 case "$host_os" in
7128 rhapsody* | darwin1.[012])
7129 allow_undefined_flag='-undefined suppress'
7130 ;;
7131 *) # Darwin 1.3 on
7132 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7133 allow_undefined_flag='-flat_namespace -undefined suppress'
7134 else
7135 case ${MACOSX_DEPLOYMENT_TARGET} in
7136 10.[012])
7137 allow_undefined_flag='-flat_namespace -undefined suppress'
7138 ;;
7139 10.*)
7140 allow_undefined_flag='-undefined dynamic_lookup'
7141 ;;
7142 esac
7143 fi
7144 ;;
7145 esac
7146 lt_int_apple_cc_single_mod=no
7147 output_verbose_link_cmd='echo'
7148 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7149 lt_int_apple_cc_single_mod=yes
7150 fi
7151 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7152 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7153 else
7154 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7155 fi
7156 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7157 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7158 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7159 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7160 else
7161 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7162 fi
7163 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}'
7164 hardcode_direct=no
7165 hardcode_automatic=yes
7166 hardcode_shlibpath_var=unsupported
7167 whole_archive_flag_spec='-all_load $convenience'
7168 link_all_deplibs=yes
7169 else
7170 ld_shlibs=no
7171 fi
7172 ;;
7173
7174 dgux*)
7175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7176 hardcode_libdir_flag_spec='-L$libdir'
7177 hardcode_shlibpath_var=no
7178 ;;
7179
7180 freebsd1*)
7181 ld_shlibs=no
7182 ;;
7183
7184 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7185 # support. Future versions do this automatically, but an explicit c++rt0.o
7186 # does not break anything, and helps significantly (at the cost of a little
7187 # extra space).
7188 freebsd2.2*)
7189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7190 hardcode_libdir_flag_spec='-R$libdir'
7191 hardcode_direct=yes
7192 hardcode_shlibpath_var=no
7193 ;;
7194
7195 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7196 freebsd2*)
7197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7198 hardcode_direct=yes
7199 hardcode_minus_L=yes
7200 hardcode_shlibpath_var=no
7201 ;;
7202
7203 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7204 freebsd* | kfreebsd*-gnu)
7205 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7206 hardcode_libdir_flag_spec='-R$libdir'
7207 hardcode_direct=yes
7208 hardcode_shlibpath_var=no
7209 ;;
7210
7211 hpux9*)
7212 if test "$GCC" = yes; then
7213 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'
7214 else
7215 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'
7216 fi
7217 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7218 hardcode_libdir_separator=:
7219 hardcode_direct=yes
7220
7221 # hardcode_minus_L: Not really in the search PATH,
7222 # but as the default location of the library.
7223 hardcode_minus_L=yes
7224 export_dynamic_flag_spec='${wl}-E'
7225 ;;
7226
7227 hpux10* | hpux11*)
7228 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7229 case "$host_cpu" in
7230 hppa*64*|ia64*)
7231 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7232 ;;
7233 *)
7234 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7235 ;;
7236 esac
7237 else
7238 case "$host_cpu" in
7239 hppa*64*|ia64*)
7240 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7241 ;;
7242 *)
7243 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7244 ;;
7245 esac
7246 fi
7247 if test "$with_gnu_ld" = no; then
7248 case "$host_cpu" in
7249 hppa*64*)
7250 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7251 hardcode_libdir_flag_spec_ld='+b $libdir'
7252 hardcode_libdir_separator=:
7253 hardcode_direct=no
7254 hardcode_shlibpath_var=no
7255 ;;
7256 ia64*)
7257 hardcode_libdir_flag_spec='-L$libdir'
7258 hardcode_direct=no
7259 hardcode_shlibpath_var=no
7260
7261 # hardcode_minus_L: Not really in the search PATH,
7262 # but as the default location of the library.
7263 hardcode_minus_L=yes
7264 ;;
7265 *)
7266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7267 hardcode_libdir_separator=:
7268 hardcode_direct=yes
7269 export_dynamic_flag_spec='${wl}-E'
7270
7271 # hardcode_minus_L: Not really in the search PATH,
7272 # but as the default location of the library.
7273 hardcode_minus_L=yes
7274 ;;
7275 esac
7276 fi
7277 ;;
7278
7279 irix5* | irix6* | nonstopux*)
7280 if test "$GCC" = yes; then
7281 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'
7282 else
7283 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'
7284 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7285 fi
7286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7287 hardcode_libdir_separator=:
7288 link_all_deplibs=yes
7289 ;;
7290
7291 netbsd*)
7292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7293 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7294 else
7295 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7296 fi
7297 hardcode_libdir_flag_spec='-R$libdir'
7298 hardcode_direct=yes
7299 hardcode_shlibpath_var=no
7300 ;;
7301
7302 newsos6)
7303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7304 hardcode_direct=yes
7305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7306 hardcode_libdir_separator=:
7307 hardcode_shlibpath_var=no
7308 ;;
7309
7310 openbsd*)
7311 hardcode_direct=yes
7312 hardcode_shlibpath_var=no
7313 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7316 export_dynamic_flag_spec='${wl}-E'
7317 else
7318 case $host_os in
7319 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7321 hardcode_libdir_flag_spec='-R$libdir'
7322 ;;
7323 *)
7324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7326 ;;
7327 esac
7328 fi
7329 ;;
7330
7331 os2*)
7332 hardcode_libdir_flag_spec='-L$libdir'
7333 hardcode_minus_L=yes
7334 allow_undefined_flag=unsupported
7335 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'
7336 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7337 ;;
7338
7339 osf3*)
7340 if test "$GCC" = yes; then
7341 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7342 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'
7343 else
7344 allow_undefined_flag=' -expect_unresolved \*'
7345 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'
7346 fi
7347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7348 hardcode_libdir_separator=:
7349 ;;
7350
7351 osf4* | osf5*) # as osf3* with the addition of -msym flag
7352 if test "$GCC" = yes; then
7353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7354 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'
7355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7356 else
7357 allow_undefined_flag=' -expect_unresolved \*'
7358 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'
7359 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7360 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7361
7362 # Both c and cxx compiler support -rpath directly
7363 hardcode_libdir_flag_spec='-rpath $libdir'
7364 fi
7365 hardcode_libdir_separator=:
7366 ;;
7367
7368 sco3.2v5*)
7369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7370 hardcode_shlibpath_var=no
7371 export_dynamic_flag_spec='${wl}-Bexport'
7372 runpath_var=LD_RUN_PATH
7373 hardcode_runpath_var=yes
7374 ;;
7375
7376 solaris*)
7377 no_undefined_flag=' -z text'
7378 if test "$GCC" = yes; then
7379 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7380 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7381 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7382 else
7383 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7385 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7386 fi
7387 hardcode_libdir_flag_spec='-R$libdir'
7388 hardcode_shlibpath_var=no
7389 case $host_os in
7390 solaris2.[0-5] | solaris2.[0-5].*) ;;
7391 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7392 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7393 esac
7394 link_all_deplibs=yes
7395 ;;
7396
7397 sunos4*)
7398 if test "x$host_vendor" = xsequent; then
7399 # Use $CC to link under sequent, because it throws in some extra .o
7400 # files that make .init and .fini sections work.
7401 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7402 else
7403 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7404 fi
7405 hardcode_libdir_flag_spec='-L$libdir'
7406 hardcode_direct=yes
7407 hardcode_minus_L=yes
7408 hardcode_shlibpath_var=no
7409 ;;
7410
7411 sysv4)
7412 case $host_vendor in
7413 sni)
7414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7415 hardcode_direct=yes # is this really true???
7416 ;;
7417 siemens)
7418 ## LD is ld it makes a PLAMLIB
7419 ## CC just makes a GrossModule.
7420 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7421 reload_cmds='$CC -r -o $output$reload_objs'
7422 hardcode_direct=no
7423 ;;
7424 motorola)
7425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7426 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7427 ;;
7428 esac
7429 runpath_var='LD_RUN_PATH'
7430 hardcode_shlibpath_var=no
7431 ;;
7432
7433 sysv4.3*)
7434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7435 hardcode_shlibpath_var=no
7436 export_dynamic_flag_spec='-Bexport'
7437 ;;
7438
7439 sysv4*MP*)
7440 if test -d /usr/nec; then
7441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7442 hardcode_shlibpath_var=no
7443 runpath_var=LD_RUN_PATH
7444 hardcode_runpath_var=yes
7445 ld_shlibs=yes
7446 fi
7447 ;;
7448
7449 sysv4.2uw2*)
7450 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7451 hardcode_direct=yes
7452 hardcode_minus_L=no
7453 hardcode_shlibpath_var=no
7454 hardcode_runpath_var=yes
7455 runpath_var=LD_RUN_PATH
7456 ;;
7457
7458 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7459 no_undefined_flag='${wl}-z ${wl}text'
7460 if test "$GCC" = yes; then
7461 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7462 else
7463 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7464 fi
7465 runpath_var='LD_RUN_PATH'
7466 hardcode_shlibpath_var=no
7467 ;;
7468
7469 sysv5*)
7470 no_undefined_flag=' -z text'
7471 # $CC -shared without GNU ld will not create a library from C++
7472 # object files and a static libstdc++, better avoid it by now
7473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7474 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7476 hardcode_libdir_flag_spec=
7477 hardcode_shlibpath_var=no
7478 runpath_var='LD_RUN_PATH'
7479 ;;
7480
7481 uts4*)
7482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7483 hardcode_libdir_flag_spec='-L$libdir'
7484 hardcode_shlibpath_var=no
7485 ;;
7486
7487 *)
7488 ld_shlibs=no
7489 ;;
7490 esac
7491 fi
7492
7493echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7494echo "${ECHO_T}$ld_shlibs" >&6
7495test "$ld_shlibs" = no && can_build_shared=no
7496
7497variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7498if test "$GCC" = yes; then
7499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7500fi
7501
7502#
7503# Do we need to explicitly link libc?
7504#
7505case "x$archive_cmds_need_lc" in
7506x|xyes)
7507 # Assume -lc should be added
7508 archive_cmds_need_lc=yes
7509
7510 if test "$enable_shared" = yes && test "$GCC" = yes; then
7511 case $archive_cmds in
7512 *'~'*)
7513 # FIXME: we may have to deal with multi-command sequences.
7514 ;;
7515 '$CC '*)
7516 # Test whether the compiler implicitly links with -lc since on some
7517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7518 # to ld, don't add -lc before -lgcc.
7519 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7520echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7521 $rm conftest*
7522 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7523
7524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525 (eval $ac_compile) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } 2>conftest.err; then
7529 soname=conftest
7530 lib=conftest
7531 libobjs=conftest.$ac_objext
7532 deplibs=
7533 wl=$lt_prog_compiler_wl
7534 compiler_flags=-v
7535 linker_flags=-v
7536 verstring=
7537 output_objdir=.
7538 libname=conftest
7539 lt_save_allow_undefined_flag=$allow_undefined_flag
7540 allow_undefined_flag=
7541 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7542 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }
7546 then
7547 archive_cmds_need_lc=no
7548 else
7549 archive_cmds_need_lc=yes
7550 fi
7551 allow_undefined_flag=$lt_save_allow_undefined_flag
7552 else
7553 cat conftest.err 1>&5
7554 fi
7555 $rm conftest*
7556 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7557echo "${ECHO_T}$archive_cmds_need_lc" >&6
7558 ;;
7559 esac
7560 fi
7561 ;;
7562esac
7563
7564echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7565echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7566library_names_spec=
7567libname_spec='lib$name'
7568soname_spec=
7569shrext_cmds=".so"
7570postinstall_cmds=
7571postuninstall_cmds=
7572finish_cmds=
7573finish_eval=
7574shlibpath_var=
7575shlibpath_overrides_runpath=unknown
7576version_type=none
7577dynamic_linker="$host_os ld.so"
7578sys_lib_dlsearch_path_spec="/lib /usr/lib"
7579if test "$GCC" = yes; then
7580 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7581 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7582 # if the path contains ";" then we assume it to be the separator
7583 # otherwise default to the standard path separator (i.e. ":") - it is
7584 # assumed that no part of a normal pathname contains ";" but that should
7585 # okay in the real world where ";" in dirpaths is itself problematic.
7586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7587 else
7588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7589 fi
7590else
7591 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7592fi
7593need_lib_prefix=unknown
7594hardcode_into_libs=no
7595
7596# when you set need_version to no, make sure it does not cause -set_version
7597# flags to be left without arguments
7598need_version=unknown
7599
7600case $host_os in
7601aix3*)
7602 version_type=linux
7603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7604 shlibpath_var=LIBPATH
7605
7606 # AIX 3 has no versioning support, so we append a major version to the name.
7607 soname_spec='${libname}${release}${shared_ext}$major'
7608 ;;
7609
7610aix4* | aix5*)
7611 version_type=linux
7612 need_lib_prefix=no
7613 need_version=no
7614 hardcode_into_libs=yes
7615 if test "$host_cpu" = ia64; then
7616 # AIX 5 supports IA64
7617 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7618 shlibpath_var=LD_LIBRARY_PATH
7619 else
7620 # With GCC up to 2.95.x, collect2 would create an import file
7621 # for dependence libraries. The import file would start with
7622 # the line `#! .'. This would cause the generated library to
7623 # depend on `.', always an invalid library. This was fixed in
7624 # development snapshots of GCC prior to 3.0.
7625 case $host_os in
7626 aix4 | aix4.[01] | aix4.[01].*)
7627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7628 echo ' yes '
7629 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7630 :
7631 else
7632 can_build_shared=no
7633 fi
7634 ;;
7635 esac
7636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7637 # soname into executable. Probably we can add versioning support to
7638 # collect2, so additional links can be useful in future.
7639 if test "$aix_use_runtimelinking" = yes; then
7640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7641 # instead of lib<name>.a to let people know that these are not
7642 # typical AIX shared libraries.
7643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 else
7645 # We preserve .a as extension for shared libraries through AIX4.2
7646 # and later when we are not doing run time linking.
7647 library_names_spec='${libname}${release}.a $libname.a'
7648 soname_spec='${libname}${release}${shared_ext}$major'
7649 fi
7650 shlibpath_var=LIBPATH
7651 fi
7652 ;;
7653
7654amigaos*)
7655 library_names_spec='$libname.ixlibrary $libname.a'
7656 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7657 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'
7658 ;;
7659
7660beos*)
7661 library_names_spec='${libname}${shared_ext}'
7662 dynamic_linker="$host_os ld.so"
7663 shlibpath_var=LIBRARY_PATH
7664 ;;
7665
7666bsdi4*)
7667 version_type=linux
7668 need_version=no
7669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7670 soname_spec='${libname}${release}${shared_ext}$major'
7671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7672 shlibpath_var=LD_LIBRARY_PATH
7673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7675 # the default ld.so.conf also contains /usr/contrib/lib and
7676 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7677 # libtool to hard-code these into programs
7678 ;;
7679
7680cygwin* | mingw* | pw32*)
7681 version_type=windows
7682 shrext_cmds=".dll"
7683 need_version=no
7684 need_lib_prefix=no
7685
7686 case $GCC,$host_os in
7687 yes,cygwin* | yes,mingw* | yes,pw32*)
7688 library_names_spec='$libname.dll.a'
7689 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7690 postinstall_cmds='base_file=`basename \${file}`~
7691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7692 dldir=$destdir/`dirname \$dlpath`~
7693 test -d \$dldir || mkdir -p \$dldir~
7694 $install_prog $dir/$dlname \$dldir/$dlname'
7695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7696 dlpath=$dir/\$dldll~
7697 $rm \$dlpath'
7698 shlibpath_overrides_runpath=yes
7699
7700 case $host_os in
7701 cygwin*)
7702 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7703 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7704 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7705 ;;
7706 mingw*)
7707 # MinGW DLLs use traditional 'lib' prefix
7708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7710 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7711 # It is most probably a Windows format PATH printed by
7712 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7713 # path with ; separators, and with drive letters. We can handle the
7714 # drive letters (cygwin fileutils understands them), so leave them,
7715 # especially as we might pass files found there to a mingw objdump,
7716 # which wouldn't understand a cygwinified path. Ahh.
7717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7718 else
7719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7720 fi
7721 ;;
7722 pw32*)
7723 # pw32 DLLs use 'pw' prefix rather than 'lib'
7724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7725 ;;
7726 esac
7727 ;;
7728
7729 *)
7730 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7731 ;;
7732 esac
7733 dynamic_linker='Win32 ld.exe'
7734 # FIXME: first we should search . and the directory the executable is in
7735 shlibpath_var=PATH
7736 ;;
7737
7738darwin* | rhapsody*)
7739 dynamic_linker="$host_os dyld"
7740 version_type=darwin
7741 need_lib_prefix=no
7742 need_version=no
7743 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7744 soname_spec='${libname}${release}${major}$shared_ext'
7745 shlibpath_overrides_runpath=yes
7746 shlibpath_var=DYLD_LIBRARY_PATH
7747 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7748 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7749 if test "$GCC" = yes; then
7750 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"`
7751 else
7752 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7753 fi
7754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7755 ;;
7756
7757dgux*)
7758 version_type=linux
7759 need_lib_prefix=no
7760 need_version=no
7761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7762 soname_spec='${libname}${release}${shared_ext}$major'
7763 shlibpath_var=LD_LIBRARY_PATH
7764 ;;
7765
7766freebsd1*)
7767 dynamic_linker=no
7768 ;;
7769
7770kfreebsd*-gnu)
7771 version_type=linux
7772 need_lib_prefix=no
7773 need_version=no
7774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7775 soname_spec='${libname}${release}${shared_ext}$major'
7776 shlibpath_var=LD_LIBRARY_PATH
7777 shlibpath_overrides_runpath=no
7778 hardcode_into_libs=yes
7779 dynamic_linker='GNU ld.so'
7780 ;;
7781
7782freebsd*)
7783 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7784 version_type=freebsd-$objformat
7785 case $version_type in
7786 freebsd-elf*)
7787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7788 need_version=no
7789 need_lib_prefix=no
7790 ;;
7791 freebsd-*)
7792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7793 need_version=yes
7794 ;;
7795 esac
7796 shlibpath_var=LD_LIBRARY_PATH
7797 case $host_os in
7798 freebsd2*)
7799 shlibpath_overrides_runpath=yes
7800 ;;
7801 freebsd3.01* | freebsdelf3.01*)
7802 shlibpath_overrides_runpath=yes
7803 hardcode_into_libs=yes
7804 ;;
7805 *) # from 3.2 on
7806 shlibpath_overrides_runpath=no
7807 hardcode_into_libs=yes
7808 ;;
7809 esac
7810 ;;
7811
7812gnu*)
7813 version_type=linux
7814 need_lib_prefix=no
7815 need_version=no
7816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7817 soname_spec='${libname}${release}${shared_ext}$major'
7818 shlibpath_var=LD_LIBRARY_PATH
7819 hardcode_into_libs=yes
7820 ;;
7821
7822hpux9* | hpux10* | hpux11*)
7823 # Give a soname corresponding to the major version so that dld.sl refuses to
7824 # link against other versions.
7825 version_type=sunos
7826 need_lib_prefix=no
7827 need_version=no
7828 case "$host_cpu" in
7829 ia64*)
7830 shrext_cmds='.so'
7831 hardcode_into_libs=yes
7832 dynamic_linker="$host_os dld.so"
7833 shlibpath_var=LD_LIBRARY_PATH
7834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7836 soname_spec='${libname}${release}${shared_ext}$major'
7837 if test "X$HPUX_IA64_MODE" = X32; then
7838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7839 else
7840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7841 fi
7842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7843 ;;
7844 hppa*64*)
7845 shrext_cmds='.sl'
7846 hardcode_into_libs=yes
7847 dynamic_linker="$host_os dld.sl"
7848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7851 soname_spec='${libname}${release}${shared_ext}$major'
7852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7854 ;;
7855 *)
7856 shrext_cmds='.sl'
7857 dynamic_linker="$host_os dld.sl"
7858 shlibpath_var=SHLIB_PATH
7859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7861 soname_spec='${libname}${release}${shared_ext}$major'
7862 ;;
7863 esac
7864 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7865 postinstall_cmds='chmod 555 $lib'
7866 ;;
7867
7868irix5* | irix6* | nonstopux*)
7869 case $host_os in
7870 nonstopux*) version_type=nonstopux ;;
7871 *)
7872 if test "$lt_cv_prog_gnu_ld" = yes; then
7873 version_type=linux
7874 else
7875 version_type=irix
7876 fi ;;
7877 esac
7878 need_lib_prefix=no
7879 need_version=no
7880 soname_spec='${libname}${release}${shared_ext}$major'
7881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7882 case $host_os in
7883 irix5* | nonstopux*)
7884 libsuff= shlibsuff=
7885 ;;
7886 *)
7887 case $LD in # libtool.m4 will add one of these switches to LD
7888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7889 libsuff= shlibsuff= libmagic=32-bit;;
7890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7891 libsuff=32 shlibsuff=N32 libmagic=N32;;
7892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7894 *) libsuff= shlibsuff= libmagic=never-match;;
7895 esac
7896 ;;
7897 esac
7898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7899 shlibpath_overrides_runpath=no
7900 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7901 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7902 hardcode_into_libs=yes
7903 ;;
7904
7905# No shared lib support for Linux oldld, aout, or coff.
7906linux*oldld* | linux*aout* | linux*coff*)
7907 dynamic_linker=no
7908 ;;
7909
7910# This must be Linux ELF.
7911linux*)
7912 version_type=linux
7913 need_lib_prefix=no
7914 need_version=no
7915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7916 soname_spec='${libname}${release}${shared_ext}$major'
7917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7918 shlibpath_var=LD_LIBRARY_PATH
7919 shlibpath_overrides_runpath=no
7920 # This implies no fast_install, which is unacceptable.
7921 # Some rework will be needed to allow for fast_install
7922 # before this can be enabled.
7923 hardcode_into_libs=yes
7924
7925 # Append ld.so.conf contents to the search path
7926 if test -f /etc/ld.so.conf; then
7927 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7928 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7929 fi
7930
7931 # We used to test for /lib/ld.so.1 and disable shared libraries on
7932 # powerpc, because MkLinux only supported shared libraries with the
7933 # GNU dynamic linker. Since this was broken with cross compilers,
7934 # most powerpc-linux boxes support dynamic linking these days and
7935 # people can always --disable-shared, the test was removed, and we
7936 # assume the GNU/Linux dynamic linker is in use.
7937 dynamic_linker='GNU/Linux ld.so'
7938 ;;
7939
7940knetbsd*-gnu)
7941 version_type=linux
7942 need_lib_prefix=no
7943 need_version=no
7944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7945 soname_spec='${libname}${release}${shared_ext}$major'
7946 shlibpath_var=LD_LIBRARY_PATH
7947 shlibpath_overrides_runpath=no
7948 hardcode_into_libs=yes
7949 dynamic_linker='GNU ld.so'
7950 ;;
7951
7952netbsd*)
7953 version_type=sunos
7954 need_lib_prefix=no
7955 need_version=no
7956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7959 dynamic_linker='NetBSD (a.out) ld.so'
7960 else
7961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7962 soname_spec='${libname}${release}${shared_ext}$major'
7963 dynamic_linker='NetBSD ld.elf_so'
7964 fi
7965 shlibpath_var=LD_LIBRARY_PATH
7966 shlibpath_overrides_runpath=yes
7967 hardcode_into_libs=yes
7968 ;;
7969
7970newsos6)
7971 version_type=linux
7972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7973 shlibpath_var=LD_LIBRARY_PATH
7974 shlibpath_overrides_runpath=yes
7975 ;;
7976
7977nto-qnx*)
7978 version_type=linux
7979 need_lib_prefix=no
7980 need_version=no
7981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7982 soname_spec='${libname}${release}${shared_ext}$major'
7983 shlibpath_var=LD_LIBRARY_PATH
7984 shlibpath_overrides_runpath=yes
7985 ;;
7986
7987openbsd*)
7988 version_type=sunos
7989 need_lib_prefix=no
7990 need_version=yes
7991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7993 shlibpath_var=LD_LIBRARY_PATH
7994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7995 case $host_os in
7996 openbsd2.[89] | openbsd2.[89].*)
7997 shlibpath_overrides_runpath=no
7998 ;;
7999 *)
8000 shlibpath_overrides_runpath=yes
8001 ;;
8002 esac
8003 else
8004 shlibpath_overrides_runpath=yes
8005 fi
8006 ;;
8007
8008os2*)
8009 libname_spec='$name'
8010 shrext_cmds=".dll"
8011 need_lib_prefix=no
8012 library_names_spec='$libname${shared_ext} $libname.a'
8013 dynamic_linker='OS/2 ld.exe'
8014 shlibpath_var=LIBPATH
8015 ;;
8016
8017osf3* | osf4* | osf5*)
8018 version_type=osf
8019 need_lib_prefix=no
8020 need_version=no
8021 soname_spec='${libname}${release}${shared_ext}$major'
8022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8023 shlibpath_var=LD_LIBRARY_PATH
8024 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8025 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8026 ;;
8027
8028sco3.2v5*)
8029 version_type=osf
8030 soname_spec='${libname}${release}${shared_ext}$major'
8031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032 shlibpath_var=LD_LIBRARY_PATH
8033 ;;
8034
8035solaris*)
8036 version_type=linux
8037 need_lib_prefix=no
8038 need_version=no
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8040 soname_spec='${libname}${release}${shared_ext}$major'
8041 shlibpath_var=LD_LIBRARY_PATH
8042 shlibpath_overrides_runpath=yes
8043 hardcode_into_libs=yes
8044 # ldd complains unless libraries are executable
8045 postinstall_cmds='chmod +x $lib'
8046 ;;
8047
8048sunos4*)
8049 version_type=sunos
8050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8051 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8052 shlibpath_var=LD_LIBRARY_PATH
8053 shlibpath_overrides_runpath=yes
8054 if test "$with_gnu_ld" = yes; then
8055 need_lib_prefix=no
8056 fi
8057 need_version=yes
8058 ;;
8059
8060sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8061 version_type=linux
8062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8063 soname_spec='${libname}${release}${shared_ext}$major'
8064 shlibpath_var=LD_LIBRARY_PATH
8065 case $host_vendor in
8066 sni)
8067 shlibpath_overrides_runpath=no
8068 need_lib_prefix=no
8069 export_dynamic_flag_spec='${wl}-Blargedynsym'
8070 runpath_var=LD_RUN_PATH
8071 ;;
8072 siemens)
8073 need_lib_prefix=no
8074 ;;
8075 motorola)
8076 need_lib_prefix=no
8077 need_version=no
8078 shlibpath_overrides_runpath=no
8079 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8080 ;;
8081 esac
8082 ;;
8083
8084sysv4*MP*)
8085 if test -d /usr/nec ;then
8086 version_type=linux
8087 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8088 soname_spec='$libname${shared_ext}.$major'
8089 shlibpath_var=LD_LIBRARY_PATH
8090 fi
8091 ;;
8092
8093uts4*)
8094 version_type=linux
8095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8096 soname_spec='${libname}${release}${shared_ext}$major'
8097 shlibpath_var=LD_LIBRARY_PATH
8098 ;;
8099
8100*)
8101 dynamic_linker=no
8102 ;;
8103esac
8104echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8105echo "${ECHO_T}$dynamic_linker" >&6
8106test "$dynamic_linker" = no && can_build_shared=no
8107
8108echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8109echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8110hardcode_action=
8111if test -n "$hardcode_libdir_flag_spec" || \
8112 test -n "$runpath_var " || \
8113 test "X$hardcode_automatic"="Xyes" ; then
8114
8115 # We can hardcode non-existant directories.
8116 if test "$hardcode_direct" != no &&
8117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8118 # have to relink, otherwise we might link with an installed library
8119 # when we should be linking with a yet-to-be-installed one
8120 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8121 test "$hardcode_minus_L" != no; then
8122 # Linking always hardcodes the temporary library directory.
8123 hardcode_action=relink
8124 else
8125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8126 hardcode_action=immediate
8127 fi
8128else
8129 # We cannot hardcode anything, or else we can only hardcode existing
8130 # directories.
8131 hardcode_action=unsupported
8132fi
8133echo "$as_me:$LINENO: result: $hardcode_action" >&5
8134echo "${ECHO_T}$hardcode_action" >&6
8135
8136if test "$hardcode_action" = relink; then
8137 # Fast installation is not supported
8138 enable_fast_install=no
8139elif test "$shlibpath_overrides_runpath" = yes ||
8140 test "$enable_shared" = no; then
8141 # Fast installation is not necessary
8142 enable_fast_install=needless
8143fi
8144
8145striplib=
8146old_striplib=
8147echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8148echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8149if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8150 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8151 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8152 echo "$as_me:$LINENO: result: yes" >&5
8153echo "${ECHO_T}yes" >&6
8154else
8155# FIXME - insert some real tests, host_os isn't really good enough
8156 case $host_os in
8157 darwin*)
8158 if test -n "$STRIP" ; then
8159 striplib="$STRIP -x"
8160 echo "$as_me:$LINENO: result: yes" >&5
8161echo "${ECHO_T}yes" >&6
8162 else
8163 echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6
8165fi
8166 ;;
8167 *)
8168 echo "$as_me:$LINENO: result: no" >&5
8169echo "${ECHO_T}no" >&6
8170 ;;
8171 esac
8172fi
8173
8174if test "x$enable_dlopen" != xyes; then
8175 enable_dlopen=unknown
8176 enable_dlopen_self=unknown
8177 enable_dlopen_self_static=unknown
8178else
8179 lt_cv_dlopen=no
8180 lt_cv_dlopen_libs=
8181
8182 case $host_os in
8183 beos*)
8184 lt_cv_dlopen="load_add_on"
8185 lt_cv_dlopen_libs=
8186 lt_cv_dlopen_self=yes
8187 ;;
8188
8189 mingw* | pw32*)
8190 lt_cv_dlopen="LoadLibrary"
8191 lt_cv_dlopen_libs=
8192 ;;
8193
8194 cygwin*)
8195 lt_cv_dlopen="dlopen"
8196 lt_cv_dlopen_libs=
8197 ;;
8198
8199 darwin*)
8200 # if libdl is installed we need to link against it
8201 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8202echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8203if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205else
8206 ac_check_lib_save_LIBS=$LIBS
8207LIBS="-ldl $LIBS"
8208cat >conftest.$ac_ext <<_ACEOF
8209/* confdefs.h. */
8210_ACEOF
8211cat confdefs.h >>conftest.$ac_ext
8212cat >>conftest.$ac_ext <<_ACEOF
8213/* end confdefs.h. */
8214
8215/* Override any gcc2 internal prototype to avoid an error. */
8216#ifdef __cplusplus
8217extern "C"
8218#endif
8219/* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8221char dlopen ();
8222int
8223main ()
8224{
8225dlopen ();
8226 ;
8227 return 0;
8228}
8229_ACEOF
8230rm -f conftest.$ac_objext conftest$ac_exeext
8231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8232 (eval $ac_link) 2>conftest.er1
8233 ac_status=$?
8234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } &&
8239 { ac_try='test -z "$ac_c_werror_flag"
8240 || test ! -s conftest.err'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; } &&
8246 { ac_try='test -s conftest$ac_exeext'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 (eval $ac_try) 2>&5
8249 ac_status=$?
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8252 ac_cv_lib_dl_dlopen=yes
8253else
8254 echo "$as_me: failed program was:" >&5
8255sed 's/^/| /' conftest.$ac_ext >&5
8256
8257ac_cv_lib_dl_dlopen=no
8258fi
8259rm -f conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8261LIBS=$ac_check_lib_save_LIBS
8262fi
8263echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8264echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8265if test $ac_cv_lib_dl_dlopen = yes; then
8266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8267else
8268
8269 lt_cv_dlopen="dyld"
8270 lt_cv_dlopen_libs=
8271 lt_cv_dlopen_self=yes
8272
8273fi
8274
8275 ;;
8276
8277 *)
8278 echo "$as_me:$LINENO: checking for shl_load" >&5
8279echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8280if test "${ac_cv_func_shl_load+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282else
8283 cat >conftest.$ac_ext <<_ACEOF
8284/* confdefs.h. */
8285_ACEOF
8286cat confdefs.h >>conftest.$ac_ext
8287cat >>conftest.$ac_ext <<_ACEOF
8288/* end confdefs.h. */
8289/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8291#define shl_load innocuous_shl_load
8292
8293/* System header to define __stub macros and hopefully few prototypes,
8294 which can conflict with char shl_load (); below.
8295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8296 <limits.h> exists even on freestanding compilers. */
8297
8298#ifdef __STDC__
8299# include <limits.h>
8300#else
8301# include <assert.h>
8302#endif
8303
8304#undef shl_load
8305
8306/* Override any gcc2 internal prototype to avoid an error. */
8307#ifdef __cplusplus
8308extern "C"
8309{
8310#endif
8311/* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8313char shl_load ();
8314/* The GNU C library defines this for functions which it implements
8315 to always fail with ENOSYS. Some functions are actually named
8316 something starting with __ and the normal name is an alias. */
8317#if defined (__stub_shl_load) || defined (__stub___shl_load)
8318choke me
8319#else
8320char (*f) () = shl_load;
8321#endif
8322#ifdef __cplusplus
8323}
8324#endif
8325
8326int
8327main ()
8328{
8329return f != shl_load;
8330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext conftest$ac_exeext
8335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8336 (eval $ac_link) 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -z "$ac_c_werror_flag"
8344 || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest$ac_exeext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_func_shl_load=yes
8357else
8358 echo "$as_me: failed program was:" >&5
8359sed 's/^/| /' conftest.$ac_ext >&5
8360
8361ac_cv_func_shl_load=no
8362fi
8363rm -f conftest.err conftest.$ac_objext \
8364 conftest$ac_exeext conftest.$ac_ext
8365fi
8366echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8367echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8368if test $ac_cv_func_shl_load = yes; then
8369 lt_cv_dlopen="shl_load"
8370else
8371 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8372echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8373if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375else
8376 ac_check_lib_save_LIBS=$LIBS
8377LIBS="-ldld $LIBS"
8378cat >conftest.$ac_ext <<_ACEOF
8379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
8384
8385/* Override any gcc2 internal prototype to avoid an error. */
8386#ifdef __cplusplus
8387extern "C"
8388#endif
8389/* We use char because int might match the return type of a gcc2
8390 builtin and then its argument prototype would still apply. */
8391char shl_load ();
8392int
8393main ()
8394{
8395shl_load ();
8396 ;
8397 return 0;
8398}
8399_ACEOF
8400rm -f conftest.$ac_objext conftest$ac_exeext
8401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402 (eval $ac_link) 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest$ac_exeext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_cv_lib_dld_shl_load=yes
8423else
8424 echo "$as_me: failed program was:" >&5
8425sed 's/^/| /' conftest.$ac_ext >&5
8426
8427ac_cv_lib_dld_shl_load=no
8428fi
8429rm -f conftest.err conftest.$ac_objext \
8430 conftest$ac_exeext conftest.$ac_ext
8431LIBS=$ac_check_lib_save_LIBS
8432fi
8433echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8434echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8435if test $ac_cv_lib_dld_shl_load = yes; then
8436 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8437else
8438 echo "$as_me:$LINENO: checking for dlopen" >&5
8439echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8440if test "${ac_cv_func_dlopen+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else
8443 cat >conftest.$ac_ext <<_ACEOF
8444/* confdefs.h. */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
8448/* end confdefs.h. */
8449/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8451#define dlopen innocuous_dlopen
8452
8453/* System header to define __stub macros and hopefully few prototypes,
8454 which can conflict with char dlopen (); below.
8455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456 <limits.h> exists even on freestanding compilers. */
8457
8458#ifdef __STDC__
8459# include <limits.h>
8460#else
8461# include <assert.h>
8462#endif
8463
8464#undef dlopen
8465
8466/* Override any gcc2 internal prototype to avoid an error. */
8467#ifdef __cplusplus
8468extern "C"
8469{
8470#endif
8471/* We use char because int might match the return type of a gcc2
8472 builtin and then its argument prototype would still apply. */
8473char dlopen ();
8474/* The GNU C library defines this for functions which it implements
8475 to always fail with ENOSYS. Some functions are actually named
8476 something starting with __ and the normal name is an alias. */
8477#if defined (__stub_dlopen) || defined (__stub___dlopen)
8478choke me
8479#else
8480char (*f) () = dlopen;
8481#endif
8482#ifdef __cplusplus
8483}
8484#endif
8485
8486int
8487main ()
8488{
8489return f != dlopen;
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext conftest$ac_exeext
8495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>conftest.er1
8497 ac_status=$?
8498 grep -v '^ *+' conftest.er1 >conftest.err
8499 rm -f conftest.er1
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -z "$ac_c_werror_flag"
8504 || test ! -s conftest.err'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest$ac_exeext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 (eval $ac_try) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_func_dlopen=yes
8517else
8518 echo "$as_me: failed program was:" >&5
8519sed 's/^/| /' conftest.$ac_ext >&5
8520
8521ac_cv_func_dlopen=no
8522fi
8523rm -f conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8525fi
8526echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8527echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8528if test $ac_cv_func_dlopen = yes; then
8529 lt_cv_dlopen="dlopen"
8530else
8531 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8532echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8533if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535else
8536 ac_check_lib_save_LIBS=$LIBS
8537LIBS="-ldl $LIBS"
8538cat >conftest.$ac_ext <<_ACEOF
8539/* confdefs.h. */
8540_ACEOF
8541cat confdefs.h >>conftest.$ac_ext
8542cat >>conftest.$ac_ext <<_ACEOF
8543/* end confdefs.h. */
8544
8545/* Override any gcc2 internal prototype to avoid an error. */
8546#ifdef __cplusplus
8547extern "C"
8548#endif
8549/* We use char because int might match the return type of a gcc2
8550 builtin and then its argument prototype would still apply. */
8551char dlopen ();
8552int
8553main ()
8554{
8555dlopen ();
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560rm -f conftest.$ac_objext conftest$ac_exeext
8561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562 (eval $ac_link) 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -z "$ac_c_werror_flag"
8570 || test ! -s conftest.err'
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 (eval $ac_try) 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; } &&
8576 { ac_try='test -s conftest$ac_exeext'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 (eval $ac_try) 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_cv_lib_dl_dlopen=yes
8583else
8584 echo "$as_me: failed program was:" >&5
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
8587ac_cv_lib_dl_dlopen=no
8588fi
8589rm -f conftest.err conftest.$ac_objext \
8590 conftest$ac_exeext conftest.$ac_ext
8591LIBS=$ac_check_lib_save_LIBS
8592fi
8593echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8594echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8595if test $ac_cv_lib_dl_dlopen = yes; then
8596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8597else
8598 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8599echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8600if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602else
8603 ac_check_lib_save_LIBS=$LIBS
8604LIBS="-lsvld $LIBS"
8605cat >conftest.$ac_ext <<_ACEOF
8606/* confdefs.h. */
8607_ACEOF
8608cat confdefs.h >>conftest.$ac_ext
8609cat >>conftest.$ac_ext <<_ACEOF
8610/* end confdefs.h. */
8611
8612/* Override any gcc2 internal prototype to avoid an error. */
8613#ifdef __cplusplus
8614extern "C"
8615#endif
8616/* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8618char dlopen ();
8619int
8620main ()
8621{
8622dlopen ();
8623 ;
8624 return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext conftest$ac_exeext
8628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629 (eval $ac_link) 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag"
8637 || test ! -s conftest.err'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 (eval $ac_try) 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest$ac_exeext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 ac_cv_lib_svld_dlopen=yes
8650else
8651 echo "$as_me: failed program was:" >&5
8652sed 's/^/| /' conftest.$ac_ext >&5
8653
8654ac_cv_lib_svld_dlopen=no
8655fi
8656rm -f conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8658LIBS=$ac_check_lib_save_LIBS
8659fi
8660echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8661echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8662if test $ac_cv_lib_svld_dlopen = yes; then
8663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8664else
8665 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8666echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8667if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8669else
8670 ac_check_lib_save_LIBS=$LIBS
8671LIBS="-ldld $LIBS"
8672cat >conftest.$ac_ext <<_ACEOF
8673/* confdefs.h. */
8674_ACEOF
8675cat confdefs.h >>conftest.$ac_ext
8676cat >>conftest.$ac_ext <<_ACEOF
8677/* end confdefs.h. */
8678
8679/* Override any gcc2 internal prototype to avoid an error. */
8680#ifdef __cplusplus
8681extern "C"
8682#endif
8683/* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8685char dld_link ();
8686int
8687main ()
8688{
8689dld_link ();
8690 ;
8691 return 0;
8692}
8693_ACEOF
8694rm -f conftest.$ac_objext conftest$ac_exeext
8695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } &&
8703 { ac_try='test -z "$ac_c_werror_flag"
8704 || test ! -s conftest.err'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; } &&
8710 { ac_try='test -s conftest$ac_exeext'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; }; then
8716 ac_cv_lib_dld_dld_link=yes
8717else
8718 echo "$as_me: failed program was:" >&5
8719sed 's/^/| /' conftest.$ac_ext >&5
8720
8721ac_cv_lib_dld_dld_link=no
8722fi
8723rm -f conftest.err conftest.$ac_objext \
8724 conftest$ac_exeext conftest.$ac_ext
8725LIBS=$ac_check_lib_save_LIBS
8726fi
8727echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8728echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8729if test $ac_cv_lib_dld_dld_link = yes; then
8730 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8731fi
8732
8733
8734fi
8735
8736
8737fi
8738
8739
8740fi
8741
8742
8743fi
8744
8745
8746fi
8747
8748 ;;
8749 esac
8750
8751 if test "x$lt_cv_dlopen" != xno; then
8752 enable_dlopen=yes
8753 else
8754 enable_dlopen=no
8755 fi
8756
8757 case $lt_cv_dlopen in
8758 dlopen)
8759 save_CPPFLAGS="$CPPFLAGS"
8760 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8761
8762 save_LDFLAGS="$LDFLAGS"
8763 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8764
8765 save_LIBS="$LIBS"
8766 LIBS="$lt_cv_dlopen_libs $LIBS"
8767
8768 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8769echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8770if test "${lt_cv_dlopen_self+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772else
8773 if test "$cross_compiling" = yes; then :
8774 lt_cv_dlopen_self=cross
8775else
8776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8777 lt_status=$lt_dlunknown
8778 cat > conftest.$ac_ext <<EOF
8779#line 8779 "configure"
8780#include "confdefs.h"
8781
8782#if HAVE_DLFCN_H
8783#include <dlfcn.h>
8784#endif
8785
8786#include <stdio.h>
8787
8788#ifdef RTLD_GLOBAL
8789# define LT_DLGLOBAL RTLD_GLOBAL
8790#else
8791# ifdef DL_GLOBAL
8792# define LT_DLGLOBAL DL_GLOBAL
8793# else
8794# define LT_DLGLOBAL 0
8795# endif
8796#endif
8797
8798/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8799 find out it does not work in some platform. */
8800#ifndef LT_DLLAZY_OR_NOW
8801# ifdef RTLD_LAZY
8802# define LT_DLLAZY_OR_NOW RTLD_LAZY
8803# else
8804# ifdef DL_LAZY
8805# define LT_DLLAZY_OR_NOW DL_LAZY
8806# else
8807# ifdef RTLD_NOW
8808# define LT_DLLAZY_OR_NOW RTLD_NOW
8809# else
8810# ifdef DL_NOW
8811# define LT_DLLAZY_OR_NOW DL_NOW
8812# else
8813# define LT_DLLAZY_OR_NOW 0
8814# endif
8815# endif
8816# endif
8817# endif
8818#endif
8819
8820#ifdef __cplusplus
8821extern "C" void exit (int);
8822#endif
8823
8824void fnord() { int i=42;}
8825int main ()
8826{
8827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8828 int status = $lt_dlunknown;
8829
8830 if (self)
8831 {
8832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8833 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8834 /* dlclose (self); */
8835 }
8836
8837 exit (status);
8838}
8839EOF
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8845 (./conftest; exit; ) 2>/dev/null
8846 lt_status=$?
8847 case x$lt_status in
8848 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8849 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8850 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8851 esac
8852 else :
8853 # compilation failed
8854 lt_cv_dlopen_self=no
8855 fi
8856fi
8857rm -fr conftest*
8858
8859
8860fi
8861echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8862echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8863
8864 if test "x$lt_cv_dlopen_self" = xyes; then
8865 LDFLAGS="$LDFLAGS $link_static_flag"
8866 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8867echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8868if test "${lt_cv_dlopen_self_static+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8870else
8871 if test "$cross_compiling" = yes; then :
8872 lt_cv_dlopen_self_static=cross
8873else
8874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8875 lt_status=$lt_dlunknown
8876 cat > conftest.$ac_ext <<EOF
8877#line 8877 "configure"
8878#include "confdefs.h"
8879
8880#if HAVE_DLFCN_H
8881#include <dlfcn.h>
8882#endif
8883
8884#include <stdio.h>
8885
8886#ifdef RTLD_GLOBAL
8887# define LT_DLGLOBAL RTLD_GLOBAL
8888#else
8889# ifdef DL_GLOBAL
8890# define LT_DLGLOBAL DL_GLOBAL
8891# else
8892# define LT_DLGLOBAL 0
8893# endif
8894#endif
8895
8896/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8897 find out it does not work in some platform. */
8898#ifndef LT_DLLAZY_OR_NOW
8899# ifdef RTLD_LAZY
8900# define LT_DLLAZY_OR_NOW RTLD_LAZY
8901# else
8902# ifdef DL_LAZY
8903# define LT_DLLAZY_OR_NOW DL_LAZY
8904# else
8905# ifdef RTLD_NOW
8906# define LT_DLLAZY_OR_NOW RTLD_NOW
8907# else
8908# ifdef DL_NOW
8909# define LT_DLLAZY_OR_NOW DL_NOW
8910# else
8911# define LT_DLLAZY_OR_NOW 0
8912# endif
8913# endif
8914# endif
8915# endif
8916#endif
8917
8918#ifdef __cplusplus
8919extern "C" void exit (int);
8920#endif
8921
8922void fnord() { int i=42;}
8923int main ()
8924{
8925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8926 int status = $lt_dlunknown;
8927
8928 if (self)
8929 {
8930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8931 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8932 /* dlclose (self); */
8933 }
8934
8935 exit (status);
8936}
8937EOF
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>&5
8940 ac_status=$?
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8943 (./conftest; exit; ) 2>/dev/null
8944 lt_status=$?
8945 case x$lt_status in
8946 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8947 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8948 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8949 esac
8950 else :
8951 # compilation failed
8952 lt_cv_dlopen_self_static=no
8953 fi
8954fi
8955rm -fr conftest*
8956
8957
8958fi
8959echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8960echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8961 fi
8962
8963 CPPFLAGS="$save_CPPFLAGS"
8964 LDFLAGS="$save_LDFLAGS"
8965 LIBS="$save_LIBS"
8966 ;;
8967 esac
8968
8969 case $lt_cv_dlopen_self in
8970 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8971 *) enable_dlopen_self=unknown ;;
8972 esac
8973
8974 case $lt_cv_dlopen_self_static in
8975 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8976 *) enable_dlopen_self_static=unknown ;;
8977 esac
8978fi
8979
8980
8981# Report which librarie types wil actually be built
8982echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8983echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8984echo "$as_me:$LINENO: result: $can_build_shared" >&5
8985echo "${ECHO_T}$can_build_shared" >&6
8986
8987echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8988echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8989test "$can_build_shared" = "no" && enable_shared=no
8990
8991# On AIX, shared libraries and static libraries use the same namespace, and
8992# are all built from PIC.
8993case "$host_os" in
8994aix3*)
8995 test "$enable_shared" = yes && enable_static=no
8996 if test -n "$RANLIB"; then
8997 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8998 postinstall_cmds='$RANLIB $lib'
8999 fi
9000 ;;
9001
9002aix4* | aix5*)
9003 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9004 test "$enable_shared" = yes && enable_static=no
9005 fi
9006 ;;
9007 darwin* | rhapsody*)
9008 if test "$GCC" = yes; then
9009 archive_cmds_need_lc=no
9010 case "$host_os" in
9011 rhapsody* | darwin1.[012])
9012 allow_undefined_flag='-undefined suppress'
9013 ;;
9014 *) # Darwin 1.3 on
9015 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9016 allow_undefined_flag='-flat_namespace -undefined suppress'
9017 else
9018 case ${MACOSX_DEPLOYMENT_TARGET} in
9019 10.[012])
9020 allow_undefined_flag='-flat_namespace -undefined suppress'
9021 ;;
9022 10.*)
9023 allow_undefined_flag='-undefined dynamic_lookup'
9024 ;;
9025 esac
9026 fi
9027 ;;
9028 esac
9029 output_verbose_link_cmd='echo'
9030 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9031 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9032 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9033 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}'
9034 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}'
9035 hardcode_direct=no
9036 hardcode_automatic=yes
9037 hardcode_shlibpath_var=unsupported
9038 whole_archive_flag_spec='-all_load $convenience'
9039 link_all_deplibs=yes
9040 else
9041 ld_shlibs=no
9042 fi
9043 ;;
9044esac
9045echo "$as_me:$LINENO: result: $enable_shared" >&5
9046echo "${ECHO_T}$enable_shared" >&6
9047
9048echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9049echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9050# Make sure either enable_shared or enable_static is yes.
9051test "$enable_shared" = yes || enable_static=yes
9052echo "$as_me:$LINENO: result: $enable_static" >&5
9053echo "${ECHO_T}$enable_static" >&6
9054
9055# The else clause should only fire when bootstrapping the
9056# libtool distribution, otherwise you forgot to ship ltmain.sh
9057# with your package, and you will get complaints that there are
9058# no rules to generate ltmain.sh.
9059if test -f "$ltmain"; then
9060 # See if we are running on zsh, and set the options which allow our commands through
9061 # without removal of \ escapes.
9062 if test -n "${ZSH_VERSION+set}" ; then
9063 setopt NO_GLOB_SUBST
9064 fi
9065 # Now quote all the things that may contain metacharacters while being
9066 # careful not to overquote the AC_SUBSTed values. We take copies of the
9067 # variables and quote the copies for generation of the libtool script.
9068 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9069 SED SHELL STRIP \
9070 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9071 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9072 deplibs_check_method reload_flag reload_cmds need_locks \
9073 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9074 lt_cv_sys_global_symbol_to_c_name_address \
9075 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9076 old_postinstall_cmds old_postuninstall_cmds \
9077 compiler \
9078 CC \
9079 LD \
9080 lt_prog_compiler_wl \
9081 lt_prog_compiler_pic \
9082 lt_prog_compiler_static \
9083 lt_prog_compiler_no_builtin_flag \
9084 export_dynamic_flag_spec \
9085 thread_safe_flag_spec \
9086 whole_archive_flag_spec \
9087 enable_shared_with_static_runtimes \
9088 old_archive_cmds \
9089 old_archive_from_new_cmds \
9090 predep_objects \
9091 postdep_objects \
9092 predeps \
9093 postdeps \
9094 compiler_lib_search_path \
9095 archive_cmds \
9096 archive_expsym_cmds \
9097 postinstall_cmds \
9098 postuninstall_cmds \
9099 old_archive_from_expsyms_cmds \
9100 allow_undefined_flag \
9101 no_undefined_flag \
9102 export_symbols_cmds \
9103 hardcode_libdir_flag_spec \
9104 hardcode_libdir_flag_spec_ld \
9105 hardcode_libdir_separator \
9106 hardcode_automatic \
9107 module_cmds \
9108 module_expsym_cmds \
9109 lt_cv_prog_compiler_c_o \
9110 exclude_expsyms \
9111 include_expsyms; do
9112
9113 case $var in
9114 old_archive_cmds | \
9115 old_archive_from_new_cmds | \
9116 archive_cmds | \
9117 archive_expsym_cmds | \
9118 module_cmds | \
9119 module_expsym_cmds | \
9120 old_archive_from_expsyms_cmds | \
9121 export_symbols_cmds | \
9122 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9123 postinstall_cmds | postuninstall_cmds | \
9124 old_postinstall_cmds | old_postuninstall_cmds | \
9125 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9126 # Double-quote double-evaled strings.
9127 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9128 ;;
9129 *)
9130 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9131 ;;
9132 esac
9133 done
9134
9135 case $lt_echo in
9136 *'\$0 --fallback-echo"')
9137 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9138 ;;
9139 esac
9140
9141cfgfile="${ofile}T"
9142 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9143 $rm -f "$cfgfile"
9144 { echo "$as_me:$LINENO: creating $ofile" >&5
9145echo "$as_me: creating $ofile" >&6;}
9146
9147 cat <<__EOF__ >> "$cfgfile"
9148#! $SHELL
9149
9150# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9151# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9152# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9153#
9154# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9155# Free Software Foundation, Inc.
9156#
9157# This file is part of GNU Libtool:
9158# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9159#
9160# This program is free software; you can redistribute it and/or modify
9161# it under the terms of the GNU General Public License as published by
9162# the Free Software Foundation; either version 2 of the License, or
9163# (at your option) any later version.
9164#
9165# This program is distributed in the hope that it will be useful, but
9166# WITHOUT ANY WARRANTY; without even the implied warranty of
9167# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9168# General Public License for more details.
9169#
9170# You should have received a copy of the GNU General Public License
9171# along with this program; if not, write to the Free Software
9172# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9173#
9174# As a special exception to the GNU General Public License, if you
9175# distribute this file as part of a program that contains a
9176# configuration script generated by Autoconf, you may include it under
9177# the same distribution terms that you use for the rest of that program.
9178
9179# A sed program that does not truncate output.
9180SED=$lt_SED
9181
9182# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9183Xsed="$SED -e s/^X//"
9184
9185# The HP-UX ksh and POSIX shell print the target directory to stdout
9186# if CDPATH is set.
9187if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9188
9189# The names of the tagged configurations supported by this script.
9190available_tags=
9191
9192# ### BEGIN LIBTOOL CONFIG
9193
9194# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9195
9196# Shell to use when invoking shell scripts.
9197SHELL=$lt_SHELL
9198
9199# Whether or not to build shared libraries.
9200build_libtool_libs=$enable_shared
9201
9202# Whether or not to build static libraries.
9203build_old_libs=$enable_static
9204
9205# Whether or not to add -lc for building shared libraries.
9206build_libtool_need_lc=$archive_cmds_need_lc
9207
9208# Whether or not to disallow shared libs when runtime libs are static
9209allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9210
9211# Whether or not to optimize for fast installation.
9212fast_install=$enable_fast_install
9213
9214# The host system.
9215host_alias=$host_alias
9216host=$host
9217
9218# An echo program that does not interpret backslashes.
9219echo=$lt_echo
9220
9221# The archiver.
9222AR=$lt_AR
9223AR_FLAGS=$lt_AR_FLAGS
9224
9225# A C compiler.
9226LTCC=$lt_LTCC
9227
9228# A language-specific compiler.
9229CC=$lt_compiler
9230
9231# Is the compiler the GNU C compiler?
9232with_gcc=$GCC
9233
9234# An ERE matcher.
9235EGREP=$lt_EGREP
9236
9237# The linker used to build libraries.
9238LD=$lt_LD
9239
9240# Whether we need hard or soft links.
9241LN_S=$lt_LN_S
9242
9243# A BSD-compatible nm program.
9244NM=$lt_NM
9245
9246# A symbol stripping program
9247STRIP=$lt_STRIP
9248
9249# Used to examine libraries when file_magic_cmd begins "file"
9250MAGIC_CMD=$MAGIC_CMD
9251
9252# Used on cygwin: DLL creation program.
9253DLLTOOL="$DLLTOOL"
9254
9255# Used on cygwin: object dumper.
9256OBJDUMP="$OBJDUMP"
9257
9258# Used on cygwin: assembler.
9259AS="$AS"
9260
9261# The name of the directory that contains temporary libtool files.
9262objdir=$objdir
9263
9264# How to create reloadable object files.
9265reload_flag=$lt_reload_flag
9266reload_cmds=$lt_reload_cmds
9267
9268# How to pass a linker flag through the compiler.
9269wl=$lt_lt_prog_compiler_wl
9270
9271# Object file suffix (normally "o").
9272objext="$ac_objext"
9273
9274# Old archive suffix (normally "a").
9275libext="$libext"
9276
9277# Shared library suffix (normally ".so").
9278shrext_cmds='$shrext_cmds'
9279
9280# Executable file suffix (normally "").
9281exeext="$exeext"
9282
9283# Additional compiler flags for building library objects.
9284pic_flag=$lt_lt_prog_compiler_pic
9285pic_mode=$pic_mode
9286
9287# What is the maximum length of a command?
9288max_cmd_len=$lt_cv_sys_max_cmd_len
9289
9290# Does compiler simultaneously support -c and -o options?
9291compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9292
9293# Must we lock files when doing compilation ?
9294need_locks=$lt_need_locks
9295
9296# Do we need the lib prefix for modules?
9297need_lib_prefix=$need_lib_prefix
9298
9299# Do we need a version for libraries?
9300need_version=$need_version
9301
9302# Whether dlopen is supported.
9303dlopen_support=$enable_dlopen
9304
9305# Whether dlopen of programs is supported.
9306dlopen_self=$enable_dlopen_self
9307
9308# Whether dlopen of statically linked programs is supported.
9309dlopen_self_static=$enable_dlopen_self_static
9310
9311# Compiler flag to prevent dynamic linking.
9312link_static_flag=$lt_lt_prog_compiler_static
9313
9314# Compiler flag to turn off builtin functions.
9315no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9316
9317# Compiler flag to allow reflexive dlopens.
9318export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9319
9320# Compiler flag to generate shared objects directly from archives.
9321whole_archive_flag_spec=$lt_whole_archive_flag_spec
9322
9323# Compiler flag to generate thread-safe objects.
9324thread_safe_flag_spec=$lt_thread_safe_flag_spec
9325
9326# Library versioning type.
9327version_type=$version_type
9328
9329# Format of library name prefix.
9330libname_spec=$lt_libname_spec
9331
9332# List of archive names. First name is the real one, the rest are links.
9333# The last name is the one that the linker finds with -lNAME.
9334library_names_spec=$lt_library_names_spec
9335
9336# The coded name of the library, if different from the real name.
9337soname_spec=$lt_soname_spec
9338
9339# Commands used to build and install an old-style archive.
9340RANLIB=$lt_RANLIB
9341old_archive_cmds=$lt_old_archive_cmds
9342old_postinstall_cmds=$lt_old_postinstall_cmds
9343old_postuninstall_cmds=$lt_old_postuninstall_cmds
9344
9345# Create an old-style archive from a shared archive.
9346old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9347
9348# Create a temporary old-style archive to link instead of a shared archive.
9349old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9350
9351# Commands used to build and install a shared archive.
9352archive_cmds=$lt_archive_cmds
9353archive_expsym_cmds=$lt_archive_expsym_cmds
9354postinstall_cmds=$lt_postinstall_cmds
9355postuninstall_cmds=$lt_postuninstall_cmds
9356
9357# Commands used to build a loadable module (assumed same as above if empty)
9358module_cmds=$lt_module_cmds
9359module_expsym_cmds=$lt_module_expsym_cmds
9360
9361# Commands to strip libraries.
9362old_striplib=$lt_old_striplib
9363striplib=$lt_striplib
9364
9365# Dependencies to place before the objects being linked to create a
9366# shared library.
9367predep_objects=$lt_predep_objects
9368
9369# Dependencies to place after the objects being linked to create a
9370# shared library.
9371postdep_objects=$lt_postdep_objects
9372
9373# Dependencies to place before the objects being linked to create a
9374# shared library.
9375predeps=$lt_predeps
9376
9377# Dependencies to place after the objects being linked to create a
9378# shared library.
9379postdeps=$lt_postdeps
9380
9381# The library search path used internally by the compiler when linking
9382# a shared library.
9383compiler_lib_search_path=$lt_compiler_lib_search_path
9384
9385# Method to check whether dependent libraries are shared objects.
9386deplibs_check_method=$lt_deplibs_check_method
9387
9388# Command to use when deplibs_check_method == file_magic.
9389file_magic_cmd=$lt_file_magic_cmd
9390
9391# Flag that allows shared libraries with undefined symbols to be built.
9392allow_undefined_flag=$lt_allow_undefined_flag
9393
9394# Flag that forces no undefined symbols.
9395no_undefined_flag=$lt_no_undefined_flag
9396
9397# Commands used to finish a libtool library installation in a directory.
9398finish_cmds=$lt_finish_cmds
9399
9400# Same as above, but a single script fragment to be evaled but not shown.
9401finish_eval=$lt_finish_eval
9402
9403# Take the output of nm and produce a listing of raw symbols and C names.
9404global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9405
9406# Transform the output of nm in a proper C declaration
9407global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9408
9409# Transform the output of nm in a C name address pair
9410global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9411
9412# This is the shared library runtime path variable.
9413runpath_var=$runpath_var
9414
9415# This is the shared library path variable.
9416shlibpath_var=$shlibpath_var
9417
9418# Is shlibpath searched before the hard-coded library search path?
9419shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9420
9421# How to hardcode a shared library path into an executable.
9422hardcode_action=$hardcode_action
9423
9424# Whether we should hardcode library paths into libraries.
9425hardcode_into_libs=$hardcode_into_libs
9426
9427# Flag to hardcode \$libdir into a binary during linking.
9428# This must work even if \$libdir does not exist.
9429hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9430
9431# If ld is used when linking, flag to hardcode \$libdir into
9432# a binary during linking. This must work even if \$libdir does
9433# not exist.
9434hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9435
9436# Whether we need a single -rpath flag with a separated argument.
9437hardcode_libdir_separator=$lt_hardcode_libdir_separator
9438
9439# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9440# resulting binary.
9441hardcode_direct=$hardcode_direct
9442
9443# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9444# resulting binary.
9445hardcode_minus_L=$hardcode_minus_L
9446
9447# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9448# the resulting binary.
9449hardcode_shlibpath_var=$hardcode_shlibpath_var
9450
9451# Set to yes if building a shared library automatically hardcodes DIR into the library
9452# and all subsequent libraries and executables linked against it.
9453hardcode_automatic=$hardcode_automatic
9454
9455# Variables whose values should be saved in libtool wrapper scripts and
9456# restored at relink time.
9457variables_saved_for_relink="$variables_saved_for_relink"
9458
9459# Whether libtool must link a program against all its dependency libraries.
9460link_all_deplibs=$link_all_deplibs
9461
9462# Compile-time system search path for libraries
9463sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9464
9465# Run-time system search path for libraries
9466sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9467
9468# Fix the shell variable \$srcfile for the compiler.
9469fix_srcfile_path="$fix_srcfile_path"
9470
9471# Set to yes if exported symbols are required.
9472always_export_symbols=$always_export_symbols
9473
9474# The commands to list exported symbols.
9475export_symbols_cmds=$lt_export_symbols_cmds
9476
9477# The commands to extract the exported symbol list from a shared archive.
9478extract_expsyms_cmds=$lt_extract_expsyms_cmds
9479
9480# Symbols that should not be listed in the preloaded symbols.
9481exclude_expsyms=$lt_exclude_expsyms
9482
9483# Symbols that must always be exported.
9484include_expsyms=$lt_include_expsyms
9485
9486# ### END LIBTOOL CONFIG
9487
9488__EOF__
9489
9490
9491 case $host_os in
9492 aix3*)
9493 cat <<\EOF >> "$cfgfile"
9494
9495# AIX sometimes has problems with the GCC collect2 program. For some
9496# reason, if we set the COLLECT_NAMES environment variable, the problems
9497# vanish in a puff of smoke.
9498if test "X${COLLECT_NAMES+set}" != Xset; then
9499 COLLECT_NAMES=
9500 export COLLECT_NAMES
9501fi
9502EOF
9503 ;;
9504 esac
9505
9506 # We use sed instead of cat because bash on DJGPP gets confused if
9507 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9508 # text mode, it properly converts lines to CR/LF. This bash problem
9509 # is reportedly fixed, but why not run on old versions too?
9510 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9511
9512 mv -f "$cfgfile" "$ofile" || \
9513 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9514 chmod +x "$ofile"
9515
9516else
9517 # If there is no Makefile yet, we rely on a make rule to execute
9518 # `config.status --recheck' to rerun these tests and create the
9519 # libtool script then.
9520 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9521 if test -f "$ltmain_in"; then
9522 test -f Makefile && make "$ltmain"
9523 fi
9524fi
9525
9526
9527ac_ext=c
9528ac_cpp='$CPP $CPPFLAGS'
9529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9531ac_compiler_gnu=$ac_cv_c_compiler_gnu
9532
9533CC="$lt_save_CC"
9534
9535
9536# Check whether --with-tags or --without-tags was given.
9537if test "${with_tags+set}" = set; then
9538 withval="$with_tags"
9539 tagnames="$withval"
9540fi;
9541
9542if test -f "$ltmain" && test -n "$tagnames"; then
9543 if test ! -f "${ofile}"; then
9544 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9545echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9546 fi
9547
9548 if test -z "$LTCC"; then
9549 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9550 if test -z "$LTCC"; then
9551 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9552echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9553 else
9554 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9555echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9556 fi
9557 fi
9558
9559 # Extract list of available tagged configurations in $ofile.
9560 # Note that this assumes the entire list is on one line.
9561 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9562
9563 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9564 for tagname in $tagnames; do
9565 IFS="$lt_save_ifs"
9566 # Check whether tagname contains only valid characters
9567 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9568 "") ;;
9569 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9570echo "$as_me: error: invalid tag name: $tagname" >&2;}
9571 { (exit 1); exit 1; }; }
9572 ;;
9573 esac
9574
9575 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9576 then
9577 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9578echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9579 { (exit 1); exit 1; }; }
9580 fi
9581
9582 # Update the list of available tags.
9583 if test -n "$tagname"; then
9584 echo appending configuration tag \"$tagname\" to $ofile
9585
9586 case $tagname in
9587 CXX)
9588 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9589 ac_ext=cc
9590ac_cpp='$CXXCPP $CPPFLAGS'
9591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9594
9595
9596
9597
9598archive_cmds_need_lc_CXX=no
9599allow_undefined_flag_CXX=
9600always_export_symbols_CXX=no
9601archive_expsym_cmds_CXX=
9602export_dynamic_flag_spec_CXX=
9603hardcode_direct_CXX=no
9604hardcode_libdir_flag_spec_CXX=
9605hardcode_libdir_flag_spec_ld_CXX=
9606hardcode_libdir_separator_CXX=
9607hardcode_minus_L_CXX=no
9608hardcode_automatic_CXX=no
9609module_cmds_CXX=
9610module_expsym_cmds_CXX=
9611link_all_deplibs_CXX=unknown
9612old_archive_cmds_CXX=$old_archive_cmds
9613no_undefined_flag_CXX=
9614whole_archive_flag_spec_CXX=
9615enable_shared_with_static_runtimes_CXX=no
9616
9617# Dependencies to place before and after the object being linked:
9618predep_objects_CXX=
9619postdep_objects_CXX=
9620predeps_CXX=
9621postdeps_CXX=
9622compiler_lib_search_path_CXX=
9623
9624# Source file extension for C++ test sources.
9625ac_ext=cc
9626
9627# Object file extension for compiled C++ test sources.
9628objext=o
9629objext_CXX=$objext
9630
9631# Code to be used in simple compile tests
9632lt_simple_compile_test_code="int some_variable = 0;\n"
9633
9634# Code to be used in simple link tests
9635lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9636
9637# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9638
9639# If no C compiler was specified, use CC.
9640LTCC=${LTCC-"$CC"}
9641
9642# Allow CC to be a program name with arguments.
9643compiler=$CC
9644
9645
9646# Allow CC to be a program name with arguments.
9647lt_save_CC=$CC
9648lt_save_LD=$LD
9649lt_save_GCC=$GCC
9650GCC=$GXX
9651lt_save_with_gnu_ld=$with_gnu_ld
9652lt_save_path_LD=$lt_cv_path_LD
9653if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9654 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9655else
9656 unset lt_cv_prog_gnu_ld
9657fi
9658if test -n "${lt_cv_path_LDCXX+set}"; then
9659 lt_cv_path_LD=$lt_cv_path_LDCXX
9660else
9661 unset lt_cv_path_LD
9662fi
9663test -z "${LDCXX+set}" || LD=$LDCXX
9664CC=${CXX-"c++"}
9665compiler=$CC
9666compiler_CXX=$CC
9667cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9668
9669# We don't want -fno-exception wen compiling C++ code, so set the
9670# no_builtin_flag separately
9671if test "$GXX" = yes; then
9672 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9673else
9674 lt_prog_compiler_no_builtin_flag_CXX=
9675fi
9676
9677if test "$GXX" = yes; then
9678 # Set up default GNU C++ configuration
9679
9680
9681# Check whether --with-gnu-ld or --without-gnu-ld was given.
9682if test "${with_gnu_ld+set}" = set; then
9683 withval="$with_gnu_ld"
9684 test "$withval" = no || with_gnu_ld=yes
9685else
9686 with_gnu_ld=no
9687fi;
9688ac_prog=ld
9689if test "$GCC" = yes; then
9690 # Check if gcc -print-prog-name=ld gives a path.
9691 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9692echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9693 case $host in
9694 *-*-mingw*)
9695 # gcc leaves a trailing carriage return which upsets mingw
9696 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9697 *)
9698 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9699 esac
9700 case $ac_prog in
9701 # Accept absolute paths.
9702 [\\/]* | ?:[\\/]*)
9703 re_direlt='/[^/][^/]*/\.\./'
9704 # Canonicalize the pathname of ld
9705 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9706 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9707 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9708 done
9709 test -z "$LD" && LD="$ac_prog"
9710 ;;
9711 "")
9712 # If it fails, then pretend we aren't using GCC.
9713 ac_prog=ld
9714 ;;
9715 *)
9716 # If it is relative, then search for the first ld in PATH.
9717 with_gnu_ld=unknown
9718 ;;
9719 esac
9720elif test "$with_gnu_ld" = yes; then
9721 echo "$as_me:$LINENO: checking for GNU ld" >&5
9722echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9723else
9724 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9725echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9726fi
9727if test "${lt_cv_path_LD+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729else
9730 if test -z "$LD"; then
9731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9732 for ac_dir in $PATH; do
9733 IFS="$lt_save_ifs"
9734 test -z "$ac_dir" && ac_dir=.
9735 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9736 lt_cv_path_LD="$ac_dir/$ac_prog"
9737 # Check to see if the program is GNU ld. I'd rather use --version,
9738 # but apparently some GNU ld's only accept -v.
9739 # Break only if it was the GNU/non-GNU ld that we prefer.
9740 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9741 *GNU* | *'with BFD'*)
9742 test "$with_gnu_ld" != no && break
9743 ;;
9744 *)
9745 test "$with_gnu_ld" != yes && break
9746 ;;
9747 esac
9748 fi
9749 done
9750 IFS="$lt_save_ifs"
9751else
9752 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9753fi
9754fi
9755
9756LD="$lt_cv_path_LD"
9757if test -n "$LD"; then
9758 echo "$as_me:$LINENO: result: $LD" >&5
9759echo "${ECHO_T}$LD" >&6
9760else
9761 echo "$as_me:$LINENO: result: no" >&5
9762echo "${ECHO_T}no" >&6
9763fi
9764test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9765echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9766 { (exit 1); exit 1; }; }
9767echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9768echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9769if test "${lt_cv_prog_gnu_ld+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771else
9772 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9773case `$LD -v 2>&1 </dev/null` in
9774*GNU* | *'with BFD'*)
9775 lt_cv_prog_gnu_ld=yes
9776 ;;
9777*)
9778 lt_cv_prog_gnu_ld=no
9779 ;;
9780esac
9781fi
9782echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9783echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9784with_gnu_ld=$lt_cv_prog_gnu_ld
9785
9786
9787
9788 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9789 # archiving commands below assume that GNU ld is being used.
9790 if test "$with_gnu_ld" = yes; then
9791 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9792 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'
9793
9794 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9796
9797 # If archive_cmds runs LD, not CC, wlarc should be empty
9798 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9799 # investigate it a little bit more. (MM)
9800 wlarc='${wl}'
9801
9802 # ancient GNU ld didn't support --whole-archive et. al.
9803 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9804 grep 'no-whole-archive' > /dev/null; then
9805 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9806 else
9807 whole_archive_flag_spec_CXX=
9808 fi
9809 else
9810 with_gnu_ld=no
9811 wlarc=
9812
9813 # A generic and very simple default shared library creation
9814 # command for GNU C++ for the case where it uses the native
9815 # linker, instead of GNU ld. If possible, this setting should
9816 # overridden to take advantage of the native linker features on
9817 # the platform it is being used on.
9818 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9819 fi
9820
9821 # Commands to make compiler produce verbose output that lists
9822 # what "hidden" libraries, object files and flags are used when
9823 # linking a shared library.
9824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9825
9826else
9827 GXX=no
9828 with_gnu_ld=no
9829 wlarc=
9830fi
9831
9832# PORTME: fill in a description of your system's C++ link characteristics
9833echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9834echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9835ld_shlibs_CXX=yes
9836case $host_os in
9837 aix3*)
9838 # FIXME: insert proper C++ library support
9839 ld_shlibs_CXX=no
9840 ;;
9841 aix4* | aix5*)
9842 if test "$host_cpu" = ia64; then
9843 # On IA64, the linker does run time linking by default, so we don't
9844 # have to do anything special.
9845 aix_use_runtimelinking=no
9846 exp_sym_flag='-Bexport'
9847 no_entry_flag=""
9848 else
9849 aix_use_runtimelinking=no
9850
9851 # Test if we are trying to use run time linking or normal
9852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9853 # need to do runtime linking.
9854 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9855 for ld_flag in $LDFLAGS; do
9856 case $ld_flag in
9857 *-brtl*)
9858 aix_use_runtimelinking=yes
9859 break
9860 ;;
9861 esac
9862 done
9863 esac
9864
9865 exp_sym_flag='-bexport'
9866 no_entry_flag='-bnoentry'
9867 fi
9868
9869 # When large executables or shared objects are built, AIX ld can
9870 # have problems creating the table of contents. If linking a library
9871 # or program results in "error TOC overflow" add -mminimal-toc to
9872 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9873 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9874
9875 archive_cmds_CXX=''
9876 hardcode_direct_CXX=yes
9877 hardcode_libdir_separator_CXX=':'
9878 link_all_deplibs_CXX=yes
9879
9880 if test "$GXX" = yes; then
9881 case $host_os in aix4.012|aix4.012.*)
9882 # We only want to do this on AIX 4.2 and lower, the check
9883 # below for broken collect2 doesn't work under 4.3+
9884 collect2name=`${CC} -print-prog-name=collect2`
9885 if test -f "$collect2name" && \
9886 strings "$collect2name" | grep resolve_lib_name >/dev/null
9887 then
9888 # We have reworked collect2
9889 hardcode_direct_CXX=yes
9890 else
9891 # We have old collect2
9892 hardcode_direct_CXX=unsupported
9893 # It fails to find uninstalled libraries when the uninstalled
9894 # path is not listed in the libpath. Setting hardcode_minus_L
9895 # to unsupported forces relinking
9896 hardcode_minus_L_CXX=yes
9897 hardcode_libdir_flag_spec_CXX='-L$libdir'
9898 hardcode_libdir_separator_CXX=
9899 fi
9900 esac
9901 shared_flag='-shared'
9902 else
9903 # not using gcc
9904 if test "$host_cpu" = ia64; then
9905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9906 # chokes on -Wl,-G. The following line is correct:
9907 shared_flag='-G'
9908 else
9909 if test "$aix_use_runtimelinking" = yes; then
9910 shared_flag='${wl}-G'
9911 else
9912 shared_flag='${wl}-bM:SRE'
9913 fi
9914 fi
9915 fi
9916
9917 # It seems that -bexpall does not export symbols beginning with
9918 # underscore (_), so it is better to generate a list of symbols to export.
9919 always_export_symbols_CXX=yes
9920 if test "$aix_use_runtimelinking" = yes; then
9921 # Warning - without using the other runtime loading flags (-brtl),
9922 # -berok will link without error, but may produce a broken library.
9923 allow_undefined_flag_CXX='-berok'
9924 # Determine the default libpath from the value encoded in an empty executable.
9925 cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h. */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h. */
9931
9932int
9933main ()
9934{
9935
9936 ;
9937 return 0;
9938}
9939_ACEOF
9940rm -f conftest.$ac_objext conftest$ac_exeext
9941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942 (eval $ac_link) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_cxx_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962
9963aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9964}'`
9965# Check for a 64-bit object if we didn't find anything.
9966if 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; }
9967}'`; fi
9968else
9969 echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
9971
9972fi
9973rm -f conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9976
9977 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9978
9979 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9980 else
9981 if test "$host_cpu" = ia64; then
9982 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9983 allow_undefined_flag_CXX="-z nodefs"
9984 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9985 else
9986 # Determine the default libpath from the value encoded in an empty executable.
9987 cat >conftest.$ac_ext <<_ACEOF
9988/* confdefs.h. */
9989_ACEOF
9990cat confdefs.h >>conftest.$ac_ext
9991cat >>conftest.$ac_ext <<_ACEOF
9992/* end confdefs.h. */
9993
9994int
9995main ()
9996{
9997
9998 ;
9999 return 0;
10000}
10001_ACEOF
10002rm -f conftest.$ac_objext conftest$ac_exeext
10003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_cxx_werror_flag"
10012 || test ! -s conftest.err'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; } &&
10018 { ac_try='test -s conftest$ac_exeext'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10024
10025aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10026}'`
10027# Check for a 64-bit object if we didn't find anything.
10028if 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; }
10029}'`; fi
10030else
10031 echo "$as_me: failed program was:" >&5
10032sed 's/^/| /' conftest.$ac_ext >&5
10033
10034fi
10035rm -f conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10038
10039 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10040 # Warning - without using the other run time loading flags,
10041 # -berok will link without error, but may produce a broken library.
10042 no_undefined_flag_CXX=' ${wl}-bernotok'
10043 allow_undefined_flag_CXX=' ${wl}-berok'
10044 # -bexpall does not export symbols beginning with underscore (_)
10045 always_export_symbols_CXX=yes
10046 # Exported symbols can be pulled into shared objects from archives
10047 whole_archive_flag_spec_CXX=' '
10048 archive_cmds_need_lc_CXX=yes
10049 # This is similar to how AIX traditionally builds it's shared libraries.
10050 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10051 fi
10052 fi
10053 ;;
10054 chorus*)
10055 case $cc_basename in
10056 *)
10057 # FIXME: insert proper C++ library support
10058 ld_shlibs_CXX=no
10059 ;;
10060 esac
10061 ;;
10062
10063 cygwin* | mingw* | pw32*)
10064 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10065 # as there is no search path for DLLs.
10066 hardcode_libdir_flag_spec_CXX='-L$libdir'
10067 allow_undefined_flag_CXX=unsupported
10068 always_export_symbols_CXX=no
10069 enable_shared_with_static_runtimes_CXX=yes
10070
10071 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10072 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10073 # If the export-symbols file already is a .def file (1st line
10074 # is EXPORTS), use it as is; otherwise, prepend...
10075 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10076 cp $export_symbols $output_objdir/$soname.def;
10077 else
10078 echo EXPORTS > $output_objdir/$soname.def;
10079 cat $export_symbols >> $output_objdir/$soname.def;
10080 fi~
10081 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10082 else
10083 ld_shlibs_CXX=no
10084 fi
10085 ;;
10086
10087 darwin* | rhapsody*)
10088 if test "$GXX" = yes; then
10089 archive_cmds_need_lc_CXX=no
10090 case "$host_os" in
10091 rhapsody* | darwin1.[012])
10092 allow_undefined_flag_CXX='-undefined suppress'
10093 ;;
10094 *) # Darwin 1.3 on
10095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10096 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10097 else
10098 case ${MACOSX_DEPLOYMENT_TARGET} in
10099 10.[012])
10100 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10101 ;;
10102 10.*)
10103 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10104 ;;
10105 esac
10106 fi
10107 ;;
10108 esac
10109 lt_int_apple_cc_single_mod=no
10110 output_verbose_link_cmd='echo'
10111 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10112 lt_int_apple_cc_single_mod=yes
10113 fi
10114 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10115 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10116 else
10117 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10118 fi
10119 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10120
10121 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10122 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10123 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}'
10124 else
10125 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10126 fi
10127 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}'
10128 hardcode_direct_CXX=no
10129 hardcode_automatic_CXX=yes
10130 hardcode_shlibpath_var_CXX=unsupported
10131 whole_archive_flag_spec_CXX='-all_load $convenience'
10132 link_all_deplibs_CXX=yes
10133 else
10134 ld_shlibs_CXX=no
10135 fi
10136 ;;
10137
10138 dgux*)
10139 case $cc_basename in
10140 ec++)
10141 # FIXME: insert proper C++ library support
10142 ld_shlibs_CXX=no
10143 ;;
10144 ghcx)
10145 # Green Hills C++ Compiler
10146 # FIXME: insert proper C++ library support
10147 ld_shlibs_CXX=no
10148 ;;
10149 *)
10150 # FIXME: insert proper C++ library support
10151 ld_shlibs_CXX=no
10152 ;;
10153 esac
10154 ;;
10155 freebsd12*)
10156 # C++ shared libraries reported to be fairly broken before switch to ELF
10157 ld_shlibs_CXX=no
10158 ;;
10159 freebsd-elf*)
10160 archive_cmds_need_lc_CXX=no
10161 ;;
10162 freebsd* | kfreebsd*-gnu)
10163 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10164 # conventions
10165 ld_shlibs_CXX=yes
10166 ;;
10167 gnu*)
10168 ;;
10169 hpux9*)
10170 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10171 hardcode_libdir_separator_CXX=:
10172 export_dynamic_flag_spec_CXX='${wl}-E'
10173 hardcode_direct_CXX=yes
10174 hardcode_minus_L_CXX=yes # Not in the search PATH,
10175 # but as the default
10176 # location of the library.
10177
10178 case $cc_basename in
10179 CC)
10180 # FIXME: insert proper C++ library support
10181 ld_shlibs_CXX=no
10182 ;;
10183 aCC)
10184 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'
10185 # Commands to make compiler produce verbose output that lists
10186 # what "hidden" libraries, object files and flags are used when
10187 # linking a shared library.
10188 #
10189 # There doesn't appear to be a way to prevent this compiler from
10190 # explicitly linking system object files so we need to strip them
10191 # from the output so that they don't get included in the library
10192 # dependencies.
10193 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'
10194 ;;
10195 *)
10196 if test "$GXX" = yes; then
10197 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'
10198 else
10199 # FIXME: insert proper C++ library support
10200 ld_shlibs_CXX=no
10201 fi
10202 ;;
10203 esac
10204 ;;
10205 hpux10*|hpux11*)
10206 if test $with_gnu_ld = no; then
10207 case "$host_cpu" in
10208 hppa*64*)
10209 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10210 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10211 hardcode_libdir_separator_CXX=:
10212 ;;
10213 ia64*)
10214 hardcode_libdir_flag_spec_CXX='-L$libdir'
10215 ;;
10216 *)
10217 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10218 hardcode_libdir_separator_CXX=:
10219 export_dynamic_flag_spec_CXX='${wl}-E'
10220 ;;
10221 esac
10222 fi
10223 case "$host_cpu" in
10224 hppa*64*)
10225 hardcode_direct_CXX=no
10226 hardcode_shlibpath_var_CXX=no
10227 ;;
10228 ia64*)
10229 hardcode_direct_CXX=no
10230 hardcode_shlibpath_var_CXX=no
10231 hardcode_minus_L_CXX=yes # Not in the search PATH,
10232 # but as the default
10233 # location of the library.
10234 ;;
10235 *)
10236 hardcode_direct_CXX=yes
10237 hardcode_minus_L_CXX=yes # Not in the search PATH,
10238 # but as the default
10239 # location of the library.
10240 ;;
10241 esac
10242
10243 case $cc_basename in
10244 CC)
10245 # FIXME: insert proper C++ library support
10246 ld_shlibs_CXX=no
10247 ;;
10248 aCC)
10249 case "$host_cpu" in
10250 hppa*64*|ia64*)
10251 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10252 ;;
10253 *)
10254 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10255 ;;
10256 esac
10257 # Commands to make compiler produce verbose output that lists
10258 # what "hidden" libraries, object files and flags are used when
10259 # linking a shared library.
10260 #
10261 # There doesn't appear to be a way to prevent this compiler from
10262 # explicitly linking system object files so we need to strip them
10263 # from the output so that they don't get included in the library
10264 # dependencies.
10265 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'
10266 ;;
10267 *)
10268 if test "$GXX" = yes; then
10269 if test $with_gnu_ld = no; then
10270 case "$host_cpu" in
10271 ia64*|hppa*64*)
10272 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10273 ;;
10274 *)
10275 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'
10276 ;;
10277 esac
10278 fi
10279 else
10280 # FIXME: insert proper C++ library support
10281 ld_shlibs_CXX=no
10282 fi
10283 ;;
10284 esac
10285 ;;
10286 irix5* | irix6*)
10287 case $cc_basename in
10288 CC)
10289 # SGI C++
10290 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10291
10292 # Archives containing C++ object files must be created using
10293 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10294 # necessary to make sure instantiated templates are included
10295 # in the archive.
10296 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10297 ;;
10298 *)
10299 if test "$GXX" = yes; then
10300 if test "$with_gnu_ld" = no; then
10301 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10302 else
10303 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'
10304 fi
10305 fi
10306 link_all_deplibs_CXX=yes
10307 ;;
10308 esac
10309 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10310 hardcode_libdir_separator_CXX=:
10311 ;;
10312 linux*)
10313 case $cc_basename in
10314 KCC)
10315 # Kuck and Associates, Inc. (KAI) C++ Compiler
10316
10317 # KCC will only create a shared library if the output file
10318 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10319 # to its proper name (with version) after linking.
10320 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'
10321 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'
10322 # Commands to make compiler produce verbose output that lists
10323 # what "hidden" libraries, object files and flags are used when
10324 # linking a shared library.
10325 #
10326 # There doesn't appear to be a way to prevent this compiler from
10327 # explicitly linking system object files so we need to strip them
10328 # from the output so that they don't get included in the library
10329 # dependencies.
10330 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'
10331
10332 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10333 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10334
10335 # Archives containing C++ object files must be created using
10336 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10337 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10338 ;;
10339 icpc)
10340 # Intel C++
10341 with_gnu_ld=yes
10342 archive_cmds_need_lc_CXX=no
10343 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10344 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'
10345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10346 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10347 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10348 ;;
10349 cxx)
10350 # Compaq C++
10351 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10352 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'
10353
10354 runpath_var=LD_RUN_PATH
10355 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10356 hardcode_libdir_separator_CXX=:
10357
10358 # Commands to make compiler produce verbose output that lists
10359 # what "hidden" libraries, object files and flags are used when
10360 # linking a shared library.
10361 #
10362 # There doesn't appear to be a way to prevent this compiler from
10363 # explicitly linking system object files so we need to strip them
10364 # from the output so that they don't get included in the library
10365 # dependencies.
10366 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'
10367 ;;
10368 esac
10369 ;;
10370 lynxos*)
10371 # FIXME: insert proper C++ library support
10372 ld_shlibs_CXX=no
10373 ;;
10374 m88k*)
10375 # FIXME: insert proper C++ library support
10376 ld_shlibs_CXX=no
10377 ;;
10378 mvs*)
10379 case $cc_basename in
10380 cxx)
10381 # FIXME: insert proper C++ library support
10382 ld_shlibs_CXX=no
10383 ;;
10384 *)
10385 # FIXME: insert proper C++ library support
10386 ld_shlibs_CXX=no
10387 ;;
10388 esac
10389 ;;
10390 netbsd*)
10391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10392 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10393 wlarc=
10394 hardcode_libdir_flag_spec_CXX='-R$libdir'
10395 hardcode_direct_CXX=yes
10396 hardcode_shlibpath_var_CXX=no
10397 fi
10398 # Workaround some broken pre-1.5 toolchains
10399 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10400 ;;
10401 osf3*)
10402 case $cc_basename in
10403 KCC)
10404 # Kuck and Associates, Inc. (KAI) C++ Compiler
10405
10406 # KCC will only create a shared library if the output file
10407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10408 # to its proper name (with version) after linking.
10409 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'
10410
10411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10412 hardcode_libdir_separator_CXX=:
10413
10414 # Archives containing C++ object files must be created using
10415 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10416 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10417
10418 ;;
10419 RCC)
10420 # Rational C++ 2.4.1
10421 # FIXME: insert proper C++ library support
10422 ld_shlibs_CXX=no
10423 ;;
10424 cxx)
10425 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10426 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10427
10428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10429 hardcode_libdir_separator_CXX=:
10430
10431 # Commands to make compiler produce verbose output that lists
10432 # what "hidden" libraries, object files and flags are used when
10433 # linking a shared library.
10434 #
10435 # There doesn't appear to be a way to prevent this compiler from
10436 # explicitly linking system object files so we need to strip them
10437 # from the output so that they don't get included in the library
10438 # dependencies.
10439 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'
10440 ;;
10441 *)
10442 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10443 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10444 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10445
10446 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10447 hardcode_libdir_separator_CXX=:
10448
10449 # Commands to make compiler produce verbose output that lists
10450 # what "hidden" libraries, object files and flags are used when
10451 # linking a shared library.
10452 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10453
10454 else
10455 # FIXME: insert proper C++ library support
10456 ld_shlibs_CXX=no
10457 fi
10458 ;;
10459 esac
10460 ;;
10461 osf4* | osf5*)
10462 case $cc_basename in
10463 KCC)
10464 # Kuck and Associates, Inc. (KAI) C++ Compiler
10465
10466 # KCC will only create a shared library if the output file
10467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10468 # to its proper name (with version) after linking.
10469 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'
10470
10471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10472 hardcode_libdir_separator_CXX=:
10473
10474 # Archives containing C++ object files must be created using
10475 # the KAI C++ compiler.
10476 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10477 ;;
10478 RCC)
10479 # Rational C++ 2.4.1
10480 # FIXME: insert proper C++ library support
10481 ld_shlibs_CXX=no
10482 ;;
10483 cxx)
10484 allow_undefined_flag_CXX=' -expect_unresolved \*'
10485 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10486 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10487 echo "-hidden">> $lib.exp~
10488 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10489 $rm $lib.exp'
10490
10491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10492 hardcode_libdir_separator_CXX=:
10493
10494 # Commands to make compiler produce verbose output that lists
10495 # what "hidden" libraries, object files and flags are used when
10496 # linking a shared library.
10497 #
10498 # There doesn't appear to be a way to prevent this compiler from
10499 # explicitly linking system object files so we need to strip them
10500 # from the output so that they don't get included in the library
10501 # dependencies.
10502 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'
10503 ;;
10504 *)
10505 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10506 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10507 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10508
10509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10510 hardcode_libdir_separator_CXX=:
10511
10512 # Commands to make compiler produce verbose output that lists
10513 # what "hidden" libraries, object files and flags are used when
10514 # linking a shared library.
10515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10516
10517 else
10518 # FIXME: insert proper C++ library support
10519 ld_shlibs_CXX=no
10520 fi
10521 ;;
10522 esac
10523 ;;
10524 psos*)
10525 # FIXME: insert proper C++ library support
10526 ld_shlibs_CXX=no
10527 ;;
10528 sco*)
10529 archive_cmds_need_lc_CXX=no
10530 case $cc_basename in
10531 CC)
10532 # FIXME: insert proper C++ library support
10533 ld_shlibs_CXX=no
10534 ;;
10535 *)
10536 # FIXME: insert proper C++ library support
10537 ld_shlibs_CXX=no
10538 ;;
10539 esac
10540 ;;
10541 sunos4*)
10542 case $cc_basename in
10543 CC)
10544 # Sun C++ 4.x
10545 # FIXME: insert proper C++ library support
10546 ld_shlibs_CXX=no
10547 ;;
10548 lcc)
10549 # Lucid
10550 # FIXME: insert proper C++ library support
10551 ld_shlibs_CXX=no
10552 ;;
10553 *)
10554 # FIXME: insert proper C++ library support
10555 ld_shlibs_CXX=no
10556 ;;
10557 esac
10558 ;;
10559 solaris*)
10560 case $cc_basename in
10561 CC)
10562 # Sun C++ 4.2, 5.x and Centerline C++
10563 no_undefined_flag_CXX=' -zdefs'
10564 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10565 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10566 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10567
10568 hardcode_libdir_flag_spec_CXX='-R$libdir'
10569 hardcode_shlibpath_var_CXX=no
10570 case $host_os in
10571 solaris2.0-5 | solaris2.0-5.*) ;;
10572 *)
10573 # The C++ compiler is used as linker so we must use $wl
10574 # flag to pass the commands to the underlying system
10575 # linker.
10576 # Supported since Solaris 2.6 (maybe 2.5.1?)
10577 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10578 ;;
10579 esac
10580 link_all_deplibs_CXX=yes
10581
10582 # Commands to make compiler produce verbose output that lists
10583 # what "hidden" libraries, object files and flags are used when
10584 # linking a shared library.
10585 #
10586 # There doesn't appear to be a way to prevent this compiler from
10587 # explicitly linking system object files so we need to strip them
10588 # from the output so that they don't get included in the library
10589 # dependencies.
10590 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10591
10592 # Archives containing C++ object files must be created using
10593 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10594 # necessary to make sure instantiated templates are included
10595 # in the archive.
10596 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10597 ;;
10598 gcx)
10599 # Green Hills C++ Compiler
10600 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10601
10602 # The C++ compiler must be used to create the archive.
10603 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10604 ;;
10605 *)
10606 # GNU C++ compiler with Solaris linker
10607 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10608 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10609 if $CC --version | grep -v '^2\.7' > /dev/null; then
10610 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10611 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10612 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10613
10614 # Commands to make compiler produce verbose output that lists
10615 # what "hidden" libraries, object files and flags are used when
10616 # linking a shared library.
10617 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10618 else
10619 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10620 # platform.
10621 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10622 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10623 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10624
10625 # Commands to make compiler produce verbose output that lists
10626 # what "hidden" libraries, object files and flags are used when
10627 # linking a shared library.
10628 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10629 fi
10630
10631 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10632 fi
10633 ;;
10634 esac
10635 ;;
10636 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10637 archive_cmds_need_lc_CXX=no
10638 ;;
10639 tandem*)
10640 case $cc_basename in
10641 NCC)
10642 # NonStop-UX NCC 3.20
10643 # FIXME: insert proper C++ library support
10644 ld_shlibs_CXX=no
10645 ;;
10646 *)
10647 # FIXME: insert proper C++ library support
10648 ld_shlibs_CXX=no
10649 ;;
10650 esac
10651 ;;
10652 vxworks*)
10653 # FIXME: insert proper C++ library support
10654 ld_shlibs_CXX=no
10655 ;;
10656 *)
10657 # FIXME: insert proper C++ library support
10658 ld_shlibs_CXX=no
10659 ;;
10660esac
10661echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10662echo "${ECHO_T}$ld_shlibs_CXX" >&6
10663test "$ld_shlibs_CXX" = no && can_build_shared=no
10664
10665GCC_CXX="$GXX"
10666LD_CXX="$LD"
10667
10668
10669cat > conftest.$ac_ext <<EOF
10670class Foo
10671{
10672public:
10673 Foo (void) { a = 0; }
10674private:
10675 int a;
10676};
10677EOF
10678
10679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10680 (eval $ac_compile) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; then
10684 # Parse the compiler output and extract the necessary
10685 # objects, libraries and library flags.
10686
10687 # Sentinel used to keep track of whether or not we are before
10688 # the conftest object file.
10689 pre_test_object_deps_done=no
10690
10691 # The `*' in the case matches for architectures that use `case' in
10692 # $output_verbose_cmd can trigger glob expansion during the loop
10693 # eval without this substitution.
10694 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10695
10696 for p in `eval $output_verbose_link_cmd`; do
10697 case $p in
10698
10699 -L* | -R* | -l*)
10700 # Some compilers place space between "-{L,R}" and the path.
10701 # Remove the space.
10702 if test $p = "-L" \
10703 || test $p = "-R"; then
10704 prev=$p
10705 continue
10706 else
10707 prev=
10708 fi
10709
10710 if test "$pre_test_object_deps_done" = no; then
10711 case $p in
10712 -L* | -R*)
10713 # Internal compiler library paths should come after those
10714 # provided the user. The postdeps already come after the
10715 # user supplied libs so there is no need to process them.
10716 if test -z "$compiler_lib_search_path_CXX"; then
10717 compiler_lib_search_path_CXX="${prev}${p}"
10718 else
10719 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10720 fi
10721 ;;
10722 # The "-l" case would never come before the object being
10723 # linked, so don't bother handling this case.
10724 esac
10725 else
10726 if test -z "$postdeps_CXX"; then
10727 postdeps_CXX="${prev}${p}"
10728 else
10729 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10730 fi
10731 fi
10732 ;;
10733
10734 *.$objext)
10735 # This assumes that the test object file only shows up
10736 # once in the compiler output.
10737 if test "$p" = "conftest.$objext"; then
10738 pre_test_object_deps_done=yes
10739 continue
10740 fi
10741
10742 if test "$pre_test_object_deps_done" = no; then
10743 if test -z "$predep_objects_CXX"; then
10744 predep_objects_CXX="$p"
10745 else
10746 predep_objects_CXX="$predep_objects_CXX $p"
10747 fi
10748 else
10749 if test -z "$postdep_objects_CXX"; then
10750 postdep_objects_CXX="$p"
10751 else
10752 postdep_objects_CXX="$postdep_objects_CXX $p"
10753 fi
10754 fi
10755 ;;
10756
10757 *) ;; # Ignore the rest.
10758
10759 esac
10760 done
10761
10762 # Clean up.
10763 rm -f a.out a.exe
10764else
10765 echo "libtool.m4: error: problem compiling CXX test program"
10766fi
10767
10768$rm -f confest.$objext
10769
10770case " $postdeps_CXX " in
10771*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10772esac
10773
10774lt_prog_compiler_wl_CXX=
10775lt_prog_compiler_pic_CXX=
10776lt_prog_compiler_static_CXX=
10777
10778echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10779echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10780
10781 # C++ specific cases for pic, static, wl, etc.
10782 if test "$GXX" = yes; then
10783 lt_prog_compiler_wl_CXX='-Wl,'
10784 lt_prog_compiler_static_CXX='-static'
10785
10786 case $host_os in
10787 aix*)
10788 # All AIX code is PIC.
10789 if test "$host_cpu" = ia64; then
10790 # AIX 5 now supports IA64 processor
10791 lt_prog_compiler_static_CXX='-Bstatic'
10792 fi
10793 ;;
10794 amigaos*)
10795 # FIXME: we need at least 68020 code to build shared libraries, but
10796 # adding the `-m68020' flag to GCC prevents building anything better,
10797 # like `-m68040'.
10798 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10799 ;;
10800 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10801 # PIC is the default for these OSes.
10802 ;;
10803 mingw* | os2* | pw32*)
10804 # This hack is so that the source file can tell whether it is being
10805 # built for inclusion in a dll (and should export symbols for example).
10806 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10807 ;;
10808 darwin* | rhapsody*)
10809 # PIC is the default on this platform
10810 # Common symbols not allowed in MH_DYLIB files
10811 lt_prog_compiler_pic_CXX='-fno-common'
10812 ;;
10813 *djgpp*)
10814 # DJGPP does not support shared libraries at all
10815 lt_prog_compiler_pic_CXX=
10816 ;;
10817 sysv4*MP*)
10818 if test -d /usr/nec; then
10819 lt_prog_compiler_pic_CXX=-Kconform_pic
10820 fi
10821 ;;
10822 hpux*)
10823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10824 # not for PA HP-UX.
10825 case "$host_cpu" in
10826 hppa*64*|ia64*)
10827 ;;
10828 *)
10829 lt_prog_compiler_pic_CXX='-fPIC'
10830 ;;
10831 esac
10832 ;;
10833 *)
10834 lt_prog_compiler_pic_CXX='-fPIC'
10835 ;;
10836 esac
10837 else
10838 case $host_os in
10839 aix4* | aix5*)
10840 # All AIX code is PIC.
10841 if test "$host_cpu" = ia64; then
10842 # AIX 5 now supports IA64 processor
10843 lt_prog_compiler_static_CXX='-Bstatic'
10844 else
10845 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10846 fi
10847 ;;
10848 chorus*)
10849 case $cc_basename in
10850 cxch68)
10851 # Green Hills C++ Compiler
10852 # _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"
10853 ;;
10854 esac
10855 ;;
10856 dgux*)
10857 case $cc_basename in
10858 ec++)
10859 lt_prog_compiler_pic_CXX='-KPIC'
10860 ;;
10861 ghcx)
10862 # Green Hills C++ Compiler
10863 lt_prog_compiler_pic_CXX='-pic'
10864 ;;
10865 *)
10866 ;;
10867 esac
10868 ;;
10869 freebsd* | kfreebsd*-gnu)
10870 # FreeBSD uses GNU C++
10871 ;;
10872 hpux9* | hpux10* | hpux11*)
10873 case $cc_basename in
10874 CC)
10875 lt_prog_compiler_wl_CXX='-Wl,'
10876 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10877 if test "$host_cpu" != ia64; then
10878 lt_prog_compiler_pic_CXX='+Z'
10879 fi
10880 ;;
10881 aCC)
10882 lt_prog_compiler_wl_CXX='-Wl,'
10883 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10884 case "$host_cpu" in
10885 hppa*64*|ia64*)
10886 # +Z the default
10887 ;;
10888 *)
10889 lt_prog_compiler_pic_CXX='+Z'
10890 ;;
10891 esac
10892 ;;
10893 *)
10894 ;;
10895 esac
10896 ;;
10897 irix5* | irix6* | nonstopux*)
10898 case $cc_basename in
10899 CC)
10900 lt_prog_compiler_wl_CXX='-Wl,'
10901 lt_prog_compiler_static_CXX='-non_shared'
10902 # CC pic flag -KPIC is the default.
10903 ;;
10904 *)
10905 ;;
10906 esac
10907 ;;
10908 linux*)
10909 case $cc_basename in
10910 KCC)
10911 # KAI C++ Compiler
10912 lt_prog_compiler_wl_CXX='--backend -Wl,'
10913 lt_prog_compiler_pic_CXX='-fPIC'
10914 ;;
10915 icpc)
10916 # Intel C++
10917 lt_prog_compiler_wl_CXX='-Wl,'
10918 lt_prog_compiler_pic_CXX='-KPIC'
10919 lt_prog_compiler_static_CXX='-static'
10920 ;;
10921 cxx)
10922 # Compaq C++
10923 # Make sure the PIC flag is empty. It appears that all Alpha
10924 # Linux and Compaq Tru64 Unix objects are PIC.
10925 lt_prog_compiler_pic_CXX=
10926 lt_prog_compiler_static_CXX='-non_shared'
10927 ;;
10928 *)
10929 ;;
10930 esac
10931 ;;
10932 lynxos*)
10933 ;;
10934 m88k*)
10935 ;;
10936 mvs*)
10937 case $cc_basename in
10938 cxx)
10939 lt_prog_compiler_pic_CXX='-W c,exportall'
10940 ;;
10941 *)
10942 ;;
10943 esac
10944 ;;
10945 netbsd*)
10946 ;;
10947 osf3* | osf4* | osf5*)
10948 case $cc_basename in
10949 KCC)
10950 lt_prog_compiler_wl_CXX='--backend -Wl,'
10951 ;;
10952 RCC)
10953 # Rational C++ 2.4.1
10954 lt_prog_compiler_pic_CXX='-pic'
10955 ;;
10956 cxx)
10957 # Digital/Compaq C++
10958 lt_prog_compiler_wl_CXX='-Wl,'
10959 # Make sure the PIC flag is empty. It appears that all Alpha
10960 # Linux and Compaq Tru64 Unix objects are PIC.
10961 lt_prog_compiler_pic_CXX=
10962 lt_prog_compiler_static_CXX='-non_shared'
10963 ;;
10964 *)
10965 ;;
10966 esac
10967 ;;
10968 psos*)
10969 ;;
10970 sco*)
10971 case $cc_basename in
10972 CC)
10973 lt_prog_compiler_pic_CXX='-fPIC'
10974 ;;
10975 *)
10976 ;;
10977 esac
10978 ;;
10979 solaris*)
10980 case $cc_basename in
10981 CC)
10982 # Sun C++ 4.2, 5.x and Centerline C++
10983 lt_prog_compiler_pic_CXX='-KPIC'
10984 lt_prog_compiler_static_CXX='-Bstatic'
10985 lt_prog_compiler_wl_CXX='-Qoption ld '
10986 ;;
10987 gcx)
10988 # Green Hills C++ Compiler
10989 lt_prog_compiler_pic_CXX='-PIC'
10990 ;;
10991 *)
10992 ;;
10993 esac
10994 ;;
10995 sunos4*)
10996 case $cc_basename in
10997 CC)
10998 # Sun C++ 4.x
10999 lt_prog_compiler_pic_CXX='-pic'
11000 lt_prog_compiler_static_CXX='-Bstatic'
11001 ;;
11002 lcc)
11003 # Lucid
11004 lt_prog_compiler_pic_CXX='-pic'
11005 ;;
11006 *)
11007 ;;
11008 esac
11009 ;;
11010 tandem*)
11011 case $cc_basename in
11012 NCC)
11013 # NonStop-UX NCC 3.20
11014 lt_prog_compiler_pic_CXX='-KPIC'
11015 ;;
11016 *)
11017 ;;
11018 esac
11019 ;;
11020 unixware*)
11021 ;;
11022 vxworks*)
11023 ;;
11024 *)
11025 lt_prog_compiler_can_build_shared_CXX=no
11026 ;;
11027 esac
11028 fi
11029
11030echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11031echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11032
11033#
11034# Check to make sure the PIC flag actually works.
11035#
11036if test -n "$lt_prog_compiler_pic_CXX"; then
11037
11038echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11039echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11040if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042else
11043 lt_prog_compiler_pic_works_CXX=no
11044 ac_outfile=conftest.$ac_objext
11045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11046 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11047 # Insert the option either (1) after the last *FLAGS variable, or
11048 # (2) before a word containing "conftest.", or (3) at the end.
11049 # Note that $ac_compile itself does not contain backslashes and begins
11050 # with a dollar sign (not a hyphen), so the echo should work correctly.
11051 # The option is referenced via a variable to avoid confusing sed.
11052 lt_compile=`echo "$ac_compile" | $SED \
11053 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11055 -e 's:$: $lt_compiler_flag:'`
11056 (eval echo "\"\$as_me:11056: $lt_compile\"" >&5)
11057 (eval "$lt_compile" 2>conftest.err)
11058 ac_status=$?
11059 cat conftest.err >&5
11060 echo "$as_me:11060: \$? = $ac_status" >&5
11061 if (exit $ac_status) && test -s "$ac_outfile"; then
11062 # The compiler can only warn and ignore the option if not recognized
11063 # So say no if there are warnings
11064 if test ! -s conftest.err; then
11065 lt_prog_compiler_pic_works_CXX=yes
11066 fi
11067 fi
11068 $rm conftest*
11069
11070fi
11071echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11072echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11073
11074if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11075 case $lt_prog_compiler_pic_CXX in
11076 "" | " "*) ;;
11077 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11078 esac
11079else
11080 lt_prog_compiler_pic_CXX=
11081 lt_prog_compiler_can_build_shared_CXX=no
11082fi
11083
11084fi
11085case "$host_os" in
11086 # For platforms which do not support PIC, -DPIC is meaningless:
11087 *djgpp*)
11088 lt_prog_compiler_pic_CXX=
11089 ;;
11090 *)
11091 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11092 ;;
11093esac
11094
11095echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11096echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11097if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099else
11100 lt_cv_prog_compiler_c_o_CXX=no
11101 $rm -r conftest 2>/dev/null
11102 mkdir conftest
11103 cd conftest
11104 mkdir out
11105 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11106
11107 lt_compiler_flag="-o out/conftest2.$ac_objext"
11108 # Insert the option either (1) after the last *FLAGS variable, or
11109 # (2) before a word containing "conftest.", or (3) at the end.
11110 # Note that $ac_compile itself does not contain backslashes and begins
11111 # with a dollar sign (not a hyphen), so the echo should work correctly.
11112 lt_compile=`echo "$ac_compile" | $SED \
11113 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11115 -e 's:$: $lt_compiler_flag:'`
11116 (eval echo "\"\$as_me:11116: $lt_compile\"" >&5)
11117 (eval "$lt_compile" 2>out/conftest.err)
11118 ac_status=$?
11119 cat out/conftest.err >&5
11120 echo "$as_me:11120: \$? = $ac_status" >&5
11121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11122 then
11123 # The compiler can only warn and ignore the option if not recognized
11124 # So say no if there are warnings
11125 if test ! -s out/conftest.err; then
11126 lt_cv_prog_compiler_c_o_CXX=yes
11127 fi
11128 fi
11129 chmod u+w .
11130 $rm conftest*
11131 # SGI C++ compiler will create directory out/ii_files/ for
11132 # template instantiation
11133 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11134 $rm out/* && rmdir out
11135 cd ..
11136 rmdir conftest
11137 $rm conftest*
11138
11139fi
11140echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11141echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11142
11143
11144hard_links="nottested"
11145if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11146 # do not overwrite the value of need_locks provided by the user
11147 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11148echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11149 hard_links=yes
11150 $rm conftest*
11151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11152 touch conftest.a
11153 ln conftest.a conftest.b 2>&5 || hard_links=no
11154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11155 echo "$as_me:$LINENO: result: $hard_links" >&5
11156echo "${ECHO_T}$hard_links" >&6
11157 if test "$hard_links" = no; then
11158 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11159echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11160 need_locks=warn
11161 fi
11162else
11163 need_locks=no
11164fi
11165
11166echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11167echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11168
11169 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11170 case $host_os in
11171 aix4* | aix5*)
11172 # If we're using GNU nm, then we don't want the "-C" option.
11173 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11174 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11175 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'
11176 else
11177 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'
11178 fi
11179 ;;
11180 pw32*)
11181 export_symbols_cmds_CXX="$ltdll_cmds"
11182 ;;
11183 cygwin* | mingw*)
11184 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11185 ;;
11186 *)
11187 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11188 ;;
11189 esac
11190
11191echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11192echo "${ECHO_T}$ld_shlibs_CXX" >&6
11193test "$ld_shlibs_CXX" = no && can_build_shared=no
11194
11195variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11196if test "$GCC" = yes; then
11197 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11198fi
11199
11200#
11201# Do we need to explicitly link libc?
11202#
11203case "x$archive_cmds_need_lc_CXX" in
11204x|xyes)
11205 # Assume -lc should be added
11206 archive_cmds_need_lc_CXX=yes
11207
11208 if test "$enable_shared" = yes && test "$GCC" = yes; then
11209 case $archive_cmds_CXX in
11210 *'~'*)
11211 # FIXME: we may have to deal with multi-command sequences.
11212 ;;
11213 '$CC '*)
11214 # Test whether the compiler implicitly links with -lc since on some
11215 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11216 # to ld, don't add -lc before -lgcc.
11217 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11218echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11219 $rm conftest*
11220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11221
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } 2>conftest.err; then
11227 soname=conftest
11228 lib=conftest
11229 libobjs=conftest.$ac_objext
11230 deplibs=
11231 wl=$lt_prog_compiler_wl_CXX
11232 compiler_flags=-v
11233 linker_flags=-v
11234 verstring=
11235 output_objdir=.
11236 libname=conftest
11237 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11238 allow_undefined_flag_CXX=
11239 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11240 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }
11244 then
11245 archive_cmds_need_lc_CXX=no
11246 else
11247 archive_cmds_need_lc_CXX=yes
11248 fi
11249 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11250 else
11251 cat conftest.err 1>&5
11252 fi
11253 $rm conftest*
11254 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11255echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11256 ;;
11257 esac
11258 fi
11259 ;;
11260esac
11261
11262echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11263echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11264library_names_spec=
11265libname_spec='lib$name'
11266soname_spec=
11267shrext_cmds=".so"
11268postinstall_cmds=
11269postuninstall_cmds=
11270finish_cmds=
11271finish_eval=
11272shlibpath_var=
11273shlibpath_overrides_runpath=unknown
11274version_type=none
11275dynamic_linker="$host_os ld.so"
11276sys_lib_dlsearch_path_spec="/lib /usr/lib"
11277if test "$GCC" = yes; then
11278 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11279 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11280 # if the path contains ";" then we assume it to be the separator
11281 # otherwise default to the standard path separator (i.e. ":") - it is
11282 # assumed that no part of a normal pathname contains ";" but that should
11283 # okay in the real world where ";" in dirpaths is itself problematic.
11284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11285 else
11286 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11287 fi
11288else
11289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11290fi
11291need_lib_prefix=unknown
11292hardcode_into_libs=no
11293
11294# when you set need_version to no, make sure it does not cause -set_version
11295# flags to be left without arguments
11296need_version=unknown
11297
11298case $host_os in
11299aix3*)
11300 version_type=linux
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11302 shlibpath_var=LIBPATH
11303
11304 # AIX 3 has no versioning support, so we append a major version to the name.
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 ;;
11307
11308aix4* | aix5*)
11309 version_type=linux
11310 need_lib_prefix=no
11311 need_version=no
11312 hardcode_into_libs=yes
11313 if test "$host_cpu" = ia64; then
11314 # AIX 5 supports IA64
11315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 else
11318 # With GCC up to 2.95.x, collect2 would create an import file
11319 # for dependence libraries. The import file would start with
11320 # the line `#! .'. This would cause the generated library to
11321 # depend on `.', always an invalid library. This was fixed in
11322 # development snapshots of GCC prior to 3.0.
11323 case $host_os in
11324 aix4 | aix4.[01] | aix4.[01].*)
11325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11326 echo ' yes '
11327 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11328 :
11329 else
11330 can_build_shared=no
11331 fi
11332 ;;
11333 esac
11334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11335 # soname into executable. Probably we can add versioning support to
11336 # collect2, so additional links can be useful in future.
11337 if test "$aix_use_runtimelinking" = yes; then
11338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11339 # instead of lib<name>.a to let people know that these are not
11340 # typical AIX shared libraries.
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 else
11343 # We preserve .a as extension for shared libraries through AIX4.2
11344 # and later when we are not doing run time linking.
11345 library_names_spec='${libname}${release}.a $libname.a'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 fi
11348 shlibpath_var=LIBPATH
11349 fi
11350 ;;
11351
11352amigaos*)
11353 library_names_spec='$libname.ixlibrary $libname.a'
11354 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11355 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'
11356 ;;
11357
11358beos*)
11359 library_names_spec='${libname}${shared_ext}'
11360 dynamic_linker="$host_os ld.so"
11361 shlibpath_var=LIBRARY_PATH
11362 ;;
11363
11364bsdi4*)
11365 version_type=linux
11366 need_version=no
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11372 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11373 # the default ld.so.conf also contains /usr/contrib/lib and
11374 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11375 # libtool to hard-code these into programs
11376 ;;
11377
11378cygwin* | mingw* | pw32*)
11379 version_type=windows
11380 shrext_cmds=".dll"
11381 need_version=no
11382 need_lib_prefix=no
11383
11384 case $GCC,$host_os in
11385 yes,cygwin* | yes,mingw* | yes,pw32*)
11386 library_names_spec='$libname.dll.a'
11387 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11388 postinstall_cmds='base_file=`basename \${file}`~
11389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11390 dldir=$destdir/`dirname \$dlpath`~
11391 test -d \$dldir || mkdir -p \$dldir~
11392 $install_prog $dir/$dlname \$dldir/$dlname'
11393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11394 dlpath=$dir/\$dldll~
11395 $rm \$dlpath'
11396 shlibpath_overrides_runpath=yes
11397
11398 case $host_os in
11399 cygwin*)
11400 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11401 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11402 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11403 ;;
11404 mingw*)
11405 # MinGW DLLs use traditional 'lib' prefix
11406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11407 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11408 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11409 # It is most probably a Windows format PATH printed by
11410 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11411 # path with ; separators, and with drive letters. We can handle the
11412 # drive letters (cygwin fileutils understands them), so leave them,
11413 # especially as we might pass files found there to a mingw objdump,
11414 # which wouldn't understand a cygwinified path. Ahh.
11415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11416 else
11417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11418 fi
11419 ;;
11420 pw32*)
11421 # pw32 DLLs use 'pw' prefix rather than 'lib'
11422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11423 ;;
11424 esac
11425 ;;
11426
11427 *)
11428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11429 ;;
11430 esac
11431 dynamic_linker='Win32 ld.exe'
11432 # FIXME: first we should search . and the directory the executable is in
11433 shlibpath_var=PATH
11434 ;;
11435
11436darwin* | rhapsody*)
11437 dynamic_linker="$host_os dyld"
11438 version_type=darwin
11439 need_lib_prefix=no
11440 need_version=no
11441 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11442 soname_spec='${libname}${release}${major}$shared_ext'
11443 shlibpath_overrides_runpath=yes
11444 shlibpath_var=DYLD_LIBRARY_PATH
11445 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11446 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11447 if test "$GCC" = yes; then
11448 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"`
11449 else
11450 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11451 fi
11452 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11453 ;;
11454
11455dgux*)
11456 version_type=linux
11457 need_lib_prefix=no
11458 need_version=no
11459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11460 soname_spec='${libname}${release}${shared_ext}$major'
11461 shlibpath_var=LD_LIBRARY_PATH
11462 ;;
11463
11464freebsd1*)
11465 dynamic_linker=no
11466 ;;
11467
11468kfreebsd*-gnu)
11469 version_type=linux
11470 need_lib_prefix=no
11471 need_version=no
11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11473 soname_spec='${libname}${release}${shared_ext}$major'
11474 shlibpath_var=LD_LIBRARY_PATH
11475 shlibpath_overrides_runpath=no
11476 hardcode_into_libs=yes
11477 dynamic_linker='GNU ld.so'
11478 ;;
11479
11480freebsd*)
11481 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11482 version_type=freebsd-$objformat
11483 case $version_type in
11484 freebsd-elf*)
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11486 need_version=no
11487 need_lib_prefix=no
11488 ;;
11489 freebsd-*)
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11491 need_version=yes
11492 ;;
11493 esac
11494 shlibpath_var=LD_LIBRARY_PATH
11495 case $host_os in
11496 freebsd2*)
11497 shlibpath_overrides_runpath=yes
11498 ;;
11499 freebsd3.01* | freebsdelf3.01*)
11500 shlibpath_overrides_runpath=yes
11501 hardcode_into_libs=yes
11502 ;;
11503 *) # from 3.2 on
11504 shlibpath_overrides_runpath=no
11505 hardcode_into_libs=yes
11506 ;;
11507 esac
11508 ;;
11509
11510gnu*)
11511 version_type=linux
11512 need_lib_prefix=no
11513 need_version=no
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11515 soname_spec='${libname}${release}${shared_ext}$major'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 hardcode_into_libs=yes
11518 ;;
11519
11520hpux9* | hpux10* | hpux11*)
11521 # Give a soname corresponding to the major version so that dld.sl refuses to
11522 # link against other versions.
11523 version_type=sunos
11524 need_lib_prefix=no
11525 need_version=no
11526 case "$host_cpu" in
11527 ia64*)
11528 shrext_cmds='.so'
11529 hardcode_into_libs=yes
11530 dynamic_linker="$host_os dld.so"
11531 shlibpath_var=LD_LIBRARY_PATH
11532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 if test "X$HPUX_IA64_MODE" = X32; then
11536 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11537 else
11538 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11539 fi
11540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11541 ;;
11542 hppa*64*)
11543 shrext_cmds='.sl'
11544 hardcode_into_libs=yes
11545 dynamic_linker="$host_os dld.sl"
11546 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11552 ;;
11553 *)
11554 shrext_cmds='.sl'
11555 dynamic_linker="$host_os dld.sl"
11556 shlibpath_var=SHLIB_PATH
11557 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 ;;
11561 esac
11562 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11563 postinstall_cmds='chmod 555 $lib'
11564 ;;
11565
11566irix5* | irix6* | nonstopux*)
11567 case $host_os in
11568 nonstopux*) version_type=nonstopux ;;
11569 *)
11570 if test "$lt_cv_prog_gnu_ld" = yes; then
11571 version_type=linux
11572 else
11573 version_type=irix
11574 fi ;;
11575 esac
11576 need_lib_prefix=no
11577 need_version=no
11578 soname_spec='${libname}${release}${shared_ext}$major'
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11580 case $host_os in
11581 irix5* | nonstopux*)
11582 libsuff= shlibsuff=
11583 ;;
11584 *)
11585 case $LD in # libtool.m4 will add one of these switches to LD
11586 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11587 libsuff= shlibsuff= libmagic=32-bit;;
11588 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11589 libsuff=32 shlibsuff=N32 libmagic=N32;;
11590 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11591 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11592 *) libsuff= shlibsuff= libmagic=never-match;;
11593 esac
11594 ;;
11595 esac
11596 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11597 shlibpath_overrides_runpath=no
11598 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11599 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11600 hardcode_into_libs=yes
11601 ;;
11602
11603# No shared lib support for Linux oldld, aout, or coff.
11604linux*oldld* | linux*aout* | linux*coff*)
11605 dynamic_linker=no
11606 ;;
11607
11608# This must be Linux ELF.
11609linux*)
11610 version_type=linux
11611 need_lib_prefix=no
11612 need_version=no
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11616 shlibpath_var=LD_LIBRARY_PATH
11617 shlibpath_overrides_runpath=no
11618 # This implies no fast_install, which is unacceptable.
11619 # Some rework will be needed to allow for fast_install
11620 # before this can be enabled.
11621 hardcode_into_libs=yes
11622
11623 # Append ld.so.conf contents to the search path
11624 if test -f /etc/ld.so.conf; then
11625 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11626 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11627 fi
11628
11629 # We used to test for /lib/ld.so.1 and disable shared libraries on
11630 # powerpc, because MkLinux only supported shared libraries with the
11631 # GNU dynamic linker. Since this was broken with cross compilers,
11632 # most powerpc-linux boxes support dynamic linking these days and
11633 # people can always --disable-shared, the test was removed, and we
11634 # assume the GNU/Linux dynamic linker is in use.
11635 dynamic_linker='GNU/Linux ld.so'
11636 ;;
11637
11638knetbsd*-gnu)
11639 version_type=linux
11640 need_lib_prefix=no
11641 need_version=no
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=no
11646 hardcode_into_libs=yes
11647 dynamic_linker='GNU ld.so'
11648 ;;
11649
11650netbsd*)
11651 version_type=sunos
11652 need_lib_prefix=no
11653 need_version=no
11654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11657 dynamic_linker='NetBSD (a.out) ld.so'
11658 else
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11660 soname_spec='${libname}${release}${shared_ext}$major'
11661 dynamic_linker='NetBSD ld.elf_so'
11662 fi
11663 shlibpath_var=LD_LIBRARY_PATH
11664 shlibpath_overrides_runpath=yes
11665 hardcode_into_libs=yes
11666 ;;
11667
11668newsos6)
11669 version_type=linux
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=yes
11673 ;;
11674
11675nto-qnx*)
11676 version_type=linux
11677 need_lib_prefix=no
11678 need_version=no
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680 soname_spec='${libname}${release}${shared_ext}$major'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=yes
11683 ;;
11684
11685openbsd*)
11686 version_type=sunos
11687 need_lib_prefix=no
11688 need_version=yes
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11691 shlibpath_var=LD_LIBRARY_PATH
11692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11693 case $host_os in
11694 openbsd2.[89] | openbsd2.[89].*)
11695 shlibpath_overrides_runpath=no
11696 ;;
11697 *)
11698 shlibpath_overrides_runpath=yes
11699 ;;
11700 esac
11701 else
11702 shlibpath_overrides_runpath=yes
11703 fi
11704 ;;
11705
11706os2*)
11707 libname_spec='$name'
11708 shrext_cmds=".dll"
11709 need_lib_prefix=no
11710 library_names_spec='$libname${shared_ext} $libname.a'
11711 dynamic_linker='OS/2 ld.exe'
11712 shlibpath_var=LIBPATH
11713 ;;
11714
11715osf3* | osf4* | osf5*)
11716 version_type=osf
11717 need_lib_prefix=no
11718 need_version=no
11719 soname_spec='${libname}${release}${shared_ext}$major'
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721 shlibpath_var=LD_LIBRARY_PATH
11722 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11723 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11724 ;;
11725
11726sco3.2v5*)
11727 version_type=osf
11728 soname_spec='${libname}${release}${shared_ext}$major'
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 shlibpath_var=LD_LIBRARY_PATH
11731 ;;
11732
11733solaris*)
11734 version_type=linux
11735 need_lib_prefix=no
11736 need_version=no
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741 hardcode_into_libs=yes
11742 # ldd complains unless libraries are executable
11743 postinstall_cmds='chmod +x $lib'
11744 ;;
11745
11746sunos4*)
11747 version_type=sunos
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11749 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 shlibpath_overrides_runpath=yes
11752 if test "$with_gnu_ld" = yes; then
11753 need_lib_prefix=no
11754 fi
11755 need_version=yes
11756 ;;
11757
11758sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11759 version_type=linux
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 soname_spec='${libname}${release}${shared_ext}$major'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 case $host_vendor in
11764 sni)
11765 shlibpath_overrides_runpath=no
11766 need_lib_prefix=no
11767 export_dynamic_flag_spec='${wl}-Blargedynsym'
11768 runpath_var=LD_RUN_PATH
11769 ;;
11770 siemens)
11771 need_lib_prefix=no
11772 ;;
11773 motorola)
11774 need_lib_prefix=no
11775 need_version=no
11776 shlibpath_overrides_runpath=no
11777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11778 ;;
11779 esac
11780 ;;
11781
11782sysv4*MP*)
11783 if test -d /usr/nec ;then
11784 version_type=linux
11785 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11786 soname_spec='$libname${shared_ext}.$major'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 fi
11789 ;;
11790
11791uts4*)
11792 version_type=linux
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794 soname_spec='${libname}${release}${shared_ext}$major'
11795 shlibpath_var=LD_LIBRARY_PATH
11796 ;;
11797
11798*)
11799 dynamic_linker=no
11800 ;;
11801esac
11802echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11803echo "${ECHO_T}$dynamic_linker" >&6
11804test "$dynamic_linker" = no && can_build_shared=no
11805
11806echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11807echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11808hardcode_action_CXX=
11809if test -n "$hardcode_libdir_flag_spec_CXX" || \
11810 test -n "$runpath_var CXX" || \
11811 test "X$hardcode_automatic_CXX"="Xyes" ; then
11812
11813 # We can hardcode non-existant directories.
11814 if test "$hardcode_direct_CXX" != no &&
11815 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11816 # have to relink, otherwise we might link with an installed library
11817 # when we should be linking with a yet-to-be-installed one
11818 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11819 test "$hardcode_minus_L_CXX" != no; then
11820 # Linking always hardcodes the temporary library directory.
11821 hardcode_action_CXX=relink
11822 else
11823 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11824 hardcode_action_CXX=immediate
11825 fi
11826else
11827 # We cannot hardcode anything, or else we can only hardcode existing
11828 # directories.
11829 hardcode_action_CXX=unsupported
11830fi
11831echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11832echo "${ECHO_T}$hardcode_action_CXX" >&6
11833
11834if test "$hardcode_action_CXX" = relink; then
11835 # Fast installation is not supported
11836 enable_fast_install=no
11837elif test "$shlibpath_overrides_runpath" = yes ||
11838 test "$enable_shared" = no; then
11839 # Fast installation is not necessary
11840 enable_fast_install=needless
11841fi
11842
11843striplib=
11844old_striplib=
11845echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11846echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11847if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11848 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11849 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11850 echo "$as_me:$LINENO: result: yes" >&5
11851echo "${ECHO_T}yes" >&6
11852else
11853# FIXME - insert some real tests, host_os isn't really good enough
11854 case $host_os in
11855 darwin*)
11856 if test -n "$STRIP" ; then
11857 striplib="$STRIP -x"
11858 echo "$as_me:$LINENO: result: yes" >&5
11859echo "${ECHO_T}yes" >&6
11860 else
11861 echo "$as_me:$LINENO: result: no" >&5
11862echo "${ECHO_T}no" >&6
11863fi
11864 ;;
11865 *)
11866 echo "$as_me:$LINENO: result: no" >&5
11867echo "${ECHO_T}no" >&6
11868 ;;
11869 esac
11870fi
11871
11872if test "x$enable_dlopen" != xyes; then
11873 enable_dlopen=unknown
11874 enable_dlopen_self=unknown
11875 enable_dlopen_self_static=unknown
11876else
11877 lt_cv_dlopen=no
11878 lt_cv_dlopen_libs=
11879
11880 case $host_os in
11881 beos*)
11882 lt_cv_dlopen="load_add_on"
11883 lt_cv_dlopen_libs=
11884 lt_cv_dlopen_self=yes
11885 ;;
11886
11887 mingw* | pw32*)
11888 lt_cv_dlopen="LoadLibrary"
11889 lt_cv_dlopen_libs=
11890 ;;
11891
11892 cygwin*)
11893 lt_cv_dlopen="dlopen"
11894 lt_cv_dlopen_libs=
11895 ;;
11896
11897 darwin*)
11898 # if libdl is installed we need to link against it
11899 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11900echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11901if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903else
11904 ac_check_lib_save_LIBS=$LIBS
11905LIBS="-ldl $LIBS"
11906cat >conftest.$ac_ext <<_ACEOF
11907/* confdefs.h. */
11908_ACEOF
11909cat confdefs.h >>conftest.$ac_ext
11910cat >>conftest.$ac_ext <<_ACEOF
11911/* end confdefs.h. */
11912
11913/* Override any gcc2 internal prototype to avoid an error. */
11914#ifdef __cplusplus
11915extern "C"
11916#endif
11917/* We use char because int might match the return type of a gcc2
11918 builtin and then its argument prototype would still apply. */
11919char dlopen ();
11920int
11921main ()
11922{
11923dlopen ();
11924 ;
11925 return 0;
11926}
11927_ACEOF
11928rm -f conftest.$ac_objext conftest$ac_exeext
11929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930 (eval $ac_link) 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_cxx_werror_flag"
11938 || test ! -s conftest.err'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try='test -s conftest$ac_exeext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 ac_cv_lib_dl_dlopen=yes
11951else
11952 echo "$as_me: failed program was:" >&5
11953sed 's/^/| /' conftest.$ac_ext >&5
11954
11955ac_cv_lib_dl_dlopen=no
11956fi
11957rm -f conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959LIBS=$ac_check_lib_save_LIBS
11960fi
11961echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11962echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11963if test $ac_cv_lib_dl_dlopen = yes; then
11964 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11965else
11966
11967 lt_cv_dlopen="dyld"
11968 lt_cv_dlopen_libs=
11969 lt_cv_dlopen_self=yes
11970
11971fi
11972
11973 ;;
11974
11975 *)
11976 echo "$as_me:$LINENO: checking for shl_load" >&5
11977echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11978if test "${ac_cv_func_shl_load+set}" = set; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980else
11981 cat >conftest.$ac_ext <<_ACEOF
11982/* confdefs.h. */
11983_ACEOF
11984cat confdefs.h >>conftest.$ac_ext
11985cat >>conftest.$ac_ext <<_ACEOF
11986/* end confdefs.h. */
11987/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11989#define shl_load innocuous_shl_load
11990
11991/* System header to define __stub macros and hopefully few prototypes,
11992 which can conflict with char shl_load (); below.
11993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11994 <limits.h> exists even on freestanding compilers. */
11995
11996#ifdef __STDC__
11997# include <limits.h>
11998#else
11999# include <assert.h>
12000#endif
12001
12002#undef shl_load
12003
12004/* Override any gcc2 internal prototype to avoid an error. */
12005#ifdef __cplusplus
12006extern "C"
12007{
12008#endif
12009/* We use char because int might match the return type of a gcc2
12010 builtin and then its argument prototype would still apply. */
12011char shl_load ();
12012/* The GNU C library defines this for functions which it implements
12013 to always fail with ENOSYS. Some functions are actually named
12014 something starting with __ and the normal name is an alias. */
12015#if defined (__stub_shl_load) || defined (__stub___shl_load)
12016choke me
12017#else
12018char (*f) () = shl_load;
12019#endif
12020#ifdef __cplusplus
12021}
12022#endif
12023
12024int
12025main ()
12026{
12027return f != shl_load;
12028 ;
12029 return 0;
12030}
12031_ACEOF
12032rm -f conftest.$ac_objext conftest$ac_exeext
12033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034 (eval $ac_link) 2>conftest.er1
12035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_cxx_werror_flag"
12042 || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest$ac_exeext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_cv_func_shl_load=yes
12055else
12056 echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
12058
12059ac_cv_func_shl_load=no
12060fi
12061rm -f conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12063fi
12064echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12065echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12066if test $ac_cv_func_shl_load = yes; then
12067 lt_cv_dlopen="shl_load"
12068else
12069 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12070echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12071if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073else
12074 ac_check_lib_save_LIBS=$LIBS
12075LIBS="-ldld $LIBS"
12076cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
12082
12083/* Override any gcc2 internal prototype to avoid an error. */
12084#ifdef __cplusplus
12085extern "C"
12086#endif
12087/* We use char because int might match the return type of a gcc2
12088 builtin and then its argument prototype would still apply. */
12089char shl_load ();
12090int
12091main ()
12092{
12093shl_load ();
12094 ;
12095 return 0;
12096}
12097_ACEOF
12098rm -f conftest.$ac_objext conftest$ac_exeext
12099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100 (eval $ac_link) 2>conftest.er1
12101 ac_status=$?
12102 grep -v '^ *+' conftest.er1 >conftest.err
12103 rm -f conftest.er1
12104 cat conftest.err >&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -z "$ac_cxx_werror_flag"
12108 || test ! -s conftest.err'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest$ac_exeext'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 ac_cv_lib_dld_shl_load=yes
12121else
12122 echo "$as_me: failed program was:" >&5
12123sed 's/^/| /' conftest.$ac_ext >&5
12124
12125ac_cv_lib_dld_shl_load=no
12126fi
12127rm -f conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129LIBS=$ac_check_lib_save_LIBS
12130fi
12131echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12132echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12133if test $ac_cv_lib_dld_shl_load = yes; then
12134 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12135else
12136 echo "$as_me:$LINENO: checking for dlopen" >&5
12137echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12138if test "${ac_cv_func_dlopen+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140else
12141 cat >conftest.$ac_ext <<_ACEOF
12142/* confdefs.h. */
12143_ACEOF
12144cat confdefs.h >>conftest.$ac_ext
12145cat >>conftest.$ac_ext <<_ACEOF
12146/* end confdefs.h. */
12147/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12149#define dlopen innocuous_dlopen
12150
12151/* System header to define __stub macros and hopefully few prototypes,
12152 which can conflict with char dlopen (); below.
12153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12154 <limits.h> exists even on freestanding compilers. */
12155
12156#ifdef __STDC__
12157# include <limits.h>
12158#else
12159# include <assert.h>
12160#endif
12161
12162#undef dlopen
12163
12164/* Override any gcc2 internal prototype to avoid an error. */
12165#ifdef __cplusplus
12166extern "C"
12167{
12168#endif
12169/* We use char because int might match the return type of a gcc2
12170 builtin and then its argument prototype would still apply. */
12171char dlopen ();
12172/* The GNU C library defines this for functions which it implements
12173 to always fail with ENOSYS. Some functions are actually named
12174 something starting with __ and the normal name is an alias. */
12175#if defined (__stub_dlopen) || defined (__stub___dlopen)
12176choke me
12177#else
12178char (*f) () = dlopen;
12179#endif
12180#ifdef __cplusplus
12181}
12182#endif
12183
12184int
12185main ()
12186{
12187return f != dlopen;
12188 ;
12189 return 0;
12190}
12191_ACEOF
12192rm -f conftest.$ac_objext conftest$ac_exeext
12193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12194 (eval $ac_link) 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try='test -z "$ac_cxx_werror_flag"
12202 || test ! -s conftest.err'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try='test -s conftest$ac_exeext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_cv_func_dlopen=yes
12215else
12216 echo "$as_me: failed program was:" >&5
12217sed 's/^/| /' conftest.$ac_ext >&5
12218
12219ac_cv_func_dlopen=no
12220fi
12221rm -f conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12223fi
12224echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12225echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12226if test $ac_cv_func_dlopen = yes; then
12227 lt_cv_dlopen="dlopen"
12228else
12229 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12230echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12231if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233else
12234 ac_check_lib_save_LIBS=$LIBS
12235LIBS="-ldl $LIBS"
12236cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242
12243/* Override any gcc2 internal prototype to avoid an error. */
12244#ifdef __cplusplus
12245extern "C"
12246#endif
12247/* We use char because int might match the return type of a gcc2
12248 builtin and then its argument prototype would still apply. */
12249char dlopen ();
12250int
12251main ()
12252{
12253dlopen ();
12254 ;
12255 return 0;
12256}
12257_ACEOF
12258rm -f conftest.$ac_objext conftest$ac_exeext
12259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12260 (eval $ac_link) 2>conftest.er1
12261 ac_status=$?
12262 grep -v '^ *+' conftest.er1 >conftest.err
12263 rm -f conftest.er1
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } &&
12267 { ac_try='test -z "$ac_cxx_werror_flag"
12268 || test ! -s conftest.err'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest$ac_exeext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 ac_cv_lib_dl_dlopen=yes
12281else
12282 echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285ac_cv_lib_dl_dlopen=no
12286fi
12287rm -f conftest.err conftest.$ac_objext \
12288 conftest$ac_exeext conftest.$ac_ext
12289LIBS=$ac_check_lib_save_LIBS
12290fi
12291echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12292echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12293if test $ac_cv_lib_dl_dlopen = yes; then
12294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12295else
12296 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12297echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12298if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12300else
12301 ac_check_lib_save_LIBS=$LIBS
12302LIBS="-lsvld $LIBS"
12303cat >conftest.$ac_ext <<_ACEOF
12304/* confdefs.h. */
12305_ACEOF
12306cat confdefs.h >>conftest.$ac_ext
12307cat >>conftest.$ac_ext <<_ACEOF
12308/* end confdefs.h. */
12309
12310/* Override any gcc2 internal prototype to avoid an error. */
12311#ifdef __cplusplus
12312extern "C"
12313#endif
12314/* We use char because int might match the return type of a gcc2
12315 builtin and then its argument prototype would still apply. */
12316char dlopen ();
12317int
12318main ()
12319{
12320dlopen ();
12321 ;
12322 return 0;
12323}
12324_ACEOF
12325rm -f conftest.$ac_objext conftest$ac_exeext
12326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12327 (eval $ac_link) 2>conftest.er1
12328 ac_status=$?
12329 grep -v '^ *+' conftest.er1 >conftest.err
12330 rm -f conftest.er1
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
12334 { ac_try='test -z "$ac_cxx_werror_flag"
12335 || test ! -s conftest.err'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; } &&
12341 { ac_try='test -s conftest$ac_exeext'
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; }; then
12347 ac_cv_lib_svld_dlopen=yes
12348else
12349 echo "$as_me: failed program was:" >&5
12350sed 's/^/| /' conftest.$ac_ext >&5
12351
12352ac_cv_lib_svld_dlopen=no
12353fi
12354rm -f conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
12356LIBS=$ac_check_lib_save_LIBS
12357fi
12358echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12359echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12360if test $ac_cv_lib_svld_dlopen = yes; then
12361 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12362else
12363 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12364echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12365if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367else
12368 ac_check_lib_save_LIBS=$LIBS
12369LIBS="-ldld $LIBS"
12370cat >conftest.$ac_ext <<_ACEOF
12371/* confdefs.h. */
12372_ACEOF
12373cat confdefs.h >>conftest.$ac_ext
12374cat >>conftest.$ac_ext <<_ACEOF
12375/* end confdefs.h. */
12376
12377/* Override any gcc2 internal prototype to avoid an error. */
12378#ifdef __cplusplus
12379extern "C"
12380#endif
12381/* We use char because int might match the return type of a gcc2
12382 builtin and then its argument prototype would still apply. */
12383char dld_link ();
12384int
12385main ()
12386{
12387dld_link ();
12388 ;
12389 return 0;
12390}
12391_ACEOF
12392rm -f conftest.$ac_objext conftest$ac_exeext
12393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12394 (eval $ac_link) 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -z "$ac_cxx_werror_flag"
12402 || test ! -s conftest.err'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try='test -s conftest$ac_exeext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 ac_cv_lib_dld_dld_link=yes
12415else
12416 echo "$as_me: failed program was:" >&5
12417sed 's/^/| /' conftest.$ac_ext >&5
12418
12419ac_cv_lib_dld_dld_link=no
12420fi
12421rm -f conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423LIBS=$ac_check_lib_save_LIBS
12424fi
12425echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12426echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12427if test $ac_cv_lib_dld_dld_link = yes; then
12428 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12429fi
12430
12431
12432fi
12433
12434
12435fi
12436
12437
12438fi
12439
12440
12441fi
12442
12443
12444fi
12445
12446 ;;
12447 esac
12448
12449 if test "x$lt_cv_dlopen" != xno; then
12450 enable_dlopen=yes
12451 else
12452 enable_dlopen=no
12453 fi
12454
12455 case $lt_cv_dlopen in
12456 dlopen)
12457 save_CPPFLAGS="$CPPFLAGS"
12458 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12459
12460 save_LDFLAGS="$LDFLAGS"
12461 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12462
12463 save_LIBS="$LIBS"
12464 LIBS="$lt_cv_dlopen_libs $LIBS"
12465
12466 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12467echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12468if test "${lt_cv_dlopen_self+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470else
12471 if test "$cross_compiling" = yes; then :
12472 lt_cv_dlopen_self=cross
12473else
12474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12475 lt_status=$lt_dlunknown
12476 cat > conftest.$ac_ext <<EOF
12477#line 12477 "configure"
12478#include "confdefs.h"
12479
12480#if HAVE_DLFCN_H
12481#include <dlfcn.h>
12482#endif
12483
12484#include <stdio.h>
12485
12486#ifdef RTLD_GLOBAL
12487# define LT_DLGLOBAL RTLD_GLOBAL
12488#else
12489# ifdef DL_GLOBAL
12490# define LT_DLGLOBAL DL_GLOBAL
12491# else
12492# define LT_DLGLOBAL 0
12493# endif
12494#endif
12495
12496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12497 find out it does not work in some platform. */
12498#ifndef LT_DLLAZY_OR_NOW
12499# ifdef RTLD_LAZY
12500# define LT_DLLAZY_OR_NOW RTLD_LAZY
12501# else
12502# ifdef DL_LAZY
12503# define LT_DLLAZY_OR_NOW DL_LAZY
12504# else
12505# ifdef RTLD_NOW
12506# define LT_DLLAZY_OR_NOW RTLD_NOW
12507# else
12508# ifdef DL_NOW
12509# define LT_DLLAZY_OR_NOW DL_NOW
12510# else
12511# define LT_DLLAZY_OR_NOW 0
12512# endif
12513# endif
12514# endif
12515# endif
12516#endif
12517
12518#ifdef __cplusplus
12519extern "C" void exit (int);
12520#endif
12521
12522void fnord() { int i=42;}
12523int main ()
12524{
12525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12526 int status = $lt_dlunknown;
12527
12528 if (self)
12529 {
12530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12532 /* dlclose (self); */
12533 }
12534
12535 exit (status);
12536}
12537EOF
12538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12539 (eval $ac_link) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12543 (./conftest; exit; ) 2>/dev/null
12544 lt_status=$?
12545 case x$lt_status in
12546 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12547 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12548 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12549 esac
12550 else :
12551 # compilation failed
12552 lt_cv_dlopen_self=no
12553 fi
12554fi
12555rm -fr conftest*
12556
12557
12558fi
12559echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12560echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12561
12562 if test "x$lt_cv_dlopen_self" = xyes; then
12563 LDFLAGS="$LDFLAGS $link_static_flag"
12564 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12565echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12566if test "${lt_cv_dlopen_self_static+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568else
12569 if test "$cross_compiling" = yes; then :
12570 lt_cv_dlopen_self_static=cross
12571else
12572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12573 lt_status=$lt_dlunknown
12574 cat > conftest.$ac_ext <<EOF
12575#line 12575 "configure"
12576#include "confdefs.h"
12577
12578#if HAVE_DLFCN_H
12579#include <dlfcn.h>
12580#endif
12581
12582#include <stdio.h>
12583
12584#ifdef RTLD_GLOBAL
12585# define LT_DLGLOBAL RTLD_GLOBAL
12586#else
12587# ifdef DL_GLOBAL
12588# define LT_DLGLOBAL DL_GLOBAL
12589# else
12590# define LT_DLGLOBAL 0
12591# endif
12592#endif
12593
12594/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12595 find out it does not work in some platform. */
12596#ifndef LT_DLLAZY_OR_NOW
12597# ifdef RTLD_LAZY
12598# define LT_DLLAZY_OR_NOW RTLD_LAZY
12599# else
12600# ifdef DL_LAZY
12601# define LT_DLLAZY_OR_NOW DL_LAZY
12602# else
12603# ifdef RTLD_NOW
12604# define LT_DLLAZY_OR_NOW RTLD_NOW
12605# else
12606# ifdef DL_NOW
12607# define LT_DLLAZY_OR_NOW DL_NOW
12608# else
12609# define LT_DLLAZY_OR_NOW 0
12610# endif
12611# endif
12612# endif
12613# endif
12614#endif
12615
12616#ifdef __cplusplus
12617extern "C" void exit (int);
12618#endif
12619
12620void fnord() { int i=42;}
12621int main ()
12622{
12623 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12624 int status = $lt_dlunknown;
12625
12626 if (self)
12627 {
12628 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12629 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12630 /* dlclose (self); */
12631 }
12632
12633 exit (status);
12634}
12635EOF
12636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12637 (eval $ac_link) 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12641 (./conftest; exit; ) 2>/dev/null
12642 lt_status=$?
12643 case x$lt_status in
12644 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12645 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12646 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12647 esac
12648 else :
12649 # compilation failed
12650 lt_cv_dlopen_self_static=no
12651 fi
12652fi
12653rm -fr conftest*
12654
12655
12656fi
12657echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12658echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12659 fi
12660
12661 CPPFLAGS="$save_CPPFLAGS"
12662 LDFLAGS="$save_LDFLAGS"
12663 LIBS="$save_LIBS"
12664 ;;
12665 esac
12666
12667 case $lt_cv_dlopen_self in
12668 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12669 *) enable_dlopen_self=unknown ;;
12670 esac
12671
12672 case $lt_cv_dlopen_self_static in
12673 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12674 *) enable_dlopen_self_static=unknown ;;
12675 esac
12676fi
12677
12678
12679# The else clause should only fire when bootstrapping the
12680# libtool distribution, otherwise you forgot to ship ltmain.sh
12681# with your package, and you will get complaints that there are
12682# no rules to generate ltmain.sh.
12683if test -f "$ltmain"; then
12684 # See if we are running on zsh, and set the options which allow our commands through
12685 # without removal of \ escapes.
12686 if test -n "${ZSH_VERSION+set}" ; then
12687 setopt NO_GLOB_SUBST
12688 fi
12689 # Now quote all the things that may contain metacharacters while being
12690 # careful not to overquote the AC_SUBSTed values. We take copies of the
12691 # variables and quote the copies for generation of the libtool script.
12692 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12693 SED SHELL STRIP \
12694 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12695 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12696 deplibs_check_method reload_flag reload_cmds need_locks \
12697 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12698 lt_cv_sys_global_symbol_to_c_name_address \
12699 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12700 old_postinstall_cmds old_postuninstall_cmds \
12701 compiler_CXX \
12702 CC_CXX \
12703 LD_CXX \
12704 lt_prog_compiler_wl_CXX \
12705 lt_prog_compiler_pic_CXX \
12706 lt_prog_compiler_static_CXX \
12707 lt_prog_compiler_no_builtin_flag_CXX \
12708 export_dynamic_flag_spec_CXX \
12709 thread_safe_flag_spec_CXX \
12710 whole_archive_flag_spec_CXX \
12711 enable_shared_with_static_runtimes_CXX \
12712 old_archive_cmds_CXX \
12713 old_archive_from_new_cmds_CXX \
12714 predep_objects_CXX \
12715 postdep_objects_CXX \
12716 predeps_CXX \
12717 postdeps_CXX \
12718 compiler_lib_search_path_CXX \
12719 archive_cmds_CXX \
12720 archive_expsym_cmds_CXX \
12721 postinstall_cmds_CXX \
12722 postuninstall_cmds_CXX \
12723 old_archive_from_expsyms_cmds_CXX \
12724 allow_undefined_flag_CXX \
12725 no_undefined_flag_CXX \
12726 export_symbols_cmds_CXX \
12727 hardcode_libdir_flag_spec_CXX \
12728 hardcode_libdir_flag_spec_ld_CXX \
12729 hardcode_libdir_separator_CXX \
12730 hardcode_automatic_CXX \
12731 module_cmds_CXX \
12732 module_expsym_cmds_CXX \
12733 lt_cv_prog_compiler_c_o_CXX \
12734 exclude_expsyms_CXX \
12735 include_expsyms_CXX; do
12736
12737 case $var in
12738 old_archive_cmds_CXX | \
12739 old_archive_from_new_cmds_CXX | \
12740 archive_cmds_CXX | \
12741 archive_expsym_cmds_CXX | \
12742 module_cmds_CXX | \
12743 module_expsym_cmds_CXX | \
12744 old_archive_from_expsyms_cmds_CXX | \
12745 export_symbols_cmds_CXX | \
12746 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12747 postinstall_cmds | postuninstall_cmds | \
12748 old_postinstall_cmds | old_postuninstall_cmds | \
12749 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12750 # Double-quote double-evaled strings.
12751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12752 ;;
12753 *)
12754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12755 ;;
12756 esac
12757 done
12758
12759 case $lt_echo in
12760 *'\$0 --fallback-echo"')
12761 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12762 ;;
12763 esac
12764
12765cfgfile="$ofile"
12766
12767 cat <<__EOF__ >> "$cfgfile"
12768# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12769
12770# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12771
12772# Shell to use when invoking shell scripts.
12773SHELL=$lt_SHELL
12774
12775# Whether or not to build shared libraries.
12776build_libtool_libs=$enable_shared
12777
12778# Whether or not to build static libraries.
12779build_old_libs=$enable_static
12780
12781# Whether or not to add -lc for building shared libraries.
12782build_libtool_need_lc=$archive_cmds_need_lc_CXX
12783
12784# Whether or not to disallow shared libs when runtime libs are static
12785allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12786
12787# Whether or not to optimize for fast installation.
12788fast_install=$enable_fast_install
12789
12790# The host system.
12791host_alias=$host_alias
12792host=$host
12793
12794# An echo program that does not interpret backslashes.
12795echo=$lt_echo
12796
12797# The archiver.
12798AR=$lt_AR
12799AR_FLAGS=$lt_AR_FLAGS
12800
12801# A C compiler.
12802LTCC=$lt_LTCC
12803
12804# A language-specific compiler.
12805CC=$lt_compiler_CXX
12806
12807# Is the compiler the GNU C compiler?
12808with_gcc=$GCC_CXX
12809
12810# An ERE matcher.
12811EGREP=$lt_EGREP
12812
12813# The linker used to build libraries.
12814LD=$lt_LD_CXX
12815
12816# Whether we need hard or soft links.
12817LN_S=$lt_LN_S
12818
12819# A BSD-compatible nm program.
12820NM=$lt_NM
12821
12822# A symbol stripping program
12823STRIP=$lt_STRIP
12824
12825# Used to examine libraries when file_magic_cmd begins "file"
12826MAGIC_CMD=$MAGIC_CMD
12827
12828# Used on cygwin: DLL creation program.
12829DLLTOOL="$DLLTOOL"
12830
12831# Used on cygwin: object dumper.
12832OBJDUMP="$OBJDUMP"
12833
12834# Used on cygwin: assembler.
12835AS="$AS"
12836
12837# The name of the directory that contains temporary libtool files.
12838objdir=$objdir
12839
12840# How to create reloadable object files.
12841reload_flag=$lt_reload_flag
12842reload_cmds=$lt_reload_cmds
12843
12844# How to pass a linker flag through the compiler.
12845wl=$lt_lt_prog_compiler_wl_CXX
12846
12847# Object file suffix (normally "o").
12848objext="$ac_objext"
12849
12850# Old archive suffix (normally "a").
12851libext="$libext"
12852
12853# Shared library suffix (normally ".so").
12854shrext_cmds='$shrext_cmds'
12855
12856# Executable file suffix (normally "").
12857exeext="$exeext"
12858
12859# Additional compiler flags for building library objects.
12860pic_flag=$lt_lt_prog_compiler_pic_CXX
12861pic_mode=$pic_mode
12862
12863# What is the maximum length of a command?
12864max_cmd_len=$lt_cv_sys_max_cmd_len
12865
12866# Does compiler simultaneously support -c and -o options?
12867compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12868
12869# Must we lock files when doing compilation ?
12870need_locks=$lt_need_locks
12871
12872# Do we need the lib prefix for modules?
12873need_lib_prefix=$need_lib_prefix
12874
12875# Do we need a version for libraries?
12876need_version=$need_version
12877
12878# Whether dlopen is supported.
12879dlopen_support=$enable_dlopen
12880
12881# Whether dlopen of programs is supported.
12882dlopen_self=$enable_dlopen_self
12883
12884# Whether dlopen of statically linked programs is supported.
12885dlopen_self_static=$enable_dlopen_self_static
12886
12887# Compiler flag to prevent dynamic linking.
12888link_static_flag=$lt_lt_prog_compiler_static_CXX
12889
12890# Compiler flag to turn off builtin functions.
12891no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12892
12893# Compiler flag to allow reflexive dlopens.
12894export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12895
12896# Compiler flag to generate shared objects directly from archives.
12897whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12898
12899# Compiler flag to generate thread-safe objects.
12900thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12901
12902# Library versioning type.
12903version_type=$version_type
12904
12905# Format of library name prefix.
12906libname_spec=$lt_libname_spec
12907
12908# List of archive names. First name is the real one, the rest are links.
12909# The last name is the one that the linker finds with -lNAME.
12910library_names_spec=$lt_library_names_spec
12911
12912# The coded name of the library, if different from the real name.
12913soname_spec=$lt_soname_spec
12914
12915# Commands used to build and install an old-style archive.
12916RANLIB=$lt_RANLIB
12917old_archive_cmds=$lt_old_archive_cmds_CXX
12918old_postinstall_cmds=$lt_old_postinstall_cmds
12919old_postuninstall_cmds=$lt_old_postuninstall_cmds
12920
12921# Create an old-style archive from a shared archive.
12922old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12923
12924# Create a temporary old-style archive to link instead of a shared archive.
12925old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12926
12927# Commands used to build and install a shared archive.
12928archive_cmds=$lt_archive_cmds_CXX
12929archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12930postinstall_cmds=$lt_postinstall_cmds
12931postuninstall_cmds=$lt_postuninstall_cmds
12932
12933# Commands used to build a loadable module (assumed same as above if empty)
12934module_cmds=$lt_module_cmds_CXX
12935module_expsym_cmds=$lt_module_expsym_cmds_CXX
12936
12937# Commands to strip libraries.
12938old_striplib=$lt_old_striplib
12939striplib=$lt_striplib
12940
12941# Dependencies to place before the objects being linked to create a
12942# shared library.
12943predep_objects=$lt_predep_objects_CXX
12944
12945# Dependencies to place after the objects being linked to create a
12946# shared library.
12947postdep_objects=$lt_postdep_objects_CXX
12948
12949# Dependencies to place before the objects being linked to create a
12950# shared library.
12951predeps=$lt_predeps_CXX
12952
12953# Dependencies to place after the objects being linked to create a
12954# shared library.
12955postdeps=$lt_postdeps_CXX
12956
12957# The library search path used internally by the compiler when linking
12958# a shared library.
12959compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12960
12961# Method to check whether dependent libraries are shared objects.
12962deplibs_check_method=$lt_deplibs_check_method
12963
12964# Command to use when deplibs_check_method == file_magic.
12965file_magic_cmd=$lt_file_magic_cmd
12966
12967# Flag that allows shared libraries with undefined symbols to be built.
12968allow_undefined_flag=$lt_allow_undefined_flag_CXX
12969
12970# Flag that forces no undefined symbols.
12971no_undefined_flag=$lt_no_undefined_flag_CXX
12972
12973# Commands used to finish a libtool library installation in a directory.
12974finish_cmds=$lt_finish_cmds
12975
12976# Same as above, but a single script fragment to be evaled but not shown.
12977finish_eval=$lt_finish_eval
12978
12979# Take the output of nm and produce a listing of raw symbols and C names.
12980global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12981
12982# Transform the output of nm in a proper C declaration
12983global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12984
12985# Transform the output of nm in a C name address pair
12986global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12987
12988# This is the shared library runtime path variable.
12989runpath_var=$runpath_var
12990
12991# This is the shared library path variable.
12992shlibpath_var=$shlibpath_var
12993
12994# Is shlibpath searched before the hard-coded library search path?
12995shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12996
12997# How to hardcode a shared library path into an executable.
12998hardcode_action=$hardcode_action_CXX
12999
13000# Whether we should hardcode library paths into libraries.
13001hardcode_into_libs=$hardcode_into_libs
13002
13003# Flag to hardcode \$libdir into a binary during linking.
13004# This must work even if \$libdir does not exist.
13005hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13006
13007# If ld is used when linking, flag to hardcode \$libdir into
13008# a binary during linking. This must work even if \$libdir does
13009# not exist.
13010hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13011
13012# Whether we need a single -rpath flag with a separated argument.
13013hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13014
13015# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13016# resulting binary.
13017hardcode_direct=$hardcode_direct_CXX
13018
13019# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13020# resulting binary.
13021hardcode_minus_L=$hardcode_minus_L_CXX
13022
13023# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13024# the resulting binary.
13025hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13026
13027# Set to yes if building a shared library automatically hardcodes DIR into the library
13028# and all subsequent libraries and executables linked against it.
13029hardcode_automatic=$hardcode_automatic_CXX
13030
13031# Variables whose values should be saved in libtool wrapper scripts and
13032# restored at relink time.
13033variables_saved_for_relink="$variables_saved_for_relink"
13034
13035# Whether libtool must link a program against all its dependency libraries.
13036link_all_deplibs=$link_all_deplibs_CXX
13037
13038# Compile-time system search path for libraries
13039sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13040
13041# Run-time system search path for libraries
13042sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13043
13044# Fix the shell variable \$srcfile for the compiler.
13045fix_srcfile_path="$fix_srcfile_path_CXX"
13046
13047# Set to yes if exported symbols are required.
13048always_export_symbols=$always_export_symbols_CXX
13049
13050# The commands to list exported symbols.
13051export_symbols_cmds=$lt_export_symbols_cmds_CXX
13052
13053# The commands to extract the exported symbol list from a shared archive.
13054extract_expsyms_cmds=$lt_extract_expsyms_cmds
13055
13056# Symbols that should not be listed in the preloaded symbols.
13057exclude_expsyms=$lt_exclude_expsyms_CXX
13058
13059# Symbols that must always be exported.
13060include_expsyms=$lt_include_expsyms_CXX
13061
13062# ### END LIBTOOL TAG CONFIG: $tagname
13063
13064__EOF__
13065
13066
13067else
13068 # If there is no Makefile yet, we rely on a make rule to execute
13069 # `config.status --recheck' to rerun these tests and create the
13070 # libtool script then.
13071 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13072 if test -f "$ltmain_in"; then
13073 test -f Makefile && make "$ltmain"
13074 fi
13075fi
13076
13077
13078ac_ext=c
13079ac_cpp='$CPP $CPPFLAGS'
13080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13082ac_compiler_gnu=$ac_cv_c_compiler_gnu
13083
13084CC=$lt_save_CC
13085LDCXX=$LD
13086LD=$lt_save_LD
13087GCC=$lt_save_GCC
13088with_gnu_ldcxx=$with_gnu_ld
13089with_gnu_ld=$lt_save_with_gnu_ld
13090lt_cv_path_LDCXX=$lt_cv_path_LD
13091lt_cv_path_LD=$lt_save_path_LD
13092lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13093lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13094
13095 else
13096 tagname=""
13097 fi
13098 ;;
13099
13100 F77)
13101 if test -n "$F77" && test "X$F77" != "Xno"; then
13102
13103ac_ext=f
13104ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13105ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13106ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13107
13108
13109archive_cmds_need_lc_F77=no
13110allow_undefined_flag_F77=
13111always_export_symbols_F77=no
13112archive_expsym_cmds_F77=
13113export_dynamic_flag_spec_F77=
13114hardcode_direct_F77=no
13115hardcode_libdir_flag_spec_F77=
13116hardcode_libdir_flag_spec_ld_F77=
13117hardcode_libdir_separator_F77=
13118hardcode_minus_L_F77=no
13119hardcode_automatic_F77=no
13120module_cmds_F77=
13121module_expsym_cmds_F77=
13122link_all_deplibs_F77=unknown
13123old_archive_cmds_F77=$old_archive_cmds
13124no_undefined_flag_F77=
13125whole_archive_flag_spec_F77=
13126enable_shared_with_static_runtimes_F77=no
13127
13128# Source file extension for f77 test sources.
13129ac_ext=f
13130
13131# Object file extension for compiled f77 test sources.
13132objext=o
13133objext_F77=$objext
13134
13135# Code to be used in simple compile tests
13136lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13137
13138# Code to be used in simple link tests
13139lt_simple_link_test_code=" program t\n end\n"
13140
13141# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13142
13143# If no C compiler was specified, use CC.
13144LTCC=${LTCC-"$CC"}
13145
13146# Allow CC to be a program name with arguments.
13147compiler=$CC
13148
13149
13150# Allow CC to be a program name with arguments.
13151lt_save_CC="$CC"
13152CC=${F77-"f77"}
13153compiler=$CC
13154compiler_F77=$CC
13155cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13156
13157echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13158echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13159echo "$as_me:$LINENO: result: $can_build_shared" >&5
13160echo "${ECHO_T}$can_build_shared" >&6
13161
13162echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13163echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13164test "$can_build_shared" = "no" && enable_shared=no
13165
13166# On AIX, shared libraries and static libraries use the same namespace, and
13167# are all built from PIC.
13168case "$host_os" in
13169aix3*)
13170 test "$enable_shared" = yes && enable_static=no
13171 if test -n "$RANLIB"; then
13172 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13173 postinstall_cmds='$RANLIB $lib'
13174 fi
13175 ;;
13176aix4* | aix5*)
13177 test "$enable_shared" = yes && enable_static=no
13178 ;;
13179esac
13180echo "$as_me:$LINENO: result: $enable_shared" >&5
13181echo "${ECHO_T}$enable_shared" >&6
13182
13183echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13184echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13185# Make sure either enable_shared or enable_static is yes.
13186test "$enable_shared" = yes || enable_static=yes
13187echo "$as_me:$LINENO: result: $enable_static" >&5
13188echo "${ECHO_T}$enable_static" >&6
13189
13190test "$ld_shlibs_F77" = no && can_build_shared=no
13191
13192GCC_F77="$G77"
13193LD_F77="$LD"
13194
13195lt_prog_compiler_wl_F77=
13196lt_prog_compiler_pic_F77=
13197lt_prog_compiler_static_F77=
13198
13199echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13200echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13201
13202 if test "$GCC" = yes; then
13203 lt_prog_compiler_wl_F77='-Wl,'
13204 lt_prog_compiler_static_F77='-static'
13205
13206 case $host_os in
13207 aix*)
13208 # All AIX code is PIC.
13209 if test "$host_cpu" = ia64; then
13210 # AIX 5 now supports IA64 processor
13211 lt_prog_compiler_static_F77='-Bstatic'
13212 fi
13213 ;;
13214
13215 amigaos*)
13216 # FIXME: we need at least 68020 code to build shared libraries, but
13217 # adding the `-m68020' flag to GCC prevents building anything better,
13218 # like `-m68040'.
13219 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13220 ;;
13221
13222 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13223 # PIC is the default for these OSes.
13224 ;;
13225
13226 mingw* | pw32* | os2*)
13227 # This hack is so that the source file can tell whether it is being
13228 # built for inclusion in a dll (and should export symbols for example).
13229 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13230 ;;
13231
13232 darwin* | rhapsody*)
13233 # PIC is the default on this platform
13234 # Common symbols not allowed in MH_DYLIB files
13235 lt_prog_compiler_pic_F77='-fno-common'
13236 ;;
13237
13238 msdosdjgpp*)
13239 # Just because we use GCC doesn't mean we suddenly get shared libraries
13240 # on systems that don't support them.
13241 lt_prog_compiler_can_build_shared_F77=no
13242 enable_shared=no
13243 ;;
13244
13245 sysv4*MP*)
13246 if test -d /usr/nec; then
13247 lt_prog_compiler_pic_F77=-Kconform_pic
13248 fi
13249 ;;
13250
13251 hpux*)
13252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13253 # not for PA HP-UX.
13254 case "$host_cpu" in
13255 hppa*64*|ia64*)
13256 # +Z the default
13257 ;;
13258 *)
13259 lt_prog_compiler_pic_F77='-fPIC'
13260 ;;
13261 esac
13262 ;;
13263
13264 *)
13265 lt_prog_compiler_pic_F77='-fPIC'
13266 ;;
13267 esac
13268 else
13269 # PORTME Check for flag to pass linker flags through the system compiler.
13270 case $host_os in
13271 aix*)
13272 lt_prog_compiler_wl_F77='-Wl,'
13273 if test "$host_cpu" = ia64; then
13274 # AIX 5 now supports IA64 processor
13275 lt_prog_compiler_static_F77='-Bstatic'
13276 else
13277 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13278 fi
13279 ;;
13280
13281 mingw* | pw32* | os2*)
13282 # This hack is so that the source file can tell whether it is being
13283 # built for inclusion in a dll (and should export symbols for example).
13284 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13285 ;;
13286
13287 hpux9* | hpux10* | hpux11*)
13288 lt_prog_compiler_wl_F77='-Wl,'
13289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13290 # not for PA HP-UX.
13291 case "$host_cpu" in
13292 hppa*64*|ia64*)
13293 # +Z the default
13294 ;;
13295 *)
13296 lt_prog_compiler_pic_F77='+Z'
13297 ;;
13298 esac
13299 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13300 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13301 ;;
13302
13303 irix5* | irix6* | nonstopux*)
13304 lt_prog_compiler_wl_F77='-Wl,'
13305 # PIC (with -KPIC) is the default.
13306 lt_prog_compiler_static_F77='-non_shared'
13307 ;;
13308
13309 newsos6)
13310 lt_prog_compiler_pic_F77='-KPIC'
13311 lt_prog_compiler_static_F77='-Bstatic'
13312 ;;
13313
13314 linux*)
13315 case $CC in
13316 icc* | ecc*)
13317 lt_prog_compiler_wl_F77='-Wl,'
13318 lt_prog_compiler_pic_F77='-KPIC'
13319 lt_prog_compiler_static_F77='-static'
13320 ;;
13321 ccc*)
13322 lt_prog_compiler_wl_F77='-Wl,'
13323 # All Alpha code is PIC.
13324 lt_prog_compiler_static_F77='-non_shared'
13325 ;;
13326 esac
13327 ;;
13328
13329 osf3* | osf4* | osf5*)
13330 lt_prog_compiler_wl_F77='-Wl,'
13331 # All OSF/1 code is PIC.
13332 lt_prog_compiler_static_F77='-non_shared'
13333 ;;
13334
13335 sco3.2v5*)
13336 lt_prog_compiler_pic_F77='-Kpic'
13337 lt_prog_compiler_static_F77='-dn'
13338 ;;
13339
13340 solaris*)
13341 lt_prog_compiler_wl_F77='-Wl,'
13342 lt_prog_compiler_pic_F77='-KPIC'
13343 lt_prog_compiler_static_F77='-Bstatic'
13344 ;;
13345
13346 sunos4*)
13347 lt_prog_compiler_wl_F77='-Qoption ld '
13348 lt_prog_compiler_pic_F77='-PIC'
13349 lt_prog_compiler_static_F77='-Bstatic'
13350 ;;
13351
13352 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13353 lt_prog_compiler_wl_F77='-Wl,'
13354 lt_prog_compiler_pic_F77='-KPIC'
13355 lt_prog_compiler_static_F77='-Bstatic'
13356 ;;
13357
13358 sysv4*MP*)
13359 if test -d /usr/nec ;then
13360 lt_prog_compiler_pic_F77='-Kconform_pic'
13361 lt_prog_compiler_static_F77='-Bstatic'
13362 fi
13363 ;;
13364
13365 uts4*)
13366 lt_prog_compiler_pic_F77='-pic'
13367 lt_prog_compiler_static_F77='-Bstatic'
13368 ;;
13369
13370 *)
13371 lt_prog_compiler_can_build_shared_F77=no
13372 ;;
13373 esac
13374 fi
13375
13376echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13377echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13378
13379#
13380# Check to make sure the PIC flag actually works.
13381#
13382if test -n "$lt_prog_compiler_pic_F77"; then
13383
13384echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13385echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13386if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388else
13389 lt_prog_compiler_pic_works_F77=no
13390 ac_outfile=conftest.$ac_objext
13391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13392 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13393 # Insert the option either (1) after the last *FLAGS variable, or
13394 # (2) before a word containing "conftest.", or (3) at the end.
13395 # Note that $ac_compile itself does not contain backslashes and begins
13396 # with a dollar sign (not a hyphen), so the echo should work correctly.
13397 # The option is referenced via a variable to avoid confusing sed.
13398 lt_compile=`echo "$ac_compile" | $SED \
13399 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13401 -e 's:$: $lt_compiler_flag:'`
13402 (eval echo "\"\$as_me:13402: $lt_compile\"" >&5)
13403 (eval "$lt_compile" 2>conftest.err)
13404 ac_status=$?
13405 cat conftest.err >&5
13406 echo "$as_me:13406: \$? = $ac_status" >&5
13407 if (exit $ac_status) && test -s "$ac_outfile"; then
13408 # The compiler can only warn and ignore the option if not recognized
13409 # So say no if there are warnings
13410 if test ! -s conftest.err; then
13411 lt_prog_compiler_pic_works_F77=yes
13412 fi
13413 fi
13414 $rm conftest*
13415
13416fi
13417echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13418echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13419
13420if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13421 case $lt_prog_compiler_pic_F77 in
13422 "" | " "*) ;;
13423 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13424 esac
13425else
13426 lt_prog_compiler_pic_F77=
13427 lt_prog_compiler_can_build_shared_F77=no
13428fi
13429
13430fi
13431case "$host_os" in
13432 # For platforms which do not support PIC, -DPIC is meaningless:
13433 *djgpp*)
13434 lt_prog_compiler_pic_F77=
13435 ;;
13436 *)
13437 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13438 ;;
13439esac
13440
13441echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13442echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13443if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445else
13446 lt_cv_prog_compiler_c_o_F77=no
13447 $rm -r conftest 2>/dev/null
13448 mkdir conftest
13449 cd conftest
13450 mkdir out
13451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13452
13453 lt_compiler_flag="-o out/conftest2.$ac_objext"
13454 # Insert the option either (1) after the last *FLAGS variable, or
13455 # (2) before a word containing "conftest.", or (3) at the end.
13456 # Note that $ac_compile itself does not contain backslashes and begins
13457 # with a dollar sign (not a hyphen), so the echo should work correctly.
13458 lt_compile=`echo "$ac_compile" | $SED \
13459 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13461 -e 's:$: $lt_compiler_flag:'`
13462 (eval echo "\"\$as_me:13462: $lt_compile\"" >&5)
13463 (eval "$lt_compile" 2>out/conftest.err)
13464 ac_status=$?
13465 cat out/conftest.err >&5
13466 echo "$as_me:13466: \$? = $ac_status" >&5
13467 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13468 then
13469 # The compiler can only warn and ignore the option if not recognized
13470 # So say no if there are warnings
13471 if test ! -s out/conftest.err; then
13472 lt_cv_prog_compiler_c_o_F77=yes
13473 fi
13474 fi
13475 chmod u+w .
13476 $rm conftest*
13477 # SGI C++ compiler will create directory out/ii_files/ for
13478 # template instantiation
13479 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13480 $rm out/* && rmdir out
13481 cd ..
13482 rmdir conftest
13483 $rm conftest*
13484
13485fi
13486echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13487echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13488
13489
13490hard_links="nottested"
13491if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13492 # do not overwrite the value of need_locks provided by the user
13493 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13494echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13495 hard_links=yes
13496 $rm conftest*
13497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13498 touch conftest.a
13499 ln conftest.a conftest.b 2>&5 || hard_links=no
13500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13501 echo "$as_me:$LINENO: result: $hard_links" >&5
13502echo "${ECHO_T}$hard_links" >&6
13503 if test "$hard_links" = no; then
13504 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13505echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13506 need_locks=warn
13507 fi
13508else
13509 need_locks=no
13510fi
13511
13512echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13513echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13514
13515 runpath_var=
13516 allow_undefined_flag_F77=
13517 enable_shared_with_static_runtimes_F77=no
13518 archive_cmds_F77=
13519 archive_expsym_cmds_F77=
13520 old_archive_From_new_cmds_F77=
13521 old_archive_from_expsyms_cmds_F77=
13522 export_dynamic_flag_spec_F77=
13523 whole_archive_flag_spec_F77=
13524 thread_safe_flag_spec_F77=
13525 hardcode_libdir_flag_spec_F77=
13526 hardcode_libdir_flag_spec_ld_F77=
13527 hardcode_libdir_separator_F77=
13528 hardcode_direct_F77=no
13529 hardcode_minus_L_F77=no
13530 hardcode_shlibpath_var_F77=unsupported
13531 link_all_deplibs_F77=unknown
13532 hardcode_automatic_F77=no
13533 module_cmds_F77=
13534 module_expsym_cmds_F77=
13535 always_export_symbols_F77=no
13536 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13537 # include_expsyms should be a list of space-separated symbols to be *always*
13538 # included in the symbol list
13539 include_expsyms_F77=
13540 # exclude_expsyms can be an extended regexp of symbols to exclude
13541 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13542 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13543 # as well as any symbol that contains `d'.
13544 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13545 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13546 # platforms (ab)use it in PIC code, but their linkers get confused if
13547 # the symbol is explicitly referenced. Since portable code cannot
13548 # rely on this symbol name, it's probably fine to never include it in
13549 # preloaded symbol tables.
13550 extract_expsyms_cmds=
13551
13552 case $host_os in
13553 cygwin* | mingw* | pw32*)
13554 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13555 # When not using gcc, we currently assume that we are using
13556 # Microsoft Visual C++.
13557 if test "$GCC" != yes; then
13558 with_gnu_ld=no
13559 fi
13560 ;;
13561 openbsd*)
13562 with_gnu_ld=no
13563 ;;
13564 esac
13565
13566 ld_shlibs_F77=yes
13567 if test "$with_gnu_ld" = yes; then
13568 # If archive_cmds runs LD, not CC, wlarc should be empty
13569 wlarc='${wl}'
13570
13571 # See if GNU ld supports shared libraries.
13572 case $host_os in
13573 aix3* | aix4* | aix5*)
13574 # On AIX/PPC, the GNU linker is very broken
13575 if test "$host_cpu" != ia64; then
13576 ld_shlibs_F77=no
13577 cat <<EOF 1>&2
13578
13579*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13580*** to be unable to reliably create shared libraries on AIX.
13581*** Therefore, libtool is disabling shared libraries support. If you
13582*** really care for shared libraries, you may want to modify your PATH
13583*** so that a non-GNU linker is found, and then restart.
13584
13585EOF
13586 fi
13587 ;;
13588
13589 amigaos*)
13590 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)'
13591 hardcode_libdir_flag_spec_F77='-L$libdir'
13592 hardcode_minus_L_F77=yes
13593
13594 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13595 # that the semantics of dynamic libraries on AmigaOS, at least up
13596 # to version 4, is to share data among multiple programs linked
13597 # with the same dynamic library. Since this doesn't match the
13598 # behavior of shared libraries on other platforms, we can't use
13599 # them.
13600 ld_shlibs_F77=no
13601 ;;
13602
13603 beos*)
13604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13605 allow_undefined_flag_F77=unsupported
13606 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13607 # support --undefined. This deserves some investigation. FIXME
13608 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13609 else
13610 ld_shlibs_F77=no
13611 fi
13612 ;;
13613
13614 cygwin* | mingw* | pw32*)
13615 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13616 # as there is no search path for DLLs.
13617 hardcode_libdir_flag_spec_F77='-L$libdir'
13618 allow_undefined_flag_F77=unsupported
13619 always_export_symbols_F77=no
13620 enable_shared_with_static_runtimes_F77=yes
13621 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13622
13623 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13624 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13625 # If the export-symbols file already is a .def file (1st line
13626 # is EXPORTS), use it as is; otherwise, prepend...
13627 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13628 cp $export_symbols $output_objdir/$soname.def;
13629 else
13630 echo EXPORTS > $output_objdir/$soname.def;
13631 cat $export_symbols >> $output_objdir/$soname.def;
13632 fi~
13633 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13634 else
13635 ld_shlibs=no
13636 fi
13637 ;;
13638
13639 netbsd*)
13640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13641 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13642 wlarc=
13643 else
13644 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13645 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13646 fi
13647 ;;
13648
13649 solaris* | sysv5*)
13650 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13651 ld_shlibs_F77=no
13652 cat <<EOF 1>&2
13653
13654*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13655*** create shared libraries on Solaris systems. Therefore, libtool
13656*** is disabling shared libraries support. We urge you to upgrade GNU
13657*** binutils to release 2.9.1 or newer. Another option is to modify
13658*** your PATH or compiler configuration so that the native linker is
13659*** used, and then restart.
13660
13661EOF
13662 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13663 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13664 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13665 else
13666 ld_shlibs_F77=no
13667 fi
13668 ;;
13669
13670 sunos4*)
13671 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13672 wlarc=
13673 hardcode_direct_F77=yes
13674 hardcode_shlibpath_var_F77=no
13675 ;;
13676
13677 linux*)
13678 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13679 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13680 archive_cmds_F77="$tmp_archive_cmds"
13681 supports_anon_versioning=no
13682 case `$LD -v 2>/dev/null` in
13683 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13684 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13685 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13686 *\ 2.11.*) ;; # other 2.11 versions
13687 *) supports_anon_versioning=yes ;;
13688 esac
13689 if test $supports_anon_versioning = yes; then
13690 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13691cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13692$echo "local: *; };" >> $output_objdir/$libname.ver~
13693 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13694 else
13695 archive_expsym_cmds_F77="$tmp_archive_cmds"
13696 fi
13697 else
13698 ld_shlibs_F77=no
13699 fi
13700 ;;
13701
13702 *)
13703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13705 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13706 else
13707 ld_shlibs_F77=no
13708 fi
13709 ;;
13710 esac
13711
13712 if test "$ld_shlibs_F77" = yes; then
13713 runpath_var=LD_RUN_PATH
13714 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13715 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13716 # ancient GNU ld didn't support --whole-archive et. al.
13717 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13718 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13719 else
13720 whole_archive_flag_spec_F77=
13721 fi
13722 fi
13723 else
13724 # PORTME fill in a description of your system's linker (not GNU ld)
13725 case $host_os in
13726 aix3*)
13727 allow_undefined_flag_F77=unsupported
13728 always_export_symbols_F77=yes
13729 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'
13730 # Note: this linker hardcodes the directories in LIBPATH if there
13731 # are no directories specified by -L.
13732 hardcode_minus_L_F77=yes
13733 if test "$GCC" = yes && test -z "$link_static_flag"; then
13734 # Neither direct hardcoding nor static linking is supported with a
13735 # broken collect2.
13736 hardcode_direct_F77=unsupported
13737 fi
13738 ;;
13739
13740 aix4* | aix5*)
13741 if test "$host_cpu" = ia64; then
13742 # On IA64, the linker does run time linking by default, so we don't
13743 # have to do anything special.
13744 aix_use_runtimelinking=no
13745 exp_sym_flag='-Bexport'
13746 no_entry_flag=""
13747 else
13748 # If we're using GNU nm, then we don't want the "-C" option.
13749 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13750 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13751 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'
13752 else
13753 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'
13754 fi
13755 aix_use_runtimelinking=no
13756
13757 # Test if we are trying to use run time linking or normal
13758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13759 # need to do runtime linking.
13760 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13761 for ld_flag in $LDFLAGS; do
13762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13763 aix_use_runtimelinking=yes
13764 break
13765 fi
13766 done
13767 esac
13768
13769 exp_sym_flag='-bexport'
13770 no_entry_flag='-bnoentry'
13771 fi
13772
13773 # When large executables or shared objects are built, AIX ld can
13774 # have problems creating the table of contents. If linking a library
13775 # or program results in "error TOC overflow" add -mminimal-toc to
13776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13778
13779 archive_cmds_F77=''
13780 hardcode_direct_F77=yes
13781 hardcode_libdir_separator_F77=':'
13782 link_all_deplibs_F77=yes
13783
13784 if test "$GCC" = yes; then
13785 case $host_os in aix4.012|aix4.012.*)
13786 # We only want to do this on AIX 4.2 and lower, the check
13787 # below for broken collect2 doesn't work under 4.3+
13788 collect2name=`${CC} -print-prog-name=collect2`
13789 if test -f "$collect2name" && \
13790 strings "$collect2name" | grep resolve_lib_name >/dev/null
13791 then
13792 # We have reworked collect2
13793 hardcode_direct_F77=yes
13794 else
13795 # We have old collect2
13796 hardcode_direct_F77=unsupported
13797 # It fails to find uninstalled libraries when the uninstalled
13798 # path is not listed in the libpath. Setting hardcode_minus_L
13799 # to unsupported forces relinking
13800 hardcode_minus_L_F77=yes
13801 hardcode_libdir_flag_spec_F77='-L$libdir'
13802 hardcode_libdir_separator_F77=
13803 fi
13804 esac
13805 shared_flag='-shared'
13806 else
13807 # not using gcc
13808 if test "$host_cpu" = ia64; then
13809 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13810 # chokes on -Wl,-G. The following line is correct:
13811 shared_flag='-G'
13812 else
13813 if test "$aix_use_runtimelinking" = yes; then
13814 shared_flag='${wl}-G'
13815 else
13816 shared_flag='${wl}-bM:SRE'
13817 fi
13818 fi
13819 fi
13820
13821 # It seems that -bexpall does not export symbols beginning with
13822 # underscore (_), so it is better to generate a list of symbols to export.
13823 always_export_symbols_F77=yes
13824 if test "$aix_use_runtimelinking" = yes; then
13825 # Warning - without using the other runtime loading flags (-brtl),
13826 # -berok will link without error, but may produce a broken library.
13827 allow_undefined_flag_F77='-berok'
13828 # Determine the default libpath from the value encoded in an empty executable.
13829 cat >conftest.$ac_ext <<_ACEOF
13830 program main
13831
13832 end
13833_ACEOF
13834rm -f conftest.$ac_objext conftest$ac_exeext
13835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836 (eval $ac_link) 2>conftest.er1
13837 ac_status=$?
13838 grep -v '^ *+' conftest.er1 >conftest.err
13839 rm -f conftest.er1
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -z "$ac_f77_werror_flag"
13844 || test ! -s conftest.err'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest$ac_exeext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856
13857aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13858}'`
13859# Check for a 64-bit object if we didn't find anything.
13860if 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; }
13861}'`; fi
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866fi
13867rm -f conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext conftest.$ac_ext
13869if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13870
13871 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13872 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13873 else
13874 if test "$host_cpu" = ia64; then
13875 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13876 allow_undefined_flag_F77="-z nodefs"
13877 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13878 else
13879 # Determine the default libpath from the value encoded in an empty executable.
13880 cat >conftest.$ac_ext <<_ACEOF
13881 program main
13882
13883 end
13884_ACEOF
13885rm -f conftest.$ac_objext conftest$ac_exeext
13886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13887 (eval $ac_link) 2>conftest.er1
13888 ac_status=$?
13889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_f77_werror_flag"
13895 || test ! -s conftest.err'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907
13908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13909}'`
13910# Check for a 64-bit object if we didn't find anything.
13911if 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; }
13912}'`; fi
13913else
13914 echo "$as_me: failed program was:" >&5
13915sed 's/^/| /' conftest.$ac_ext >&5
13916
13917fi
13918rm -f conftest.err conftest.$ac_objext \
13919 conftest$ac_exeext conftest.$ac_ext
13920if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13921
13922 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13923 # Warning - without using the other run time loading flags,
13924 # -berok will link without error, but may produce a broken library.
13925 no_undefined_flag_F77=' ${wl}-bernotok'
13926 allow_undefined_flag_F77=' ${wl}-berok'
13927 # -bexpall does not export symbols beginning with underscore (_)
13928 always_export_symbols_F77=yes
13929 # Exported symbols can be pulled into shared objects from archives
13930 whole_archive_flag_spec_F77=' '
13931 archive_cmds_need_lc_F77=yes
13932 # This is similar to how AIX traditionally builds it's shared libraries.
13933 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13934 fi
13935 fi
13936 ;;
13937
13938 amigaos*)
13939 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)'
13940 hardcode_libdir_flag_spec_F77='-L$libdir'
13941 hardcode_minus_L_F77=yes
13942 # see comment about different semantics on the GNU ld section
13943 ld_shlibs_F77=no
13944 ;;
13945
13946 bsdi4*)
13947 export_dynamic_flag_spec_F77=-rdynamic
13948 ;;
13949
13950 cygwin* | mingw* | pw32*)
13951 # When not using gcc, we currently assume that we are using
13952 # Microsoft Visual C++.
13953 # hardcode_libdir_flag_spec is actually meaningless, as there is
13954 # no search path for DLLs.
13955 hardcode_libdir_flag_spec_F77=' '
13956 allow_undefined_flag_F77=unsupported
13957 # Tell ltmain to make .lib files, not .a files.
13958 libext=lib
13959 # Tell ltmain to make .dll files, not .so files.
13960 shrext_cmds=".dll"
13961 # FIXME: Setting linknames here is a bad hack.
13962 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13963 # The linker will automatically build a .lib file if we build a DLL.
13964 old_archive_From_new_cmds_F77='true'
13965 # FIXME: Should let the user specify the lib program.
13966 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13967 fix_srcfile_path='`cygpath -w "$srcfile"`'
13968 enable_shared_with_static_runtimes_F77=yes
13969 ;;
13970
13971 darwin* | rhapsody*)
13972 if test "$GXX" = yes ; then
13973 archive_cmds_need_lc_F77=no
13974 case "$host_os" in
13975 rhapsody* | darwin1.[012])
13976 allow_undefined_flag_F77='-undefined suppress'
13977 ;;
13978 *) # Darwin 1.3 on
13979 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13980 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13981 else
13982 case ${MACOSX_DEPLOYMENT_TARGET} in
13983 10.[012])
13984 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13985 ;;
13986 10.*)
13987 allow_undefined_flag_F77='-undefined dynamic_lookup'
13988 ;;
13989 esac
13990 fi
13991 ;;
13992 esac
13993 lt_int_apple_cc_single_mod=no
13994 output_verbose_link_cmd='echo'
13995 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13996 lt_int_apple_cc_single_mod=yes
13997 fi
13998 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13999 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14000 else
14001 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14002 fi
14003 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14004 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14005 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14006 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14007 else
14008 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14009 fi
14010 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}'
14011 hardcode_direct_F77=no
14012 hardcode_automatic_F77=yes
14013 hardcode_shlibpath_var_F77=unsupported
14014 whole_archive_flag_spec_F77='-all_load $convenience'
14015 link_all_deplibs_F77=yes
14016 else
14017 ld_shlibs_F77=no
14018 fi
14019 ;;
14020
14021 dgux*)
14022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14023 hardcode_libdir_flag_spec_F77='-L$libdir'
14024 hardcode_shlibpath_var_F77=no
14025 ;;
14026
14027 freebsd1*)
14028 ld_shlibs_F77=no
14029 ;;
14030
14031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14032 # support. Future versions do this automatically, but an explicit c++rt0.o
14033 # does not break anything, and helps significantly (at the cost of a little
14034 # extra space).
14035 freebsd2.2*)
14036 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14037 hardcode_libdir_flag_spec_F77='-R$libdir'
14038 hardcode_direct_F77=yes
14039 hardcode_shlibpath_var_F77=no
14040 ;;
14041
14042 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14043 freebsd2*)
14044 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14045 hardcode_direct_F77=yes
14046 hardcode_minus_L_F77=yes
14047 hardcode_shlibpath_var_F77=no
14048 ;;
14049
14050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14051 freebsd* | kfreebsd*-gnu)
14052 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14053 hardcode_libdir_flag_spec_F77='-R$libdir'
14054 hardcode_direct_F77=yes
14055 hardcode_shlibpath_var_F77=no
14056 ;;
14057
14058 hpux9*)
14059 if test "$GCC" = yes; then
14060 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'
14061 else
14062 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'
14063 fi
14064 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14065 hardcode_libdir_separator_F77=:
14066 hardcode_direct_F77=yes
14067
14068 # hardcode_minus_L: Not really in the search PATH,
14069 # but as the default location of the library.
14070 hardcode_minus_L_F77=yes
14071 export_dynamic_flag_spec_F77='${wl}-E'
14072 ;;
14073
14074 hpux10* | hpux11*)
14075 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14076 case "$host_cpu" in
14077 hppa*64*|ia64*)
14078 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14079 ;;
14080 *)
14081 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14082 ;;
14083 esac
14084 else
14085 case "$host_cpu" in
14086 hppa*64*|ia64*)
14087 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14088 ;;
14089 *)
14090 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14091 ;;
14092 esac
14093 fi
14094 if test "$with_gnu_ld" = no; then
14095 case "$host_cpu" in
14096 hppa*64*)
14097 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14098 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14099 hardcode_libdir_separator_F77=:
14100 hardcode_direct_F77=no
14101 hardcode_shlibpath_var_F77=no
14102 ;;
14103 ia64*)
14104 hardcode_libdir_flag_spec_F77='-L$libdir'
14105 hardcode_direct_F77=no
14106 hardcode_shlibpath_var_F77=no
14107
14108 # hardcode_minus_L: Not really in the search PATH,
14109 # but as the default location of the library.
14110 hardcode_minus_L_F77=yes
14111 ;;
14112 *)
14113 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14114 hardcode_libdir_separator_F77=:
14115 hardcode_direct_F77=yes
14116 export_dynamic_flag_spec_F77='${wl}-E'
14117
14118 # hardcode_minus_L: Not really in the search PATH,
14119 # but as the default location of the library.
14120 hardcode_minus_L_F77=yes
14121 ;;
14122 esac
14123 fi
14124 ;;
14125
14126 irix5* | irix6* | nonstopux*)
14127 if test "$GCC" = yes; then
14128 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'
14129 else
14130 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'
14131 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14132 fi
14133 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14134 hardcode_libdir_separator_F77=:
14135 link_all_deplibs_F77=yes
14136 ;;
14137
14138 netbsd*)
14139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14140 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14141 else
14142 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14143 fi
14144 hardcode_libdir_flag_spec_F77='-R$libdir'
14145 hardcode_direct_F77=yes
14146 hardcode_shlibpath_var_F77=no
14147 ;;
14148
14149 newsos6)
14150 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14151 hardcode_direct_F77=yes
14152 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14153 hardcode_libdir_separator_F77=:
14154 hardcode_shlibpath_var_F77=no
14155 ;;
14156
14157 openbsd*)
14158 hardcode_direct_F77=yes
14159 hardcode_shlibpath_var_F77=no
14160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14161 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14162 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14163 export_dynamic_flag_spec_F77='${wl}-E'
14164 else
14165 case $host_os in
14166 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14167 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14168 hardcode_libdir_flag_spec_F77='-R$libdir'
14169 ;;
14170 *)
14171 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14172 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14173 ;;
14174 esac
14175 fi
14176 ;;
14177
14178 os2*)
14179 hardcode_libdir_flag_spec_F77='-L$libdir'
14180 hardcode_minus_L_F77=yes
14181 allow_undefined_flag_F77=unsupported
14182 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'
14183 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14184 ;;
14185
14186 osf3*)
14187 if test "$GCC" = yes; then
14188 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14189 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'
14190 else
14191 allow_undefined_flag_F77=' -expect_unresolved \*'
14192 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'
14193 fi
14194 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14195 hardcode_libdir_separator_F77=:
14196 ;;
14197
14198 osf4* | osf5*) # as osf3* with the addition of -msym flag
14199 if test "$GCC" = yes; then
14200 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14201 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'
14202 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14203 else
14204 allow_undefined_flag_F77=' -expect_unresolved \*'
14205 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'
14206 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~
14207 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14208
14209 # Both c and cxx compiler support -rpath directly
14210 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14211 fi
14212 hardcode_libdir_separator_F77=:
14213 ;;
14214
14215 sco3.2v5*)
14216 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14217 hardcode_shlibpath_var_F77=no
14218 export_dynamic_flag_spec_F77='${wl}-Bexport'
14219 runpath_var=LD_RUN_PATH
14220 hardcode_runpath_var=yes
14221 ;;
14222
14223 solaris*)
14224 no_undefined_flag_F77=' -z text'
14225 if test "$GCC" = yes; then
14226 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14227 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14228 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14229 else
14230 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14231 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14232 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14233 fi
14234 hardcode_libdir_flag_spec_F77='-R$libdir'
14235 hardcode_shlibpath_var_F77=no
14236 case $host_os in
14237 solaris2.[0-5] | solaris2.[0-5].*) ;;
14238 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14239 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14240 esac
14241 link_all_deplibs_F77=yes
14242 ;;
14243
14244 sunos4*)
14245 if test "x$host_vendor" = xsequent; then
14246 # Use $CC to link under sequent, because it throws in some extra .o
14247 # files that make .init and .fini sections work.
14248 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14249 else
14250 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14251 fi
14252 hardcode_libdir_flag_spec_F77='-L$libdir'
14253 hardcode_direct_F77=yes
14254 hardcode_minus_L_F77=yes
14255 hardcode_shlibpath_var_F77=no
14256 ;;
14257
14258 sysv4)
14259 case $host_vendor in
14260 sni)
14261 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14262 hardcode_direct_F77=yes # is this really true???
14263 ;;
14264 siemens)
14265 ## LD is ld it makes a PLAMLIB
14266 ## CC just makes a GrossModule.
14267 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14268 reload_cmds_F77='$CC -r -o $output$reload_objs'
14269 hardcode_direct_F77=no
14270 ;;
14271 motorola)
14272 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14273 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14274 ;;
14275 esac
14276 runpath_var='LD_RUN_PATH'
14277 hardcode_shlibpath_var_F77=no
14278 ;;
14279
14280 sysv4.3*)
14281 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14282 hardcode_shlibpath_var_F77=no
14283 export_dynamic_flag_spec_F77='-Bexport'
14284 ;;
14285
14286 sysv4*MP*)
14287 if test -d /usr/nec; then
14288 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14289 hardcode_shlibpath_var_F77=no
14290 runpath_var=LD_RUN_PATH
14291 hardcode_runpath_var=yes
14292 ld_shlibs_F77=yes
14293 fi
14294 ;;
14295
14296 sysv4.2uw2*)
14297 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14298 hardcode_direct_F77=yes
14299 hardcode_minus_L_F77=no
14300 hardcode_shlibpath_var_F77=no
14301 hardcode_runpath_var=yes
14302 runpath_var=LD_RUN_PATH
14303 ;;
14304
14305 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14306 no_undefined_flag_F77='${wl}-z ${wl}text'
14307 if test "$GCC" = yes; then
14308 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14309 else
14310 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14311 fi
14312 runpath_var='LD_RUN_PATH'
14313 hardcode_shlibpath_var_F77=no
14314 ;;
14315
14316 sysv5*)
14317 no_undefined_flag_F77=' -z text'
14318 # $CC -shared without GNU ld will not create a library from C++
14319 # object files and a static libstdc++, better avoid it by now
14320 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14321 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14323 hardcode_libdir_flag_spec_F77=
14324 hardcode_shlibpath_var_F77=no
14325 runpath_var='LD_RUN_PATH'
14326 ;;
14327
14328 uts4*)
14329 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14330 hardcode_libdir_flag_spec_F77='-L$libdir'
14331 hardcode_shlibpath_var_F77=no
14332 ;;
14333
14334 *)
14335 ld_shlibs_F77=no
14336 ;;
14337 esac
14338 fi
14339
14340echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14341echo "${ECHO_T}$ld_shlibs_F77" >&6
14342test "$ld_shlibs_F77" = no && can_build_shared=no
14343
14344variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14345if test "$GCC" = yes; then
14346 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14347fi
14348
14349#
14350# Do we need to explicitly link libc?
14351#
14352case "x$archive_cmds_need_lc_F77" in
14353x|xyes)
14354 # Assume -lc should be added
14355 archive_cmds_need_lc_F77=yes
14356
14357 if test "$enable_shared" = yes && test "$GCC" = yes; then
14358 case $archive_cmds_F77 in
14359 *'~'*)
14360 # FIXME: we may have to deal with multi-command sequences.
14361 ;;
14362 '$CC '*)
14363 # Test whether the compiler implicitly links with -lc since on some
14364 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14365 # to ld, don't add -lc before -lgcc.
14366 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14367echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14368 $rm conftest*
14369 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14370
14371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14372 (eval $ac_compile) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } 2>conftest.err; then
14376 soname=conftest
14377 lib=conftest
14378 libobjs=conftest.$ac_objext
14379 deplibs=
14380 wl=$lt_prog_compiler_wl_F77
14381 compiler_flags=-v
14382 linker_flags=-v
14383 verstring=
14384 output_objdir=.
14385 libname=conftest
14386 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14387 allow_undefined_flag_F77=
14388 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14389 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }
14393 then
14394 archive_cmds_need_lc_F77=no
14395 else
14396 archive_cmds_need_lc_F77=yes
14397 fi
14398 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14399 else
14400 cat conftest.err 1>&5
14401 fi
14402 $rm conftest*
14403 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14404echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14405 ;;
14406 esac
14407 fi
14408 ;;
14409esac
14410
14411echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14412echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14413library_names_spec=
14414libname_spec='lib$name'
14415soname_spec=
14416shrext_cmds=".so"
14417postinstall_cmds=
14418postuninstall_cmds=
14419finish_cmds=
14420finish_eval=
14421shlibpath_var=
14422shlibpath_overrides_runpath=unknown
14423version_type=none
14424dynamic_linker="$host_os ld.so"
14425sys_lib_dlsearch_path_spec="/lib /usr/lib"
14426if test "$GCC" = yes; then
14427 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14428 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14429 # if the path contains ";" then we assume it to be the separator
14430 # otherwise default to the standard path separator (i.e. ":") - it is
14431 # assumed that no part of a normal pathname contains ";" but that should
14432 # okay in the real world where ";" in dirpaths is itself problematic.
14433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14434 else
14435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14436 fi
14437else
14438 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14439fi
14440need_lib_prefix=unknown
14441hardcode_into_libs=no
14442
14443# when you set need_version to no, make sure it does not cause -set_version
14444# flags to be left without arguments
14445need_version=unknown
14446
14447case $host_os in
14448aix3*)
14449 version_type=linux
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14451 shlibpath_var=LIBPATH
14452
14453 # AIX 3 has no versioning support, so we append a major version to the name.
14454 soname_spec='${libname}${release}${shared_ext}$major'
14455 ;;
14456
14457aix4* | aix5*)
14458 version_type=linux
14459 need_lib_prefix=no
14460 need_version=no
14461 hardcode_into_libs=yes
14462 if test "$host_cpu" = ia64; then
14463 # AIX 5 supports IA64
14464 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14465 shlibpath_var=LD_LIBRARY_PATH
14466 else
14467 # With GCC up to 2.95.x, collect2 would create an import file
14468 # for dependence libraries. The import file would start with
14469 # the line `#! .'. This would cause the generated library to
14470 # depend on `.', always an invalid library. This was fixed in
14471 # development snapshots of GCC prior to 3.0.
14472 case $host_os in
14473 aix4 | aix4.[01] | aix4.[01].*)
14474 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14475 echo ' yes '
14476 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14477 :
14478 else
14479 can_build_shared=no
14480 fi
14481 ;;
14482 esac
14483 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14484 # soname into executable. Probably we can add versioning support to
14485 # collect2, so additional links can be useful in future.
14486 if test "$aix_use_runtimelinking" = yes; then
14487 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14488 # instead of lib<name>.a to let people know that these are not
14489 # typical AIX shared libraries.
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 else
14492 # We preserve .a as extension for shared libraries through AIX4.2
14493 # and later when we are not doing run time linking.
14494 library_names_spec='${libname}${release}.a $libname.a'
14495 soname_spec='${libname}${release}${shared_ext}$major'
14496 fi
14497 shlibpath_var=LIBPATH
14498 fi
14499 ;;
14500
14501amigaos*)
14502 library_names_spec='$libname.ixlibrary $libname.a'
14503 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14504 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'
14505 ;;
14506
14507beos*)
14508 library_names_spec='${libname}${shared_ext}'
14509 dynamic_linker="$host_os ld.so"
14510 shlibpath_var=LIBRARY_PATH
14511 ;;
14512
14513bsdi4*)
14514 version_type=linux
14515 need_version=no
14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14521 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14522 # the default ld.so.conf also contains /usr/contrib/lib and
14523 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14524 # libtool to hard-code these into programs
14525 ;;
14526
14527cygwin* | mingw* | pw32*)
14528 version_type=windows
14529 shrext_cmds=".dll"
14530 need_version=no
14531 need_lib_prefix=no
14532
14533 case $GCC,$host_os in
14534 yes,cygwin* | yes,mingw* | yes,pw32*)
14535 library_names_spec='$libname.dll.a'
14536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14537 postinstall_cmds='base_file=`basename \${file}`~
14538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14539 dldir=$destdir/`dirname \$dlpath`~
14540 test -d \$dldir || mkdir -p \$dldir~
14541 $install_prog $dir/$dlname \$dldir/$dlname'
14542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14543 dlpath=$dir/\$dldll~
14544 $rm \$dlpath'
14545 shlibpath_overrides_runpath=yes
14546
14547 case $host_os in
14548 cygwin*)
14549 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14550 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14551 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14552 ;;
14553 mingw*)
14554 # MinGW DLLs use traditional 'lib' prefix
14555 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14556 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14557 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14558 # It is most probably a Windows format PATH printed by
14559 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14560 # path with ; separators, and with drive letters. We can handle the
14561 # drive letters (cygwin fileutils understands them), so leave them,
14562 # especially as we might pass files found there to a mingw objdump,
14563 # which wouldn't understand a cygwinified path. Ahh.
14564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14565 else
14566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14567 fi
14568 ;;
14569 pw32*)
14570 # pw32 DLLs use 'pw' prefix rather than 'lib'
14571 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14572 ;;
14573 esac
14574 ;;
14575
14576 *)
14577 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14578 ;;
14579 esac
14580 dynamic_linker='Win32 ld.exe'
14581 # FIXME: first we should search . and the directory the executable is in
14582 shlibpath_var=PATH
14583 ;;
14584
14585darwin* | rhapsody*)
14586 dynamic_linker="$host_os dyld"
14587 version_type=darwin
14588 need_lib_prefix=no
14589 need_version=no
14590 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14591 soname_spec='${libname}${release}${major}$shared_ext'
14592 shlibpath_overrides_runpath=yes
14593 shlibpath_var=DYLD_LIBRARY_PATH
14594 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14595 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14596 if test "$GCC" = yes; then
14597 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"`
14598 else
14599 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14600 fi
14601 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14602 ;;
14603
14604dgux*)
14605 version_type=linux
14606 need_lib_prefix=no
14607 need_version=no
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14609 soname_spec='${libname}${release}${shared_ext}$major'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 ;;
14612
14613freebsd1*)
14614 dynamic_linker=no
14615 ;;
14616
14617kfreebsd*-gnu)
14618 version_type=linux
14619 need_lib_prefix=no
14620 need_version=no
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14622 soname_spec='${libname}${release}${shared_ext}$major'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 shlibpath_overrides_runpath=no
14625 hardcode_into_libs=yes
14626 dynamic_linker='GNU ld.so'
14627 ;;
14628
14629freebsd*)
14630 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14631 version_type=freebsd-$objformat
14632 case $version_type in
14633 freebsd-elf*)
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14635 need_version=no
14636 need_lib_prefix=no
14637 ;;
14638 freebsd-*)
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14640 need_version=yes
14641 ;;
14642 esac
14643 shlibpath_var=LD_LIBRARY_PATH
14644 case $host_os in
14645 freebsd2*)
14646 shlibpath_overrides_runpath=yes
14647 ;;
14648 freebsd3.01* | freebsdelf3.01*)
14649 shlibpath_overrides_runpath=yes
14650 hardcode_into_libs=yes
14651 ;;
14652 *) # from 3.2 on
14653 shlibpath_overrides_runpath=no
14654 hardcode_into_libs=yes
14655 ;;
14656 esac
14657 ;;
14658
14659gnu*)
14660 version_type=linux
14661 need_lib_prefix=no
14662 need_version=no
14663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14664 soname_spec='${libname}${release}${shared_ext}$major'
14665 shlibpath_var=LD_LIBRARY_PATH
14666 hardcode_into_libs=yes
14667 ;;
14668
14669hpux9* | hpux10* | hpux11*)
14670 # Give a soname corresponding to the major version so that dld.sl refuses to
14671 # link against other versions.
14672 version_type=sunos
14673 need_lib_prefix=no
14674 need_version=no
14675 case "$host_cpu" in
14676 ia64*)
14677 shrext_cmds='.so'
14678 hardcode_into_libs=yes
14679 dynamic_linker="$host_os dld.so"
14680 shlibpath_var=LD_LIBRARY_PATH
14681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683 soname_spec='${libname}${release}${shared_ext}$major'
14684 if test "X$HPUX_IA64_MODE" = X32; then
14685 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14686 else
14687 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14688 fi
14689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14690 ;;
14691 hppa*64*)
14692 shrext_cmds='.sl'
14693 hardcode_into_libs=yes
14694 dynamic_linker="$host_os dld.sl"
14695 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698 soname_spec='${libname}${release}${shared_ext}$major'
14699 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14701 ;;
14702 *)
14703 shrext_cmds='.sl'
14704 dynamic_linker="$host_os dld.sl"
14705 shlibpath_var=SHLIB_PATH
14706 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708 soname_spec='${libname}${release}${shared_ext}$major'
14709 ;;
14710 esac
14711 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14712 postinstall_cmds='chmod 555 $lib'
14713 ;;
14714
14715irix5* | irix6* | nonstopux*)
14716 case $host_os in
14717 nonstopux*) version_type=nonstopux ;;
14718 *)
14719 if test "$lt_cv_prog_gnu_ld" = yes; then
14720 version_type=linux
14721 else
14722 version_type=irix
14723 fi ;;
14724 esac
14725 need_lib_prefix=no
14726 need_version=no
14727 soname_spec='${libname}${release}${shared_ext}$major'
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14729 case $host_os in
14730 irix5* | nonstopux*)
14731 libsuff= shlibsuff=
14732 ;;
14733 *)
14734 case $LD in # libtool.m4 will add one of these switches to LD
14735 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14736 libsuff= shlibsuff= libmagic=32-bit;;
14737 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14738 libsuff=32 shlibsuff=N32 libmagic=N32;;
14739 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14740 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14741 *) libsuff= shlibsuff= libmagic=never-match;;
14742 esac
14743 ;;
14744 esac
14745 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14746 shlibpath_overrides_runpath=no
14747 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14748 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14749 hardcode_into_libs=yes
14750 ;;
14751
14752# No shared lib support for Linux oldld, aout, or coff.
14753linux*oldld* | linux*aout* | linux*coff*)
14754 dynamic_linker=no
14755 ;;
14756
14757# This must be Linux ELF.
14758linux*)
14759 version_type=linux
14760 need_lib_prefix=no
14761 need_version=no
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14765 shlibpath_var=LD_LIBRARY_PATH
14766 shlibpath_overrides_runpath=no
14767 # This implies no fast_install, which is unacceptable.
14768 # Some rework will be needed to allow for fast_install
14769 # before this can be enabled.
14770 hardcode_into_libs=yes
14771
14772 # Append ld.so.conf contents to the search path
14773 if test -f /etc/ld.so.conf; then
14774 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14775 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14776 fi
14777
14778 # We used to test for /lib/ld.so.1 and disable shared libraries on
14779 # powerpc, because MkLinux only supported shared libraries with the
14780 # GNU dynamic linker. Since this was broken with cross compilers,
14781 # most powerpc-linux boxes support dynamic linking these days and
14782 # people can always --disable-shared, the test was removed, and we
14783 # assume the GNU/Linux dynamic linker is in use.
14784 dynamic_linker='GNU/Linux ld.so'
14785 ;;
14786
14787knetbsd*-gnu)
14788 version_type=linux
14789 need_lib_prefix=no
14790 need_version=no
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 shlibpath_overrides_runpath=no
14795 hardcode_into_libs=yes
14796 dynamic_linker='GNU ld.so'
14797 ;;
14798
14799netbsd*)
14800 version_type=sunos
14801 need_lib_prefix=no
14802 need_version=no
14803 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14806 dynamic_linker='NetBSD (a.out) ld.so'
14807 else
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14809 soname_spec='${libname}${release}${shared_ext}$major'
14810 dynamic_linker='NetBSD ld.elf_so'
14811 fi
14812 shlibpath_var=LD_LIBRARY_PATH
14813 shlibpath_overrides_runpath=yes
14814 hardcode_into_libs=yes
14815 ;;
14816
14817newsos6)
14818 version_type=linux
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=yes
14822 ;;
14823
14824nto-qnx*)
14825 version_type=linux
14826 need_lib_prefix=no
14827 need_version=no
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829 soname_spec='${libname}${release}${shared_ext}$major'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=yes
14832 ;;
14833
14834openbsd*)
14835 version_type=sunos
14836 need_lib_prefix=no
14837 need_version=yes
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14840 shlibpath_var=LD_LIBRARY_PATH
14841 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14842 case $host_os in
14843 openbsd2.[89] | openbsd2.[89].*)
14844 shlibpath_overrides_runpath=no
14845 ;;
14846 *)
14847 shlibpath_overrides_runpath=yes
14848 ;;
14849 esac
14850 else
14851 shlibpath_overrides_runpath=yes
14852 fi
14853 ;;
14854
14855os2*)
14856 libname_spec='$name'
14857 shrext_cmds=".dll"
14858 need_lib_prefix=no
14859 library_names_spec='$libname${shared_ext} $libname.a'
14860 dynamic_linker='OS/2 ld.exe'
14861 shlibpath_var=LIBPATH
14862 ;;
14863
14864osf3* | osf4* | osf5*)
14865 version_type=osf
14866 need_lib_prefix=no
14867 need_version=no
14868 soname_spec='${libname}${release}${shared_ext}$major'
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14872 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14873 ;;
14874
14875sco3.2v5*)
14876 version_type=osf
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879 shlibpath_var=LD_LIBRARY_PATH
14880 ;;
14881
14882solaris*)
14883 version_type=linux
14884 need_lib_prefix=no
14885 need_version=no
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 shlibpath_overrides_runpath=yes
14890 hardcode_into_libs=yes
14891 # ldd complains unless libraries are executable
14892 postinstall_cmds='chmod +x $lib'
14893 ;;
14894
14895sunos4*)
14896 version_type=sunos
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14899 shlibpath_var=LD_LIBRARY_PATH
14900 shlibpath_overrides_runpath=yes
14901 if test "$with_gnu_ld" = yes; then
14902 need_lib_prefix=no
14903 fi
14904 need_version=yes
14905 ;;
14906
14907sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14908 version_type=linux
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 soname_spec='${libname}${release}${shared_ext}$major'
14911 shlibpath_var=LD_LIBRARY_PATH
14912 case $host_vendor in
14913 sni)
14914 shlibpath_overrides_runpath=no
14915 need_lib_prefix=no
14916 export_dynamic_flag_spec='${wl}-Blargedynsym'
14917 runpath_var=LD_RUN_PATH
14918 ;;
14919 siemens)
14920 need_lib_prefix=no
14921 ;;
14922 motorola)
14923 need_lib_prefix=no
14924 need_version=no
14925 shlibpath_overrides_runpath=no
14926 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14927 ;;
14928 esac
14929 ;;
14930
14931sysv4*MP*)
14932 if test -d /usr/nec ;then
14933 version_type=linux
14934 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14935 soname_spec='$libname${shared_ext}.$major'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 fi
14938 ;;
14939
14940uts4*)
14941 version_type=linux
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 ;;
14946
14947*)
14948 dynamic_linker=no
14949 ;;
14950esac
14951echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14952echo "${ECHO_T}$dynamic_linker" >&6
14953test "$dynamic_linker" = no && can_build_shared=no
14954
14955echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14956echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14957hardcode_action_F77=
14958if test -n "$hardcode_libdir_flag_spec_F77" || \
14959 test -n "$runpath_var F77" || \
14960 test "X$hardcode_automatic_F77"="Xyes" ; then
14961
14962 # We can hardcode non-existant directories.
14963 if test "$hardcode_direct_F77" != no &&
14964 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14965 # have to relink, otherwise we might link with an installed library
14966 # when we should be linking with a yet-to-be-installed one
14967 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14968 test "$hardcode_minus_L_F77" != no; then
14969 # Linking always hardcodes the temporary library directory.
14970 hardcode_action_F77=relink
14971 else
14972 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14973 hardcode_action_F77=immediate
14974 fi
14975else
14976 # We cannot hardcode anything, or else we can only hardcode existing
14977 # directories.
14978 hardcode_action_F77=unsupported
14979fi
14980echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14981echo "${ECHO_T}$hardcode_action_F77" >&6
14982
14983if test "$hardcode_action_F77" = relink; then
14984 # Fast installation is not supported
14985 enable_fast_install=no
14986elif test "$shlibpath_overrides_runpath" = yes ||
14987 test "$enable_shared" = no; then
14988 # Fast installation is not necessary
14989 enable_fast_install=needless
14990fi
14991
14992striplib=
14993old_striplib=
14994echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14995echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14996if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14997 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14998 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14999 echo "$as_me:$LINENO: result: yes" >&5
15000echo "${ECHO_T}yes" >&6
15001else
15002# FIXME - insert some real tests, host_os isn't really good enough
15003 case $host_os in
15004 darwin*)
15005 if test -n "$STRIP" ; then
15006 striplib="$STRIP -x"
15007 echo "$as_me:$LINENO: result: yes" >&5
15008echo "${ECHO_T}yes" >&6
15009 else
15010 echo "$as_me:$LINENO: result: no" >&5
15011echo "${ECHO_T}no" >&6
15012fi
15013 ;;
15014 *)
15015 echo "$as_me:$LINENO: result: no" >&5
15016echo "${ECHO_T}no" >&6
15017 ;;
15018 esac
15019fi
15020
15021
15022
15023# The else clause should only fire when bootstrapping the
15024# libtool distribution, otherwise you forgot to ship ltmain.sh
15025# with your package, and you will get complaints that there are
15026# no rules to generate ltmain.sh.
15027if test -f "$ltmain"; then
15028 # See if we are running on zsh, and set the options which allow our commands through
15029 # without removal of \ escapes.
15030 if test -n "${ZSH_VERSION+set}" ; then
15031 setopt NO_GLOB_SUBST
15032 fi
15033 # Now quote all the things that may contain metacharacters while being
15034 # careful not to overquote the AC_SUBSTed values. We take copies of the
15035 # variables and quote the copies for generation of the libtool script.
15036 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15037 SED SHELL STRIP \
15038 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15039 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15040 deplibs_check_method reload_flag reload_cmds need_locks \
15041 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15042 lt_cv_sys_global_symbol_to_c_name_address \
15043 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15044 old_postinstall_cmds old_postuninstall_cmds \
15045 compiler_F77 \
15046 CC_F77 \
15047 LD_F77 \
15048 lt_prog_compiler_wl_F77 \
15049 lt_prog_compiler_pic_F77 \
15050 lt_prog_compiler_static_F77 \
15051 lt_prog_compiler_no_builtin_flag_F77 \
15052 export_dynamic_flag_spec_F77 \
15053 thread_safe_flag_spec_F77 \
15054 whole_archive_flag_spec_F77 \
15055 enable_shared_with_static_runtimes_F77 \
15056 old_archive_cmds_F77 \
15057 old_archive_from_new_cmds_F77 \
15058 predep_objects_F77 \
15059 postdep_objects_F77 \
15060 predeps_F77 \
15061 postdeps_F77 \
15062 compiler_lib_search_path_F77 \
15063 archive_cmds_F77 \
15064 archive_expsym_cmds_F77 \
15065 postinstall_cmds_F77 \
15066 postuninstall_cmds_F77 \
15067 old_archive_from_expsyms_cmds_F77 \
15068 allow_undefined_flag_F77 \
15069 no_undefined_flag_F77 \
15070 export_symbols_cmds_F77 \
15071 hardcode_libdir_flag_spec_F77 \
15072 hardcode_libdir_flag_spec_ld_F77 \
15073 hardcode_libdir_separator_F77 \
15074 hardcode_automatic_F77 \
15075 module_cmds_F77 \
15076 module_expsym_cmds_F77 \
15077 lt_cv_prog_compiler_c_o_F77 \
15078 exclude_expsyms_F77 \
15079 include_expsyms_F77; do
15080
15081 case $var in
15082 old_archive_cmds_F77 | \
15083 old_archive_from_new_cmds_F77 | \
15084 archive_cmds_F77 | \
15085 archive_expsym_cmds_F77 | \
15086 module_cmds_F77 | \
15087 module_expsym_cmds_F77 | \
15088 old_archive_from_expsyms_cmds_F77 | \
15089 export_symbols_cmds_F77 | \
15090 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15091 postinstall_cmds | postuninstall_cmds | \
15092 old_postinstall_cmds | old_postuninstall_cmds | \
15093 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15094 # Double-quote double-evaled strings.
15095 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15096 ;;
15097 *)
15098 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15099 ;;
15100 esac
15101 done
15102
15103 case $lt_echo in
15104 *'\$0 --fallback-echo"')
15105 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15106 ;;
15107 esac
15108
15109cfgfile="$ofile"
15110
15111 cat <<__EOF__ >> "$cfgfile"
15112# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15113
15114# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15115
15116# Shell to use when invoking shell scripts.
15117SHELL=$lt_SHELL
15118
15119# Whether or not to build shared libraries.
15120build_libtool_libs=$enable_shared
15121
15122# Whether or not to build static libraries.
15123build_old_libs=$enable_static
15124
15125# Whether or not to add -lc for building shared libraries.
15126build_libtool_need_lc=$archive_cmds_need_lc_F77
15127
15128# Whether or not to disallow shared libs when runtime libs are static
15129allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15130
15131# Whether or not to optimize for fast installation.
15132fast_install=$enable_fast_install
15133
15134# The host system.
15135host_alias=$host_alias
15136host=$host
15137
15138# An echo program that does not interpret backslashes.
15139echo=$lt_echo
15140
15141# The archiver.
15142AR=$lt_AR
15143AR_FLAGS=$lt_AR_FLAGS
15144
15145# A C compiler.
15146LTCC=$lt_LTCC
15147
15148# A language-specific compiler.
15149CC=$lt_compiler_F77
15150
15151# Is the compiler the GNU C compiler?
15152with_gcc=$GCC_F77
15153
15154# An ERE matcher.
15155EGREP=$lt_EGREP
15156
15157# The linker used to build libraries.
15158LD=$lt_LD_F77
15159
15160# Whether we need hard or soft links.
15161LN_S=$lt_LN_S
15162
15163# A BSD-compatible nm program.
15164NM=$lt_NM
15165
15166# A symbol stripping program
15167STRIP=$lt_STRIP
15168
15169# Used to examine libraries when file_magic_cmd begins "file"
15170MAGIC_CMD=$MAGIC_CMD
15171
15172# Used on cygwin: DLL creation program.
15173DLLTOOL="$DLLTOOL"
15174
15175# Used on cygwin: object dumper.
15176OBJDUMP="$OBJDUMP"
15177
15178# Used on cygwin: assembler.
15179AS="$AS"
15180
15181# The name of the directory that contains temporary libtool files.
15182objdir=$objdir
15183
15184# How to create reloadable object files.
15185reload_flag=$lt_reload_flag
15186reload_cmds=$lt_reload_cmds
15187
15188# How to pass a linker flag through the compiler.
15189wl=$lt_lt_prog_compiler_wl_F77
15190
15191# Object file suffix (normally "o").
15192objext="$ac_objext"
15193
15194# Old archive suffix (normally "a").
15195libext="$libext"
15196
15197# Shared library suffix (normally ".so").
15198shrext_cmds='$shrext_cmds'
15199
15200# Executable file suffix (normally "").
15201exeext="$exeext"
15202
15203# Additional compiler flags for building library objects.
15204pic_flag=$lt_lt_prog_compiler_pic_F77
15205pic_mode=$pic_mode
15206
15207# What is the maximum length of a command?
15208max_cmd_len=$lt_cv_sys_max_cmd_len
15209
15210# Does compiler simultaneously support -c and -o options?
15211compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15212
15213# Must we lock files when doing compilation ?
15214need_locks=$lt_need_locks
15215
15216# Do we need the lib prefix for modules?
15217need_lib_prefix=$need_lib_prefix
15218
15219# Do we need a version for libraries?
15220need_version=$need_version
15221
15222# Whether dlopen is supported.
15223dlopen_support=$enable_dlopen
15224
15225# Whether dlopen of programs is supported.
15226dlopen_self=$enable_dlopen_self
15227
15228# Whether dlopen of statically linked programs is supported.
15229dlopen_self_static=$enable_dlopen_self_static
15230
15231# Compiler flag to prevent dynamic linking.
15232link_static_flag=$lt_lt_prog_compiler_static_F77
15233
15234# Compiler flag to turn off builtin functions.
15235no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15236
15237# Compiler flag to allow reflexive dlopens.
15238export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15239
15240# Compiler flag to generate shared objects directly from archives.
15241whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15242
15243# Compiler flag to generate thread-safe objects.
15244thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15245
15246# Library versioning type.
15247version_type=$version_type
15248
15249# Format of library name prefix.
15250libname_spec=$lt_libname_spec
15251
15252# List of archive names. First name is the real one, the rest are links.
15253# The last name is the one that the linker finds with -lNAME.
15254library_names_spec=$lt_library_names_spec
15255
15256# The coded name of the library, if different from the real name.
15257soname_spec=$lt_soname_spec
15258
15259# Commands used to build and install an old-style archive.
15260RANLIB=$lt_RANLIB
15261old_archive_cmds=$lt_old_archive_cmds_F77
15262old_postinstall_cmds=$lt_old_postinstall_cmds
15263old_postuninstall_cmds=$lt_old_postuninstall_cmds
15264
15265# Create an old-style archive from a shared archive.
15266old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15267
15268# Create a temporary old-style archive to link instead of a shared archive.
15269old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15270
15271# Commands used to build and install a shared archive.
15272archive_cmds=$lt_archive_cmds_F77
15273archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15274postinstall_cmds=$lt_postinstall_cmds
15275postuninstall_cmds=$lt_postuninstall_cmds
15276
15277# Commands used to build a loadable module (assumed same as above if empty)
15278module_cmds=$lt_module_cmds_F77
15279module_expsym_cmds=$lt_module_expsym_cmds_F77
15280
15281# Commands to strip libraries.
15282old_striplib=$lt_old_striplib
15283striplib=$lt_striplib
15284
15285# Dependencies to place before the objects being linked to create a
15286# shared library.
15287predep_objects=$lt_predep_objects_F77
15288
15289# Dependencies to place after the objects being linked to create a
15290# shared library.
15291postdep_objects=$lt_postdep_objects_F77
15292
15293# Dependencies to place before the objects being linked to create a
15294# shared library.
15295predeps=$lt_predeps_F77
15296
15297# Dependencies to place after the objects being linked to create a
15298# shared library.
15299postdeps=$lt_postdeps_F77
15300
15301# The library search path used internally by the compiler when linking
15302# a shared library.
15303compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15304
15305# Method to check whether dependent libraries are shared objects.
15306deplibs_check_method=$lt_deplibs_check_method
15307
15308# Command to use when deplibs_check_method == file_magic.
15309file_magic_cmd=$lt_file_magic_cmd
15310
15311# Flag that allows shared libraries with undefined symbols to be built.
15312allow_undefined_flag=$lt_allow_undefined_flag_F77
15313
15314# Flag that forces no undefined symbols.
15315no_undefined_flag=$lt_no_undefined_flag_F77
15316
15317# Commands used to finish a libtool library installation in a directory.
15318finish_cmds=$lt_finish_cmds
15319
15320# Same as above, but a single script fragment to be evaled but not shown.
15321finish_eval=$lt_finish_eval
15322
15323# Take the output of nm and produce a listing of raw symbols and C names.
15324global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15325
15326# Transform the output of nm in a proper C declaration
15327global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15328
15329# Transform the output of nm in a C name address pair
15330global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15331
15332# This is the shared library runtime path variable.
15333runpath_var=$runpath_var
15334
15335# This is the shared library path variable.
15336shlibpath_var=$shlibpath_var
15337
15338# Is shlibpath searched before the hard-coded library search path?
15339shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15340
15341# How to hardcode a shared library path into an executable.
15342hardcode_action=$hardcode_action_F77
15343
15344# Whether we should hardcode library paths into libraries.
15345hardcode_into_libs=$hardcode_into_libs
15346
15347# Flag to hardcode \$libdir into a binary during linking.
15348# This must work even if \$libdir does not exist.
15349hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15350
15351# If ld is used when linking, flag to hardcode \$libdir into
15352# a binary during linking. This must work even if \$libdir does
15353# not exist.
15354hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15355
15356# Whether we need a single -rpath flag with a separated argument.
15357hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15358
15359# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15360# resulting binary.
15361hardcode_direct=$hardcode_direct_F77
15362
15363# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15364# resulting binary.
15365hardcode_minus_L=$hardcode_minus_L_F77
15366
15367# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15368# the resulting binary.
15369hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15370
15371# Set to yes if building a shared library automatically hardcodes DIR into the library
15372# and all subsequent libraries and executables linked against it.
15373hardcode_automatic=$hardcode_automatic_F77
15374
15375# Variables whose values should be saved in libtool wrapper scripts and
15376# restored at relink time.
15377variables_saved_for_relink="$variables_saved_for_relink"
15378
15379# Whether libtool must link a program against all its dependency libraries.
15380link_all_deplibs=$link_all_deplibs_F77
15381
15382# Compile-time system search path for libraries
15383sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15384
15385# Run-time system search path for libraries
15386sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15387
15388# Fix the shell variable \$srcfile for the compiler.
15389fix_srcfile_path="$fix_srcfile_path_F77"
15390
15391# Set to yes if exported symbols are required.
15392always_export_symbols=$always_export_symbols_F77
15393
15394# The commands to list exported symbols.
15395export_symbols_cmds=$lt_export_symbols_cmds_F77
15396
15397# The commands to extract the exported symbol list from a shared archive.
15398extract_expsyms_cmds=$lt_extract_expsyms_cmds
15399
15400# Symbols that should not be listed in the preloaded symbols.
15401exclude_expsyms=$lt_exclude_expsyms_F77
15402
15403# Symbols that must always be exported.
15404include_expsyms=$lt_include_expsyms_F77
15405
15406# ### END LIBTOOL TAG CONFIG: $tagname
15407
15408__EOF__
15409
15410
15411else
15412 # If there is no Makefile yet, we rely on a make rule to execute
15413 # `config.status --recheck' to rerun these tests and create the
15414 # libtool script then.
15415 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15416 if test -f "$ltmain_in"; then
15417 test -f Makefile && make "$ltmain"
15418 fi
15419fi
15420
15421
15422ac_ext=c
15423ac_cpp='$CPP $CPPFLAGS'
15424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15426ac_compiler_gnu=$ac_cv_c_compiler_gnu
15427
15428CC="$lt_save_CC"
15429
15430 else
15431 tagname=""
15432 fi
15433 ;;
15434
15435 GCJ)
15436 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15437
15438
15439
15440# Source file extension for Java test sources.
15441ac_ext=java
15442
15443# Object file extension for compiled Java test sources.
15444objext=o
15445objext_GCJ=$objext
15446
15447# Code to be used in simple compile tests
15448lt_simple_compile_test_code="class foo {}\n"
15449
15450# Code to be used in simple link tests
15451lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15452
15453# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15454
15455# If no C compiler was specified, use CC.
15456LTCC=${LTCC-"$CC"}
15457
15458# Allow CC to be a program name with arguments.
15459compiler=$CC
15460
15461
15462# Allow CC to be a program name with arguments.
15463lt_save_CC="$CC"
15464CC=${GCJ-"gcj"}
15465compiler=$CC
15466compiler_GCJ=$CC
15467
15468# GCJ did not exist at the time GCC didn't implicitly link libc in.
15469archive_cmds_need_lc_GCJ=no
15470
15471
15472lt_prog_compiler_no_builtin_flag_GCJ=
15473
15474if test "$GCC" = yes; then
15475 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15476
15477
15478echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15479echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15480if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15482else
15483 lt_cv_prog_compiler_rtti_exceptions=no
15484 ac_outfile=conftest.$ac_objext
15485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15486 lt_compiler_flag="-fno-rtti -fno-exceptions"
15487 # Insert the option either (1) after the last *FLAGS variable, or
15488 # (2) before a word containing "conftest.", or (3) at the end.
15489 # Note that $ac_compile itself does not contain backslashes and begins
15490 # with a dollar sign (not a hyphen), so the echo should work correctly.
15491 # The option is referenced via a variable to avoid confusing sed.
15492 lt_compile=`echo "$ac_compile" | $SED \
15493 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15495 -e 's:$: $lt_compiler_flag:'`
15496 (eval echo "\"\$as_me:15496: $lt_compile\"" >&5)
15497 (eval "$lt_compile" 2>conftest.err)
15498 ac_status=$?
15499 cat conftest.err >&5
15500 echo "$as_me:15500: \$? = $ac_status" >&5
15501 if (exit $ac_status) && test -s "$ac_outfile"; then
15502 # The compiler can only warn and ignore the option if not recognized
15503 # So say no if there are warnings
15504 if test ! -s conftest.err; then
15505 lt_cv_prog_compiler_rtti_exceptions=yes
15506 fi
15507 fi
15508 $rm conftest*
15509
15510fi
15511echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15512echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15513
15514if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15515 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15516else
15517 :
15518fi
15519
15520fi
15521
15522lt_prog_compiler_wl_GCJ=
15523lt_prog_compiler_pic_GCJ=
15524lt_prog_compiler_static_GCJ=
15525
15526echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15527echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15528
15529 if test "$GCC" = yes; then
15530 lt_prog_compiler_wl_GCJ='-Wl,'
15531 lt_prog_compiler_static_GCJ='-static'
15532
15533 case $host_os in
15534 aix*)
15535 # All AIX code is PIC.
15536 if test "$host_cpu" = ia64; then
15537 # AIX 5 now supports IA64 processor
15538 lt_prog_compiler_static_GCJ='-Bstatic'
15539 fi
15540 ;;
15541
15542 amigaos*)
15543 # FIXME: we need at least 68020 code to build shared libraries, but
15544 # adding the `-m68020' flag to GCC prevents building anything better,
15545 # like `-m68040'.
15546 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15547 ;;
15548
15549 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15550 # PIC is the default for these OSes.
15551 ;;
15552
15553 mingw* | pw32* | os2*)
15554 # This hack is so that the source file can tell whether it is being
15555 # built for inclusion in a dll (and should export symbols for example).
15556 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15557 ;;
15558
15559 darwin* | rhapsody*)
15560 # PIC is the default on this platform
15561 # Common symbols not allowed in MH_DYLIB files
15562 lt_prog_compiler_pic_GCJ='-fno-common'
15563 ;;
15564
15565 msdosdjgpp*)
15566 # Just because we use GCC doesn't mean we suddenly get shared libraries
15567 # on systems that don't support them.
15568 lt_prog_compiler_can_build_shared_GCJ=no
15569 enable_shared=no
15570 ;;
15571
15572 sysv4*MP*)
15573 if test -d /usr/nec; then
15574 lt_prog_compiler_pic_GCJ=-Kconform_pic
15575 fi
15576 ;;
15577
15578 hpux*)
15579 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15580 # not for PA HP-UX.
15581 case "$host_cpu" in
15582 hppa*64*|ia64*)
15583 # +Z the default
15584 ;;
15585 *)
15586 lt_prog_compiler_pic_GCJ='-fPIC'
15587 ;;
15588 esac
15589 ;;
15590
15591 *)
15592 lt_prog_compiler_pic_GCJ='-fPIC'
15593 ;;
15594 esac
15595 else
15596 # PORTME Check for flag to pass linker flags through the system compiler.
15597 case $host_os in
15598 aix*)
15599 lt_prog_compiler_wl_GCJ='-Wl,'
15600 if test "$host_cpu" = ia64; then
15601 # AIX 5 now supports IA64 processor
15602 lt_prog_compiler_static_GCJ='-Bstatic'
15603 else
15604 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15605 fi
15606 ;;
15607
15608 mingw* | pw32* | os2*)
15609 # This hack is so that the source file can tell whether it is being
15610 # built for inclusion in a dll (and should export symbols for example).
15611 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15612 ;;
15613
15614 hpux9* | hpux10* | hpux11*)
15615 lt_prog_compiler_wl_GCJ='-Wl,'
15616 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15617 # not for PA HP-UX.
15618 case "$host_cpu" in
15619 hppa*64*|ia64*)
15620 # +Z the default
15621 ;;
15622 *)
15623 lt_prog_compiler_pic_GCJ='+Z'
15624 ;;
15625 esac
15626 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15627 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15628 ;;
15629
15630 irix5* | irix6* | nonstopux*)
15631 lt_prog_compiler_wl_GCJ='-Wl,'
15632 # PIC (with -KPIC) is the default.
15633 lt_prog_compiler_static_GCJ='-non_shared'
15634 ;;
15635
15636 newsos6)
15637 lt_prog_compiler_pic_GCJ='-KPIC'
15638 lt_prog_compiler_static_GCJ='-Bstatic'
15639 ;;
15640
15641 linux*)
15642 case $CC in
15643 icc* | ecc*)
15644 lt_prog_compiler_wl_GCJ='-Wl,'
15645 lt_prog_compiler_pic_GCJ='-KPIC'
15646 lt_prog_compiler_static_GCJ='-static'
15647 ;;
15648 ccc*)
15649 lt_prog_compiler_wl_GCJ='-Wl,'
15650 # All Alpha code is PIC.
15651 lt_prog_compiler_static_GCJ='-non_shared'
15652 ;;
15653 esac
15654 ;;
15655
15656 osf3* | osf4* | osf5*)
15657 lt_prog_compiler_wl_GCJ='-Wl,'
15658 # All OSF/1 code is PIC.
15659 lt_prog_compiler_static_GCJ='-non_shared'
15660 ;;
15661
15662 sco3.2v5*)
15663 lt_prog_compiler_pic_GCJ='-Kpic'
15664 lt_prog_compiler_static_GCJ='-dn'
15665 ;;
15666
15667 solaris*)
15668 lt_prog_compiler_wl_GCJ='-Wl,'
15669 lt_prog_compiler_pic_GCJ='-KPIC'
15670 lt_prog_compiler_static_GCJ='-Bstatic'
15671 ;;
15672
15673 sunos4*)
15674 lt_prog_compiler_wl_GCJ='-Qoption ld '
15675 lt_prog_compiler_pic_GCJ='-PIC'
15676 lt_prog_compiler_static_GCJ='-Bstatic'
15677 ;;
15678
15679 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15680 lt_prog_compiler_wl_GCJ='-Wl,'
15681 lt_prog_compiler_pic_GCJ='-KPIC'
15682 lt_prog_compiler_static_GCJ='-Bstatic'
15683 ;;
15684
15685 sysv4*MP*)
15686 if test -d /usr/nec ;then
15687 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15688 lt_prog_compiler_static_GCJ='-Bstatic'
15689 fi
15690 ;;
15691
15692 uts4*)
15693 lt_prog_compiler_pic_GCJ='-pic'
15694 lt_prog_compiler_static_GCJ='-Bstatic'
15695 ;;
15696
15697 *)
15698 lt_prog_compiler_can_build_shared_GCJ=no
15699 ;;
15700 esac
15701 fi
15702
15703echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15704echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15705
15706#
15707# Check to make sure the PIC flag actually works.
15708#
15709if test -n "$lt_prog_compiler_pic_GCJ"; then
15710
15711echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15712echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15713if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15715else
15716 lt_prog_compiler_pic_works_GCJ=no
15717 ac_outfile=conftest.$ac_objext
15718 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15719 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15720 # Insert the option either (1) after the last *FLAGS variable, or
15721 # (2) before a word containing "conftest.", or (3) at the end.
15722 # Note that $ac_compile itself does not contain backslashes and begins
15723 # with a dollar sign (not a hyphen), so the echo should work correctly.
15724 # The option is referenced via a variable to avoid confusing sed.
15725 lt_compile=`echo "$ac_compile" | $SED \
15726 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15728 -e 's:$: $lt_compiler_flag:'`
15729 (eval echo "\"\$as_me:15729: $lt_compile\"" >&5)
15730 (eval "$lt_compile" 2>conftest.err)
15731 ac_status=$?
15732 cat conftest.err >&5
15733 echo "$as_me:15733: \$? = $ac_status" >&5
15734 if (exit $ac_status) && test -s "$ac_outfile"; then
15735 # The compiler can only warn and ignore the option if not recognized
15736 # So say no if there are warnings
15737 if test ! -s conftest.err; then
15738 lt_prog_compiler_pic_works_GCJ=yes
15739 fi
15740 fi
15741 $rm conftest*
15742
15743fi
15744echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15745echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15746
15747if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15748 case $lt_prog_compiler_pic_GCJ in
15749 "" | " "*) ;;
15750 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15751 esac
15752else
15753 lt_prog_compiler_pic_GCJ=
15754 lt_prog_compiler_can_build_shared_GCJ=no
15755fi
15756
15757fi
15758case "$host_os" in
15759 # For platforms which do not support PIC, -DPIC is meaningless:
15760 *djgpp*)
15761 lt_prog_compiler_pic_GCJ=
15762 ;;
15763 *)
15764 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15765 ;;
15766esac
15767
15768echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15769echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15770if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15772else
15773 lt_cv_prog_compiler_c_o_GCJ=no
15774 $rm -r conftest 2>/dev/null
15775 mkdir conftest
15776 cd conftest
15777 mkdir out
15778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15779
15780 lt_compiler_flag="-o out/conftest2.$ac_objext"
15781 # Insert the option either (1) after the last *FLAGS variable, or
15782 # (2) before a word containing "conftest.", or (3) at the end.
15783 # Note that $ac_compile itself does not contain backslashes and begins
15784 # with a dollar sign (not a hyphen), so the echo should work correctly.
15785 lt_compile=`echo "$ac_compile" | $SED \
15786 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15788 -e 's:$: $lt_compiler_flag:'`
15789 (eval echo "\"\$as_me:15789: $lt_compile\"" >&5)
15790 (eval "$lt_compile" 2>out/conftest.err)
15791 ac_status=$?
15792 cat out/conftest.err >&5
15793 echo "$as_me:15793: \$? = $ac_status" >&5
15794 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15795 then
15796 # The compiler can only warn and ignore the option if not recognized
15797 # So say no if there are warnings
15798 if test ! -s out/conftest.err; then
15799 lt_cv_prog_compiler_c_o_GCJ=yes
15800 fi
15801 fi
15802 chmod u+w .
15803 $rm conftest*
15804 # SGI C++ compiler will create directory out/ii_files/ for
15805 # template instantiation
15806 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15807 $rm out/* && rmdir out
15808 cd ..
15809 rmdir conftest
15810 $rm conftest*
15811
15812fi
15813echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15814echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15815
15816
15817hard_links="nottested"
15818if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15819 # do not overwrite the value of need_locks provided by the user
15820 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15821echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15822 hard_links=yes
15823 $rm conftest*
15824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15825 touch conftest.a
15826 ln conftest.a conftest.b 2>&5 || hard_links=no
15827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15828 echo "$as_me:$LINENO: result: $hard_links" >&5
15829echo "${ECHO_T}$hard_links" >&6
15830 if test "$hard_links" = no; then
15831 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15832echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15833 need_locks=warn
15834 fi
15835else
15836 need_locks=no
15837fi
15838
15839echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15840echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15841
15842 runpath_var=
15843 allow_undefined_flag_GCJ=
15844 enable_shared_with_static_runtimes_GCJ=no
15845 archive_cmds_GCJ=
15846 archive_expsym_cmds_GCJ=
15847 old_archive_From_new_cmds_GCJ=
15848 old_archive_from_expsyms_cmds_GCJ=
15849 export_dynamic_flag_spec_GCJ=
15850 whole_archive_flag_spec_GCJ=
15851 thread_safe_flag_spec_GCJ=
15852 hardcode_libdir_flag_spec_GCJ=
15853 hardcode_libdir_flag_spec_ld_GCJ=
15854 hardcode_libdir_separator_GCJ=
15855 hardcode_direct_GCJ=no
15856 hardcode_minus_L_GCJ=no
15857 hardcode_shlibpath_var_GCJ=unsupported
15858 link_all_deplibs_GCJ=unknown
15859 hardcode_automatic_GCJ=no
15860 module_cmds_GCJ=
15861 module_expsym_cmds_GCJ=
15862 always_export_symbols_GCJ=no
15863 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15864 # include_expsyms should be a list of space-separated symbols to be *always*
15865 # included in the symbol list
15866 include_expsyms_GCJ=
15867 # exclude_expsyms can be an extended regexp of symbols to exclude
15868 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15869 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15870 # as well as any symbol that contains `d'.
15871 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15872 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15873 # platforms (ab)use it in PIC code, but their linkers get confused if
15874 # the symbol is explicitly referenced. Since portable code cannot
15875 # rely on this symbol name, it's probably fine to never include it in
15876 # preloaded symbol tables.
15877 extract_expsyms_cmds=
15878
15879 case $host_os in
15880 cygwin* | mingw* | pw32*)
15881 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15882 # When not using gcc, we currently assume that we are using
15883 # Microsoft Visual C++.
15884 if test "$GCC" != yes; then
15885 with_gnu_ld=no
15886 fi
15887 ;;
15888 openbsd*)
15889 with_gnu_ld=no
15890 ;;
15891 esac
15892
15893 ld_shlibs_GCJ=yes
15894 if test "$with_gnu_ld" = yes; then
15895 # If archive_cmds runs LD, not CC, wlarc should be empty
15896 wlarc='${wl}'
15897
15898 # See if GNU ld supports shared libraries.
15899 case $host_os in
15900 aix3* | aix4* | aix5*)
15901 # On AIX/PPC, the GNU linker is very broken
15902 if test "$host_cpu" != ia64; then
15903 ld_shlibs_GCJ=no
15904 cat <<EOF 1>&2
15905
15906*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15907*** to be unable to reliably create shared libraries on AIX.
15908*** Therefore, libtool is disabling shared libraries support. If you
15909*** really care for shared libraries, you may want to modify your PATH
15910*** so that a non-GNU linker is found, and then restart.
15911
15912EOF
15913 fi
15914 ;;
15915
15916 amigaos*)
15917 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)'
15918 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15919 hardcode_minus_L_GCJ=yes
15920
15921 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15922 # that the semantics of dynamic libraries on AmigaOS, at least up
15923 # to version 4, is to share data among multiple programs linked
15924 # with the same dynamic library. Since this doesn't match the
15925 # behavior of shared libraries on other platforms, we can't use
15926 # them.
15927 ld_shlibs_GCJ=no
15928 ;;
15929
15930 beos*)
15931 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15932 allow_undefined_flag_GCJ=unsupported
15933 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15934 # support --undefined. This deserves some investigation. FIXME
15935 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15936 else
15937 ld_shlibs_GCJ=no
15938 fi
15939 ;;
15940
15941 cygwin* | mingw* | pw32*)
15942 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15943 # as there is no search path for DLLs.
15944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15945 allow_undefined_flag_GCJ=unsupported
15946 always_export_symbols_GCJ=no
15947 enable_shared_with_static_runtimes_GCJ=yes
15948 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15949
15950 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15951 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15952 # If the export-symbols file already is a .def file (1st line
15953 # is EXPORTS), use it as is; otherwise, prepend...
15954 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15955 cp $export_symbols $output_objdir/$soname.def;
15956 else
15957 echo EXPORTS > $output_objdir/$soname.def;
15958 cat $export_symbols >> $output_objdir/$soname.def;
15959 fi~
15960 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15961 else
15962 ld_shlibs=no
15963 fi
15964 ;;
15965
15966 netbsd*)
15967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15968 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15969 wlarc=
15970 else
15971 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15972 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15973 fi
15974 ;;
15975
15976 solaris* | sysv5*)
15977 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15978 ld_shlibs_GCJ=no
15979 cat <<EOF 1>&2
15980
15981*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15982*** create shared libraries on Solaris systems. Therefore, libtool
15983*** is disabling shared libraries support. We urge you to upgrade GNU
15984*** binutils to release 2.9.1 or newer. Another option is to modify
15985*** your PATH or compiler configuration so that the native linker is
15986*** used, and then restart.
15987
15988EOF
15989 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15990 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15991 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15992 else
15993 ld_shlibs_GCJ=no
15994 fi
15995 ;;
15996
15997 sunos4*)
15998 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15999 wlarc=
16000 hardcode_direct_GCJ=yes
16001 hardcode_shlibpath_var_GCJ=no
16002 ;;
16003
16004 linux*)
16005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16006 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16007 archive_cmds_GCJ="$tmp_archive_cmds"
16008 supports_anon_versioning=no
16009 case `$LD -v 2>/dev/null` in
16010 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16011 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16012 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16013 *\ 2.11.*) ;; # other 2.11 versions
16014 *) supports_anon_versioning=yes ;;
16015 esac
16016 if test $supports_anon_versioning = yes; then
16017 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16018cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16019$echo "local: *; };" >> $output_objdir/$libname.ver~
16020 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16021 else
16022 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16023 fi
16024 else
16025 ld_shlibs_GCJ=no
16026 fi
16027 ;;
16028
16029 *)
16030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16031 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16032 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16033 else
16034 ld_shlibs_GCJ=no
16035 fi
16036 ;;
16037 esac
16038
16039 if test "$ld_shlibs_GCJ" = yes; then
16040 runpath_var=LD_RUN_PATH
16041 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16042 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16043 # ancient GNU ld didn't support --whole-archive et. al.
16044 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16045 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16046 else
16047 whole_archive_flag_spec_GCJ=
16048 fi
16049 fi
16050 else
16051 # PORTME fill in a description of your system's linker (not GNU ld)
16052 case $host_os in
16053 aix3*)
16054 allow_undefined_flag_GCJ=unsupported
16055 always_export_symbols_GCJ=yes
16056 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'
16057 # Note: this linker hardcodes the directories in LIBPATH if there
16058 # are no directories specified by -L.
16059 hardcode_minus_L_GCJ=yes
16060 if test "$GCC" = yes && test -z "$link_static_flag"; then
16061 # Neither direct hardcoding nor static linking is supported with a
16062 # broken collect2.
16063 hardcode_direct_GCJ=unsupported
16064 fi
16065 ;;
16066
16067 aix4* | aix5*)
16068 if test "$host_cpu" = ia64; then
16069 # On IA64, the linker does run time linking by default, so we don't
16070 # have to do anything special.
16071 aix_use_runtimelinking=no
16072 exp_sym_flag='-Bexport'
16073 no_entry_flag=""
16074 else
16075 # If we're using GNU nm, then we don't want the "-C" option.
16076 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16077 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16078 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'
16079 else
16080 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'
16081 fi
16082 aix_use_runtimelinking=no
16083
16084 # Test if we are trying to use run time linking or normal
16085 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16086 # need to do runtime linking.
16087 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16088 for ld_flag in $LDFLAGS; do
16089 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16090 aix_use_runtimelinking=yes
16091 break
16092 fi
16093 done
16094 esac
16095
16096 exp_sym_flag='-bexport'
16097 no_entry_flag='-bnoentry'
16098 fi
16099
16100 # When large executables or shared objects are built, AIX ld can
16101 # have problems creating the table of contents. If linking a library
16102 # or program results in "error TOC overflow" add -mminimal-toc to
16103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16105
16106 archive_cmds_GCJ=''
16107 hardcode_direct_GCJ=yes
16108 hardcode_libdir_separator_GCJ=':'
16109 link_all_deplibs_GCJ=yes
16110
16111 if test "$GCC" = yes; then
16112 case $host_os in aix4.012|aix4.012.*)
16113 # We only want to do this on AIX 4.2 and lower, the check
16114 # below for broken collect2 doesn't work under 4.3+
16115 collect2name=`${CC} -print-prog-name=collect2`
16116 if test -f "$collect2name" && \
16117 strings "$collect2name" | grep resolve_lib_name >/dev/null
16118 then
16119 # We have reworked collect2
16120 hardcode_direct_GCJ=yes
16121 else
16122 # We have old collect2
16123 hardcode_direct_GCJ=unsupported
16124 # It fails to find uninstalled libraries when the uninstalled
16125 # path is not listed in the libpath. Setting hardcode_minus_L
16126 # to unsupported forces relinking
16127 hardcode_minus_L_GCJ=yes
16128 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16129 hardcode_libdir_separator_GCJ=
16130 fi
16131 esac
16132 shared_flag='-shared'
16133 else
16134 # not using gcc
16135 if test "$host_cpu" = ia64; then
16136 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16137 # chokes on -Wl,-G. The following line is correct:
16138 shared_flag='-G'
16139 else
16140 if test "$aix_use_runtimelinking" = yes; then
16141 shared_flag='${wl}-G'
16142 else
16143 shared_flag='${wl}-bM:SRE'
16144 fi
16145 fi
16146 fi
16147
16148 # It seems that -bexpall does not export symbols beginning with
16149 # underscore (_), so it is better to generate a list of symbols to export.
16150 always_export_symbols_GCJ=yes
16151 if test "$aix_use_runtimelinking" = yes; then
16152 # Warning - without using the other runtime loading flags (-brtl),
16153 # -berok will link without error, but may produce a broken library.
16154 allow_undefined_flag_GCJ='-berok'
16155 # Determine the default libpath from the value encoded in an empty executable.
16156 cat >conftest.$ac_ext <<_ACEOF
16157/* confdefs.h. */
16158_ACEOF
16159cat confdefs.h >>conftest.$ac_ext
16160cat >>conftest.$ac_ext <<_ACEOF
16161/* end confdefs.h. */
16162
16163int
16164main ()
16165{
16166
16167 ;
16168 return 0;
16169}
16170_ACEOF
16171rm -f conftest.$ac_objext conftest$ac_exeext
16172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16173 (eval $ac_link) 2>conftest.er1
16174 ac_status=$?
16175 grep -v '^ *+' conftest.er1 >conftest.err
16176 rm -f conftest.er1
16177 cat conftest.err >&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -z "$ac_c_werror_flag"
16181 || test ! -s conftest.err'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; } &&
16187 { ac_try='test -s conftest$ac_exeext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193
16194aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16195}'`
16196# Check for a 64-bit object if we didn't find anything.
16197if 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; }
16198}'`; fi
16199else
16200 echo "$as_me: failed program was:" >&5
16201sed 's/^/| /' conftest.$ac_ext >&5
16202
16203fi
16204rm -f conftest.err conftest.$ac_objext \
16205 conftest$ac_exeext conftest.$ac_ext
16206if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16207
16208 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16209 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16210 else
16211 if test "$host_cpu" = ia64; then
16212 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16213 allow_undefined_flag_GCJ="-z nodefs"
16214 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16215 else
16216 # Determine the default libpath from the value encoded in an empty executable.
16217 cat >conftest.$ac_ext <<_ACEOF
16218/* confdefs.h. */
16219_ACEOF
16220cat confdefs.h >>conftest.$ac_ext
16221cat >>conftest.$ac_ext <<_ACEOF
16222/* end confdefs.h. */
16223
16224int
16225main ()
16226{
16227
16228 ;
16229 return 0;
16230}
16231_ACEOF
16232rm -f conftest.$ac_objext conftest$ac_exeext
16233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16234 (eval $ac_link) 2>conftest.er1
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -z "$ac_c_werror_flag"
16242 || test ! -s conftest.err'
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } &&
16248 { ac_try='test -s conftest$ac_exeext'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
16254
16255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16256}'`
16257# Check for a 64-bit object if we didn't find anything.
16258if 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; }
16259}'`; fi
16260else
16261 echo "$as_me: failed program was:" >&5
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
16264fi
16265rm -f conftest.err conftest.$ac_objext \
16266 conftest$ac_exeext conftest.$ac_ext
16267if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16268
16269 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16270 # Warning - without using the other run time loading flags,
16271 # -berok will link without error, but may produce a broken library.
16272 no_undefined_flag_GCJ=' ${wl}-bernotok'
16273 allow_undefined_flag_GCJ=' ${wl}-berok'
16274 # -bexpall does not export symbols beginning with underscore (_)
16275 always_export_symbols_GCJ=yes
16276 # Exported symbols can be pulled into shared objects from archives
16277 whole_archive_flag_spec_GCJ=' '
16278 archive_cmds_need_lc_GCJ=yes
16279 # This is similar to how AIX traditionally builds it's shared libraries.
16280 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16281 fi
16282 fi
16283 ;;
16284
16285 amigaos*)
16286 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)'
16287 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16288 hardcode_minus_L_GCJ=yes
16289 # see comment about different semantics on the GNU ld section
16290 ld_shlibs_GCJ=no
16291 ;;
16292
16293 bsdi4*)
16294 export_dynamic_flag_spec_GCJ=-rdynamic
16295 ;;
16296
16297 cygwin* | mingw* | pw32*)
16298 # When not using gcc, we currently assume that we are using
16299 # Microsoft Visual C++.
16300 # hardcode_libdir_flag_spec is actually meaningless, as there is
16301 # no search path for DLLs.
16302 hardcode_libdir_flag_spec_GCJ=' '
16303 allow_undefined_flag_GCJ=unsupported
16304 # Tell ltmain to make .lib files, not .a files.
16305 libext=lib
16306 # Tell ltmain to make .dll files, not .so files.
16307 shrext_cmds=".dll"
16308 # FIXME: Setting linknames here is a bad hack.
16309 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16310 # The linker will automatically build a .lib file if we build a DLL.
16311 old_archive_From_new_cmds_GCJ='true'
16312 # FIXME: Should let the user specify the lib program.
16313 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16314 fix_srcfile_path='`cygpath -w "$srcfile"`'
16315 enable_shared_with_static_runtimes_GCJ=yes
16316 ;;
16317
16318 darwin* | rhapsody*)
16319 if test "$GXX" = yes ; then
16320 archive_cmds_need_lc_GCJ=no
16321 case "$host_os" in
16322 rhapsody* | darwin1.[012])
16323 allow_undefined_flag_GCJ='-undefined suppress'
16324 ;;
16325 *) # Darwin 1.3 on
16326 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16327 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16328 else
16329 case ${MACOSX_DEPLOYMENT_TARGET} in
16330 10.[012])
16331 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16332 ;;
16333 10.*)
16334 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16335 ;;
16336 esac
16337 fi
16338 ;;
16339 esac
16340 lt_int_apple_cc_single_mod=no
16341 output_verbose_link_cmd='echo'
16342 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16343 lt_int_apple_cc_single_mod=yes
16344 fi
16345 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16346 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16347 else
16348 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16349 fi
16350 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16351 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16352 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16353 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16354 else
16355 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16356 fi
16357 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}'
16358 hardcode_direct_GCJ=no
16359 hardcode_automatic_GCJ=yes
16360 hardcode_shlibpath_var_GCJ=unsupported
16361 whole_archive_flag_spec_GCJ='-all_load $convenience'
16362 link_all_deplibs_GCJ=yes
16363 else
16364 ld_shlibs_GCJ=no
16365 fi
16366 ;;
16367
16368 dgux*)
16369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16370 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16371 hardcode_shlibpath_var_GCJ=no
16372 ;;
16373
16374 freebsd1*)
16375 ld_shlibs_GCJ=no
16376 ;;
16377
16378 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16379 # support. Future versions do this automatically, but an explicit c++rt0.o
16380 # does not break anything, and helps significantly (at the cost of a little
16381 # extra space).
16382 freebsd2.2*)
16383 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16384 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16385 hardcode_direct_GCJ=yes
16386 hardcode_shlibpath_var_GCJ=no
16387 ;;
16388
16389 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16390 freebsd2*)
16391 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16392 hardcode_direct_GCJ=yes
16393 hardcode_minus_L_GCJ=yes
16394 hardcode_shlibpath_var_GCJ=no
16395 ;;
16396
16397 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16398 freebsd* | kfreebsd*-gnu)
16399 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16400 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16401 hardcode_direct_GCJ=yes
16402 hardcode_shlibpath_var_GCJ=no
16403 ;;
16404
16405 hpux9*)
16406 if test "$GCC" = yes; then
16407 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'
16408 else
16409 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'
16410 fi
16411 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16412 hardcode_libdir_separator_GCJ=:
16413 hardcode_direct_GCJ=yes
16414
16415 # hardcode_minus_L: Not really in the search PATH,
16416 # but as the default location of the library.
16417 hardcode_minus_L_GCJ=yes
16418 export_dynamic_flag_spec_GCJ='${wl}-E'
16419 ;;
16420
16421 hpux10* | hpux11*)
16422 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16423 case "$host_cpu" in
16424 hppa*64*|ia64*)
16425 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16426 ;;
16427 *)
16428 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16429 ;;
16430 esac
16431 else
16432 case "$host_cpu" in
16433 hppa*64*|ia64*)
16434 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16435 ;;
16436 *)
16437 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16438 ;;
16439 esac
16440 fi
16441 if test "$with_gnu_ld" = no; then
16442 case "$host_cpu" in
16443 hppa*64*)
16444 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16445 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16446 hardcode_libdir_separator_GCJ=:
16447 hardcode_direct_GCJ=no
16448 hardcode_shlibpath_var_GCJ=no
16449 ;;
16450 ia64*)
16451 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16452 hardcode_direct_GCJ=no
16453 hardcode_shlibpath_var_GCJ=no
16454
16455 # hardcode_minus_L: Not really in the search PATH,
16456 # but as the default location of the library.
16457 hardcode_minus_L_GCJ=yes
16458 ;;
16459 *)
16460 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16461 hardcode_libdir_separator_GCJ=:
16462 hardcode_direct_GCJ=yes
16463 export_dynamic_flag_spec_GCJ='${wl}-E'
16464
16465 # hardcode_minus_L: Not really in the search PATH,
16466 # but as the default location of the library.
16467 hardcode_minus_L_GCJ=yes
16468 ;;
16469 esac
16470 fi
16471 ;;
16472
16473 irix5* | irix6* | nonstopux*)
16474 if test "$GCC" = yes; then
16475 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'
16476 else
16477 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'
16478 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16479 fi
16480 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16481 hardcode_libdir_separator_GCJ=:
16482 link_all_deplibs_GCJ=yes
16483 ;;
16484
16485 netbsd*)
16486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16487 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16488 else
16489 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16490 fi
16491 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16492 hardcode_direct_GCJ=yes
16493 hardcode_shlibpath_var_GCJ=no
16494 ;;
16495
16496 newsos6)
16497 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16498 hardcode_direct_GCJ=yes
16499 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16500 hardcode_libdir_separator_GCJ=:
16501 hardcode_shlibpath_var_GCJ=no
16502 ;;
16503
16504 openbsd*)
16505 hardcode_direct_GCJ=yes
16506 hardcode_shlibpath_var_GCJ=no
16507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16508 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16510 export_dynamic_flag_spec_GCJ='${wl}-E'
16511 else
16512 case $host_os in
16513 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16514 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16515 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16516 ;;
16517 *)
16518 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16520 ;;
16521 esac
16522 fi
16523 ;;
16524
16525 os2*)
16526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16527 hardcode_minus_L_GCJ=yes
16528 allow_undefined_flag_GCJ=unsupported
16529 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'
16530 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16531 ;;
16532
16533 osf3*)
16534 if test "$GCC" = yes; then
16535 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16536 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'
16537 else
16538 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16539 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'
16540 fi
16541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16542 hardcode_libdir_separator_GCJ=:
16543 ;;
16544
16545 osf4* | osf5*) # as osf3* with the addition of -msym flag
16546 if test "$GCC" = yes; then
16547 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16548 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'
16549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16550 else
16551 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16552 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'
16553 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~
16554 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16555
16556 # Both c and cxx compiler support -rpath directly
16557 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16558 fi
16559 hardcode_libdir_separator_GCJ=:
16560 ;;
16561
16562 sco3.2v5*)
16563 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16564 hardcode_shlibpath_var_GCJ=no
16565 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16566 runpath_var=LD_RUN_PATH
16567 hardcode_runpath_var=yes
16568 ;;
16569
16570 solaris*)
16571 no_undefined_flag_GCJ=' -z text'
16572 if test "$GCC" = yes; then
16573 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16574 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16575 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16576 else
16577 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16580 fi
16581 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16582 hardcode_shlibpath_var_GCJ=no
16583 case $host_os in
16584 solaris2.[0-5] | solaris2.[0-5].*) ;;
16585 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16586 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16587 esac
16588 link_all_deplibs_GCJ=yes
16589 ;;
16590
16591 sunos4*)
16592 if test "x$host_vendor" = xsequent; then
16593 # Use $CC to link under sequent, because it throws in some extra .o
16594 # files that make .init and .fini sections work.
16595 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16596 else
16597 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16598 fi
16599 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16600 hardcode_direct_GCJ=yes
16601 hardcode_minus_L_GCJ=yes
16602 hardcode_shlibpath_var_GCJ=no
16603 ;;
16604
16605 sysv4)
16606 case $host_vendor in
16607 sni)
16608 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16609 hardcode_direct_GCJ=yes # is this really true???
16610 ;;
16611 siemens)
16612 ## LD is ld it makes a PLAMLIB
16613 ## CC just makes a GrossModule.
16614 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16615 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16616 hardcode_direct_GCJ=no
16617 ;;
16618 motorola)
16619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16620 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16621 ;;
16622 esac
16623 runpath_var='LD_RUN_PATH'
16624 hardcode_shlibpath_var_GCJ=no
16625 ;;
16626
16627 sysv4.3*)
16628 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16629 hardcode_shlibpath_var_GCJ=no
16630 export_dynamic_flag_spec_GCJ='-Bexport'
16631 ;;
16632
16633 sysv4*MP*)
16634 if test -d /usr/nec; then
16635 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636 hardcode_shlibpath_var_GCJ=no
16637 runpath_var=LD_RUN_PATH
16638 hardcode_runpath_var=yes
16639 ld_shlibs_GCJ=yes
16640 fi
16641 ;;
16642
16643 sysv4.2uw2*)
16644 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16645 hardcode_direct_GCJ=yes
16646 hardcode_minus_L_GCJ=no
16647 hardcode_shlibpath_var_GCJ=no
16648 hardcode_runpath_var=yes
16649 runpath_var=LD_RUN_PATH
16650 ;;
16651
16652 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16653 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16654 if test "$GCC" = yes; then
16655 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16656 else
16657 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16658 fi
16659 runpath_var='LD_RUN_PATH'
16660 hardcode_shlibpath_var_GCJ=no
16661 ;;
16662
16663 sysv5*)
16664 no_undefined_flag_GCJ=' -z text'
16665 # $CC -shared without GNU ld will not create a library from C++
16666 # object files and a static libstdc++, better avoid it by now
16667 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16669 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16670 hardcode_libdir_flag_spec_GCJ=
16671 hardcode_shlibpath_var_GCJ=no
16672 runpath_var='LD_RUN_PATH'
16673 ;;
16674
16675 uts4*)
16676 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16677 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16678 hardcode_shlibpath_var_GCJ=no
16679 ;;
16680
16681 *)
16682 ld_shlibs_GCJ=no
16683 ;;
16684 esac
16685 fi
16686
16687echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16688echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16689test "$ld_shlibs_GCJ" = no && can_build_shared=no
16690
16691variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16692if test "$GCC" = yes; then
16693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16694fi
16695
16696#
16697# Do we need to explicitly link libc?
16698#
16699case "x$archive_cmds_need_lc_GCJ" in
16700x|xyes)
16701 # Assume -lc should be added
16702 archive_cmds_need_lc_GCJ=yes
16703
16704 if test "$enable_shared" = yes && test "$GCC" = yes; then
16705 case $archive_cmds_GCJ in
16706 *'~'*)
16707 # FIXME: we may have to deal with multi-command sequences.
16708 ;;
16709 '$CC '*)
16710 # Test whether the compiler implicitly links with -lc since on some
16711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16712 # to ld, don't add -lc before -lgcc.
16713 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16714echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16715 $rm conftest*
16716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16717
16718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16719 (eval $ac_compile) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } 2>conftest.err; then
16723 soname=conftest
16724 lib=conftest
16725 libobjs=conftest.$ac_objext
16726 deplibs=
16727 wl=$lt_prog_compiler_wl_GCJ
16728 compiler_flags=-v
16729 linker_flags=-v
16730 verstring=
16731 output_objdir=.
16732 libname=conftest
16733 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16734 allow_undefined_flag_GCJ=
16735 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16736 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }
16740 then
16741 archive_cmds_need_lc_GCJ=no
16742 else
16743 archive_cmds_need_lc_GCJ=yes
16744 fi
16745 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16746 else
16747 cat conftest.err 1>&5
16748 fi
16749 $rm conftest*
16750 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16751echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16752 ;;
16753 esac
16754 fi
16755 ;;
16756esac
16757
16758echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16759echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16760library_names_spec=
16761libname_spec='lib$name'
16762soname_spec=
16763shrext_cmds=".so"
16764postinstall_cmds=
16765postuninstall_cmds=
16766finish_cmds=
16767finish_eval=
16768shlibpath_var=
16769shlibpath_overrides_runpath=unknown
16770version_type=none
16771dynamic_linker="$host_os ld.so"
16772sys_lib_dlsearch_path_spec="/lib /usr/lib"
16773if test "$GCC" = yes; then
16774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16775 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16776 # if the path contains ";" then we assume it to be the separator
16777 # otherwise default to the standard path separator (i.e. ":") - it is
16778 # assumed that no part of a normal pathname contains ";" but that should
16779 # okay in the real world where ";" in dirpaths is itself problematic.
16780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16781 else
16782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16783 fi
16784else
16785 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16786fi
16787need_lib_prefix=unknown
16788hardcode_into_libs=no
16789
16790# when you set need_version to no, make sure it does not cause -set_version
16791# flags to be left without arguments
16792need_version=unknown
16793
16794case $host_os in
16795aix3*)
16796 version_type=linux
16797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16798 shlibpath_var=LIBPATH
16799
16800 # AIX 3 has no versioning support, so we append a major version to the name.
16801 soname_spec='${libname}${release}${shared_ext}$major'
16802 ;;
16803
16804aix4* | aix5*)
16805 version_type=linux
16806 need_lib_prefix=no
16807 need_version=no
16808 hardcode_into_libs=yes
16809 if test "$host_cpu" = ia64; then
16810 # AIX 5 supports IA64
16811 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 else
16814 # With GCC up to 2.95.x, collect2 would create an import file
16815 # for dependence libraries. The import file would start with
16816 # the line `#! .'. This would cause the generated library to
16817 # depend on `.', always an invalid library. This was fixed in
16818 # development snapshots of GCC prior to 3.0.
16819 case $host_os in
16820 aix4 | aix4.[01] | aix4.[01].*)
16821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16822 echo ' yes '
16823 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16824 :
16825 else
16826 can_build_shared=no
16827 fi
16828 ;;
16829 esac
16830 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16831 # soname into executable. Probably we can add versioning support to
16832 # collect2, so additional links can be useful in future.
16833 if test "$aix_use_runtimelinking" = yes; then
16834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16835 # instead of lib<name>.a to let people know that these are not
16836 # typical AIX shared libraries.
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 else
16839 # We preserve .a as extension for shared libraries through AIX4.2
16840 # and later when we are not doing run time linking.
16841 library_names_spec='${libname}${release}.a $libname.a'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 fi
16844 shlibpath_var=LIBPATH
16845 fi
16846 ;;
16847
16848amigaos*)
16849 library_names_spec='$libname.ixlibrary $libname.a'
16850 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16851 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'
16852 ;;
16853
16854beos*)
16855 library_names_spec='${libname}${shared_ext}'
16856 dynamic_linker="$host_os ld.so"
16857 shlibpath_var=LIBRARY_PATH
16858 ;;
16859
16860bsdi4*)
16861 version_type=linux
16862 need_version=no
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864 soname_spec='${libname}${release}${shared_ext}$major'
16865 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16866 shlibpath_var=LD_LIBRARY_PATH
16867 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16868 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16869 # the default ld.so.conf also contains /usr/contrib/lib and
16870 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16871 # libtool to hard-code these into programs
16872 ;;
16873
16874cygwin* | mingw* | pw32*)
16875 version_type=windows
16876 shrext_cmds=".dll"
16877 need_version=no
16878 need_lib_prefix=no
16879
16880 case $GCC,$host_os in
16881 yes,cygwin* | yes,mingw* | yes,pw32*)
16882 library_names_spec='$libname.dll.a'
16883 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16884 postinstall_cmds='base_file=`basename \${file}`~
16885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16886 dldir=$destdir/`dirname \$dlpath`~
16887 test -d \$dldir || mkdir -p \$dldir~
16888 $install_prog $dir/$dlname \$dldir/$dlname'
16889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16890 dlpath=$dir/\$dldll~
16891 $rm \$dlpath'
16892 shlibpath_overrides_runpath=yes
16893
16894 case $host_os in
16895 cygwin*)
16896 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16897 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16898 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16899 ;;
16900 mingw*)
16901 # MinGW DLLs use traditional 'lib' prefix
16902 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16903 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16904 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16905 # It is most probably a Windows format PATH printed by
16906 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16907 # path with ; separators, and with drive letters. We can handle the
16908 # drive letters (cygwin fileutils understands them), so leave them,
16909 # especially as we might pass files found there to a mingw objdump,
16910 # which wouldn't understand a cygwinified path. Ahh.
16911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16912 else
16913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16914 fi
16915 ;;
16916 pw32*)
16917 # pw32 DLLs use 'pw' prefix rather than 'lib'
16918 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16919 ;;
16920 esac
16921 ;;
16922
16923 *)
16924 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16925 ;;
16926 esac
16927 dynamic_linker='Win32 ld.exe'
16928 # FIXME: first we should search . and the directory the executable is in
16929 shlibpath_var=PATH
16930 ;;
16931
16932darwin* | rhapsody*)
16933 dynamic_linker="$host_os dyld"
16934 version_type=darwin
16935 need_lib_prefix=no
16936 need_version=no
16937 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16938 soname_spec='${libname}${release}${major}$shared_ext'
16939 shlibpath_overrides_runpath=yes
16940 shlibpath_var=DYLD_LIBRARY_PATH
16941 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16942 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16943 if test "$GCC" = yes; then
16944 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"`
16945 else
16946 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16947 fi
16948 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16949 ;;
16950
16951dgux*)
16952 version_type=linux
16953 need_lib_prefix=no
16954 need_version=no
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 shlibpath_var=LD_LIBRARY_PATH
16958 ;;
16959
16960freebsd1*)
16961 dynamic_linker=no
16962 ;;
16963
16964kfreebsd*-gnu)
16965 version_type=linux
16966 need_lib_prefix=no
16967 need_version=no
16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16969 soname_spec='${libname}${release}${shared_ext}$major'
16970 shlibpath_var=LD_LIBRARY_PATH
16971 shlibpath_overrides_runpath=no
16972 hardcode_into_libs=yes
16973 dynamic_linker='GNU ld.so'
16974 ;;
16975
16976freebsd*)
16977 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16978 version_type=freebsd-$objformat
16979 case $version_type in
16980 freebsd-elf*)
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16982 need_version=no
16983 need_lib_prefix=no
16984 ;;
16985 freebsd-*)
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16987 need_version=yes
16988 ;;
16989 esac
16990 shlibpath_var=LD_LIBRARY_PATH
16991 case $host_os in
16992 freebsd2*)
16993 shlibpath_overrides_runpath=yes
16994 ;;
16995 freebsd3.01* | freebsdelf3.01*)
16996 shlibpath_overrides_runpath=yes
16997 hardcode_into_libs=yes
16998 ;;
16999 *) # from 3.2 on
17000 shlibpath_overrides_runpath=no
17001 hardcode_into_libs=yes
17002 ;;
17003 esac
17004 ;;
17005
17006gnu*)
17007 version_type=linux
17008 need_lib_prefix=no
17009 need_version=no
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 hardcode_into_libs=yes
17014 ;;
17015
17016hpux9* | hpux10* | hpux11*)
17017 # Give a soname corresponding to the major version so that dld.sl refuses to
17018 # link against other versions.
17019 version_type=sunos
17020 need_lib_prefix=no
17021 need_version=no
17022 case "$host_cpu" in
17023 ia64*)
17024 shrext_cmds='.so'
17025 hardcode_into_libs=yes
17026 dynamic_linker="$host_os dld.so"
17027 shlibpath_var=LD_LIBRARY_PATH
17028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 soname_spec='${libname}${release}${shared_ext}$major'
17031 if test "X$HPUX_IA64_MODE" = X32; then
17032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17033 else
17034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17035 fi
17036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17037 ;;
17038 hppa*64*)
17039 shrext_cmds='.sl'
17040 hardcode_into_libs=yes
17041 dynamic_linker="$host_os dld.sl"
17042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17045 soname_spec='${libname}${release}${shared_ext}$major'
17046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17048 ;;
17049 *)
17050 shrext_cmds='.sl'
17051 dynamic_linker="$host_os dld.sl"
17052 shlibpath_var=SHLIB_PATH
17053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 ;;
17057 esac
17058 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17059 postinstall_cmds='chmod 555 $lib'
17060 ;;
17061
17062irix5* | irix6* | nonstopux*)
17063 case $host_os in
17064 nonstopux*) version_type=nonstopux ;;
17065 *)
17066 if test "$lt_cv_prog_gnu_ld" = yes; then
17067 version_type=linux
17068 else
17069 version_type=irix
17070 fi ;;
17071 esac
17072 need_lib_prefix=no
17073 need_version=no
17074 soname_spec='${libname}${release}${shared_ext}$major'
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17076 case $host_os in
17077 irix5* | nonstopux*)
17078 libsuff= shlibsuff=
17079 ;;
17080 *)
17081 case $LD in # libtool.m4 will add one of these switches to LD
17082 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17083 libsuff= shlibsuff= libmagic=32-bit;;
17084 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17085 libsuff=32 shlibsuff=N32 libmagic=N32;;
17086 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17087 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17088 *) libsuff= shlibsuff= libmagic=never-match;;
17089 esac
17090 ;;
17091 esac
17092 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17093 shlibpath_overrides_runpath=no
17094 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17095 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17096 hardcode_into_libs=yes
17097 ;;
17098
17099# No shared lib support for Linux oldld, aout, or coff.
17100linux*oldld* | linux*aout* | linux*coff*)
17101 dynamic_linker=no
17102 ;;
17103
17104# This must be Linux ELF.
17105linux*)
17106 version_type=linux
17107 need_lib_prefix=no
17108 need_version=no
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110 soname_spec='${libname}${release}${shared_ext}$major'
17111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 shlibpath_overrides_runpath=no
17114 # This implies no fast_install, which is unacceptable.
17115 # Some rework will be needed to allow for fast_install
17116 # before this can be enabled.
17117 hardcode_into_libs=yes
17118
17119 # Append ld.so.conf contents to the search path
17120 if test -f /etc/ld.so.conf; then
17121 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17123 fi
17124
17125 # We used to test for /lib/ld.so.1 and disable shared libraries on
17126 # powerpc, because MkLinux only supported shared libraries with the
17127 # GNU dynamic linker. Since this was broken with cross compilers,
17128 # most powerpc-linux boxes support dynamic linking these days and
17129 # people can always --disable-shared, the test was removed, and we
17130 # assume the GNU/Linux dynamic linker is in use.
17131 dynamic_linker='GNU/Linux ld.so'
17132 ;;
17133
17134knetbsd*-gnu)
17135 version_type=linux
17136 need_lib_prefix=no
17137 need_version=no
17138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17139 soname_spec='${libname}${release}${shared_ext}$major'
17140 shlibpath_var=LD_LIBRARY_PATH
17141 shlibpath_overrides_runpath=no
17142 hardcode_into_libs=yes
17143 dynamic_linker='GNU ld.so'
17144 ;;
17145
17146netbsd*)
17147 version_type=sunos
17148 need_lib_prefix=no
17149 need_version=no
17150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17153 dynamic_linker='NetBSD (a.out) ld.so'
17154 else
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 dynamic_linker='NetBSD ld.elf_so'
17158 fi
17159 shlibpath_var=LD_LIBRARY_PATH
17160 shlibpath_overrides_runpath=yes
17161 hardcode_into_libs=yes
17162 ;;
17163
17164newsos6)
17165 version_type=linux
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=yes
17169 ;;
17170
17171nto-qnx*)
17172 version_type=linux
17173 need_lib_prefix=no
17174 need_version=no
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176 soname_spec='${libname}${release}${shared_ext}$major'
17177 shlibpath_var=LD_LIBRARY_PATH
17178 shlibpath_overrides_runpath=yes
17179 ;;
17180
17181openbsd*)
17182 version_type=sunos
17183 need_lib_prefix=no
17184 need_version=yes
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17189 case $host_os in
17190 openbsd2.[89] | openbsd2.[89].*)
17191 shlibpath_overrides_runpath=no
17192 ;;
17193 *)
17194 shlibpath_overrides_runpath=yes
17195 ;;
17196 esac
17197 else
17198 shlibpath_overrides_runpath=yes
17199 fi
17200 ;;
17201
17202os2*)
17203 libname_spec='$name'
17204 shrext_cmds=".dll"
17205 need_lib_prefix=no
17206 library_names_spec='$libname${shared_ext} $libname.a'
17207 dynamic_linker='OS/2 ld.exe'
17208 shlibpath_var=LIBPATH
17209 ;;
17210
17211osf3* | osf4* | osf5*)
17212 version_type=osf
17213 need_lib_prefix=no
17214 need_version=no
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217 shlibpath_var=LD_LIBRARY_PATH
17218 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17219 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17220 ;;
17221
17222sco3.2v5*)
17223 version_type=osf
17224 soname_spec='${libname}${release}${shared_ext}$major'
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 ;;
17228
17229solaris*)
17230 version_type=linux
17231 need_lib_prefix=no
17232 need_version=no
17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 shlibpath_var=LD_LIBRARY_PATH
17236 shlibpath_overrides_runpath=yes
17237 hardcode_into_libs=yes
17238 # ldd complains unless libraries are executable
17239 postinstall_cmds='chmod +x $lib'
17240 ;;
17241
17242sunos4*)
17243 version_type=sunos
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=yes
17248 if test "$with_gnu_ld" = yes; then
17249 need_lib_prefix=no
17250 fi
17251 need_version=yes
17252 ;;
17253
17254sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17255 version_type=linux
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257 soname_spec='${libname}${release}${shared_ext}$major'
17258 shlibpath_var=LD_LIBRARY_PATH
17259 case $host_vendor in
17260 sni)
17261 shlibpath_overrides_runpath=no
17262 need_lib_prefix=no
17263 export_dynamic_flag_spec='${wl}-Blargedynsym'
17264 runpath_var=LD_RUN_PATH
17265 ;;
17266 siemens)
17267 need_lib_prefix=no
17268 ;;
17269 motorola)
17270 need_lib_prefix=no
17271 need_version=no
17272 shlibpath_overrides_runpath=no
17273 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17274 ;;
17275 esac
17276 ;;
17277
17278sysv4*MP*)
17279 if test -d /usr/nec ;then
17280 version_type=linux
17281 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17282 soname_spec='$libname${shared_ext}.$major'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 fi
17285 ;;
17286
17287uts4*)
17288 version_type=linux
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 ;;
17293
17294*)
17295 dynamic_linker=no
17296 ;;
17297esac
17298echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17299echo "${ECHO_T}$dynamic_linker" >&6
17300test "$dynamic_linker" = no && can_build_shared=no
17301
17302echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17303echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17304hardcode_action_GCJ=
17305if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17306 test -n "$runpath_var GCJ" || \
17307 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17308
17309 # We can hardcode non-existant directories.
17310 if test "$hardcode_direct_GCJ" != no &&
17311 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17312 # have to relink, otherwise we might link with an installed library
17313 # when we should be linking with a yet-to-be-installed one
17314 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17315 test "$hardcode_minus_L_GCJ" != no; then
17316 # Linking always hardcodes the temporary library directory.
17317 hardcode_action_GCJ=relink
17318 else
17319 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17320 hardcode_action_GCJ=immediate
17321 fi
17322else
17323 # We cannot hardcode anything, or else we can only hardcode existing
17324 # directories.
17325 hardcode_action_GCJ=unsupported
17326fi
17327echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17328echo "${ECHO_T}$hardcode_action_GCJ" >&6
17329
17330if test "$hardcode_action_GCJ" = relink; then
17331 # Fast installation is not supported
17332 enable_fast_install=no
17333elif test "$shlibpath_overrides_runpath" = yes ||
17334 test "$enable_shared" = no; then
17335 # Fast installation is not necessary
17336 enable_fast_install=needless
17337fi
17338
17339striplib=
17340old_striplib=
17341echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17342echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17343if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17344 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17345 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17346 echo "$as_me:$LINENO: result: yes" >&5
17347echo "${ECHO_T}yes" >&6
17348else
17349# FIXME - insert some real tests, host_os isn't really good enough
17350 case $host_os in
17351 darwin*)
17352 if test -n "$STRIP" ; then
17353 striplib="$STRIP -x"
17354 echo "$as_me:$LINENO: result: yes" >&5
17355echo "${ECHO_T}yes" >&6
17356 else
17357 echo "$as_me:$LINENO: result: no" >&5
17358echo "${ECHO_T}no" >&6
17359fi
17360 ;;
17361 *)
17362 echo "$as_me:$LINENO: result: no" >&5
17363echo "${ECHO_T}no" >&6
17364 ;;
17365 esac
17366fi
17367
17368if test "x$enable_dlopen" != xyes; then
17369 enable_dlopen=unknown
17370 enable_dlopen_self=unknown
17371 enable_dlopen_self_static=unknown
17372else
17373 lt_cv_dlopen=no
17374 lt_cv_dlopen_libs=
17375
17376 case $host_os in
17377 beos*)
17378 lt_cv_dlopen="load_add_on"
17379 lt_cv_dlopen_libs=
17380 lt_cv_dlopen_self=yes
17381 ;;
17382
17383 mingw* | pw32*)
17384 lt_cv_dlopen="LoadLibrary"
17385 lt_cv_dlopen_libs=
17386 ;;
17387
17388 cygwin*)
17389 lt_cv_dlopen="dlopen"
17390 lt_cv_dlopen_libs=
17391 ;;
17392
17393 darwin*)
17394 # if libdl is installed we need to link against it
17395 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17396echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17397if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17399else
17400 ac_check_lib_save_LIBS=$LIBS
17401LIBS="-ldl $LIBS"
17402cat >conftest.$ac_ext <<_ACEOF
17403/* confdefs.h. */
17404_ACEOF
17405cat confdefs.h >>conftest.$ac_ext
17406cat >>conftest.$ac_ext <<_ACEOF
17407/* end confdefs.h. */
17408
17409/* Override any gcc2 internal prototype to avoid an error. */
17410#ifdef __cplusplus
17411extern "C"
17412#endif
17413/* We use char because int might match the return type of a gcc2
17414 builtin and then its argument prototype would still apply. */
17415char dlopen ();
17416int
17417main ()
17418{
17419dlopen ();
17420 ;
17421 return 0;
17422}
17423_ACEOF
17424rm -f conftest.$ac_objext conftest$ac_exeext
17425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426 (eval $ac_link) 2>conftest.er1
17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag"
17434 || test ! -s conftest.err'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest$ac_exeext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_lib_dl_dlopen=yes
17447else
17448 echo "$as_me: failed program was:" >&5
17449sed 's/^/| /' conftest.$ac_ext >&5
17450
17451ac_cv_lib_dl_dlopen=no
17452fi
17453rm -f conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
17455LIBS=$ac_check_lib_save_LIBS
17456fi
17457echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17458echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17459if test $ac_cv_lib_dl_dlopen = yes; then
17460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17461else
17462
17463 lt_cv_dlopen="dyld"
17464 lt_cv_dlopen_libs=
17465 lt_cv_dlopen_self=yes
17466
17467fi
17468
17469 ;;
17470
17471 *)
17472 echo "$as_me:$LINENO: checking for shl_load" >&5
17473echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17474if test "${ac_cv_func_shl_load+set}" = set; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17476else
17477 cat >conftest.$ac_ext <<_ACEOF
17478/* confdefs.h. */
17479_ACEOF
17480cat confdefs.h >>conftest.$ac_ext
17481cat >>conftest.$ac_ext <<_ACEOF
17482/* end confdefs.h. */
17483/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17485#define shl_load innocuous_shl_load
17486
17487/* System header to define __stub macros and hopefully few prototypes,
17488 which can conflict with char shl_load (); below.
17489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490 <limits.h> exists even on freestanding compilers. */
17491
17492#ifdef __STDC__
17493# include <limits.h>
17494#else
17495# include <assert.h>
17496#endif
17497
17498#undef shl_load
17499
17500/* Override any gcc2 internal prototype to avoid an error. */
17501#ifdef __cplusplus
17502extern "C"
17503{
17504#endif
17505/* We use char because int might match the return type of a gcc2
17506 builtin and then its argument prototype would still apply. */
17507char shl_load ();
17508/* The GNU C library defines this for functions which it implements
17509 to always fail with ENOSYS. Some functions are actually named
17510 something starting with __ and the normal name is an alias. */
17511#if defined (__stub_shl_load) || defined (__stub___shl_load)
17512choke me
17513#else
17514char (*f) () = shl_load;
17515#endif
17516#ifdef __cplusplus
17517}
17518#endif
17519
17520int
17521main ()
17522{
17523return f != shl_load;
17524 ;
17525 return 0;
17526}
17527_ACEOF
17528rm -f conftest.$ac_objext conftest$ac_exeext
17529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530 (eval $ac_link) 2>conftest.er1
17531 ac_status=$?
17532 grep -v '^ *+' conftest.er1 >conftest.err
17533 rm -f conftest.er1
17534 cat conftest.err >&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } &&
17537 { ac_try='test -z "$ac_c_werror_flag"
17538 || test ! -s conftest.err'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; } &&
17544 { ac_try='test -s conftest$ac_exeext'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 ac_cv_func_shl_load=yes
17551else
17552 echo "$as_me: failed program was:" >&5
17553sed 's/^/| /' conftest.$ac_ext >&5
17554
17555ac_cv_func_shl_load=no
17556fi
17557rm -f conftest.err conftest.$ac_objext \
17558 conftest$ac_exeext conftest.$ac_ext
17559fi
17560echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17561echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17562if test $ac_cv_func_shl_load = yes; then
17563 lt_cv_dlopen="shl_load"
17564else
17565 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17566echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17567if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17569else
17570 ac_check_lib_save_LIBS=$LIBS
17571LIBS="-ldld $LIBS"
17572cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h. */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h. */
17578
17579/* Override any gcc2 internal prototype to avoid an error. */
17580#ifdef __cplusplus
17581extern "C"
17582#endif
17583/* We use char because int might match the return type of a gcc2
17584 builtin and then its argument prototype would still apply. */
17585char shl_load ();
17586int
17587main ()
17588{
17589shl_load ();
17590 ;
17591 return 0;
17592}
17593_ACEOF
17594rm -f conftest.$ac_objext conftest$ac_exeext
17595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17596 (eval $ac_link) 2>conftest.er1
17597 ac_status=$?
17598 grep -v '^ *+' conftest.er1 >conftest.err
17599 rm -f conftest.er1
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
17603 { ac_try='test -z "$ac_c_werror_flag"
17604 || test ! -s conftest.err'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest$ac_exeext'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ac_cv_lib_dld_shl_load=yes
17617else
17618 echo "$as_me: failed program was:" >&5
17619sed 's/^/| /' conftest.$ac_ext >&5
17620
17621ac_cv_lib_dld_shl_load=no
17622fi
17623rm -f conftest.err conftest.$ac_objext \
17624 conftest$ac_exeext conftest.$ac_ext
17625LIBS=$ac_check_lib_save_LIBS
17626fi
17627echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17628echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17629if test $ac_cv_lib_dld_shl_load = yes; then
17630 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17631else
17632 echo "$as_me:$LINENO: checking for dlopen" >&5
17633echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17634if test "${ac_cv_func_dlopen+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636else
17637 cat >conftest.$ac_ext <<_ACEOF
17638/* confdefs.h. */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h. */
17643/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17645#define dlopen innocuous_dlopen
17646
17647/* System header to define __stub macros and hopefully few prototypes,
17648 which can conflict with char dlopen (); below.
17649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17650 <limits.h> exists even on freestanding compilers. */
17651
17652#ifdef __STDC__
17653# include <limits.h>
17654#else
17655# include <assert.h>
17656#endif
17657
17658#undef dlopen
17659
17660/* Override any gcc2 internal prototype to avoid an error. */
17661#ifdef __cplusplus
17662extern "C"
17663{
17664#endif
17665/* We use char because int might match the return type of a gcc2
17666 builtin and then its argument prototype would still apply. */
17667char dlopen ();
17668/* The GNU C library defines this for functions which it implements
17669 to always fail with ENOSYS. Some functions are actually named
17670 something starting with __ and the normal name is an alias. */
17671#if defined (__stub_dlopen) || defined (__stub___dlopen)
17672choke me
17673#else
17674char (*f) () = dlopen;
17675#endif
17676#ifdef __cplusplus
17677}
17678#endif
17679
17680int
17681main ()
17682{
17683return f != dlopen;
17684 ;
17685 return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext conftest$ac_exeext
17689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17690 (eval $ac_link) 2>conftest.er1
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
17697 { ac_try='test -z "$ac_c_werror_flag"
17698 || test ! -s conftest.err'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; } &&
17704 { ac_try='test -s conftest$ac_exeext'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
17710 ac_cv_func_dlopen=yes
17711else
17712 echo "$as_me: failed program was:" >&5
17713sed 's/^/| /' conftest.$ac_ext >&5
17714
17715ac_cv_func_dlopen=no
17716fi
17717rm -f conftest.err conftest.$ac_objext \
17718 conftest$ac_exeext conftest.$ac_ext
17719fi
17720echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17721echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17722if test $ac_cv_func_dlopen = yes; then
17723 lt_cv_dlopen="dlopen"
17724else
17725 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17726echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17727if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729else
17730 ac_check_lib_save_LIBS=$LIBS
17731LIBS="-ldl $LIBS"
17732cat >conftest.$ac_ext <<_ACEOF
17733/* confdefs.h. */
17734_ACEOF
17735cat confdefs.h >>conftest.$ac_ext
17736cat >>conftest.$ac_ext <<_ACEOF
17737/* end confdefs.h. */
17738
17739/* Override any gcc2 internal prototype to avoid an error. */
17740#ifdef __cplusplus
17741extern "C"
17742#endif
17743/* We use char because int might match the return type of a gcc2
17744 builtin and then its argument prototype would still apply. */
17745char dlopen ();
17746int
17747main ()
17748{
17749dlopen ();
17750 ;
17751 return 0;
17752}
17753_ACEOF
17754rm -f conftest.$ac_objext conftest$ac_exeext
17755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756 (eval $ac_link) 2>conftest.er1
17757 ac_status=$?
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag"
17764 || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest$ac_exeext'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_lib_dl_dlopen=yes
17777else
17778 echo "$as_me: failed program was:" >&5
17779sed 's/^/| /' conftest.$ac_ext >&5
17780
17781ac_cv_lib_dl_dlopen=no
17782fi
17783rm -f conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785LIBS=$ac_check_lib_save_LIBS
17786fi
17787echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17788echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17789if test $ac_cv_lib_dl_dlopen = yes; then
17790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17791else
17792 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17793echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17794if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17796else
17797 ac_check_lib_save_LIBS=$LIBS
17798LIBS="-lsvld $LIBS"
17799cat >conftest.$ac_ext <<_ACEOF
17800/* confdefs.h. */
17801_ACEOF
17802cat confdefs.h >>conftest.$ac_ext
17803cat >>conftest.$ac_ext <<_ACEOF
17804/* end confdefs.h. */
17805
17806/* Override any gcc2 internal prototype to avoid an error. */
17807#ifdef __cplusplus
17808extern "C"
17809#endif
17810/* We use char because int might match the return type of a gcc2
17811 builtin and then its argument prototype would still apply. */
17812char dlopen ();
17813int
17814main ()
17815{
17816dlopen ();
17817 ;
17818 return 0;
17819}
17820_ACEOF
17821rm -f conftest.$ac_objext conftest$ac_exeext
17822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17823 (eval $ac_link) 2>conftest.er1
17824 ac_status=$?
17825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
17830 { ac_try='test -z "$ac_c_werror_flag"
17831 || test ! -s conftest.err'
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; } &&
17837 { ac_try='test -s conftest$ac_exeext'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 ac_cv_lib_svld_dlopen=yes
17844else
17845 echo "$as_me: failed program was:" >&5
17846sed 's/^/| /' conftest.$ac_ext >&5
17847
17848ac_cv_lib_svld_dlopen=no
17849fi
17850rm -f conftest.err conftest.$ac_objext \
17851 conftest$ac_exeext conftest.$ac_ext
17852LIBS=$ac_check_lib_save_LIBS
17853fi
17854echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17855echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17856if test $ac_cv_lib_svld_dlopen = yes; then
17857 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17858else
17859 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17860echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17861if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17863else
17864 ac_check_lib_save_LIBS=$LIBS
17865LIBS="-ldld $LIBS"
17866cat >conftest.$ac_ext <<_ACEOF
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
17872
17873/* Override any gcc2 internal prototype to avoid an error. */
17874#ifdef __cplusplus
17875extern "C"
17876#endif
17877/* We use char because int might match the return type of a gcc2
17878 builtin and then its argument prototype would still apply. */
17879char dld_link ();
17880int
17881main ()
17882{
17883dld_link ();
17884 ;
17885 return 0;
17886}
17887_ACEOF
17888rm -f conftest.$ac_objext conftest$ac_exeext
17889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17890 (eval $ac_link) 2>conftest.er1
17891 ac_status=$?
17892 grep -v '^ *+' conftest.er1 >conftest.err
17893 rm -f conftest.er1
17894 cat conftest.err >&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } &&
17897 { ac_try='test -z "$ac_c_werror_flag"
17898 || test ! -s conftest.err'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; } &&
17904 { ac_try='test -s conftest$ac_exeext'
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; }; then
17910 ac_cv_lib_dld_dld_link=yes
17911else
17912 echo "$as_me: failed program was:" >&5
17913sed 's/^/| /' conftest.$ac_ext >&5
17914
17915ac_cv_lib_dld_dld_link=no
17916fi
17917rm -f conftest.err conftest.$ac_objext \
17918 conftest$ac_exeext conftest.$ac_ext
17919LIBS=$ac_check_lib_save_LIBS
17920fi
17921echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17922echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17923if test $ac_cv_lib_dld_dld_link = yes; then
17924 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17925fi
17926
17927
17928fi
17929
17930
17931fi
17932
17933
17934fi
17935
17936
17937fi
17938
17939
17940fi
17941
17942 ;;
17943 esac
17944
17945 if test "x$lt_cv_dlopen" != xno; then
17946 enable_dlopen=yes
17947 else
17948 enable_dlopen=no
17949 fi
17950
17951 case $lt_cv_dlopen in
17952 dlopen)
17953 save_CPPFLAGS="$CPPFLAGS"
17954 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17955
17956 save_LDFLAGS="$LDFLAGS"
17957 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17958
17959 save_LIBS="$LIBS"
17960 LIBS="$lt_cv_dlopen_libs $LIBS"
17961
17962 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17963echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17964if test "${lt_cv_dlopen_self+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17966else
17967 if test "$cross_compiling" = yes; then :
17968 lt_cv_dlopen_self=cross
17969else
17970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17971 lt_status=$lt_dlunknown
17972 cat > conftest.$ac_ext <<EOF
17973#line 17973 "configure"
17974#include "confdefs.h"
17975
17976#if HAVE_DLFCN_H
17977#include <dlfcn.h>
17978#endif
17979
17980#include <stdio.h>
17981
17982#ifdef RTLD_GLOBAL
17983# define LT_DLGLOBAL RTLD_GLOBAL
17984#else
17985# ifdef DL_GLOBAL
17986# define LT_DLGLOBAL DL_GLOBAL
17987# else
17988# define LT_DLGLOBAL 0
17989# endif
17990#endif
17991
17992/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17993 find out it does not work in some platform. */
17994#ifndef LT_DLLAZY_OR_NOW
17995# ifdef RTLD_LAZY
17996# define LT_DLLAZY_OR_NOW RTLD_LAZY
17997# else
17998# ifdef DL_LAZY
17999# define LT_DLLAZY_OR_NOW DL_LAZY
18000# else
18001# ifdef RTLD_NOW
18002# define LT_DLLAZY_OR_NOW RTLD_NOW
18003# else
18004# ifdef DL_NOW
18005# define LT_DLLAZY_OR_NOW DL_NOW
18006# else
18007# define LT_DLLAZY_OR_NOW 0
18008# endif
18009# endif
18010# endif
18011# endif
18012#endif
18013
18014#ifdef __cplusplus
18015extern "C" void exit (int);
18016#endif
18017
18018void fnord() { int i=42;}
18019int main ()
18020{
18021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18022 int status = $lt_dlunknown;
18023
18024 if (self)
18025 {
18026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18027 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18028 /* dlclose (self); */
18029 }
18030
18031 exit (status);
18032}
18033EOF
18034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18035 (eval $ac_link) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18039 (./conftest; exit; ) 2>/dev/null
18040 lt_status=$?
18041 case x$lt_status in
18042 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18043 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18044 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18045 esac
18046 else :
18047 # compilation failed
18048 lt_cv_dlopen_self=no
18049 fi
18050fi
18051rm -fr conftest*
18052
18053
18054fi
18055echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18056echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18057
18058 if test "x$lt_cv_dlopen_self" = xyes; then
18059 LDFLAGS="$LDFLAGS $link_static_flag"
18060 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18061echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18062if test "${lt_cv_dlopen_self_static+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18064else
18065 if test "$cross_compiling" = yes; then :
18066 lt_cv_dlopen_self_static=cross
18067else
18068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18069 lt_status=$lt_dlunknown
18070 cat > conftest.$ac_ext <<EOF
18071#line 18071 "configure"
18072#include "confdefs.h"
18073
18074#if HAVE_DLFCN_H
18075#include <dlfcn.h>
18076#endif
18077
18078#include <stdio.h>
18079
18080#ifdef RTLD_GLOBAL
18081# define LT_DLGLOBAL RTLD_GLOBAL
18082#else
18083# ifdef DL_GLOBAL
18084# define LT_DLGLOBAL DL_GLOBAL
18085# else
18086# define LT_DLGLOBAL 0
18087# endif
18088#endif
18089
18090/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18091 find out it does not work in some platform. */
18092#ifndef LT_DLLAZY_OR_NOW
18093# ifdef RTLD_LAZY
18094# define LT_DLLAZY_OR_NOW RTLD_LAZY
18095# else
18096# ifdef DL_LAZY
18097# define LT_DLLAZY_OR_NOW DL_LAZY
18098# else
18099# ifdef RTLD_NOW
18100# define LT_DLLAZY_OR_NOW RTLD_NOW
18101# else
18102# ifdef DL_NOW
18103# define LT_DLLAZY_OR_NOW DL_NOW
18104# else
18105# define LT_DLLAZY_OR_NOW 0
18106# endif
18107# endif
18108# endif
18109# endif
18110#endif
18111
18112#ifdef __cplusplus
18113extern "C" void exit (int);
18114#endif
18115
18116void fnord() { int i=42;}
18117int main ()
18118{
18119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18120 int status = $lt_dlunknown;
18121
18122 if (self)
18123 {
18124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18125 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18126 /* dlclose (self); */
18127 }
18128
18129 exit (status);
18130}
18131EOF
18132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18133 (eval $ac_link) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18137 (./conftest; exit; ) 2>/dev/null
18138 lt_status=$?
18139 case x$lt_status in
18140 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18141 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18142 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18143 esac
18144 else :
18145 # compilation failed
18146 lt_cv_dlopen_self_static=no
18147 fi
18148fi
18149rm -fr conftest*
18150
18151
18152fi
18153echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18154echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18155 fi
18156
18157 CPPFLAGS="$save_CPPFLAGS"
18158 LDFLAGS="$save_LDFLAGS"
18159 LIBS="$save_LIBS"
18160 ;;
18161 esac
18162
18163 case $lt_cv_dlopen_self in
18164 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18165 *) enable_dlopen_self=unknown ;;
18166 esac
18167
18168 case $lt_cv_dlopen_self_static in
18169 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18170 *) enable_dlopen_self_static=unknown ;;
18171 esac
18172fi
18173
18174
18175# The else clause should only fire when bootstrapping the
18176# libtool distribution, otherwise you forgot to ship ltmain.sh
18177# with your package, and you will get complaints that there are
18178# no rules to generate ltmain.sh.
18179if test -f "$ltmain"; then
18180 # See if we are running on zsh, and set the options which allow our commands through
18181 # without removal of \ escapes.
18182 if test -n "${ZSH_VERSION+set}" ; then
18183 setopt NO_GLOB_SUBST
18184 fi
18185 # Now quote all the things that may contain metacharacters while being
18186 # careful not to overquote the AC_SUBSTed values. We take copies of the
18187 # variables and quote the copies for generation of the libtool script.
18188 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18189 SED SHELL STRIP \
18190 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18191 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18192 deplibs_check_method reload_flag reload_cmds need_locks \
18193 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18194 lt_cv_sys_global_symbol_to_c_name_address \
18195 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18196 old_postinstall_cmds old_postuninstall_cmds \
18197 compiler_GCJ \
18198 CC_GCJ \
18199 LD_GCJ \
18200 lt_prog_compiler_wl_GCJ \
18201 lt_prog_compiler_pic_GCJ \
18202 lt_prog_compiler_static_GCJ \
18203 lt_prog_compiler_no_builtin_flag_GCJ \
18204 export_dynamic_flag_spec_GCJ \
18205 thread_safe_flag_spec_GCJ \
18206 whole_archive_flag_spec_GCJ \
18207 enable_shared_with_static_runtimes_GCJ \
18208 old_archive_cmds_GCJ \
18209 old_archive_from_new_cmds_GCJ \
18210 predep_objects_GCJ \
18211 postdep_objects_GCJ \
18212 predeps_GCJ \
18213 postdeps_GCJ \
18214 compiler_lib_search_path_GCJ \
18215 archive_cmds_GCJ \
18216 archive_expsym_cmds_GCJ \
18217 postinstall_cmds_GCJ \
18218 postuninstall_cmds_GCJ \
18219 old_archive_from_expsyms_cmds_GCJ \
18220 allow_undefined_flag_GCJ \
18221 no_undefined_flag_GCJ \
18222 export_symbols_cmds_GCJ \
18223 hardcode_libdir_flag_spec_GCJ \
18224 hardcode_libdir_flag_spec_ld_GCJ \
18225 hardcode_libdir_separator_GCJ \
18226 hardcode_automatic_GCJ \
18227 module_cmds_GCJ \
18228 module_expsym_cmds_GCJ \
18229 lt_cv_prog_compiler_c_o_GCJ \
18230 exclude_expsyms_GCJ \
18231 include_expsyms_GCJ; do
18232
18233 case $var in
18234 old_archive_cmds_GCJ | \
18235 old_archive_from_new_cmds_GCJ | \
18236 archive_cmds_GCJ | \
18237 archive_expsym_cmds_GCJ | \
18238 module_cmds_GCJ | \
18239 module_expsym_cmds_GCJ | \
18240 old_archive_from_expsyms_cmds_GCJ | \
18241 export_symbols_cmds_GCJ | \
18242 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18243 postinstall_cmds | postuninstall_cmds | \
18244 old_postinstall_cmds | old_postuninstall_cmds | \
18245 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18246 # Double-quote double-evaled strings.
18247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18248 ;;
18249 *)
18250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18251 ;;
18252 esac
18253 done
18254
18255 case $lt_echo in
18256 *'\$0 --fallback-echo"')
18257 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18258 ;;
18259 esac
18260
18261cfgfile="$ofile"
18262
18263 cat <<__EOF__ >> "$cfgfile"
18264# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18265
18266# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18267
18268# Shell to use when invoking shell scripts.
18269SHELL=$lt_SHELL
18270
18271# Whether or not to build shared libraries.
18272build_libtool_libs=$enable_shared
18273
18274# Whether or not to build static libraries.
18275build_old_libs=$enable_static
18276
18277# Whether or not to add -lc for building shared libraries.
18278build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18279
18280# Whether or not to disallow shared libs when runtime libs are static
18281allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18282
18283# Whether or not to optimize for fast installation.
18284fast_install=$enable_fast_install
18285
18286# The host system.
18287host_alias=$host_alias
18288host=$host
18289
18290# An echo program that does not interpret backslashes.
18291echo=$lt_echo
18292
18293# The archiver.
18294AR=$lt_AR
18295AR_FLAGS=$lt_AR_FLAGS
18296
18297# A C compiler.
18298LTCC=$lt_LTCC
18299
18300# A language-specific compiler.
18301CC=$lt_compiler_GCJ
18302
18303# Is the compiler the GNU C compiler?
18304with_gcc=$GCC_GCJ
18305
18306# An ERE matcher.
18307EGREP=$lt_EGREP
18308
18309# The linker used to build libraries.
18310LD=$lt_LD_GCJ
18311
18312# Whether we need hard or soft links.
18313LN_S=$lt_LN_S
18314
18315# A BSD-compatible nm program.
18316NM=$lt_NM
18317
18318# A symbol stripping program
18319STRIP=$lt_STRIP
18320
18321# Used to examine libraries when file_magic_cmd begins "file"
18322MAGIC_CMD=$MAGIC_CMD
18323
18324# Used on cygwin: DLL creation program.
18325DLLTOOL="$DLLTOOL"
18326
18327# Used on cygwin: object dumper.
18328OBJDUMP="$OBJDUMP"
18329
18330# Used on cygwin: assembler.
18331AS="$AS"
18332
18333# The name of the directory that contains temporary libtool files.
18334objdir=$objdir
18335
18336# How to create reloadable object files.
18337reload_flag=$lt_reload_flag
18338reload_cmds=$lt_reload_cmds
18339
18340# How to pass a linker flag through the compiler.
18341wl=$lt_lt_prog_compiler_wl_GCJ
18342
18343# Object file suffix (normally "o").
18344objext="$ac_objext"
18345
18346# Old archive suffix (normally "a").
18347libext="$libext"
18348
18349# Shared library suffix (normally ".so").
18350shrext_cmds='$shrext_cmds'
18351
18352# Executable file suffix (normally "").
18353exeext="$exeext"
18354
18355# Additional compiler flags for building library objects.
18356pic_flag=$lt_lt_prog_compiler_pic_GCJ
18357pic_mode=$pic_mode
18358
18359# What is the maximum length of a command?
18360max_cmd_len=$lt_cv_sys_max_cmd_len
18361
18362# Does compiler simultaneously support -c and -o options?
18363compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18364
18365# Must we lock files when doing compilation ?
18366need_locks=$lt_need_locks
18367
18368# Do we need the lib prefix for modules?
18369need_lib_prefix=$need_lib_prefix
18370
18371# Do we need a version for libraries?
18372need_version=$need_version
18373
18374# Whether dlopen is supported.
18375dlopen_support=$enable_dlopen
18376
18377# Whether dlopen of programs is supported.
18378dlopen_self=$enable_dlopen_self
18379
18380# Whether dlopen of statically linked programs is supported.
18381dlopen_self_static=$enable_dlopen_self_static
18382
18383# Compiler flag to prevent dynamic linking.
18384link_static_flag=$lt_lt_prog_compiler_static_GCJ
18385
18386# Compiler flag to turn off builtin functions.
18387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18388
18389# Compiler flag to allow reflexive dlopens.
18390export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18391
18392# Compiler flag to generate shared objects directly from archives.
18393whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18394
18395# Compiler flag to generate thread-safe objects.
18396thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18397
18398# Library versioning type.
18399version_type=$version_type
18400
18401# Format of library name prefix.
18402libname_spec=$lt_libname_spec
18403
18404# List of archive names. First name is the real one, the rest are links.
18405# The last name is the one that the linker finds with -lNAME.
18406library_names_spec=$lt_library_names_spec
18407
18408# The coded name of the library, if different from the real name.
18409soname_spec=$lt_soname_spec
18410
18411# Commands used to build and install an old-style archive.
18412RANLIB=$lt_RANLIB
18413old_archive_cmds=$lt_old_archive_cmds_GCJ
18414old_postinstall_cmds=$lt_old_postinstall_cmds
18415old_postuninstall_cmds=$lt_old_postuninstall_cmds
18416
18417# Create an old-style archive from a shared archive.
18418old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18419
18420# Create a temporary old-style archive to link instead of a shared archive.
18421old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18422
18423# Commands used to build and install a shared archive.
18424archive_cmds=$lt_archive_cmds_GCJ
18425archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18426postinstall_cmds=$lt_postinstall_cmds
18427postuninstall_cmds=$lt_postuninstall_cmds
18428
18429# Commands used to build a loadable module (assumed same as above if empty)
18430module_cmds=$lt_module_cmds_GCJ
18431module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18432
18433# Commands to strip libraries.
18434old_striplib=$lt_old_striplib
18435striplib=$lt_striplib
18436
18437# Dependencies to place before the objects being linked to create a
18438# shared library.
18439predep_objects=$lt_predep_objects_GCJ
18440
18441# Dependencies to place after the objects being linked to create a
18442# shared library.
18443postdep_objects=$lt_postdep_objects_GCJ
18444
18445# Dependencies to place before the objects being linked to create a
18446# shared library.
18447predeps=$lt_predeps_GCJ
18448
18449# Dependencies to place after the objects being linked to create a
18450# shared library.
18451postdeps=$lt_postdeps_GCJ
18452
18453# The library search path used internally by the compiler when linking
18454# a shared library.
18455compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18456
18457# Method to check whether dependent libraries are shared objects.
18458deplibs_check_method=$lt_deplibs_check_method
18459
18460# Command to use when deplibs_check_method == file_magic.
18461file_magic_cmd=$lt_file_magic_cmd
18462
18463# Flag that allows shared libraries with undefined symbols to be built.
18464allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18465
18466# Flag that forces no undefined symbols.
18467no_undefined_flag=$lt_no_undefined_flag_GCJ
18468
18469# Commands used to finish a libtool library installation in a directory.
18470finish_cmds=$lt_finish_cmds
18471
18472# Same as above, but a single script fragment to be evaled but not shown.
18473finish_eval=$lt_finish_eval
18474
18475# Take the output of nm and produce a listing of raw symbols and C names.
18476global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18477
18478# Transform the output of nm in a proper C declaration
18479global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18480
18481# Transform the output of nm in a C name address pair
18482global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18483
18484# This is the shared library runtime path variable.
18485runpath_var=$runpath_var
18486
18487# This is the shared library path variable.
18488shlibpath_var=$shlibpath_var
18489
18490# Is shlibpath searched before the hard-coded library search path?
18491shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18492
18493# How to hardcode a shared library path into an executable.
18494hardcode_action=$hardcode_action_GCJ
18495
18496# Whether we should hardcode library paths into libraries.
18497hardcode_into_libs=$hardcode_into_libs
18498
18499# Flag to hardcode \$libdir into a binary during linking.
18500# This must work even if \$libdir does not exist.
18501hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18502
18503# If ld is used when linking, flag to hardcode \$libdir into
18504# a binary during linking. This must work even if \$libdir does
18505# not exist.
18506hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18507
18508# Whether we need a single -rpath flag with a separated argument.
18509hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18510
18511# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18512# resulting binary.
18513hardcode_direct=$hardcode_direct_GCJ
18514
18515# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18516# resulting binary.
18517hardcode_minus_L=$hardcode_minus_L_GCJ
18518
18519# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18520# the resulting binary.
18521hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18522
18523# Set to yes if building a shared library automatically hardcodes DIR into the library
18524# and all subsequent libraries and executables linked against it.
18525hardcode_automatic=$hardcode_automatic_GCJ
18526
18527# Variables whose values should be saved in libtool wrapper scripts and
18528# restored at relink time.
18529variables_saved_for_relink="$variables_saved_for_relink"
18530
18531# Whether libtool must link a program against all its dependency libraries.
18532link_all_deplibs=$link_all_deplibs_GCJ
18533
18534# Compile-time system search path for libraries
18535sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18536
18537# Run-time system search path for libraries
18538sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18539
18540# Fix the shell variable \$srcfile for the compiler.
18541fix_srcfile_path="$fix_srcfile_path_GCJ"
18542
18543# Set to yes if exported symbols are required.
18544always_export_symbols=$always_export_symbols_GCJ
18545
18546# The commands to list exported symbols.
18547export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18548
18549# The commands to extract the exported symbol list from a shared archive.
18550extract_expsyms_cmds=$lt_extract_expsyms_cmds
18551
18552# Symbols that should not be listed in the preloaded symbols.
18553exclude_expsyms=$lt_exclude_expsyms_GCJ
18554
18555# Symbols that must always be exported.
18556include_expsyms=$lt_include_expsyms_GCJ
18557
18558# ### END LIBTOOL TAG CONFIG: $tagname
18559
18560__EOF__
18561
18562
18563else
18564 # If there is no Makefile yet, we rely on a make rule to execute
18565 # `config.status --recheck' to rerun these tests and create the
18566 # libtool script then.
18567 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18568 if test -f "$ltmain_in"; then
18569 test -f Makefile && make "$ltmain"
18570 fi
18571fi
18572
18573
18574ac_ext=c
18575ac_cpp='$CPP $CPPFLAGS'
18576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18578ac_compiler_gnu=$ac_cv_c_compiler_gnu
18579
18580CC="$lt_save_CC"
18581
18582 else
18583 tagname=""
18584 fi
18585 ;;
18586
18587 RC)
18588
18589
18590
18591# Source file extension for RC test sources.
18592ac_ext=rc
18593
18594# Object file extension for compiled RC test sources.
18595objext=o
18596objext_RC=$objext
18597
18598# Code to be used in simple compile tests
18599lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18600
18601# Code to be used in simple link tests
18602lt_simple_link_test_code="$lt_simple_compile_test_code"
18603
18604# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18605
18606# If no C compiler was specified, use CC.
18607LTCC=${LTCC-"$CC"}
18608
18609# Allow CC to be a program name with arguments.
18610compiler=$CC
18611
18612
18613# Allow CC to be a program name with arguments.
18614lt_save_CC="$CC"
18615CC=${RC-"windres"}
18616compiler=$CC
18617compiler_RC=$CC
18618lt_cv_prog_compiler_c_o_RC=yes
18619
18620# The else clause should only fire when bootstrapping the
18621# libtool distribution, otherwise you forgot to ship ltmain.sh
18622# with your package, and you will get complaints that there are
18623# no rules to generate ltmain.sh.
18624if test -f "$ltmain"; then
18625 # See if we are running on zsh, and set the options which allow our commands through
18626 # without removal of \ escapes.
18627 if test -n "${ZSH_VERSION+set}" ; then
18628 setopt NO_GLOB_SUBST
18629 fi
18630 # Now quote all the things that may contain metacharacters while being
18631 # careful not to overquote the AC_SUBSTed values. We take copies of the
18632 # variables and quote the copies for generation of the libtool script.
18633 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18634 SED SHELL STRIP \
18635 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18636 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18637 deplibs_check_method reload_flag reload_cmds need_locks \
18638 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18639 lt_cv_sys_global_symbol_to_c_name_address \
18640 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18641 old_postinstall_cmds old_postuninstall_cmds \
18642 compiler_RC \
18643 CC_RC \
18644 LD_RC \
18645 lt_prog_compiler_wl_RC \
18646 lt_prog_compiler_pic_RC \
18647 lt_prog_compiler_static_RC \
18648 lt_prog_compiler_no_builtin_flag_RC \
18649 export_dynamic_flag_spec_RC \
18650 thread_safe_flag_spec_RC \
18651 whole_archive_flag_spec_RC \
18652 enable_shared_with_static_runtimes_RC \
18653 old_archive_cmds_RC \
18654 old_archive_from_new_cmds_RC \
18655 predep_objects_RC \
18656 postdep_objects_RC \
18657 predeps_RC \
18658 postdeps_RC \
18659 compiler_lib_search_path_RC \
18660 archive_cmds_RC \
18661 archive_expsym_cmds_RC \
18662 postinstall_cmds_RC \
18663 postuninstall_cmds_RC \
18664 old_archive_from_expsyms_cmds_RC \
18665 allow_undefined_flag_RC \
18666 no_undefined_flag_RC \
18667 export_symbols_cmds_RC \
18668 hardcode_libdir_flag_spec_RC \
18669 hardcode_libdir_flag_spec_ld_RC \
18670 hardcode_libdir_separator_RC \
18671 hardcode_automatic_RC \
18672 module_cmds_RC \
18673 module_expsym_cmds_RC \
18674 lt_cv_prog_compiler_c_o_RC \
18675 exclude_expsyms_RC \
18676 include_expsyms_RC; do
18677
18678 case $var in
18679 old_archive_cmds_RC | \
18680 old_archive_from_new_cmds_RC | \
18681 archive_cmds_RC | \
18682 archive_expsym_cmds_RC | \
18683 module_cmds_RC | \
18684 module_expsym_cmds_RC | \
18685 old_archive_from_expsyms_cmds_RC | \
18686 export_symbols_cmds_RC | \
18687 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18688 postinstall_cmds | postuninstall_cmds | \
18689 old_postinstall_cmds | old_postuninstall_cmds | \
18690 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18691 # Double-quote double-evaled strings.
18692 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18693 ;;
18694 *)
18695 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18696 ;;
18697 esac
18698 done
18699
18700 case $lt_echo in
18701 *'\$0 --fallback-echo"')
18702 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18703 ;;
18704 esac
18705
18706cfgfile="$ofile"
18707
18708 cat <<__EOF__ >> "$cfgfile"
18709# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18710
18711# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18712
18713# Shell to use when invoking shell scripts.
18714SHELL=$lt_SHELL
18715
18716# Whether or not to build shared libraries.
18717build_libtool_libs=$enable_shared
18718
18719# Whether or not to build static libraries.
18720build_old_libs=$enable_static
18721
18722# Whether or not to add -lc for building shared libraries.
18723build_libtool_need_lc=$archive_cmds_need_lc_RC
18724
18725# Whether or not to disallow shared libs when runtime libs are static
18726allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18727
18728# Whether or not to optimize for fast installation.
18729fast_install=$enable_fast_install
18730
18731# The host system.
18732host_alias=$host_alias
18733host=$host
18734
18735# An echo program that does not interpret backslashes.
18736echo=$lt_echo
18737
18738# The archiver.
18739AR=$lt_AR
18740AR_FLAGS=$lt_AR_FLAGS
18741
18742# A C compiler.
18743LTCC=$lt_LTCC
18744
18745# A language-specific compiler.
18746CC=$lt_compiler_RC
18747
18748# Is the compiler the GNU C compiler?
18749with_gcc=$GCC_RC
18750
18751# An ERE matcher.
18752EGREP=$lt_EGREP
18753
18754# The linker used to build libraries.
18755LD=$lt_LD_RC
18756
18757# Whether we need hard or soft links.
18758LN_S=$lt_LN_S
18759
18760# A BSD-compatible nm program.
18761NM=$lt_NM
18762
18763# A symbol stripping program
18764STRIP=$lt_STRIP
18765
18766# Used to examine libraries when file_magic_cmd begins "file"
18767MAGIC_CMD=$MAGIC_CMD
18768
18769# Used on cygwin: DLL creation program.
18770DLLTOOL="$DLLTOOL"
18771
18772# Used on cygwin: object dumper.
18773OBJDUMP="$OBJDUMP"
18774
18775# Used on cygwin: assembler.
18776AS="$AS"
18777
18778# The name of the directory that contains temporary libtool files.
18779objdir=$objdir
18780
18781# How to create reloadable object files.
18782reload_flag=$lt_reload_flag
18783reload_cmds=$lt_reload_cmds
18784
18785# How to pass a linker flag through the compiler.
18786wl=$lt_lt_prog_compiler_wl_RC
18787
18788# Object file suffix (normally "o").
18789objext="$ac_objext"
18790
18791# Old archive suffix (normally "a").
18792libext="$libext"
18793
18794# Shared library suffix (normally ".so").
18795shrext_cmds='$shrext_cmds'
18796
18797# Executable file suffix (normally "").
18798exeext="$exeext"
18799
18800# Additional compiler flags for building library objects.
18801pic_flag=$lt_lt_prog_compiler_pic_RC
18802pic_mode=$pic_mode
18803
18804# What is the maximum length of a command?
18805max_cmd_len=$lt_cv_sys_max_cmd_len
18806
18807# Does compiler simultaneously support -c and -o options?
18808compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18809
18810# Must we lock files when doing compilation ?
18811need_locks=$lt_need_locks
18812
18813# Do we need the lib prefix for modules?
18814need_lib_prefix=$need_lib_prefix
18815
18816# Do we need a version for libraries?
18817need_version=$need_version
18818
18819# Whether dlopen is supported.
18820dlopen_support=$enable_dlopen
18821
18822# Whether dlopen of programs is supported.
18823dlopen_self=$enable_dlopen_self
18824
18825# Whether dlopen of statically linked programs is supported.
18826dlopen_self_static=$enable_dlopen_self_static
18827
18828# Compiler flag to prevent dynamic linking.
18829link_static_flag=$lt_lt_prog_compiler_static_RC
18830
18831# Compiler flag to turn off builtin functions.
18832no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18833
18834# Compiler flag to allow reflexive dlopens.
18835export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18836
18837# Compiler flag to generate shared objects directly from archives.
18838whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18839
18840# Compiler flag to generate thread-safe objects.
18841thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18842
18843# Library versioning type.
18844version_type=$version_type
18845
18846# Format of library name prefix.
18847libname_spec=$lt_libname_spec
18848
18849# List of archive names. First name is the real one, the rest are links.
18850# The last name is the one that the linker finds with -lNAME.
18851library_names_spec=$lt_library_names_spec
18852
18853# The coded name of the library, if different from the real name.
18854soname_spec=$lt_soname_spec
18855
18856# Commands used to build and install an old-style archive.
18857RANLIB=$lt_RANLIB
18858old_archive_cmds=$lt_old_archive_cmds_RC
18859old_postinstall_cmds=$lt_old_postinstall_cmds
18860old_postuninstall_cmds=$lt_old_postuninstall_cmds
18861
18862# Create an old-style archive from a shared archive.
18863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18864
18865# Create a temporary old-style archive to link instead of a shared archive.
18866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18867
18868# Commands used to build and install a shared archive.
18869archive_cmds=$lt_archive_cmds_RC
18870archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18871postinstall_cmds=$lt_postinstall_cmds
18872postuninstall_cmds=$lt_postuninstall_cmds
18873
18874# Commands used to build a loadable module (assumed same as above if empty)
18875module_cmds=$lt_module_cmds_RC
18876module_expsym_cmds=$lt_module_expsym_cmds_RC
18877
18878# Commands to strip libraries.
18879old_striplib=$lt_old_striplib
18880striplib=$lt_striplib
18881
18882# Dependencies to place before the objects being linked to create a
18883# shared library.
18884predep_objects=$lt_predep_objects_RC
18885
18886# Dependencies to place after the objects being linked to create a
18887# shared library.
18888postdep_objects=$lt_postdep_objects_RC
18889
18890# Dependencies to place before the objects being linked to create a
18891# shared library.
18892predeps=$lt_predeps_RC
18893
18894# Dependencies to place after the objects being linked to create a
18895# shared library.
18896postdeps=$lt_postdeps_RC
18897
18898# The library search path used internally by the compiler when linking
18899# a shared library.
18900compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18901
18902# Method to check whether dependent libraries are shared objects.
18903deplibs_check_method=$lt_deplibs_check_method
18904
18905# Command to use when deplibs_check_method == file_magic.
18906file_magic_cmd=$lt_file_magic_cmd
18907
18908# Flag that allows shared libraries with undefined symbols to be built.
18909allow_undefined_flag=$lt_allow_undefined_flag_RC
18910
18911# Flag that forces no undefined symbols.
18912no_undefined_flag=$lt_no_undefined_flag_RC
18913
18914# Commands used to finish a libtool library installation in a directory.
18915finish_cmds=$lt_finish_cmds
18916
18917# Same as above, but a single script fragment to be evaled but not shown.
18918finish_eval=$lt_finish_eval
18919
18920# Take the output of nm and produce a listing of raw symbols and C names.
18921global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18922
18923# Transform the output of nm in a proper C declaration
18924global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18925
18926# Transform the output of nm in a C name address pair
18927global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18928
18929# This is the shared library runtime path variable.
18930runpath_var=$runpath_var
18931
18932# This is the shared library path variable.
18933shlibpath_var=$shlibpath_var
18934
18935# Is shlibpath searched before the hard-coded library search path?
18936shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18937
18938# How to hardcode a shared library path into an executable.
18939hardcode_action=$hardcode_action_RC
18940
18941# Whether we should hardcode library paths into libraries.
18942hardcode_into_libs=$hardcode_into_libs
18943
18944# Flag to hardcode \$libdir into a binary during linking.
18945# This must work even if \$libdir does not exist.
18946hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18947
18948# If ld is used when linking, flag to hardcode \$libdir into
18949# a binary during linking. This must work even if \$libdir does
18950# not exist.
18951hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18952
18953# Whether we need a single -rpath flag with a separated argument.
18954hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18955
18956# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18957# resulting binary.
18958hardcode_direct=$hardcode_direct_RC
18959
18960# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18961# resulting binary.
18962hardcode_minus_L=$hardcode_minus_L_RC
18963
18964# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18965# the resulting binary.
18966hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18967
18968# Set to yes if building a shared library automatically hardcodes DIR into the library
18969# and all subsequent libraries and executables linked against it.
18970hardcode_automatic=$hardcode_automatic_RC
18971
18972# Variables whose values should be saved in libtool wrapper scripts and
18973# restored at relink time.
18974variables_saved_for_relink="$variables_saved_for_relink"
18975
18976# Whether libtool must link a program against all its dependency libraries.
18977link_all_deplibs=$link_all_deplibs_RC
18978
18979# Compile-time system search path for libraries
18980sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18981
18982# Run-time system search path for libraries
18983sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18984
18985# Fix the shell variable \$srcfile for the compiler.
18986fix_srcfile_path="$fix_srcfile_path_RC"
18987
18988# Set to yes if exported symbols are required.
18989always_export_symbols=$always_export_symbols_RC
18990
18991# The commands to list exported symbols.
18992export_symbols_cmds=$lt_export_symbols_cmds_RC
18993
18994# The commands to extract the exported symbol list from a shared archive.
18995extract_expsyms_cmds=$lt_extract_expsyms_cmds
18996
18997# Symbols that should not be listed in the preloaded symbols.
18998exclude_expsyms=$lt_exclude_expsyms_RC
18999
19000# Symbols that must always be exported.
19001include_expsyms=$lt_include_expsyms_RC
19002
19003# ### END LIBTOOL TAG CONFIG: $tagname
19004
19005__EOF__
19006
19007
19008else
19009 # If there is no Makefile yet, we rely on a make rule to execute
19010 # `config.status --recheck' to rerun these tests and create the
19011 # libtool script then.
19012 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19013 if test -f "$ltmain_in"; then
19014 test -f Makefile && make "$ltmain"
19015 fi
19016fi
19017
19018
19019ac_ext=c
19020ac_cpp='$CPP $CPPFLAGS'
19021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19023ac_compiler_gnu=$ac_cv_c_compiler_gnu
19024
19025CC="$lt_save_CC"
19026
19027 ;;
19028
19029 *)
19030 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19031echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19032 { (exit 1); exit 1; }; }
19033 ;;
19034 esac
19035
19036 # Append the new tag name to the list of available tags.
19037 if test -n "$tagname" ; then
19038 available_tags="$available_tags $tagname"
19039 fi
19040 fi
19041 done
19042 IFS="$lt_save_ifs"
19043
19044 # Now substitute the updated list of available tags.
19045 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19046 mv "${ofile}T" "$ofile"
19047 chmod +x "$ofile"
19048 else
19049 rm -f "${ofile}T"
19050 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19051echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19052 { (exit 1); exit 1; }; }
19053 fi
19054fi
19055
Lev Walkinf15320b2004-06-03 03:38:44 +000019056
19057
19058# This can be used to rebuild libtool when needed
Lev Walkin8e8b5482004-06-17 23:42:48 +000019059LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
Lev Walkinf15320b2004-06-03 03:38:44 +000019060
19061# Always use our own libtool.
19062LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19063
Lev Walkin8e8b5482004-06-17 23:42:48 +000019064# Prevent multiple expansion
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
Lev Walkinf15320b2004-06-03 03:38:44 +000019084
19085
19086# Check whether --enable-autoconf or --disable-autoconf was given.
19087if test "${enable_autoconf+set}" = set; then
19088 enableval="$enable_autoconf"
19089 enable_autoconf=$enableval
19090else
19091 enable_autoconf=yes
19092
19093fi;
19094# Extract the first word of "autoconf", so it can be a program name with args.
19095set dummy autoconf; ac_word=$2
19096echo "$as_me:$LINENO: checking for $ac_word" >&5
19097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19098if test "${ac_cv_path_AUTOCONF+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19100else
19101 case $AUTOCONF in
19102 [\\/]* | ?:[\\/]*)
19103 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
19104 ;;
19105 *)
19106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19107for as_dir in $PATH
19108do
19109 IFS=$as_save_IFS
19110 test -z "$as_dir" && as_dir=.
19111 for ac_exec_ext in '' $ac_executable_extensions; do
19112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19113 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
19114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19115 break 2
19116 fi
19117done
19118done
19119
19120 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available"
19121 ;;
19122esac
19123fi
19124AUTOCONF=$ac_cv_path_AUTOCONF
19125
19126if test -n "$AUTOCONF"; then
19127 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
19128echo "${ECHO_T}$AUTOCONF" >&6
19129else
19130 echo "$as_me:$LINENO: result: no" >&5
19131echo "${ECHO_T}no" >&6
19132fi
19133
19134# Extract the first word of "autoheader", so it can be a program name with args.
19135set dummy autoheader; ac_word=$2
19136echo "$as_me:$LINENO: checking for $ac_word" >&5
19137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19138if test "${ac_cv_path_AUTOHEADER+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19140else
19141 case $AUTOHEADER in
19142 [\\/]* | ?:[\\/]*)
19143 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
19144 ;;
19145 *)
19146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19147for as_dir in $PATH
19148do
19149 IFS=$as_save_IFS
19150 test -z "$as_dir" && as_dir=.
19151 for ac_exec_ext in '' $ac_executable_extensions; do
19152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19153 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
19154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19155 break 2
19156 fi
19157done
19158done
19159
19160 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available"
19161 ;;
19162esac
19163fi
19164AUTOHEADER=$ac_cv_path_AUTOHEADER
19165
19166if test -n "$AUTOHEADER"; then
19167 echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
19168echo "${ECHO_T}$AUTOHEADER" >&6
19169else
19170 echo "$as_me:$LINENO: result: no" >&5
19171echo "${ECHO_T}no" >&6
19172fi
19173
19174if test -z "$AUTOCONF"; then enable_autoconf=no ; fi
19175if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi
19176if test x$enable_autoconf = xyes; then
19177 CONFIGURE_DEPENDS="configure.in aclocal.m4"
19178fi
19179
19180
19181ac_ext=c
19182ac_cpp='$CPP $CPPFLAGS'
19183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185ac_compiler_gnu=$ac_cv_c_compiler_gnu
19186if test -n "$ac_tool_prefix"; then
19187 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19188set dummy ${ac_tool_prefix}gcc; ac_word=$2
19189echo "$as_me:$LINENO: checking for $ac_word" >&5
19190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19191if test "${ac_cv_prog_CC+set}" = set; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19193else
19194 if test -n "$CC"; then
19195 ac_cv_prog_CC="$CC" # Let the user override the test.
19196else
19197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19198for as_dir in $PATH
19199do
19200 IFS=$as_save_IFS
19201 test -z "$as_dir" && as_dir=.
19202 for ac_exec_ext in '' $ac_executable_extensions; do
19203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19204 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19206 break 2
19207 fi
19208done
19209done
19210
19211fi
19212fi
19213CC=$ac_cv_prog_CC
19214if test -n "$CC"; then
19215 echo "$as_me:$LINENO: result: $CC" >&5
19216echo "${ECHO_T}$CC" >&6
19217else
19218 echo "$as_me:$LINENO: result: no" >&5
19219echo "${ECHO_T}no" >&6
19220fi
19221
19222fi
19223if test -z "$ac_cv_prog_CC"; then
19224 ac_ct_CC=$CC
19225 # Extract the first word of "gcc", so it can be a program name with args.
19226set dummy gcc; ac_word=$2
19227echo "$as_me:$LINENO: checking for $ac_word" >&5
19228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231else
19232 if test -n "$ac_ct_CC"; then
19233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19234else
19235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19236for as_dir in $PATH
19237do
19238 IFS=$as_save_IFS
19239 test -z "$as_dir" && as_dir=.
19240 for ac_exec_ext in '' $ac_executable_extensions; do
19241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19242 ac_cv_prog_ac_ct_CC="gcc"
19243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19244 break 2
19245 fi
19246done
19247done
19248
19249fi
19250fi
19251ac_ct_CC=$ac_cv_prog_ac_ct_CC
19252if test -n "$ac_ct_CC"; then
19253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19254echo "${ECHO_T}$ac_ct_CC" >&6
19255else
19256 echo "$as_me:$LINENO: result: no" >&5
19257echo "${ECHO_T}no" >&6
19258fi
19259
19260 CC=$ac_ct_CC
19261else
19262 CC="$ac_cv_prog_CC"
19263fi
19264
19265if test -z "$CC"; then
19266 if test -n "$ac_tool_prefix"; then
19267 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19268set dummy ${ac_tool_prefix}cc; ac_word=$2
19269echo "$as_me:$LINENO: checking for $ac_word" >&5
19270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19271if test "${ac_cv_prog_CC+set}" = set; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19273else
19274 if test -n "$CC"; then
19275 ac_cv_prog_CC="$CC" # Let the user override the test.
19276else
19277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278for as_dir in $PATH
19279do
19280 IFS=$as_save_IFS
19281 test -z "$as_dir" && as_dir=.
19282 for ac_exec_ext in '' $ac_executable_extensions; do
19283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19284 ac_cv_prog_CC="${ac_tool_prefix}cc"
19285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19286 break 2
19287 fi
19288done
19289done
19290
19291fi
19292fi
19293CC=$ac_cv_prog_CC
19294if test -n "$CC"; then
19295 echo "$as_me:$LINENO: result: $CC" >&5
19296echo "${ECHO_T}$CC" >&6
19297else
19298 echo "$as_me:$LINENO: result: no" >&5
19299echo "${ECHO_T}no" >&6
19300fi
19301
19302fi
19303if test -z "$ac_cv_prog_CC"; then
19304 ac_ct_CC=$CC
19305 # Extract the first word of "cc", so it can be a program name with args.
19306set dummy cc; ac_word=$2
19307echo "$as_me:$LINENO: checking for $ac_word" >&5
19308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19309if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19311else
19312 if test -n "$ac_ct_CC"; then
19313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19314else
19315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19316for as_dir in $PATH
19317do
19318 IFS=$as_save_IFS
19319 test -z "$as_dir" && as_dir=.
19320 for ac_exec_ext in '' $ac_executable_extensions; do
19321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19322 ac_cv_prog_ac_ct_CC="cc"
19323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19324 break 2
19325 fi
19326done
19327done
19328
19329fi
19330fi
19331ac_ct_CC=$ac_cv_prog_ac_ct_CC
19332if test -n "$ac_ct_CC"; then
19333 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19334echo "${ECHO_T}$ac_ct_CC" >&6
19335else
19336 echo "$as_me:$LINENO: result: no" >&5
19337echo "${ECHO_T}no" >&6
19338fi
19339
19340 CC=$ac_ct_CC
19341else
19342 CC="$ac_cv_prog_CC"
19343fi
19344
19345fi
19346if test -z "$CC"; then
19347 # Extract the first word of "cc", so it can be a program name with args.
19348set dummy cc; ac_word=$2
19349echo "$as_me:$LINENO: checking for $ac_word" >&5
19350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19351if test "${ac_cv_prog_CC+set}" = set; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19353else
19354 if test -n "$CC"; then
19355 ac_cv_prog_CC="$CC" # Let the user override the test.
19356else
19357 ac_prog_rejected=no
19358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19359for as_dir in $PATH
19360do
19361 IFS=$as_save_IFS
19362 test -z "$as_dir" && as_dir=.
19363 for ac_exec_ext in '' $ac_executable_extensions; do
19364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19366 ac_prog_rejected=yes
19367 continue
19368 fi
19369 ac_cv_prog_CC="cc"
19370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19371 break 2
19372 fi
19373done
19374done
19375
19376if test $ac_prog_rejected = yes; then
19377 # We found a bogon in the path, so make sure we never use it.
19378 set dummy $ac_cv_prog_CC
19379 shift
19380 if test $# != 0; then
19381 # We chose a different compiler from the bogus one.
19382 # However, it has the same basename, so the bogon will be chosen
19383 # first if we set CC to just the basename; use the full file name.
19384 shift
19385 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19386 fi
19387fi
19388fi
19389fi
19390CC=$ac_cv_prog_CC
19391if test -n "$CC"; then
19392 echo "$as_me:$LINENO: result: $CC" >&5
19393echo "${ECHO_T}$CC" >&6
19394else
19395 echo "$as_me:$LINENO: result: no" >&5
19396echo "${ECHO_T}no" >&6
19397fi
19398
19399fi
19400if test -z "$CC"; then
19401 if test -n "$ac_tool_prefix"; then
19402 for ac_prog in cl
19403 do
19404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19405set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19406echo "$as_me:$LINENO: checking for $ac_word" >&5
19407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19408if test "${ac_cv_prog_CC+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19410else
19411 if test -n "$CC"; then
19412 ac_cv_prog_CC="$CC" # Let the user override the test.
19413else
19414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19415for as_dir in $PATH
19416do
19417 IFS=$as_save_IFS
19418 test -z "$as_dir" && as_dir=.
19419 for ac_exec_ext in '' $ac_executable_extensions; do
19420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19423 break 2
19424 fi
19425done
19426done
19427
19428fi
19429fi
19430CC=$ac_cv_prog_CC
19431if test -n "$CC"; then
19432 echo "$as_me:$LINENO: result: $CC" >&5
19433echo "${ECHO_T}$CC" >&6
19434else
19435 echo "$as_me:$LINENO: result: no" >&5
19436echo "${ECHO_T}no" >&6
19437fi
19438
19439 test -n "$CC" && break
19440 done
19441fi
19442if test -z "$CC"; then
19443 ac_ct_CC=$CC
19444 for ac_prog in cl
19445do
19446 # Extract the first word of "$ac_prog", so it can be a program name with args.
19447set dummy $ac_prog; ac_word=$2
19448echo "$as_me:$LINENO: checking for $ac_word" >&5
19449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19450if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
19452else
19453 if test -n "$ac_ct_CC"; then
19454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19455else
19456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19457for as_dir in $PATH
19458do
19459 IFS=$as_save_IFS
19460 test -z "$as_dir" && as_dir=.
19461 for ac_exec_ext in '' $ac_executable_extensions; do
19462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19463 ac_cv_prog_ac_ct_CC="$ac_prog"
19464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19465 break 2
19466 fi
19467done
19468done
19469
19470fi
19471fi
19472ac_ct_CC=$ac_cv_prog_ac_ct_CC
19473if test -n "$ac_ct_CC"; then
19474 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19475echo "${ECHO_T}$ac_ct_CC" >&6
19476else
19477 echo "$as_me:$LINENO: result: no" >&5
19478echo "${ECHO_T}no" >&6
19479fi
19480
19481 test -n "$ac_ct_CC" && break
19482done
19483
19484 CC=$ac_ct_CC
19485fi
19486
19487fi
19488
19489
19490test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19491See \`config.log' for more details." >&5
19492echo "$as_me: error: no acceptable C compiler found in \$PATH
19493See \`config.log' for more details." >&2;}
19494 { (exit 1); exit 1; }; }
19495
19496# Provide some information about the compiler.
19497echo "$as_me:$LINENO:" \
19498 "checking for C compiler version" >&5
19499ac_compiler=`set X $ac_compile; echo $2`
19500{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19501 (eval $ac_compiler --version </dev/null >&5) 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }
19505{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19506 (eval $ac_compiler -v </dev/null >&5) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }
19510{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19511 (eval $ac_compiler -V </dev/null >&5) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }
19515
19516echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19517echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19518if test "${ac_cv_c_compiler_gnu+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19520else
19521 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000019522/* confdefs.h. */
19523_ACEOF
19524cat confdefs.h >>conftest.$ac_ext
19525cat >>conftest.$ac_ext <<_ACEOF
19526/* end confdefs.h. */
19527
19528int
19529main ()
19530{
19531#ifndef __GNUC__
19532 choke me
19533#endif
19534
19535 ;
19536 return 0;
19537}
19538_ACEOF
19539rm -f conftest.$ac_objext
19540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019541 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019542 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019548 { ac_try='test -z "$ac_c_werror_flag"
19549 || test ! -s conftest.err'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 ac_compiler_gnu=yes
19562else
19563 echo "$as_me: failed program was:" >&5
19564sed 's/^/| /' conftest.$ac_ext >&5
19565
19566ac_compiler_gnu=no
19567fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000019569ac_cv_c_compiler_gnu=$ac_compiler_gnu
19570
19571fi
19572echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19573echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19574GCC=`test $ac_compiler_gnu = yes && echo yes`
19575ac_test_CFLAGS=${CFLAGS+set}
19576ac_save_CFLAGS=$CFLAGS
19577CFLAGS="-g"
19578echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19579echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19580if test "${ac_cv_prog_cc_g+set}" = set; then
19581 echo $ECHO_N "(cached) $ECHO_C" >&6
19582else
19583 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000019584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
19589
19590int
19591main ()
19592{
19593
19594 ;
19595 return 0;
19596}
19597_ACEOF
19598rm -f conftest.$ac_objext
19599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019600 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019601 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019602 grep -v '^ *+' conftest.er1 >conftest.err
19603 rm -f conftest.er1
19604 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019607 { ac_try='test -z "$ac_c_werror_flag"
19608 || test ! -s conftest.err'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; } &&
19614 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; }; then
19620 ac_cv_prog_cc_g=yes
19621else
19622 echo "$as_me: failed program was:" >&5
19623sed 's/^/| /' conftest.$ac_ext >&5
19624
19625ac_cv_prog_cc_g=no
19626fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000019628fi
19629echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19630echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19631if test "$ac_test_CFLAGS" = set; then
19632 CFLAGS=$ac_save_CFLAGS
19633elif test $ac_cv_prog_cc_g = yes; then
19634 if test "$GCC" = yes; then
19635 CFLAGS="-g -O2"
19636 else
19637 CFLAGS="-g"
19638 fi
19639else
19640 if test "$GCC" = yes; then
19641 CFLAGS="-O2"
19642 else
19643 CFLAGS=
19644 fi
19645fi
19646echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19647echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19648if test "${ac_cv_prog_cc_stdc+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19650else
19651 ac_cv_prog_cc_stdc=no
19652ac_save_CC=$CC
19653cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000019654/* confdefs.h. */
19655_ACEOF
19656cat confdefs.h >>conftest.$ac_ext
19657cat >>conftest.$ac_ext <<_ACEOF
19658/* end confdefs.h. */
19659#include <stdarg.h>
19660#include <stdio.h>
19661#include <sys/types.h>
19662#include <sys/stat.h>
19663/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19664struct buf { int x; };
19665FILE * (*rcsopen) (struct buf *, struct stat *, int);
19666static char *e (p, i)
19667 char **p;
19668 int i;
19669{
19670 return p[i];
19671}
19672static char *f (char * (*g) (char **, int), char **p, ...)
19673{
19674 char *s;
19675 va_list v;
19676 va_start (v,p);
19677 s = g (p, va_arg (v,int));
19678 va_end (v);
19679 return s;
19680}
Lev Walkin8e8b5482004-06-17 23:42:48 +000019681
19682/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19683 function prototypes and stuff, but not '\xHH' hex character constants.
19684 These don't provoke an error unfortunately, instead are silently treated
19685 as 'x'. The following induces an error, until -std1 is added to get
19686 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19687 array size at least. It's necessary to write '\x00'==0 to get something
19688 that's true only with -std1. */
19689int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19690
Lev Walkinf15320b2004-06-03 03:38:44 +000019691int test (int i, double x);
19692struct s1 {int (*f) (int a);};
19693struct s2 {int (*f) (double a);};
19694int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19695int argc;
19696char **argv;
19697int
19698main ()
19699{
19700return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19701 ;
19702 return 0;
19703}
19704_ACEOF
19705# Don't try gcc -ansi; that turns off useful extensions and
19706# breaks some systems' header files.
19707# AIX -qlanglvl=ansi
19708# Ultrix and OSF/1 -std1
19709# HP-UX 10.20 and later -Ae
19710# HP-UX older versions -Aa -D_HPUX_SOURCE
19711# SVR4 -Xc -D__EXTENSIONS__
19712for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19713do
19714 CC="$ac_save_CC $ac_arg"
19715 rm -f conftest.$ac_objext
19716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019717 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019718 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019724 { ac_try='test -z "$ac_c_werror_flag"
19725 || test ! -s conftest.err'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_cv_prog_cc_stdc=$ac_arg
19738break
19739else
19740 echo "$as_me: failed program was:" >&5
19741sed 's/^/| /' conftest.$ac_ext >&5
19742
19743fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019744rm -f conftest.err conftest.$ac_objext
Lev Walkinf15320b2004-06-03 03:38:44 +000019745done
19746rm -f conftest.$ac_ext conftest.$ac_objext
19747CC=$ac_save_CC
19748
19749fi
19750
19751case "x$ac_cv_prog_cc_stdc" in
19752 x|xno)
19753 echo "$as_me:$LINENO: result: none needed" >&5
19754echo "${ECHO_T}none needed" >&6 ;;
19755 *)
19756 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19757echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19758 CC="$CC $ac_cv_prog_cc_stdc" ;;
19759esac
19760
19761# Some people use a C++ compiler to compile C. Since we use `exit',
19762# in C++ we need to declare it. In case someone uses the same compiler
19763# for both compiling C and C++ we need to have the C++ compiler decide
19764# the declaration of exit, since it's the most demanding environment.
19765cat >conftest.$ac_ext <<_ACEOF
19766#ifndef __cplusplus
19767 choke me
19768#endif
19769_ACEOF
19770rm -f conftest.$ac_objext
19771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019772 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019773 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019779 { ac_try='test -z "$ac_c_werror_flag"
19780 || test ! -s conftest.err'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 for ac_declaration in \
Lev Walkin8e8b5482004-06-17 23:42:48 +000019793 '' \
Lev Walkinf15320b2004-06-03 03:38:44 +000019794 'extern "C" void std::exit (int) throw (); using std::exit;' \
19795 'extern "C" void std::exit (int); using std::exit;' \
19796 'extern "C" void exit (int) throw ();' \
19797 'extern "C" void exit (int);' \
19798 'void exit (int);'
19799do
19800 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000019801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h. */
Lev Walkinf15320b2004-06-03 03:38:44 +000019806$ac_declaration
Lev Walkin8e8b5482004-06-17 23:42:48 +000019807#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000019808int
19809main ()
19810{
19811exit (42);
19812 ;
19813 return 0;
19814}
19815_ACEOF
19816rm -f conftest.$ac_objext
19817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019818 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019819 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019825 { ac_try='test -z "$ac_c_werror_flag"
19826 || test ! -s conftest.err'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19838 :
19839else
19840 echo "$as_me: failed program was:" >&5
19841sed 's/^/| /' conftest.$ac_ext >&5
19842
19843continue
19844fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000019846 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000019847/* confdefs.h. */
19848_ACEOF
19849cat confdefs.h >>conftest.$ac_ext
19850cat >>conftest.$ac_ext <<_ACEOF
19851/* end confdefs.h. */
19852$ac_declaration
19853int
19854main ()
19855{
19856exit (42);
19857 ;
19858 return 0;
19859}
19860_ACEOF
19861rm -f conftest.$ac_objext
19862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000019863 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000019864 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000019865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000019868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000019870 { ac_try='test -z "$ac_c_werror_flag"
19871 || test ! -s conftest.err'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000019878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 break
19884else
19885 echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000019890done
19891rm -f conftest*
19892if test -n "$ac_declaration"; then
19893 echo '#ifdef __cplusplus' >>confdefs.h
19894 echo $ac_declaration >>confdefs.h
19895 echo '#endif' >>confdefs.h
19896fi
19897
19898else
19899 echo "$as_me: failed program was:" >&5
19900sed 's/^/| /' conftest.$ac_ext >&5
19901
19902fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000019903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000019904ac_ext=c
19905ac_cpp='$CPP $CPPFLAGS'
19906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19908ac_compiler_gnu=$ac_cv_c_compiler_gnu
19909
19910depcc="$CC" am_compiler_list=
19911
19912echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19913echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19914if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916else
19917 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19918 # We make a subdir and do the tests there. Otherwise we can end up
19919 # making bogus files that we don't know about and never remove. For
19920 # instance it was reported that on HP-UX the gcc test will end up
19921 # making a dummy file named `D' -- because `-MD' means `put the output
19922 # in D'.
19923 mkdir conftest.dir
19924 # Copy depcomp to subdir because otherwise we won't find it if we're
19925 # using a relative directory.
19926 cp "$am_depcomp" conftest.dir
19927 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +000019928 # We will build objects and dependencies in a subdirectory because
19929 # it helps to detect inapplicable dependency modes. For instance
19930 # both Tru64's cc and ICC support -MD to output dependencies as a
19931 # side effect of compilation, but ICC will put the dependencies in
19932 # the current directory while Tru64 will put them in the object
19933 # directory.
19934 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +000019935
19936 am_cv_CC_dependencies_compiler_type=none
19937 if test "$am_compiler_list" = ""; then
19938 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19939 fi
19940 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000019941 # Setup a source with many dependencies, because some compilers
19942 # like to wrap large dependency lists on column 80 (with \), and
19943 # we should not choose a depcomp mode which is confused by this.
19944 #
Lev Walkinf15320b2004-06-03 03:38:44 +000019945 # We need to recreate these files for each test, as the compiler may
19946 # overwrite some of them when testing with obscure command lines.
19947 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +000019948 : > sub/conftest.c
19949 for i in 1 2 3 4 5 6; do
19950 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19951 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19952 # Solaris 8's {/usr,}/bin/sh.
19953 touch sub/conftst$i.h
19954 done
19955 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +000019956
19957 case $depmode in
19958 nosideeffect)
19959 # after this tag, mechanisms are not by side-effect, so they'll
19960 # only be used when explicitly requested
19961 if test "x$enable_dependency_tracking" = xyes; then
19962 continue
19963 else
19964 break
19965 fi
19966 ;;
19967 none) break ;;
19968 esac
19969 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19970 # mode. It turns out that the SunPro C++ compiler does not properly
19971 # handle `-M -o', and we need to detect this.
19972 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +000019973 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19974 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19975 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19976 >/dev/null 2>conftest.err &&
19977 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19978 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +000019979 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000019980 # icc doesn't choke on unknown options, it will just issue warnings
19981 # or remarks (even with -Werror). So we grep stderr for any message
19982 # that says an option was ignored or not supported.
19983 # When given -MP, icc 7.0 and 7.1 complain thusly:
19984 # icc: Command line warning: ignoring option '-M'; no argument required
19985 # The diagnosis changed in icc 8.0:
19986 # icc: Command line remark: option '-MP' not supported
19987 if (grep 'ignoring option' conftest.err ||
19988 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19989 am_cv_CC_dependencies_compiler_type=$depmode
19990 break
19991 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000019992 fi
19993 done
19994
19995 cd ..
19996 rm -rf conftest.dir
19997else
19998 am_cv_CC_dependencies_compiler_type=none
19999fi
20000
20001fi
20002echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20003echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000020004CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20005
20006
20007
20008if
20009 test "x$enable_dependency_tracking" != xno \
20010 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20011 am__fastdepCC_TRUE=
20012 am__fastdepCC_FALSE='#'
20013else
20014 am__fastdepCC_TRUE='#'
20015 am__fastdepCC_FALSE=
20016fi
Lev Walkinf15320b2004-06-03 03:38:44 +000020017
20018
20019ac_ext=c
20020ac_cpp='$CPP $CPPFLAGS'
20021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20023ac_compiler_gnu=$ac_cv_c_compiler_gnu
20024echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
20025echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
20026# On Suns, sometimes $CPP names a directory.
20027if test -n "$CPP" && test -d "$CPP"; then
20028 CPP=
20029fi
20030if test -z "$CPP"; then
20031 if test "${ac_cv_prog_CPP+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20033else
20034 # Double quotes because CPP needs to be expanded
20035 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
20036 do
20037 ac_preproc_ok=false
20038for ac_c_preproc_warn_flag in '' yes
20039do
20040 # Use a header file that comes with gcc, so configuring glibc
20041 # with a fresh cross-compiler works.
20042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20043 # <limits.h> exists even on freestanding compilers.
20044 # On the NeXT, cc -E runs the code through the compiler's parser,
20045 # not just through cpp. "Syntax error" is here to catch this case.
20046 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000020047/* confdefs.h. */
20048_ACEOF
20049cat confdefs.h >>conftest.$ac_ext
20050cat >>conftest.$ac_ext <<_ACEOF
20051/* end confdefs.h. */
20052#ifdef __STDC__
20053# include <limits.h>
20054#else
20055# include <assert.h>
20056#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000020057 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000020058_ACEOF
20059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20061 ac_status=$?
20062 grep -v '^ *+' conftest.er1 >conftest.err
20063 rm -f conftest.er1
20064 cat conftest.err >&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } >/dev/null; then
20067 if test -s conftest.err; then
20068 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000020069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000020070 else
20071 ac_cpp_err=
20072 fi
20073else
20074 ac_cpp_err=yes
20075fi
20076if test -z "$ac_cpp_err"; then
20077 :
20078else
20079 echo "$as_me: failed program was:" >&5
20080sed 's/^/| /' conftest.$ac_ext >&5
20081
20082 # Broken: fails on valid input.
20083continue
20084fi
20085rm -f conftest.err conftest.$ac_ext
20086
20087 # OK, works on sane cases. Now check whether non-existent headers
20088 # can be detected and how.
20089 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000020090/* confdefs.h. */
20091_ACEOF
20092cat confdefs.h >>conftest.$ac_ext
20093cat >>conftest.$ac_ext <<_ACEOF
20094/* end confdefs.h. */
20095#include <ac_nonexistent.h>
20096_ACEOF
20097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20099 ac_status=$?
20100 grep -v '^ *+' conftest.er1 >conftest.err
20101 rm -f conftest.er1
20102 cat conftest.err >&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } >/dev/null; then
20105 if test -s conftest.err; then
20106 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000020107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000020108 else
20109 ac_cpp_err=
20110 fi
20111else
20112 ac_cpp_err=yes
20113fi
20114if test -z "$ac_cpp_err"; then
20115 # Broken: success on invalid input.
20116continue
20117else
20118 echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121 # Passes both tests.
20122ac_preproc_ok=:
20123break
20124fi
20125rm -f conftest.err conftest.$ac_ext
20126
20127done
20128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20129rm -f conftest.err conftest.$ac_ext
20130if $ac_preproc_ok; then
20131 break
20132fi
20133
20134 done
20135 ac_cv_prog_CPP=$CPP
20136
20137fi
20138 CPP=$ac_cv_prog_CPP
20139else
20140 ac_cv_prog_CPP=$CPP
20141fi
20142echo "$as_me:$LINENO: result: $CPP" >&5
20143echo "${ECHO_T}$CPP" >&6
20144ac_preproc_ok=false
20145for ac_c_preproc_warn_flag in '' yes
20146do
20147 # Use a header file that comes with gcc, so configuring glibc
20148 # with a fresh cross-compiler works.
20149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20150 # <limits.h> exists even on freestanding compilers.
20151 # On the NeXT, cc -E runs the code through the compiler's parser,
20152 # not just through cpp. "Syntax error" is here to catch this case.
20153 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000020154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
20158/* end confdefs.h. */
20159#ifdef __STDC__
20160# include <limits.h>
20161#else
20162# include <assert.h>
20163#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000020164 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000020165_ACEOF
20166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20168 ac_status=$?
20169 grep -v '^ *+' conftest.er1 >conftest.err
20170 rm -f conftest.er1
20171 cat conftest.err >&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } >/dev/null; then
20174 if test -s conftest.err; then
20175 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000020176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000020177 else
20178 ac_cpp_err=
20179 fi
20180else
20181 ac_cpp_err=yes
20182fi
20183if test -z "$ac_cpp_err"; then
20184 :
20185else
20186 echo "$as_me: failed program was:" >&5
20187sed 's/^/| /' conftest.$ac_ext >&5
20188
20189 # Broken: fails on valid input.
20190continue
20191fi
20192rm -f conftest.err conftest.$ac_ext
20193
20194 # OK, works on sane cases. Now check whether non-existent headers
20195 # can be detected and how.
20196 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000020197/* confdefs.h. */
20198_ACEOF
20199cat confdefs.h >>conftest.$ac_ext
20200cat >>conftest.$ac_ext <<_ACEOF
20201/* end confdefs.h. */
20202#include <ac_nonexistent.h>
20203_ACEOF
20204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20206 ac_status=$?
20207 grep -v '^ *+' conftest.er1 >conftest.err
20208 rm -f conftest.er1
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } >/dev/null; then
20212 if test -s conftest.err; then
20213 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000020214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000020215 else
20216 ac_cpp_err=
20217 fi
20218else
20219 ac_cpp_err=yes
20220fi
20221if test -z "$ac_cpp_err"; then
20222 # Broken: success on invalid input.
20223continue
20224else
20225 echo "$as_me: failed program was:" >&5
20226sed 's/^/| /' conftest.$ac_ext >&5
20227
20228 # Passes both tests.
20229ac_preproc_ok=:
20230break
20231fi
20232rm -f conftest.err conftest.$ac_ext
20233
20234done
20235# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20236rm -f conftest.err conftest.$ac_ext
20237if $ac_preproc_ok; then
20238 :
20239else
20240 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
20241See \`config.log' for more details." >&5
20242echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
20243See \`config.log' for more details." >&2;}
20244 { (exit 1); exit 1; }; }
20245fi
20246
20247ac_ext=c
20248ac_cpp='$CPP $CPPFLAGS'
20249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20251ac_compiler_gnu=$ac_cv_c_compiler_gnu
20252
Lev Walkind8b940c2004-08-11 05:35:51 +000020253ac_ext=cc
20254ac_cpp='$CXXCPP $CPPFLAGS'
20255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20258if test -n "$ac_tool_prefix"; then
20259 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20260 do
20261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20262set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20263echo "$as_me:$LINENO: checking for $ac_word" >&5
20264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20265if test "${ac_cv_prog_CXX+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20267else
20268 if test -n "$CXX"; then
20269 ac_cv_prog_CXX="$CXX" # Let the user override the test.
20270else
20271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20272for as_dir in $PATH
20273do
20274 IFS=$as_save_IFS
20275 test -z "$as_dir" && as_dir=.
20276 for ac_exec_ext in '' $ac_executable_extensions; do
20277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20278 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20280 break 2
20281 fi
20282done
20283done
20284
20285fi
20286fi
20287CXX=$ac_cv_prog_CXX
20288if test -n "$CXX"; then
20289 echo "$as_me:$LINENO: result: $CXX" >&5
20290echo "${ECHO_T}$CXX" >&6
20291else
20292 echo "$as_me:$LINENO: result: no" >&5
20293echo "${ECHO_T}no" >&6
20294fi
20295
20296 test -n "$CXX" && break
20297 done
20298fi
20299if test -z "$CXX"; then
20300 ac_ct_CXX=$CXX
20301 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20302do
20303 # Extract the first word of "$ac_prog", so it can be a program name with args.
20304set dummy $ac_prog; ac_word=$2
20305echo "$as_me:$LINENO: checking for $ac_word" >&5
20306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20307if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20308 echo $ECHO_N "(cached) $ECHO_C" >&6
20309else
20310 if test -n "$ac_ct_CXX"; then
20311 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20312else
20313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20314for as_dir in $PATH
20315do
20316 IFS=$as_save_IFS
20317 test -z "$as_dir" && as_dir=.
20318 for ac_exec_ext in '' $ac_executable_extensions; do
20319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20320 ac_cv_prog_ac_ct_CXX="$ac_prog"
20321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20322 break 2
20323 fi
20324done
20325done
20326
20327fi
20328fi
20329ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20330if test -n "$ac_ct_CXX"; then
20331 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20332echo "${ECHO_T}$ac_ct_CXX" >&6
20333else
20334 echo "$as_me:$LINENO: result: no" >&5
20335echo "${ECHO_T}no" >&6
20336fi
20337
20338 test -n "$ac_ct_CXX" && break
20339done
20340test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
20341
20342 CXX=$ac_ct_CXX
20343fi
20344
20345
20346# Provide some information about the compiler.
20347echo "$as_me:$LINENO:" \
20348 "checking for C++ compiler version" >&5
20349ac_compiler=`set X $ac_compile; echo $2`
20350{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20351 (eval $ac_compiler --version </dev/null >&5) 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }
20355{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20356 (eval $ac_compiler -v </dev/null >&5) 2>&5
20357 ac_status=$?
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }
20360{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20361 (eval $ac_compiler -V </dev/null >&5) 2>&5
20362 ac_status=$?
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }
20365
20366echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20367echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
20368if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20370else
20371 cat >conftest.$ac_ext <<_ACEOF
20372/* confdefs.h. */
20373_ACEOF
20374cat confdefs.h >>conftest.$ac_ext
20375cat >>conftest.$ac_ext <<_ACEOF
20376/* end confdefs.h. */
20377
20378int
20379main ()
20380{
20381#ifndef __GNUC__
20382 choke me
20383#endif
20384
20385 ;
20386 return 0;
20387}
20388_ACEOF
20389rm -f conftest.$ac_objext
20390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20391 (eval $ac_compile) 2>conftest.er1
20392 ac_status=$?
20393 grep -v '^ *+' conftest.er1 >conftest.err
20394 rm -f conftest.er1
20395 cat conftest.err >&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } &&
20398 { ac_try='test -z "$ac_cxx_werror_flag"
20399 || test ! -s conftest.err'
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; } &&
20405 { ac_try='test -s conftest.$ac_objext'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 ac_compiler_gnu=yes
20412else
20413 echo "$as_me: failed program was:" >&5
20414sed 's/^/| /' conftest.$ac_ext >&5
20415
20416ac_compiler_gnu=no
20417fi
20418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20419ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20420
20421fi
20422echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20423echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
20424GXX=`test $ac_compiler_gnu = yes && echo yes`
20425ac_test_CXXFLAGS=${CXXFLAGS+set}
20426ac_save_CXXFLAGS=$CXXFLAGS
20427CXXFLAGS="-g"
20428echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20429echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
20430if test "${ac_cv_prog_cxx_g+set}" = set; then
20431 echo $ECHO_N "(cached) $ECHO_C" >&6
20432else
20433 cat >conftest.$ac_ext <<_ACEOF
20434/* confdefs.h. */
20435_ACEOF
20436cat confdefs.h >>conftest.$ac_ext
20437cat >>conftest.$ac_ext <<_ACEOF
20438/* end confdefs.h. */
20439
20440int
20441main ()
20442{
20443
20444 ;
20445 return 0;
20446}
20447_ACEOF
20448rm -f conftest.$ac_objext
20449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20450 (eval $ac_compile) 2>conftest.er1
20451 ac_status=$?
20452 grep -v '^ *+' conftest.er1 >conftest.err
20453 rm -f conftest.er1
20454 cat conftest.err >&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } &&
20457 { ac_try='test -z "$ac_cxx_werror_flag"
20458 || test ! -s conftest.err'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; } &&
20464 { ac_try='test -s conftest.$ac_objext'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20470 ac_cv_prog_cxx_g=yes
20471else
20472 echo "$as_me: failed program was:" >&5
20473sed 's/^/| /' conftest.$ac_ext >&5
20474
20475ac_cv_prog_cxx_g=no
20476fi
20477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20478fi
20479echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20480echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
20481if test "$ac_test_CXXFLAGS" = set; then
20482 CXXFLAGS=$ac_save_CXXFLAGS
20483elif test $ac_cv_prog_cxx_g = yes; then
20484 if test "$GXX" = yes; then
20485 CXXFLAGS="-g -O2"
20486 else
20487 CXXFLAGS="-g"
20488 fi
20489else
20490 if test "$GXX" = yes; then
20491 CXXFLAGS="-O2"
20492 else
20493 CXXFLAGS=
20494 fi
20495fi
20496for ac_declaration in \
20497 '' \
20498 'extern "C" void std::exit (int) throw (); using std::exit;' \
20499 'extern "C" void std::exit (int); using std::exit;' \
20500 'extern "C" void exit (int) throw ();' \
20501 'extern "C" void exit (int);' \
20502 'void exit (int);'
20503do
20504 cat >conftest.$ac_ext <<_ACEOF
20505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h. */
20510$ac_declaration
20511#include <stdlib.h>
20512int
20513main ()
20514{
20515exit (42);
20516 ;
20517 return 0;
20518}
20519_ACEOF
20520rm -f conftest.$ac_objext
20521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20522 (eval $ac_compile) 2>conftest.er1
20523 ac_status=$?
20524 grep -v '^ *+' conftest.er1 >conftest.err
20525 rm -f conftest.er1
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try='test -z "$ac_cxx_werror_flag"
20530 || test ! -s conftest.err'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20533 ac_status=$?
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; } &&
20536 { ac_try='test -s conftest.$ac_objext'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; }; then
20542 :
20543else
20544 echo "$as_me: failed program was:" >&5
20545sed 's/^/| /' conftest.$ac_ext >&5
20546
20547continue
20548fi
20549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20550 cat >conftest.$ac_ext <<_ACEOF
20551/* confdefs.h. */
20552_ACEOF
20553cat confdefs.h >>conftest.$ac_ext
20554cat >>conftest.$ac_ext <<_ACEOF
20555/* end confdefs.h. */
20556$ac_declaration
20557int
20558main ()
20559{
20560exit (42);
20561 ;
20562 return 0;
20563}
20564_ACEOF
20565rm -f conftest.$ac_objext
20566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20567 (eval $ac_compile) 2>conftest.er1
20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } &&
20574 { ac_try='test -z "$ac_cxx_werror_flag"
20575 || test ! -s conftest.err'
20576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20578 ac_status=$?
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; } &&
20581 { ac_try='test -s conftest.$ac_objext'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
20587 break
20588else
20589 echo "$as_me: failed program was:" >&5
20590sed 's/^/| /' conftest.$ac_ext >&5
20591
20592fi
20593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20594done
20595rm -f conftest*
20596if test -n "$ac_declaration"; then
20597 echo '#ifdef __cplusplus' >>confdefs.h
20598 echo $ac_declaration >>confdefs.h
20599 echo '#endif' >>confdefs.h
20600fi
20601
20602ac_ext=c
20603ac_cpp='$CPP $CPPFLAGS'
20604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20606ac_compiler_gnu=$ac_cv_c_compiler_gnu
20607
20608depcc="$CXX" am_compiler_list=
20609
20610echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20611echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20612if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20614else
20615 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20616 # We make a subdir and do the tests there. Otherwise we can end up
20617 # making bogus files that we don't know about and never remove. For
20618 # instance it was reported that on HP-UX the gcc test will end up
20619 # making a dummy file named `D' -- because `-MD' means `put the output
20620 # in D'.
20621 mkdir conftest.dir
20622 # Copy depcomp to subdir because otherwise we won't find it if we're
20623 # using a relative directory.
20624 cp "$am_depcomp" conftest.dir
20625 cd conftest.dir
20626 # We will build objects and dependencies in a subdirectory because
20627 # it helps to detect inapplicable dependency modes. For instance
20628 # both Tru64's cc and ICC support -MD to output dependencies as a
20629 # side effect of compilation, but ICC will put the dependencies in
20630 # the current directory while Tru64 will put them in the object
20631 # directory.
20632 mkdir sub
20633
20634 am_cv_CXX_dependencies_compiler_type=none
20635 if test "$am_compiler_list" = ""; then
20636 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20637 fi
20638 for depmode in $am_compiler_list; do
20639 # Setup a source with many dependencies, because some compilers
20640 # like to wrap large dependency lists on column 80 (with \), and
20641 # we should not choose a depcomp mode which is confused by this.
20642 #
20643 # We need to recreate these files for each test, as the compiler may
20644 # overwrite some of them when testing with obscure command lines.
20645 # This happens at least with the AIX C compiler.
20646 : > sub/conftest.c
20647 for i in 1 2 3 4 5 6; do
20648 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20649 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20650 # Solaris 8's {/usr,}/bin/sh.
20651 touch sub/conftst$i.h
20652 done
20653 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20654
20655 case $depmode in
20656 nosideeffect)
20657 # after this tag, mechanisms are not by side-effect, so they'll
20658 # only be used when explicitly requested
20659 if test "x$enable_dependency_tracking" = xyes; then
20660 continue
20661 else
20662 break
20663 fi
20664 ;;
20665 none) break ;;
20666 esac
20667 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20668 # mode. It turns out that the SunPro C++ compiler does not properly
20669 # handle `-M -o', and we need to detect this.
20670 if depmode=$depmode \
20671 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20673 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20674 >/dev/null 2>conftest.err &&
20675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20676 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20678 # icc doesn't choke on unknown options, it will just issue warnings
20679 # or remarks (even with -Werror). So we grep stderr for any message
20680 # that says an option was ignored or not supported.
20681 # When given -MP, icc 7.0 and 7.1 complain thusly:
20682 # icc: Command line warning: ignoring option '-M'; no argument required
20683 # The diagnosis changed in icc 8.0:
20684 # icc: Command line remark: option '-MP' not supported
20685 if (grep 'ignoring option' conftest.err ||
20686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20687 am_cv_CXX_dependencies_compiler_type=$depmode
20688 break
20689 fi
20690 fi
20691 done
20692
20693 cd ..
20694 rm -rf conftest.dir
20695else
20696 am_cv_CXX_dependencies_compiler_type=none
20697fi
20698
20699fi
20700echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20701echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
20702CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20703
20704
20705
20706if
20707 test "x$enable_dependency_tracking" != xno \
20708 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20709 am__fastdepCXX_TRUE=
20710 am__fastdepCXX_FALSE='#'
20711else
20712 am__fastdepCXX_TRUE='#'
20713 am__fastdepCXX_FALSE=
20714fi
20715
20716
20717ac_ext=cc
20718ac_cpp='$CXXCPP $CPPFLAGS'
20719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20722echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20723echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20724if test -z "$CXXCPP"; then
20725 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
20727else
20728 # Double quotes because CXXCPP needs to be expanded
20729 for CXXCPP in "$CXX -E" "/lib/cpp"
20730 do
20731 ac_preproc_ok=false
20732for ac_cxx_preproc_warn_flag in '' yes
20733do
20734 # Use a header file that comes with gcc, so configuring glibc
20735 # with a fresh cross-compiler works.
20736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20737 # <limits.h> exists even on freestanding compilers.
20738 # On the NeXT, cc -E runs the code through the compiler's parser,
20739 # not just through cpp. "Syntax error" is here to catch this case.
20740 cat >conftest.$ac_ext <<_ACEOF
20741/* confdefs.h. */
20742_ACEOF
20743cat confdefs.h >>conftest.$ac_ext
20744cat >>conftest.$ac_ext <<_ACEOF
20745/* end confdefs.h. */
20746#ifdef __STDC__
20747# include <limits.h>
20748#else
20749# include <assert.h>
20750#endif
20751 Syntax error
20752_ACEOF
20753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20755 ac_status=$?
20756 grep -v '^ *+' conftest.er1 >conftest.err
20757 rm -f conftest.er1
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } >/dev/null; then
20761 if test -s conftest.err; then
20762 ac_cpp_err=$ac_cxx_preproc_warn_flag
20763 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20764 else
20765 ac_cpp_err=
20766 fi
20767else
20768 ac_cpp_err=yes
20769fi
20770if test -z "$ac_cpp_err"; then
20771 :
20772else
20773 echo "$as_me: failed program was:" >&5
20774sed 's/^/| /' conftest.$ac_ext >&5
20775
20776 # Broken: fails on valid input.
20777continue
20778fi
20779rm -f conftest.err conftest.$ac_ext
20780
20781 # OK, works on sane cases. Now check whether non-existent headers
20782 # can be detected and how.
20783 cat >conftest.$ac_ext <<_ACEOF
20784/* confdefs.h. */
20785_ACEOF
20786cat confdefs.h >>conftest.$ac_ext
20787cat >>conftest.$ac_ext <<_ACEOF
20788/* end confdefs.h. */
20789#include <ac_nonexistent.h>
20790_ACEOF
20791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20793 ac_status=$?
20794 grep -v '^ *+' conftest.er1 >conftest.err
20795 rm -f conftest.er1
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } >/dev/null; then
20799 if test -s conftest.err; then
20800 ac_cpp_err=$ac_cxx_preproc_warn_flag
20801 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20802 else
20803 ac_cpp_err=
20804 fi
20805else
20806 ac_cpp_err=yes
20807fi
20808if test -z "$ac_cpp_err"; then
20809 # Broken: success on invalid input.
20810continue
20811else
20812 echo "$as_me: failed program was:" >&5
20813sed 's/^/| /' conftest.$ac_ext >&5
20814
20815 # Passes both tests.
20816ac_preproc_ok=:
20817break
20818fi
20819rm -f conftest.err conftest.$ac_ext
20820
20821done
20822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20823rm -f conftest.err conftest.$ac_ext
20824if $ac_preproc_ok; then
20825 break
20826fi
20827
20828 done
20829 ac_cv_prog_CXXCPP=$CXXCPP
20830
20831fi
20832 CXXCPP=$ac_cv_prog_CXXCPP
20833else
20834 ac_cv_prog_CXXCPP=$CXXCPP
20835fi
20836echo "$as_me:$LINENO: result: $CXXCPP" >&5
20837echo "${ECHO_T}$CXXCPP" >&6
20838ac_preproc_ok=false
20839for ac_cxx_preproc_warn_flag in '' yes
20840do
20841 # Use a header file that comes with gcc, so configuring glibc
20842 # with a fresh cross-compiler works.
20843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20844 # <limits.h> exists even on freestanding compilers.
20845 # On the NeXT, cc -E runs the code through the compiler's parser,
20846 # not just through cpp. "Syntax error" is here to catch this case.
20847 cat >conftest.$ac_ext <<_ACEOF
20848/* confdefs.h. */
20849_ACEOF
20850cat confdefs.h >>conftest.$ac_ext
20851cat >>conftest.$ac_ext <<_ACEOF
20852/* end confdefs.h. */
20853#ifdef __STDC__
20854# include <limits.h>
20855#else
20856# include <assert.h>
20857#endif
20858 Syntax error
20859_ACEOF
20860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20862 ac_status=$?
20863 grep -v '^ *+' conftest.er1 >conftest.err
20864 rm -f conftest.er1
20865 cat conftest.err >&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } >/dev/null; then
20868 if test -s conftest.err; then
20869 ac_cpp_err=$ac_cxx_preproc_warn_flag
20870 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20871 else
20872 ac_cpp_err=
20873 fi
20874else
20875 ac_cpp_err=yes
20876fi
20877if test -z "$ac_cpp_err"; then
20878 :
20879else
20880 echo "$as_me: failed program was:" >&5
20881sed 's/^/| /' conftest.$ac_ext >&5
20882
20883 # Broken: fails on valid input.
20884continue
20885fi
20886rm -f conftest.err conftest.$ac_ext
20887
20888 # OK, works on sane cases. Now check whether non-existent headers
20889 # can be detected and how.
20890 cat >conftest.$ac_ext <<_ACEOF
20891/* confdefs.h. */
20892_ACEOF
20893cat confdefs.h >>conftest.$ac_ext
20894cat >>conftest.$ac_ext <<_ACEOF
20895/* end confdefs.h. */
20896#include <ac_nonexistent.h>
20897_ACEOF
20898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20900 ac_status=$?
20901 grep -v '^ *+' conftest.er1 >conftest.err
20902 rm -f conftest.er1
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } >/dev/null; then
20906 if test -s conftest.err; then
20907 ac_cpp_err=$ac_cxx_preproc_warn_flag
20908 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20909 else
20910 ac_cpp_err=
20911 fi
20912else
20913 ac_cpp_err=yes
20914fi
20915if test -z "$ac_cpp_err"; then
20916 # Broken: success on invalid input.
20917continue
20918else
20919 echo "$as_me: failed program was:" >&5
20920sed 's/^/| /' conftest.$ac_ext >&5
20921
20922 # Passes both tests.
20923ac_preproc_ok=:
20924break
20925fi
20926rm -f conftest.err conftest.$ac_ext
20927
20928done
20929# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20930rm -f conftest.err conftest.$ac_ext
20931if $ac_preproc_ok; then
20932 :
20933else
20934 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20935See \`config.log' for more details." >&5
20936echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20937See \`config.log' for more details." >&2;}
20938 { (exit 1); exit 1; }; }
20939fi
20940
20941ac_ext=c
20942ac_cpp='$CPP $CPPFLAGS'
20943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945ac_compiler_gnu=$ac_cv_c_compiler_gnu
20946
20947
20948
20949if test -n "$ac_ct_CXX"; then
20950 CPLUSPLUS_FOUND_TRUE=
20951 CPLUSPLUS_FOUND_FALSE='#'
20952else
20953 CPLUSPLUS_FOUND_TRUE='#'
20954 CPLUSPLUS_FOUND_FALSE=
20955fi
20956
Lev Walkinf15320b2004-06-03 03:38:44 +000020957# Find a good install program. We prefer a C program (faster),
20958# so one script is as good as another. But avoid the broken or
20959# incompatible versions:
20960# SysV /etc/install, /usr/sbin/install
20961# SunOS /usr/etc/install
20962# IRIX /sbin/install
20963# AIX /bin/install
20964# AmigaOS /C/install, which installs bootblocks on floppy discs
20965# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20966# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20967# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +000020968# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +000020969# ./install, which can be erroneously created by make from ./install.sh.
20970echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20971echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20972if test -z "$INSTALL"; then
20973if test "${ac_cv_path_install+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20975else
20976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20977for as_dir in $PATH
20978do
20979 IFS=$as_save_IFS
20980 test -z "$as_dir" && as_dir=.
20981 # Account for people who put trailing slashes in PATH elements.
20982case $as_dir/ in
20983 ./ | .// | /cC/* | \
20984 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +000020985 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +000020986 /usr/ucb/* ) ;;
20987 *)
20988 # OSF1 and SCO ODT 3.0 have their own names for install.
20989 # Don't use installbsd from OSF since it installs stuff as root
20990 # by default.
20991 for ac_prog in ginstall scoinst install; do
20992 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000020993 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20994 if test $ac_prog = install &&
20995 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20996 # AIX install. It has an incompatible calling convention.
20997 :
20998 elif test $ac_prog = install &&
20999 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21000 # program-specific install script used by HP pwplus--don't use.
21001 :
21002 else
21003 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21004 break 3
21005 fi
21006 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000021007 done
21008 done
21009 ;;
21010esac
21011done
21012
21013
21014fi
21015 if test "${ac_cv_path_install+set}" = set; then
21016 INSTALL=$ac_cv_path_install
21017 else
21018 # As a last resort, use the slow shell script. We don't cache a
21019 # path for INSTALL within a source directory, because that will
21020 # break other packages using the cache if that directory is
21021 # removed, or if the path is relative.
21022 INSTALL=$ac_install_sh
21023 fi
21024fi
21025echo "$as_me:$LINENO: result: $INSTALL" >&5
21026echo "${ECHO_T}$INSTALL" >&6
21027
21028# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
21029# It thinks the first close brace ends the variable substitution.
21030test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
21031
21032test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
21033
21034test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
21035
21036echo "$as_me:$LINENO: checking whether ln -s works" >&5
21037echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
21038LN_S=$as_ln_s
21039if test "$LN_S" = "ln -s"; then
21040 echo "$as_me:$LINENO: result: yes" >&5
21041echo "${ECHO_T}yes" >&6
21042else
21043 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
21044echo "${ECHO_T}no, using $LN_S" >&6
21045fi
21046
21047echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
21048echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000021049set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Lev Walkinf15320b2004-06-03 03:38:44 +000021050if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21052else
21053 cat >conftest.make <<\_ACEOF
21054all:
21055 @echo 'ac_maketemp="$(MAKE)"'
21056_ACEOF
21057# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21058eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
21059if test -n "$ac_maketemp"; then
21060 eval ac_cv_prog_make_${ac_make}_set=yes
21061else
21062 eval ac_cv_prog_make_${ac_make}_set=no
21063fi
21064rm -f conftest.make
21065fi
21066if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
21067 echo "$as_me:$LINENO: result: yes" >&5
21068echo "${ECHO_T}yes" >&6
21069 SET_MAKE=
21070else
21071 echo "$as_me:$LINENO: result: no" >&5
21072echo "${ECHO_T}no" >&6
21073 SET_MAKE="MAKE=${MAKE-make}"
21074fi
21075
21076for ac_prog in 'bison -y' byacc
21077do
21078 # Extract the first word of "$ac_prog", so it can be a program name with args.
21079set dummy $ac_prog; ac_word=$2
21080echo "$as_me:$LINENO: checking for $ac_word" >&5
21081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21082if test "${ac_cv_prog_YACC+set}" = set; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21084else
21085 if test -n "$YACC"; then
21086 ac_cv_prog_YACC="$YACC" # Let the user override the test.
21087else
21088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21089for as_dir in $PATH
21090do
21091 IFS=$as_save_IFS
21092 test -z "$as_dir" && as_dir=.
21093 for ac_exec_ext in '' $ac_executable_extensions; do
21094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21095 ac_cv_prog_YACC="$ac_prog"
21096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21097 break 2
21098 fi
21099done
21100done
21101
21102fi
21103fi
21104YACC=$ac_cv_prog_YACC
21105if test -n "$YACC"; then
21106 echo "$as_me:$LINENO: result: $YACC" >&5
21107echo "${ECHO_T}$YACC" >&6
21108else
21109 echo "$as_me:$LINENO: result: no" >&5
21110echo "${ECHO_T}no" >&6
21111fi
21112
21113 test -n "$YACC" && break
21114done
21115test -n "$YACC" || YACC="yacc"
21116
Lev Walkinf15320b2004-06-03 03:38:44 +000021117for ac_prog in flex lex
21118do
21119 # Extract the first word of "$ac_prog", so it can be a program name with args.
21120set dummy $ac_prog; ac_word=$2
21121echo "$as_me:$LINENO: checking for $ac_word" >&5
21122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21123if test "${ac_cv_prog_LEX+set}" = set; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21125else
21126 if test -n "$LEX"; then
21127 ac_cv_prog_LEX="$LEX" # Let the user override the test.
21128else
21129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21130for as_dir in $PATH
21131do
21132 IFS=$as_save_IFS
21133 test -z "$as_dir" && as_dir=.
21134 for ac_exec_ext in '' $ac_executable_extensions; do
21135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21136 ac_cv_prog_LEX="$ac_prog"
21137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21138 break 2
21139 fi
21140done
21141done
21142
21143fi
21144fi
21145LEX=$ac_cv_prog_LEX
21146if test -n "$LEX"; then
21147 echo "$as_me:$LINENO: result: $LEX" >&5
21148echo "${ECHO_T}$LEX" >&6
21149else
21150 echo "$as_me:$LINENO: result: no" >&5
21151echo "${ECHO_T}no" >&6
21152fi
21153
21154 test -n "$LEX" && break
21155done
21156test -n "$LEX" || LEX=":"
21157
21158if test -z "$LEXLIB"
21159then
21160 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
21161echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
21162if test "${ac_cv_lib_fl_yywrap+set}" = set; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21164else
21165 ac_check_lib_save_LIBS=$LIBS
21166LIBS="-lfl $LIBS"
21167cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021168/* confdefs.h. */
21169_ACEOF
21170cat confdefs.h >>conftest.$ac_ext
21171cat >>conftest.$ac_ext <<_ACEOF
21172/* end confdefs.h. */
21173
21174/* Override any gcc2 internal prototype to avoid an error. */
21175#ifdef __cplusplus
21176extern "C"
21177#endif
21178/* We use char because int might match the return type of a gcc2
21179 builtin and then its argument prototype would still apply. */
21180char yywrap ();
21181int
21182main ()
21183{
21184yywrap ();
21185 ;
21186 return 0;
21187}
21188_ACEOF
21189rm -f conftest.$ac_objext conftest$ac_exeext
21190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021191 (eval $ac_link) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021192 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021193 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1
21195 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021198 { ac_try='test -z "$ac_c_werror_flag"
21199 || test ! -s conftest.err'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try='test -s conftest$ac_exeext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21211 ac_cv_lib_fl_yywrap=yes
21212else
21213 echo "$as_me: failed program was:" >&5
21214sed 's/^/| /' conftest.$ac_ext >&5
21215
21216ac_cv_lib_fl_yywrap=no
21217fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021218rm -f conftest.err conftest.$ac_objext \
21219 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021220LIBS=$ac_check_lib_save_LIBS
21221fi
21222echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
21223echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
21224if test $ac_cv_lib_fl_yywrap = yes; then
21225 LEXLIB="-lfl"
21226else
21227 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
21228echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
21229if test "${ac_cv_lib_l_yywrap+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21231else
21232 ac_check_lib_save_LIBS=$LIBS
21233LIBS="-ll $LIBS"
21234cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021235/* confdefs.h. */
21236_ACEOF
21237cat confdefs.h >>conftest.$ac_ext
21238cat >>conftest.$ac_ext <<_ACEOF
21239/* end confdefs.h. */
21240
21241/* Override any gcc2 internal prototype to avoid an error. */
21242#ifdef __cplusplus
21243extern "C"
21244#endif
21245/* We use char because int might match the return type of a gcc2
21246 builtin and then its argument prototype would still apply. */
21247char yywrap ();
21248int
21249main ()
21250{
21251yywrap ();
21252 ;
21253 return 0;
21254}
21255_ACEOF
21256rm -f conftest.$ac_objext conftest$ac_exeext
21257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021258 (eval $ac_link) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021259 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021265 { ac_try='test -z "$ac_c_werror_flag"
21266 || test ! -s conftest.err'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest$ac_exeext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 ac_cv_lib_l_yywrap=yes
21279else
21280 echo "$as_me: failed program was:" >&5
21281sed 's/^/| /' conftest.$ac_ext >&5
21282
21283ac_cv_lib_l_yywrap=no
21284fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021285rm -f conftest.err conftest.$ac_objext \
21286 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021287LIBS=$ac_check_lib_save_LIBS
21288fi
21289echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
21290echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
21291if test $ac_cv_lib_l_yywrap = yes; then
21292 LEXLIB="-ll"
21293fi
21294
21295fi
21296
21297fi
21298
21299if test "x$LEX" != "x:"; then
21300 echo "$as_me:$LINENO: checking lex output file root" >&5
21301echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
21302if test "${ac_cv_prog_lex_root+set}" = set; then
21303 echo $ECHO_N "(cached) $ECHO_C" >&6
21304else
21305 # The minimal lex program is just a single line: %%. But some broken lexes
21306# (Solaris, I think it was) want two %% lines, so accommodate them.
21307cat >conftest.l <<_ACEOF
21308%%
21309%%
21310_ACEOF
21311{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
21312 (eval $LEX conftest.l) 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }
21316if test -f lex.yy.c; then
21317 ac_cv_prog_lex_root=lex.yy
21318elif test -f lexyy.c; then
21319 ac_cv_prog_lex_root=lexyy
21320else
21321 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
21322echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
21323 { (exit 1); exit 1; }; }
21324fi
21325fi
21326echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
21327echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
21328rm -f conftest.l
21329LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
21330
21331echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
21332echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
21333if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335else
21336 # POSIX says lex can declare yytext either as a pointer or an array; the
21337# default is implementation-dependent. Figure out which it is, since
21338# not all implementations provide the %pointer and %array declarations.
21339ac_cv_prog_lex_yytext_pointer=no
21340echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
21341ac_save_LIBS=$LIBS
21342LIBS="$LIBS $LEXLIB"
21343cat >conftest.$ac_ext <<_ACEOF
21344`cat $LEX_OUTPUT_ROOT.c`
21345_ACEOF
21346rm -f conftest.$ac_objext conftest$ac_exeext
21347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021348 (eval $ac_link) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021349 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021355 { ac_try='test -z "$ac_c_werror_flag"
21356 || test ! -s conftest.err'
21357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358 (eval $ac_try) 2>&5
21359 ac_status=$?
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; } &&
21362 { ac_try='test -s conftest$ac_exeext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21365 ac_status=$?
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; }; then
21368 ac_cv_prog_lex_yytext_pointer=yes
21369else
21370 echo "$as_me: failed program was:" >&5
21371sed 's/^/| /' conftest.$ac_ext >&5
21372
21373fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021374rm -f conftest.err conftest.$ac_objext \
21375 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021376LIBS=$ac_save_LIBS
21377rm -f "${LEX_OUTPUT_ROOT}.c"
21378
21379fi
21380echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
21381echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
21382if test $ac_cv_prog_lex_yytext_pointer = yes; then
21383
21384cat >>confdefs.h <<\_ACEOF
21385#define YYTEXT_POINTER 1
21386_ACEOF
21387
21388fi
21389
21390fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021391if test "$LEX" = :; then
21392 LEX=${am_missing_run}flex
21393fi
Lev Walkinf15320b2004-06-03 03:38:44 +000021394
Lev Walkin5f869d02004-08-23 10:41:38 +000021395case "$host_os" in
21396cygwin*)
Lev Walkin2b4c0592004-08-25 01:58:01 +000021397 case "$target" in
Lev Walkin5f869d02004-08-23 10:41:38 +000021398 *mingw*)
21399 CC="$CC -mno-cygwin"
21400 esac
21401 ;;
21402mingw* | p32*)
Lev Walkin2b4c0592004-08-25 01:58:01 +000021403 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000021404esac
21405
21406# Check whether --enable-autoconf or --disable-autoconf was given.
21407if test "${enable_autoconf+set}" = set; then
21408 enableval="$enable_autoconf"
Lev Walkin67c2aec2004-06-05 08:47:18 +000021409 ADD_CFLAGS="-Werror -W"
Lev Walkinf15320b2004-06-03 03:38:44 +000021410fi;
21411
21412
21413case "$GCC" in
21414 yes)
21415 CFLAGS="$CFLAGS -Wall"
21416 CFLAGS="$CFLAGS -Wshadow"
21417 CFLAGS="$CFLAGS -Wcast-qual"
21418 CFLAGS="$CFLAGS -Wcast-align"
21419 CFLAGS="$CFLAGS -Wmissing-prototypes"
21420 CFLAGS="$CFLAGS -Wmissing-declarations"
21421 CFLAGS="$CFLAGS -Wredundant-decls"
Lev Walkinf15320b2004-06-03 03:38:44 +000021422 ;;
21423esac
21424
21425
Lev Walkinf15320b2004-06-03 03:38:44 +000021426echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21427echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21428if test "${ac_cv_header_stdc+set}" = set; then
21429 echo $ECHO_N "(cached) $ECHO_C" >&6
21430else
21431 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021432/* confdefs.h. */
21433_ACEOF
21434cat confdefs.h >>conftest.$ac_ext
21435cat >>conftest.$ac_ext <<_ACEOF
21436/* end confdefs.h. */
21437#include <stdlib.h>
21438#include <stdarg.h>
21439#include <string.h>
21440#include <float.h>
21441
21442int
21443main ()
21444{
21445
21446 ;
21447 return 0;
21448}
21449_ACEOF
21450rm -f conftest.$ac_objext
21451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021452 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021453 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021459 { ac_try='test -z "$ac_c_werror_flag"
21460 || test ! -s conftest.err'
21461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462 (eval $ac_try) 2>&5
21463 ac_status=$?
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; } &&
21466 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21468 (eval $ac_try) 2>&5
21469 ac_status=$?
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); }; }; then
21472 ac_cv_header_stdc=yes
21473else
21474 echo "$as_me: failed program was:" >&5
21475sed 's/^/| /' conftest.$ac_ext >&5
21476
21477ac_cv_header_stdc=no
21478fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021480
21481if test $ac_cv_header_stdc = yes; then
21482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21483 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021484/* confdefs.h. */
21485_ACEOF
21486cat confdefs.h >>conftest.$ac_ext
21487cat >>conftest.$ac_ext <<_ACEOF
21488/* end confdefs.h. */
21489#include <string.h>
21490
21491_ACEOF
21492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21493 $EGREP "memchr" >/dev/null 2>&1; then
21494 :
21495else
21496 ac_cv_header_stdc=no
21497fi
21498rm -f conftest*
21499
21500fi
21501
21502if test $ac_cv_header_stdc = yes; then
21503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21504 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021505/* confdefs.h. */
21506_ACEOF
21507cat confdefs.h >>conftest.$ac_ext
21508cat >>conftest.$ac_ext <<_ACEOF
21509/* end confdefs.h. */
21510#include <stdlib.h>
21511
21512_ACEOF
21513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21514 $EGREP "free" >/dev/null 2>&1; then
21515 :
21516else
21517 ac_cv_header_stdc=no
21518fi
21519rm -f conftest*
21520
21521fi
21522
21523if test $ac_cv_header_stdc = yes; then
21524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21525 if test "$cross_compiling" = yes; then
21526 :
21527else
21528 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021529/* confdefs.h. */
21530_ACEOF
21531cat confdefs.h >>conftest.$ac_ext
21532cat >>conftest.$ac_ext <<_ACEOF
21533/* end confdefs.h. */
21534#include <ctype.h>
21535#if ((' ' & 0x0FF) == 0x020)
21536# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21537# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21538#else
21539# define ISLOWER(c) \
Lev Walkin8e8b5482004-06-17 23:42:48 +000021540 (('a' <= (c) && (c) <= 'i') \
21541 || ('j' <= (c) && (c) <= 'r') \
21542 || ('s' <= (c) && (c) <= 'z'))
Lev Walkinf15320b2004-06-03 03:38:44 +000021543# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21544#endif
21545
21546#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21547int
21548main ()
21549{
21550 int i;
21551 for (i = 0; i < 256; i++)
21552 if (XOR (islower (i), ISLOWER (i))
Lev Walkin8e8b5482004-06-17 23:42:48 +000021553 || toupper (i) != TOUPPER (i))
Lev Walkinf15320b2004-06-03 03:38:44 +000021554 exit(2);
21555 exit (0);
21556}
21557_ACEOF
21558rm -f conftest$ac_exeext
21559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21560 (eval $ac_link) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565 (eval $ac_try) 2>&5
21566 ac_status=$?
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; }; then
21569 :
21570else
21571 echo "$as_me: program exited with status $ac_status" >&5
21572echo "$as_me: failed program was:" >&5
21573sed 's/^/| /' conftest.$ac_ext >&5
21574
21575( exit $ac_status )
21576ac_cv_header_stdc=no
21577fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021579fi
21580fi
21581fi
21582echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21583echo "${ECHO_T}$ac_cv_header_stdc" >&6
21584if test $ac_cv_header_stdc = yes; then
21585
21586cat >>confdefs.h <<\_ACEOF
21587#define STDC_HEADERS 1
21588_ACEOF
21589
21590fi
21591
Lev Walkinf15320b2004-06-03 03:38:44 +000021592
Lev Walkin79f54952004-08-13 16:58:19 +000021593for ac_header in sys/param.h
Lev Walkinf15320b2004-06-03 03:38:44 +000021594do
21595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21596if eval "test \"\${$as_ac_Header+set}\" = set"; then
21597 echo "$as_me:$LINENO: checking for $ac_header" >&5
21598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21599if eval "test \"\${$as_ac_Header+set}\" = set"; then
21600 echo $ECHO_N "(cached) $ECHO_C" >&6
21601fi
21602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21604else
21605 # Is the header compilable?
21606echo "$as_me:$LINENO: checking $ac_header usability" >&5
21607echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21608cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021609/* confdefs.h. */
21610_ACEOF
21611cat confdefs.h >>conftest.$ac_ext
21612cat >>conftest.$ac_ext <<_ACEOF
21613/* end confdefs.h. */
21614$ac_includes_default
21615#include <$ac_header>
21616_ACEOF
21617rm -f conftest.$ac_objext
21618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021619 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021620 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021621 grep -v '^ *+' conftest.er1 >conftest.err
21622 rm -f conftest.er1
21623 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021626 { ac_try='test -z "$ac_c_werror_flag"
21627 || test ! -s conftest.err'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; } &&
21633 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); }; }; then
21639 ac_header_compiler=yes
21640else
21641 echo "$as_me: failed program was:" >&5
21642sed 's/^/| /' conftest.$ac_ext >&5
21643
21644ac_header_compiler=no
21645fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021647echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21648echo "${ECHO_T}$ac_header_compiler" >&6
21649
21650# Is the header present?
21651echo "$as_me:$LINENO: checking $ac_header presence" >&5
21652echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21653cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021654/* confdefs.h. */
21655_ACEOF
21656cat confdefs.h >>conftest.$ac_ext
21657cat >>conftest.$ac_ext <<_ACEOF
21658/* end confdefs.h. */
21659#include <$ac_header>
21660_ACEOF
21661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21663 ac_status=$?
21664 grep -v '^ *+' conftest.er1 >conftest.err
21665 rm -f conftest.er1
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } >/dev/null; then
21669 if test -s conftest.err; then
21670 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000021671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000021672 else
21673 ac_cpp_err=
21674 fi
21675else
21676 ac_cpp_err=yes
21677fi
21678if test -z "$ac_cpp_err"; then
21679 ac_header_preproc=yes
21680else
21681 echo "$as_me: failed program was:" >&5
21682sed 's/^/| /' conftest.$ac_ext >&5
21683
21684 ac_header_preproc=no
21685fi
21686rm -f conftest.err conftest.$ac_ext
21687echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21688echo "${ECHO_T}$ac_header_preproc" >&6
21689
21690# So? What about this header?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21692 yes:no: )
Lev Walkinf15320b2004-06-03 03:38:44 +000021693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21694echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000021695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21696echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21697 ac_header_preproc=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000021698 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000021699 no:yes:* )
Lev Walkinf15320b2004-06-03 03:38:44 +000021700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21701echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000021702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21703echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21705echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21707echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000021708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21709echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000021710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21711echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000021712 (
21713 cat <<\_ASBOX
Lev Walkin8e8b5482004-06-17 23:42:48 +000021714## ------------------------------------------ ##
21715## Report this to the AC_PACKAGE_NAME lists. ##
21716## ------------------------------------------ ##
Lev Walkinf15320b2004-06-03 03:38:44 +000021717_ASBOX
21718 ) |
21719 sed "s/^/$as_me: WARNING: /" >&2
21720 ;;
21721esac
21722echo "$as_me:$LINENO: checking for $ac_header" >&5
21723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21724if eval "test \"\${$as_ac_Header+set}\" = set"; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
21726else
Lev Walkin8e8b5482004-06-17 23:42:48 +000021727 eval "$as_ac_Header=\$ac_header_preproc"
Lev Walkinf15320b2004-06-03 03:38:44 +000021728fi
21729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21731
21732fi
21733if test `eval echo '${'$as_ac_Header'}'` = yes; then
21734 cat >>confdefs.h <<_ACEOF
21735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21736_ACEOF
21737
21738fi
21739
21740done
21741
21742
21743echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21744echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21745if test "${ac_cv_c_bigendian+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21747else
21748 # See if sys/param.h defines the BYTE_ORDER macro.
21749cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021750/* confdefs.h. */
21751_ACEOF
21752cat confdefs.h >>conftest.$ac_ext
21753cat >>conftest.$ac_ext <<_ACEOF
21754/* end confdefs.h. */
21755#include <sys/types.h>
21756#include <sys/param.h>
21757
21758int
21759main ()
21760{
21761#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21762 bogus endian macros
21763#endif
21764
21765 ;
21766 return 0;
21767}
21768_ACEOF
21769rm -f conftest.$ac_objext
21770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021771 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021772 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021773 grep -v '^ *+' conftest.er1 >conftest.err
21774 rm -f conftest.er1
21775 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021778 { ac_try='test -z "$ac_c_werror_flag"
21779 || test ! -s conftest.err'
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21782 ac_status=$?
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
21791 # It does; now see whether it defined to BIG_ENDIAN or not.
21792cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021793/* confdefs.h. */
21794_ACEOF
21795cat confdefs.h >>conftest.$ac_ext
21796cat >>conftest.$ac_ext <<_ACEOF
21797/* end confdefs.h. */
21798#include <sys/types.h>
21799#include <sys/param.h>
21800
21801int
21802main ()
21803{
21804#if BYTE_ORDER != BIG_ENDIAN
21805 not big endian
21806#endif
21807
21808 ;
21809 return 0;
21810}
21811_ACEOF
21812rm -f conftest.$ac_objext
21813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021814 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021815 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021816 grep -v '^ *+' conftest.er1 >conftest.err
21817 rm -f conftest.er1
21818 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021821 { ac_try='test -z "$ac_c_werror_flag"
21822 || test ! -s conftest.err'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; } &&
21828 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ac_cv_c_bigendian=yes
21835else
21836 echo "$as_me: failed program was:" >&5
21837sed 's/^/| /' conftest.$ac_ext >&5
21838
21839ac_cv_c_bigendian=no
21840fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021842else
21843 echo "$as_me: failed program was:" >&5
21844sed 's/^/| /' conftest.$ac_ext >&5
21845
21846# It does not; compile a test program.
21847if test "$cross_compiling" = yes; then
21848 # try to guess the endianness by grepping values into an object file
21849 ac_cv_c_bigendian=unknown
21850 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021851/* confdefs.h. */
21852_ACEOF
21853cat confdefs.h >>conftest.$ac_ext
21854cat >>conftest.$ac_ext <<_ACEOF
21855/* end confdefs.h. */
21856short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21857short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21858void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21859short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21860short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21861void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21862int
21863main ()
21864{
21865 _ascii (); _ebcdic ();
21866 ;
21867 return 0;
21868}
21869_ACEOF
21870rm -f conftest.$ac_objext
21871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021872 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021873 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000021874 grep -v '^ *+' conftest.er1 >conftest.err
21875 rm -f conftest.er1
21876 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000021877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000021879 { ac_try='test -z "$ac_c_werror_flag"
21880 || test ! -s conftest.err'
21881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882 (eval $ac_try) 2>&5
21883 ac_status=$?
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); }; } &&
21886 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000021887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21889 ac_status=$?
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; }; then
21892 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21893 ac_cv_c_bigendian=yes
21894fi
21895if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21896 if test "$ac_cv_c_bigendian" = unknown; then
21897 ac_cv_c_bigendian=no
21898 else
21899 # finding both strings is unlikely to happen, but who knows?
21900 ac_cv_c_bigendian=unknown
21901 fi
21902fi
21903else
21904 echo "$as_me: failed program was:" >&5
21905sed 's/^/| /' conftest.$ac_ext >&5
21906
21907fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021909else
21910 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021911/* confdefs.h. */
21912_ACEOF
21913cat confdefs.h >>conftest.$ac_ext
21914cat >>conftest.$ac_ext <<_ACEOF
21915/* end confdefs.h. */
21916int
21917main ()
21918{
21919 /* Are we little or big endian? From Harbison&Steele. */
21920 union
21921 {
21922 long l;
21923 char c[sizeof (long)];
21924 } u;
21925 u.l = 1;
21926 exit (u.c[sizeof (long) - 1] == 1);
21927}
21928_ACEOF
21929rm -f conftest$ac_exeext
21930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21931 (eval $ac_link) 2>&5
21932 ac_status=$?
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940 ac_cv_c_bigendian=no
21941else
21942 echo "$as_me: program exited with status $ac_status" >&5
21943echo "$as_me: failed program was:" >&5
21944sed 's/^/| /' conftest.$ac_ext >&5
21945
21946( exit $ac_status )
21947ac_cv_c_bigendian=yes
21948fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021949rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021950fi
21951fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000021952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000021953fi
21954echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21955echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21956case $ac_cv_c_bigendian in
21957 yes)
21958
21959cat >>confdefs.h <<\_ACEOF
21960#define WORDS_BIGENDIAN 1
21961_ACEOF
21962 ;;
21963 no)
21964 ;;
21965 *)
21966 { { echo "$as_me:$LINENO: error: unknown endianness
21967presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21968echo "$as_me: error: unknown endianness
21969presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21970 { (exit 1); exit 1; }; } ;;
21971esac
21972
21973echo "$as_me:$LINENO: checking for off_t" >&5
21974echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21975if test "${ac_cv_type_off_t+set}" = set; then
21976 echo $ECHO_N "(cached) $ECHO_C" >&6
21977else
21978 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000021979/* confdefs.h. */
21980_ACEOF
21981cat confdefs.h >>conftest.$ac_ext
21982cat >>conftest.$ac_ext <<_ACEOF
21983/* end confdefs.h. */
21984$ac_includes_default
21985int
21986main ()
21987{
21988if ((off_t *) 0)
21989 return 0;
21990if (sizeof (off_t))
21991 return 0;
21992 ;
21993 return 0;
21994}
21995_ACEOF
21996rm -f conftest.$ac_objext
21997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000021998 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000021999 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000022005 { ac_try='test -z "$ac_c_werror_flag"
22006 || test ! -s conftest.err'
22007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008 (eval $ac_try) 2>&5
22009 ac_status=$?
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; } &&
22012 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000022013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; }; then
22018 ac_cv_type_off_t=yes
22019else
22020 echo "$as_me: failed program was:" >&5
22021sed 's/^/| /' conftest.$ac_ext >&5
22022
22023ac_cv_type_off_t=no
22024fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022026fi
22027echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22028echo "${ECHO_T}$ac_cv_type_off_t" >&6
22029if test $ac_cv_type_off_t = yes; then
22030 :
22031else
22032
22033cat >>confdefs.h <<_ACEOF
22034#define off_t long
22035_ACEOF
22036
22037fi
22038
22039echo "$as_me:$LINENO: checking for size_t" >&5
22040echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22041if test "${ac_cv_type_size_t+set}" = set; then
22042 echo $ECHO_N "(cached) $ECHO_C" >&6
22043else
22044 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022045/* confdefs.h. */
22046_ACEOF
22047cat confdefs.h >>conftest.$ac_ext
22048cat >>conftest.$ac_ext <<_ACEOF
22049/* end confdefs.h. */
22050$ac_includes_default
22051int
22052main ()
22053{
22054if ((size_t *) 0)
22055 return 0;
22056if (sizeof (size_t))
22057 return 0;
22058 ;
22059 return 0;
22060}
22061_ACEOF
22062rm -f conftest.$ac_objext
22063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022064 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022065 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022066 grep -v '^ *+' conftest.er1 >conftest.err
22067 rm -f conftest.er1
22068 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000022071 { ac_try='test -z "$ac_c_werror_flag"
22072 || test ! -s conftest.err'
22073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074 (eval $ac_try) 2>&5
22075 ac_status=$?
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); }; } &&
22078 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000022079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22081 ac_status=$?
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; }; then
22084 ac_cv_type_size_t=yes
22085else
22086 echo "$as_me: failed program was:" >&5
22087sed 's/^/| /' conftest.$ac_ext >&5
22088
22089ac_cv_type_size_t=no
22090fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022092fi
22093echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22094echo "${ECHO_T}$ac_cv_type_size_t" >&6
22095if test $ac_cv_type_size_t = yes; then
22096 :
22097else
22098
22099cat >>confdefs.h <<_ACEOF
22100#define size_t unsigned
22101_ACEOF
22102
22103fi
22104
22105echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22106echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22107if test "${ac_cv_struct_tm+set}" = set; then
22108 echo $ECHO_N "(cached) $ECHO_C" >&6
22109else
22110 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022111/* confdefs.h. */
22112_ACEOF
22113cat confdefs.h >>conftest.$ac_ext
22114cat >>conftest.$ac_ext <<_ACEOF
22115/* end confdefs.h. */
22116#include <sys/types.h>
22117#include <time.h>
22118
22119int
22120main ()
22121{
22122struct tm *tp; tp->tm_sec;
22123 ;
22124 return 0;
22125}
22126_ACEOF
22127rm -f conftest.$ac_objext
22128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022129 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022130 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022131 grep -v '^ *+' conftest.er1 >conftest.err
22132 rm -f conftest.er1
22133 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000022136 { ac_try='test -z "$ac_c_werror_flag"
22137 || test ! -s conftest.err'
22138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139 (eval $ac_try) 2>&5
22140 ac_status=$?
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); }; } &&
22143 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000022144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145 (eval $ac_try) 2>&5
22146 ac_status=$?
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); }; }; then
22149 ac_cv_struct_tm=time.h
22150else
22151 echo "$as_me: failed program was:" >&5
22152sed 's/^/| /' conftest.$ac_ext >&5
22153
22154ac_cv_struct_tm=sys/time.h
22155fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022157fi
22158echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22159echo "${ECHO_T}$ac_cv_struct_tm" >&6
22160if test $ac_cv_struct_tm = sys/time.h; then
22161
22162cat >>confdefs.h <<\_ACEOF
22163#define TM_IN_SYS_TIME 1
22164_ACEOF
22165
22166fi
22167
22168echo "$as_me:$LINENO: checking for intmax_t" >&5
22169echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
22170if test "${ac_cv_type_intmax_t+set}" = set; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22172else
22173 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022174/* confdefs.h. */
22175_ACEOF
22176cat confdefs.h >>conftest.$ac_ext
22177cat >>conftest.$ac_ext <<_ACEOF
22178/* end confdefs.h. */
22179$ac_includes_default
22180int
22181main ()
22182{
22183if ((intmax_t *) 0)
22184 return 0;
22185if (sizeof (intmax_t))
22186 return 0;
22187 ;
22188 return 0;
22189}
22190_ACEOF
22191rm -f conftest.$ac_objext
22192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022193 (eval $ac_compile) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022194 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022195 grep -v '^ *+' conftest.er1 >conftest.err
22196 rm -f conftest.er1
22197 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000022200 { ac_try='test -z "$ac_c_werror_flag"
22201 || test ! -s conftest.err'
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; } &&
22207 { ac_try='test -s conftest.$ac_objext'
Lev Walkinf15320b2004-06-03 03:38:44 +000022208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22209 (eval $ac_try) 2>&5
22210 ac_status=$?
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); }; }; then
22213 ac_cv_type_intmax_t=yes
22214else
22215 echo "$as_me: failed program was:" >&5
22216sed 's/^/| /' conftest.$ac_ext >&5
22217
22218ac_cv_type_intmax_t=no
22219fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022221fi
22222echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
22223echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
22224if test $ac_cv_type_intmax_t = yes; then
22225 :
22226else
22227
22228cat >>confdefs.h <<_ACEOF
22229#define intmax_t int64_t
22230_ACEOF
22231
22232fi
22233
22234
22235
22236
22237for ac_func in strtoimax strtoll
22238do
22239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22240echo "$as_me:$LINENO: checking for $ac_func" >&5
22241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22242if eval "test \"\${$as_ac_var+set}\" = set"; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22244else
22245 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000022246/* confdefs.h. */
22247_ACEOF
22248cat confdefs.h >>conftest.$ac_ext
22249cat >>conftest.$ac_ext <<_ACEOF
22250/* end confdefs.h. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000022251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22253#define $ac_func innocuous_$ac_func
22254
Lev Walkinf15320b2004-06-03 03:38:44 +000022255/* System header to define __stub macros and hopefully few prototypes,
22256 which can conflict with char $ac_func (); below.
22257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22258 <limits.h> exists even on freestanding compilers. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000022259
Lev Walkinf15320b2004-06-03 03:38:44 +000022260#ifdef __STDC__
22261# include <limits.h>
22262#else
22263# include <assert.h>
22264#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000022265
22266#undef $ac_func
22267
Lev Walkinf15320b2004-06-03 03:38:44 +000022268/* Override any gcc2 internal prototype to avoid an error. */
22269#ifdef __cplusplus
22270extern "C"
22271{
22272#endif
22273/* We use char because int might match the return type of a gcc2
22274 builtin and then its argument prototype would still apply. */
22275char $ac_func ();
22276/* The GNU C library defines this for functions which it implements
22277 to always fail with ENOSYS. Some functions are actually named
22278 something starting with __ and the normal name is an alias. */
22279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22280choke me
22281#else
22282char (*f) () = $ac_func;
22283#endif
22284#ifdef __cplusplus
22285}
22286#endif
22287
22288int
22289main ()
22290{
22291return f != $ac_func;
22292 ;
22293 return 0;
22294}
22295_ACEOF
22296rm -f conftest.$ac_objext conftest$ac_exeext
22297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000022298 (eval $ac_link) 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000022299 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000022300 grep -v '^ *+' conftest.er1 >conftest.err
22301 rm -f conftest.er1
22302 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000022303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000022305 { ac_try='test -z "$ac_c_werror_flag"
22306 || test ! -s conftest.err'
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest$ac_exeext'
Lev Walkinf15320b2004-06-03 03:38:44 +000022313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22318 eval "$as_ac_var=yes"
22319else
22320 echo "$as_me: failed program was:" >&5
22321sed 's/^/| /' conftest.$ac_ext >&5
22322
22323eval "$as_ac_var=no"
22324fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022325rm -f conftest.err conftest.$ac_objext \
22326 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000022327fi
22328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22330if test `eval echo '${'$as_ac_var'}'` = yes; then
22331 cat >>confdefs.h <<_ACEOF
22332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22333_ACEOF
22334
22335fi
22336done
22337
22338
Lev Walkin49b0a3e2004-06-28 21:22:35 +000022339for ac_func in mergesort
22340do
22341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22342echo "$as_me:$LINENO: checking for $ac_func" >&5
22343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22344if eval "test \"\${$as_ac_var+set}\" = set"; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346else
22347 cat >conftest.$ac_ext <<_ACEOF
22348/* confdefs.h. */
22349_ACEOF
22350cat confdefs.h >>conftest.$ac_ext
22351cat >>conftest.$ac_ext <<_ACEOF
22352/* end confdefs.h. */
22353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22355#define $ac_func innocuous_$ac_func
22356
22357/* System header to define __stub macros and hopefully few prototypes,
22358 which can conflict with char $ac_func (); below.
22359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22360 <limits.h> exists even on freestanding compilers. */
22361
22362#ifdef __STDC__
22363# include <limits.h>
22364#else
22365# include <assert.h>
22366#endif
22367
22368#undef $ac_func
22369
22370/* Override any gcc2 internal prototype to avoid an error. */
22371#ifdef __cplusplus
22372extern "C"
22373{
22374#endif
22375/* We use char because int might match the return type of a gcc2
22376 builtin and then its argument prototype would still apply. */
22377char $ac_func ();
22378/* The GNU C library defines this for functions which it implements
22379 to always fail with ENOSYS. Some functions are actually named
22380 something starting with __ and the normal name is an alias. */
22381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22382choke me
22383#else
22384char (*f) () = $ac_func;
22385#endif
22386#ifdef __cplusplus
22387}
22388#endif
22389
22390int
22391main ()
22392{
22393return f != $ac_func;
22394 ;
22395 return 0;
22396}
22397_ACEOF
22398rm -f conftest.$ac_objext conftest$ac_exeext
22399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22400 (eval $ac_link) 2>conftest.er1
22401 ac_status=$?
22402 grep -v '^ *+' conftest.er1 >conftest.err
22403 rm -f conftest.er1
22404 cat conftest.err >&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } &&
22407 { ac_try='test -z "$ac_c_werror_flag"
22408 || test ! -s conftest.err'
22409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22411 ac_status=$?
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; } &&
22414 { ac_try='test -s conftest$ac_exeext'
22415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416 (eval $ac_try) 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
22420 eval "$as_ac_var=yes"
22421else
22422 echo "$as_me: failed program was:" >&5
22423sed 's/^/| /' conftest.$ac_ext >&5
22424
22425eval "$as_ac_var=no"
22426fi
22427rm -f conftest.err conftest.$ac_objext \
22428 conftest$ac_exeext conftest.$ac_ext
22429fi
22430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22431echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22432if test `eval echo '${'$as_ac_var'}'` = yes; then
22433 cat >>confdefs.h <<_ACEOF
22434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22435_ACEOF
22436
22437fi
22438done
22439
22440
Lev Walkin8e8b5482004-06-17 23:42:48 +000022441 ac_config_headers="$ac_config_headers config.h"
Lev Walkinf15320b2004-06-03 03:38:44 +000022442
22443
22444 ac_config_files="$ac_config_files libasn1compiler/Makefile skeletons/tests/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/tests/Makefile libasn1fix/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile Makefile"
22445cat >confcache <<\_ACEOF
22446# This file is a shell script that caches the results of configure
22447# tests run on this system so they can be shared between configure
22448# scripts and configure runs, see configure's option --config-cache.
22449# It is not useful on other systems. If it contains results you don't
22450# want to keep, you may remove or edit it.
22451#
22452# config.status only pays attention to the cache file if you give it
22453# the --recheck option to rerun configure.
22454#
22455# `ac_cv_env_foo' variables (set or unset) will be overridden when
22456# loading this file, other *unset* `ac_cv_foo' will be assigned the
22457# following values.
22458
22459_ACEOF
22460
22461# The following way of writing the cache mishandles newlines in values,
22462# but we know of no workaround that is simple, portable, and efficient.
22463# So, don't put newlines in cache variables' values.
22464# Ultrix sh set writes to stderr and can't be redirected directly,
22465# and sets the high bit in the cache file unless we assign to the vars.
22466{
22467 (set) 2>&1 |
22468 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22469 *ac_space=\ *)
22470 # `set' does not quote correctly, so add quotes (double-quote
22471 # substitution turns \\\\ into \\, and sed turns \\ into \).
22472 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000022473 "s/'/'\\\\''/g;
22474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000022475 ;;
22476 *)
22477 # `set' quotes correctly as required by POSIX, so do not add quotes.
22478 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000022479 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000022480 ;;
22481 esac;
22482} |
22483 sed '
22484 t clear
22485 : clear
22486 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22487 t end
22488 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22489 : end' >>confcache
22490if diff $cache_file confcache >/dev/null 2>&1; then :; else
22491 if test -w $cache_file; then
22492 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22493 cat confcache >$cache_file
22494 else
22495 echo "not updating unwritable cache $cache_file"
22496 fi
22497fi
22498rm -f confcache
22499
22500test "x$prefix" = xNONE && prefix=$ac_default_prefix
22501# Let make expand exec_prefix.
22502test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22503
22504# VPATH may cause trouble with some makes, so we remove $(srcdir),
22505# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22506# trailing colons and then remove the whole line if VPATH becomes empty
22507# (actually we leave an empty line to preserve line numbers).
22508if test "x$srcdir" = x.; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000022509 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Lev Walkinf15320b2004-06-03 03:38:44 +000022510s/:*\$(srcdir):*/:/;
22511s/:*\${srcdir}:*/:/;
22512s/:*@srcdir@:*/:/;
Lev Walkin8e8b5482004-06-17 23:42:48 +000022513s/^\([^=]*=[ ]*\):*/\1/;
Lev Walkinf15320b2004-06-03 03:38:44 +000022514s/:*$//;
Lev Walkin8e8b5482004-06-17 23:42:48 +000022515s/^[^=]*=[ ]*$//;
Lev Walkinf15320b2004-06-03 03:38:44 +000022516}'
22517fi
22518
22519DEFS=-DHAVE_CONFIG_H
22520
22521ac_libobjs=
22522ac_ltlibobjs=
22523for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22524 # 1. Remove the extension, and $U if already installed.
22525 ac_i=`echo "$ac_i" |
Lev Walkin8e8b5482004-06-17 23:42:48 +000022526 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Lev Walkinf15320b2004-06-03 03:38:44 +000022527 # 2. Add them.
22528 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22529 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22530done
22531LIBOBJS=$ac_libobjs
22532
22533LTLIBOBJS=$ac_ltlibobjs
22534
22535
Lev Walkin8e8b5482004-06-17 23:42:48 +000022536if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22537 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22538Usually this means the macro was only invoked conditionally." >&5
22539echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22540Usually this means the macro was only invoked conditionally." >&2;}
22541 { (exit 1); exit 1; }; }
22542fi
22543if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22544 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22545Usually this means the macro was only invoked conditionally." >&5
22546echo "$as_me: error: conditional \"AMDEP\" was never defined.
22547Usually this means the macro was only invoked conditionally." >&2;}
22548 { (exit 1); exit 1; }; }
22549fi
22550if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22551 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22552Usually this means the macro was only invoked conditionally." >&5
22553echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22554Usually this means the macro was only invoked conditionally." >&2;}
22555 { (exit 1); exit 1; }; }
22556fi
22557if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22558 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22559Usually this means the macro was only invoked conditionally." >&5
22560echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22561Usually this means the macro was only invoked conditionally." >&2;}
22562 { (exit 1); exit 1; }; }
22563fi
22564if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22565 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22566Usually this means the macro was only invoked conditionally." >&5
22567echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22568Usually this means the macro was only invoked conditionally." >&2;}
22569 { (exit 1); exit 1; }; }
22570fi
Lev Walkind8b940c2004-08-11 05:35:51 +000022571if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22572 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22573Usually this means the macro was only invoked conditionally." >&5
22574echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22575Usually this means the macro was only invoked conditionally." >&2;}
22576 { (exit 1); exit 1; }; }
22577fi
22578if test -z "${CPLUSPLUS_FOUND_TRUE}" && test -z "${CPLUSPLUS_FOUND_FALSE}"; then
22579 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS_FOUND\" was never defined.
22580Usually this means the macro was only invoked conditionally." >&5
22581echo "$as_me: error: conditional \"CPLUSPLUS_FOUND\" was never defined.
22582Usually this means the macro was only invoked conditionally." >&2;}
22583 { (exit 1); exit 1; }; }
22584fi
Lev Walkinf15320b2004-06-03 03:38:44 +000022585
22586: ${CONFIG_STATUS=./config.status}
22587ac_clean_files_save=$ac_clean_files
22588ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22589{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22590echo "$as_me: creating $CONFIG_STATUS" >&6;}
22591cat >$CONFIG_STATUS <<_ACEOF
22592#! $SHELL
22593# Generated by $as_me.
22594# Run this file to recreate the current configuration.
22595# Compiler output produced by configure, useful for debugging
22596# configure, is in config.log if it exists.
22597
22598debug=false
22599ac_cs_recheck=false
22600ac_cs_silent=false
22601SHELL=\${CONFIG_SHELL-$SHELL}
22602_ACEOF
22603
22604cat >>$CONFIG_STATUS <<\_ACEOF
22605## --------------------- ##
22606## M4sh Initialization. ##
22607## --------------------- ##
22608
22609# Be Bourne compatible
22610if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22611 emulate sh
22612 NULLCMD=:
22613 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22614 # is contrary to our usage. Disable this feature.
22615 alias -g '${1+"$@"}'='"$@"'
22616elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22617 set -o posix
22618fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000022619DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000022620
22621# Support unset when possible.
Lev Walkin8e8b5482004-06-17 23:42:48 +000022622if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Lev Walkinf15320b2004-06-03 03:38:44 +000022623 as_unset=unset
22624else
22625 as_unset=false
22626fi
22627
22628
22629# Work around bugs in pre-3.0 UWIN ksh.
22630$as_unset ENV MAIL MAILPATH
22631PS1='$ '
22632PS2='> '
22633PS4='+ '
22634
22635# NLS nuisances.
22636for as_var in \
22637 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22638 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22639 LC_TELEPHONE LC_TIME
22640do
Lev Walkin8e8b5482004-06-17 23:42:48 +000022641 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Lev Walkinf15320b2004-06-03 03:38:44 +000022642 eval $as_var=C; export $as_var
22643 else
22644 $as_unset $as_var
22645 fi
22646done
22647
22648# Required to use basename.
22649if expr a : '\(a\)' >/dev/null 2>&1; then
22650 as_expr=expr
22651else
22652 as_expr=false
22653fi
22654
22655if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22656 as_basename=basename
22657else
22658 as_basename=false
22659fi
22660
22661
22662# Name of the executable.
22663as_me=`$as_basename "$0" ||
22664$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22665 X"$0" : 'X\(//\)$' \| \
22666 X"$0" : 'X\(/\)$' \| \
22667 . : '\(.\)' 2>/dev/null ||
22668echo X/"$0" |
22669 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22670 /^X\/\(\/\/\)$/{ s//\1/; q; }
22671 /^X\/\(\/\).*/{ s//\1/; q; }
22672 s/.*/./; q'`
22673
22674
22675# PATH needs CR, and LINENO needs CR and PATH.
22676# Avoid depending upon Character Ranges.
22677as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22678as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22679as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22680as_cr_digits='0123456789'
22681as_cr_alnum=$as_cr_Letters$as_cr_digits
22682
22683# The user is always right.
22684if test "${PATH_SEPARATOR+set}" != set; then
22685 echo "#! /bin/sh" >conf$$.sh
22686 echo "exit 0" >>conf$$.sh
22687 chmod +x conf$$.sh
22688 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22689 PATH_SEPARATOR=';'
22690 else
22691 PATH_SEPARATOR=:
22692 fi
22693 rm -f conf$$.sh
22694fi
22695
22696
22697 as_lineno_1=$LINENO
22698 as_lineno_2=$LINENO
22699 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22700 test "x$as_lineno_1" != "x$as_lineno_2" &&
22701 test "x$as_lineno_3" = "x$as_lineno_2" || {
22702 # Find who we are. Look in the path if we contain no path at all
22703 # relative or not.
22704 case $0 in
22705 *[\\/]* ) as_myself=$0 ;;
22706 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22707for as_dir in $PATH
22708do
22709 IFS=$as_save_IFS
22710 test -z "$as_dir" && as_dir=.
22711 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22712done
22713
22714 ;;
22715 esac
22716 # We did not find ourselves, most probably we were run as `sh COMMAND'
22717 # in which case we are not to be found in the path.
22718 if test "x$as_myself" = x; then
22719 as_myself=$0
22720 fi
22721 if test ! -f "$as_myself"; then
22722 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22723echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22724 { (exit 1); exit 1; }; }
22725 fi
22726 case $CONFIG_SHELL in
22727 '')
22728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22729for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22730do
22731 IFS=$as_save_IFS
22732 test -z "$as_dir" && as_dir=.
22733 for as_base in sh bash ksh sh5; do
22734 case $as_dir in
22735 /*)
22736 if ("$as_dir/$as_base" -c '
22737 as_lineno_1=$LINENO
22738 as_lineno_2=$LINENO
22739 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22740 test "x$as_lineno_1" != "x$as_lineno_2" &&
22741 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22742 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22743 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22744 CONFIG_SHELL=$as_dir/$as_base
22745 export CONFIG_SHELL
22746 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22747 fi;;
22748 esac
22749 done
22750done
22751;;
22752 esac
22753
22754 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22755 # uniformly replaced by the line number. The first 'sed' inserts a
22756 # line-number line before each line; the second 'sed' does the real
22757 # work. The second script uses 'N' to pair each line-number line
22758 # with the numbered line, and appends trailing '-' during
22759 # substitution so that $LINENO is not a special case at line end.
22760 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22761 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22762 sed '=' <$as_myself |
22763 sed '
22764 N
22765 s,$,-,
22766 : loop
22767 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22768 t loop
22769 s,-$,,
22770 s,^['$as_cr_digits']*\n,,
22771 ' >$as_me.lineno &&
22772 chmod +x $as_me.lineno ||
22773 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22774echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22775 { (exit 1); exit 1; }; }
22776
22777 # Don't try to exec as it changes $[0], causing all sort of problems
22778 # (the dirname of $[0] is not the place where we might find the
22779 # original and so on. Autoconf is especially sensible to this).
22780 . ./$as_me.lineno
22781 # Exit status is that of the last command.
22782 exit
22783}
22784
22785
22786case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22787 *c*,-n*) ECHO_N= ECHO_C='
22788' ECHO_T=' ' ;;
22789 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22790 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22791esac
22792
22793if expr a : '\(a\)' >/dev/null 2>&1; then
22794 as_expr=expr
22795else
22796 as_expr=false
22797fi
22798
22799rm -f conf$$ conf$$.exe conf$$.file
22800echo >conf$$.file
22801if ln -s conf$$.file conf$$ 2>/dev/null; then
22802 # We could just check for DJGPP; but this test a) works b) is more generic
22803 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22804 if test -f conf$$.exe; then
22805 # Don't use ln at all; we don't have any links
22806 as_ln_s='cp -p'
22807 else
22808 as_ln_s='ln -s'
22809 fi
22810elif ln conf$$.file conf$$ 2>/dev/null; then
22811 as_ln_s=ln
22812else
22813 as_ln_s='cp -p'
22814fi
22815rm -f conf$$ conf$$.exe conf$$.file
22816
22817if mkdir -p . 2>/dev/null; then
22818 as_mkdir_p=:
22819else
Lev Walkin8e8b5482004-06-17 23:42:48 +000022820 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +000022821 as_mkdir_p=false
22822fi
22823
22824as_executable_p="test -f"
22825
22826# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000022827as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000022828
22829# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000022830as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000022831
22832
22833# IFS
22834# We need space, tab and new line, in precisely that order.
22835as_nl='
22836'
22837IFS=" $as_nl"
22838
22839# CDPATH.
22840$as_unset CDPATH
22841
22842exec 6>&1
22843
22844# Open the log real soon, to keep \$[0] and so on meaningful, and to
22845# report actual input values of CONFIG_FILES etc. instead of their
22846# values after options handling. Logging --version etc. is OK.
22847exec 5>>config.log
22848{
22849 echo
22850 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22851## Running $as_me. ##
22852_ASBOX
22853} >&5
22854cat >&5 <<_CSEOF
22855
22856This file was extended by $as_me, which was
Lev Walkin8e8b5482004-06-17 23:42:48 +000022857generated by GNU Autoconf 2.59. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +000022858
22859 CONFIG_FILES = $CONFIG_FILES
22860 CONFIG_HEADERS = $CONFIG_HEADERS
22861 CONFIG_LINKS = $CONFIG_LINKS
22862 CONFIG_COMMANDS = $CONFIG_COMMANDS
22863 $ $0 $@
22864
22865_CSEOF
22866echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22867echo >&5
22868_ACEOF
22869
22870# Files that config.status was made for.
22871if test -n "$ac_config_files"; then
22872 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22873fi
22874
22875if test -n "$ac_config_headers"; then
22876 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22877fi
22878
22879if test -n "$ac_config_links"; then
22880 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22881fi
22882
22883if test -n "$ac_config_commands"; then
22884 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22885fi
22886
22887cat >>$CONFIG_STATUS <<\_ACEOF
22888
22889ac_cs_usage="\
22890\`$as_me' instantiates files from templates according to the
22891current configuration.
22892
22893Usage: $0 [OPTIONS] [FILE]...
22894
22895 -h, --help print this help, then exit
22896 -V, --version print version number, then exit
22897 -q, --quiet do not print progress messages
22898 -d, --debug don't remove temporary files
22899 --recheck update $as_me by reconfiguring in the same conditions
22900 --file=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000022901 instantiate the configuration file FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000022902 --header=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000022903 instantiate the configuration header FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000022904
22905Configuration files:
22906$config_files
22907
22908Configuration headers:
22909$config_headers
22910
22911Configuration commands:
22912$config_commands
22913
22914Report bugs to <bug-autoconf@gnu.org>."
22915_ACEOF
22916
22917cat >>$CONFIG_STATUS <<_ACEOF
22918ac_cs_version="\\
22919config.status
Lev Walkin8e8b5482004-06-17 23:42:48 +000022920configured by $0, generated by GNU Autoconf 2.59,
Lev Walkinf15320b2004-06-03 03:38:44 +000022921 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22922
Lev Walkin8e8b5482004-06-17 23:42:48 +000022923Copyright (C) 2003 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +000022924This config.status script is free software; the Free Software Foundation
22925gives unlimited permission to copy, distribute and modify it."
22926srcdir=$srcdir
22927INSTALL="$INSTALL"
22928_ACEOF
22929
22930cat >>$CONFIG_STATUS <<\_ACEOF
22931# If no file are specified by the user, then we need to provide default
22932# value. By we need to know if files were specified by the user.
22933ac_need_defaults=:
22934while test $# != 0
22935do
22936 case $1 in
22937 --*=*)
22938 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22939 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22940 ac_shift=:
22941 ;;
22942 -*)
22943 ac_option=$1
22944 ac_optarg=$2
22945 ac_shift=shift
22946 ;;
22947 *) # This is not an option, so the user has probably given explicit
22948 # arguments.
22949 ac_option=$1
22950 ac_need_defaults=false;;
22951 esac
22952
22953 case $ac_option in
22954 # Handling of the options.
22955_ACEOF
22956cat >>$CONFIG_STATUS <<\_ACEOF
22957 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22958 ac_cs_recheck=: ;;
22959 --version | --vers* | -V )
22960 echo "$ac_cs_version"; exit 0 ;;
22961 --he | --h)
22962 # Conflict between --help and --header
22963 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22964Try \`$0 --help' for more information." >&5
22965echo "$as_me: error: ambiguous option: $1
22966Try \`$0 --help' for more information." >&2;}
22967 { (exit 1); exit 1; }; };;
22968 --help | --hel | -h )
22969 echo "$ac_cs_usage"; exit 0 ;;
22970 --debug | --d* | -d )
22971 debug=: ;;
22972 --file | --fil | --fi | --f )
22973 $ac_shift
22974 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22975 ac_need_defaults=false;;
22976 --header | --heade | --head | --hea )
22977 $ac_shift
22978 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22979 ac_need_defaults=false;;
22980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22981 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22982 ac_cs_silent=: ;;
22983
22984 # This is an error.
22985 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22986Try \`$0 --help' for more information." >&5
22987echo "$as_me: error: unrecognized option: $1
22988Try \`$0 --help' for more information." >&2;}
22989 { (exit 1); exit 1; }; } ;;
22990
22991 *) ac_config_targets="$ac_config_targets $1" ;;
22992
22993 esac
22994 shift
22995done
22996
22997ac_configure_extra_args=
22998
22999if $ac_cs_silent; then
23000 exec 6>/dev/null
23001 ac_configure_extra_args="$ac_configure_extra_args --silent"
23002fi
23003
23004_ACEOF
23005cat >>$CONFIG_STATUS <<_ACEOF
23006if \$ac_cs_recheck; then
23007 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23008 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23009fi
23010
23011_ACEOF
23012
23013cat >>$CONFIG_STATUS <<_ACEOF
23014#
23015# INIT-COMMANDS section.
23016#
23017
Lev Walkin8e8b5482004-06-17 23:42:48 +000023018AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +000023019
23020_ACEOF
23021
23022
23023
23024cat >>$CONFIG_STATUS <<\_ACEOF
23025for ac_config_target in $ac_config_targets
23026do
23027 case "$ac_config_target" in
23028 # Handling of arguments.
23029 "libasn1compiler/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
23030 "skeletons/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
23031 "libasn1parser/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
23032 "libasn1print/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
23033 "asn1c/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
23034 "libasn1fix/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
23035 "skeletons/Makefile" ) CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
23036 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23037 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23038 "asn1c/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
23039 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23040 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000023041 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023042 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23043 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23044echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23045 { (exit 1); exit 1; }; };;
23046 esac
23047done
23048
23049# If the user did not use the arguments to specify the items to instantiate,
23050# then the envvar interface is used. Set only those that are not.
23051# We use the long form for the default assignment because of an extremely
23052# bizarre bug on SunOS 4.1.3.
23053if $ac_need_defaults; then
23054 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23055 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23056 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23057fi
23058
23059# Have a temporary directory for convenience. Make it in the build tree
23060# simply because there is no reason to put it here, and in addition,
23061# creating and moving files from /tmp can sometimes cause problems.
23062# Create a temporary directory, and hook for its removal unless debugging.
23063$debug ||
23064{
23065 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23066 trap '{ (exit 1); exit 1; }' 1 2 13 15
23067}
23068
23069# Create a (secure) tmp directory for tmp files.
23070
23071{
23072 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23073 test -n "$tmp" && test -d "$tmp"
23074} ||
23075{
23076 tmp=./confstat$$-$RANDOM
23077 (umask 077 && mkdir $tmp)
23078} ||
23079{
23080 echo "$me: cannot create a temporary directory in ." >&2
23081 { (exit 1); exit 1; }
23082}
23083
23084_ACEOF
23085
23086cat >>$CONFIG_STATUS <<_ACEOF
23087
23088#
23089# CONFIG_FILES section.
23090#
23091
23092# No need to generate the scripts if there are no CONFIG_FILES.
23093# This happens for instance when ./config.status config.h
23094if test -n "\$CONFIG_FILES"; then
23095 # Protect against being on the right side of a sed subst in config.status.
23096 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23097 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23098s,@SHELL@,$SHELL,;t t
23099s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23100s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23101s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23102s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23103s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23104s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23105s,@exec_prefix@,$exec_prefix,;t t
23106s,@prefix@,$prefix,;t t
23107s,@program_transform_name@,$program_transform_name,;t t
23108s,@bindir@,$bindir,;t t
23109s,@sbindir@,$sbindir,;t t
23110s,@libexecdir@,$libexecdir,;t t
23111s,@datadir@,$datadir,;t t
23112s,@sysconfdir@,$sysconfdir,;t t
23113s,@sharedstatedir@,$sharedstatedir,;t t
23114s,@localstatedir@,$localstatedir,;t t
23115s,@libdir@,$libdir,;t t
23116s,@includedir@,$includedir,;t t
23117s,@oldincludedir@,$oldincludedir,;t t
23118s,@infodir@,$infodir,;t t
23119s,@mandir@,$mandir,;t t
23120s,@build_alias@,$build_alias,;t t
23121s,@host_alias@,$host_alias,;t t
23122s,@target_alias@,$target_alias,;t t
23123s,@DEFS@,$DEFS,;t t
23124s,@ECHO_C@,$ECHO_C,;t t
23125s,@ECHO_N@,$ECHO_N,;t t
23126s,@ECHO_T@,$ECHO_T,;t t
23127s,@LIBS@,$LIBS,;t t
23128s,@build@,$build,;t t
23129s,@build_cpu@,$build_cpu,;t t
23130s,@build_vendor@,$build_vendor,;t t
23131s,@build_os@,$build_os,;t t
23132s,@host@,$host,;t t
23133s,@host_cpu@,$host_cpu,;t t
23134s,@host_vendor@,$host_vendor,;t t
23135s,@host_os@,$host_os,;t t
23136s,@target@,$target,;t t
23137s,@target_cpu@,$target_cpu,;t t
23138s,@target_vendor@,$target_vendor,;t t
23139s,@target_os@,$target_os,;t t
23140s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23141s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23142s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023143s,@CYGPATH_W@,$CYGPATH_W,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023144s,@PACKAGE@,$PACKAGE,;t t
23145s,@VERSION@,$VERSION,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023146s,@ACLOCAL@,$ACLOCAL,;t t
23147s,@AUTOCONF@,$AUTOCONF,;t t
23148s,@AUTOMAKE@,$AUTOMAKE,;t t
23149s,@AUTOHEADER@,$AUTOHEADER,;t t
23150s,@MAKEINFO@,$MAKEINFO,;t t
23151s,@AMTAR@,$AMTAR,;t t
23152s,@install_sh@,$install_sh,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023153s,@STRIP@,$STRIP,;t t
23154s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023155s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023156s,@mkdir_p@,$mkdir_p,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023157s,@AWK@,$AWK,;t t
23158s,@SET_MAKE@,$SET_MAKE,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023159s,@am__leading_dot@,$am__leading_dot,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023160s,@PATH@,$PATH,;t t
23161s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23162s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23163s,@MAINT@,$MAINT,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023164s,@CC@,$CC,;t t
23165s,@CFLAGS@,$CFLAGS,;t t
23166s,@LDFLAGS@,$LDFLAGS,;t t
23167s,@CPPFLAGS@,$CPPFLAGS,;t t
23168s,@ac_ct_CC@,$ac_ct_CC,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023169s,@EXEEXT@,$EXEEXT,;t t
23170s,@OBJEXT@,$OBJEXT,;t t
23171s,@DEPDIR@,$DEPDIR,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023172s,@am__include@,$am__include,;t t
23173s,@am__quote@,$am__quote,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023174s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23175s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23176s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023177s,@CCDEPMODE@,$CCDEPMODE,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023178s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23179s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23180s,@EGREP@,$EGREP,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023181s,@LN_S@,$LN_S,;t t
Lev Walkin8e8b5482004-06-17 23:42:48 +000023182s,@ECHO@,$ECHO,;t t
23183s,@AR@,$AR,;t t
23184s,@ac_ct_AR@,$ac_ct_AR,;t t
23185s,@RANLIB@,$RANLIB,;t t
23186s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23187s,@CPP@,$CPP,;t t
23188s,@CXX@,$CXX,;t t
23189s,@CXXFLAGS@,$CXXFLAGS,;t t
23190s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23191s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23192s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23193s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23194s,@CXXCPP@,$CXXCPP,;t t
23195s,@F77@,$F77,;t t
23196s,@FFLAGS@,$FFLAGS,;t t
23197s,@ac_ct_F77@,$ac_ct_F77,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023198s,@LIBTOOL@,$LIBTOOL,;t t
23199s,@CONFIGURE_DEPENDS@,$CONFIGURE_DEPENDS,;t t
Lev Walkind8b940c2004-08-11 05:35:51 +000023200s,@CPLUSPLUS_FOUND_TRUE@,$CPLUSPLUS_FOUND_TRUE,;t t
23201s,@CPLUSPLUS_FOUND_FALSE@,$CPLUSPLUS_FOUND_FALSE,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023202s,@YACC@,$YACC,;t t
23203s,@LEX@,$LEX,;t t
23204s,@LEXLIB@,$LEXLIB,;t t
23205s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023206s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
Lev Walkinf15320b2004-06-03 03:38:44 +000023207s,@LIBOBJS@,$LIBOBJS,;t t
23208s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23209CEOF
23210
23211_ACEOF
23212
23213 cat >>$CONFIG_STATUS <<\_ACEOF
23214 # Split the substitutions into bite-sized pieces for seds with
23215 # small command number limits, like on Digital OSF/1 and HP-UX.
23216 ac_max_sed_lines=48
23217 ac_sed_frag=1 # Number of current file.
23218 ac_beg=1 # First line for current file.
23219 ac_end=$ac_max_sed_lines # Line after last line for current file.
23220 ac_more_lines=:
23221 ac_sed_cmds=
23222 while $ac_more_lines; do
23223 if test $ac_beg -gt 1; then
23224 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23225 else
23226 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23227 fi
23228 if test ! -s $tmp/subs.frag; then
23229 ac_more_lines=false
23230 else
23231 # The purpose of the label and of the branching condition is to
23232 # speed up the sed processing (if there are no `@' at all, there
23233 # is no need to browse any of the substitutions).
23234 # These are the two extra sed commands mentioned above.
23235 (echo ':t
23236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23237 if test -z "$ac_sed_cmds"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000023238 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Lev Walkinf15320b2004-06-03 03:38:44 +000023239 else
Lev Walkin8e8b5482004-06-17 23:42:48 +000023240 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Lev Walkinf15320b2004-06-03 03:38:44 +000023241 fi
23242 ac_sed_frag=`expr $ac_sed_frag + 1`
23243 ac_beg=$ac_end
23244 ac_end=`expr $ac_end + $ac_max_sed_lines`
23245 fi
23246 done
23247 if test -z "$ac_sed_cmds"; then
23248 ac_sed_cmds=cat
23249 fi
23250fi # test -n "$CONFIG_FILES"
23251
23252_ACEOF
23253cat >>$CONFIG_STATUS <<\_ACEOF
23254for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23255 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23256 case $ac_file in
23257 - | *:- | *:-:* ) # input from stdin
Lev Walkin8e8b5482004-06-17 23:42:48 +000023258 cat >$tmp/stdin
23259 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23260 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023261 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Lev Walkin8e8b5482004-06-17 23:42:48 +000023262 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023263 * ) ac_file_in=$ac_file.in ;;
23264 esac
23265
23266 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23267 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23268$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023269 X"$ac_file" : 'X\(//\)[^/]' \| \
23270 X"$ac_file" : 'X\(//\)$' \| \
23271 X"$ac_file" : 'X\(/\)' \| \
23272 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000023273echo X"$ac_file" |
23274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23275 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23276 /^X\(\/\/\)$/{ s//\1/; q; }
23277 /^X\(\/\).*/{ s//\1/; q; }
23278 s/.*/./; q'`
23279 { if $as_mkdir_p; then
23280 mkdir -p "$ac_dir"
23281 else
23282 as_dir="$ac_dir"
23283 as_dirs=
23284 while test ! -d "$as_dir"; do
23285 as_dirs="$as_dir $as_dirs"
23286 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23287$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023288 X"$as_dir" : 'X\(//\)[^/]' \| \
23289 X"$as_dir" : 'X\(//\)$' \| \
23290 X"$as_dir" : 'X\(/\)' \| \
23291 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000023292echo X"$as_dir" |
23293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23295 /^X\(\/\/\)$/{ s//\1/; q; }
23296 /^X\(\/\).*/{ s//\1/; q; }
23297 s/.*/./; q'`
23298 done
23299 test ! -n "$as_dirs" || mkdir $as_dirs
23300 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23301echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23302 { (exit 1); exit 1; }; }; }
23303
23304 ac_builddir=.
23305
23306if test "$ac_dir" != .; then
23307 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23308 # A "../" for each directory in $ac_dir_suffix.
23309 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23310else
23311 ac_dir_suffix= ac_top_builddir=
23312fi
23313
23314case $srcdir in
23315 .) # No --srcdir option. We are building in place.
23316 ac_srcdir=.
23317 if test -z "$ac_top_builddir"; then
23318 ac_top_srcdir=.
23319 else
23320 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23321 fi ;;
23322 [\\/]* | ?:[\\/]* ) # Absolute path.
23323 ac_srcdir=$srcdir$ac_dir_suffix;
23324 ac_top_srcdir=$srcdir ;;
23325 *) # Relative path.
23326 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23327 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23328esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000023329
23330# Do not use `cd foo && pwd` to compute absolute paths, because
23331# the directories may not exist.
23332case `pwd` in
23333.) ac_abs_builddir="$ac_dir";;
23334*)
23335 case "$ac_dir" in
23336 .) ac_abs_builddir=`pwd`;;
23337 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23338 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23339 esac;;
23340esac
23341case $ac_abs_builddir in
23342.) ac_abs_top_builddir=${ac_top_builddir}.;;
23343*)
23344 case ${ac_top_builddir}. in
23345 .) ac_abs_top_builddir=$ac_abs_builddir;;
23346 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23347 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23348 esac;;
23349esac
23350case $ac_abs_builddir in
23351.) ac_abs_srcdir=$ac_srcdir;;
23352*)
23353 case $ac_srcdir in
23354 .) ac_abs_srcdir=$ac_abs_builddir;;
23355 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23356 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23357 esac;;
23358esac
23359case $ac_abs_builddir in
23360.) ac_abs_top_srcdir=$ac_top_srcdir;;
23361*)
23362 case $ac_top_srcdir in
23363 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23364 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23365 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23366 esac;;
23367esac
Lev Walkinf15320b2004-06-03 03:38:44 +000023368
23369
23370 case $INSTALL in
23371 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23372 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23373 esac
23374
23375 if test x"$ac_file" != x-; then
23376 { echo "$as_me:$LINENO: creating $ac_file" >&5
23377echo "$as_me: creating $ac_file" >&6;}
23378 rm -f "$ac_file"
23379 fi
23380 # Let's still pretend it is `configure' which instantiates (i.e., don't
23381 # use $as_me), people would be surprised to read:
23382 # /* config.h. Generated by config.status. */
23383 if test x"$ac_file" = x-; then
23384 configure_input=
23385 else
23386 configure_input="$ac_file. "
23387 fi
23388 configure_input=$configure_input"Generated from `echo $ac_file_in |
Lev Walkin8e8b5482004-06-17 23:42:48 +000023389 sed 's,.*/,,'` by configure."
Lev Walkinf15320b2004-06-03 03:38:44 +000023390
23391 # First look for the input files in the build tree, otherwise in the
23392 # src tree.
23393 ac_file_inputs=`IFS=:
23394 for f in $ac_file_in; do
23395 case $f in
23396 -) echo $tmp/stdin ;;
23397 [\\/$]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000023398 # Absolute (can't be DOS-style, as IFS=:)
23399 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023400echo "$as_me: error: cannot find input file: $f" >&2;}
23401 { (exit 1); exit 1; }; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000023402 echo "$f";;
Lev Walkinf15320b2004-06-03 03:38:44 +000023403 *) # Relative
Lev Walkin8e8b5482004-06-17 23:42:48 +000023404 if test -f "$f"; then
23405 # Build tree
23406 echo "$f"
23407 elif test -f "$srcdir/$f"; then
23408 # Source tree
23409 echo "$srcdir/$f"
23410 else
23411 # /dev/null tree
23412 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023413echo "$as_me: error: cannot find input file: $f" >&2;}
23414 { (exit 1); exit 1; }; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000023415 fi;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023416 esac
23417 done` || { (exit 1); exit 1; }
23418_ACEOF
23419cat >>$CONFIG_STATUS <<_ACEOF
23420 sed "$ac_vpsub
23421$extrasub
23422_ACEOF
23423cat >>$CONFIG_STATUS <<\_ACEOF
23424:t
23425/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23426s,@configure_input@,$configure_input,;t t
23427s,@srcdir@,$ac_srcdir,;t t
23428s,@abs_srcdir@,$ac_abs_srcdir,;t t
23429s,@top_srcdir@,$ac_top_srcdir,;t t
23430s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23431s,@builddir@,$ac_builddir,;t t
23432s,@abs_builddir@,$ac_abs_builddir,;t t
23433s,@top_builddir@,$ac_top_builddir,;t t
23434s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23435s,@INSTALL@,$ac_INSTALL,;t t
23436" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23437 rm -f $tmp/stdin
23438 if test x"$ac_file" != x-; then
23439 mv $tmp/out $ac_file
23440 else
23441 cat $tmp/out
23442 rm -f $tmp/out
23443 fi
23444
23445done
23446_ACEOF
23447cat >>$CONFIG_STATUS <<\_ACEOF
23448
23449#
23450# CONFIG_HEADER section.
23451#
23452
23453# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23454# NAME is the cpp macro being defined and VALUE is the value it is being given.
23455#
23456# ac_d sets the value in "#define NAME VALUE" lines.
Lev Walkin8e8b5482004-06-17 23:42:48 +000023457ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23458ac_dB='[ ].*$,\1#\2'
Lev Walkinf15320b2004-06-03 03:38:44 +000023459ac_dC=' '
23460ac_dD=',;t'
23461# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Lev Walkin8e8b5482004-06-17 23:42:48 +000023462ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Lev Walkinf15320b2004-06-03 03:38:44 +000023463ac_uB='$,\1#\2define\3'
23464ac_uC=' '
23465ac_uD=',;t'
23466
23467for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23468 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23469 case $ac_file in
23470 - | *:- | *:-:* ) # input from stdin
Lev Walkin8e8b5482004-06-17 23:42:48 +000023471 cat >$tmp/stdin
23472 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23473 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023474 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Lev Walkin8e8b5482004-06-17 23:42:48 +000023475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023476 * ) ac_file_in=$ac_file.in ;;
23477 esac
23478
23479 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23480echo "$as_me: creating $ac_file" >&6;}
23481
23482 # First look for the input files in the build tree, otherwise in the
23483 # src tree.
23484 ac_file_inputs=`IFS=:
23485 for f in $ac_file_in; do
23486 case $f in
23487 -) echo $tmp/stdin ;;
23488 [\\/$]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000023489 # Absolute (can't be DOS-style, as IFS=:)
23490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023491echo "$as_me: error: cannot find input file: $f" >&2;}
23492 { (exit 1); exit 1; }; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000023493 # Do quote $f, to prevent DOS paths from being IFS'd.
23494 echo "$f";;
Lev Walkinf15320b2004-06-03 03:38:44 +000023495 *) # Relative
Lev Walkin8e8b5482004-06-17 23:42:48 +000023496 if test -f "$f"; then
23497 # Build tree
23498 echo "$f"
23499 elif test -f "$srcdir/$f"; then
23500 # Source tree
23501 echo "$srcdir/$f"
23502 else
23503 # /dev/null tree
23504 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000023505echo "$as_me: error: cannot find input file: $f" >&2;}
23506 { (exit 1); exit 1; }; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000023507 fi;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023508 esac
23509 done` || { (exit 1); exit 1; }
23510 # Remove the trailing spaces.
Lev Walkin8e8b5482004-06-17 23:42:48 +000023511 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Lev Walkinf15320b2004-06-03 03:38:44 +000023512
23513_ACEOF
23514
23515# Transform confdefs.h into two sed scripts, `conftest.defines' and
23516# `conftest.undefs', that substitutes the proper values into
23517# config.h.in to produce config.h. The first handles `#define'
23518# templates, and the second `#undef' templates.
23519# And first: Protect against being on the right side of a sed subst in
23520# config.status. Protect against being in an unquoted here document
23521# in config.status.
23522rm -f conftest.defines conftest.undefs
23523# Using a here document instead of a string reduces the quoting nightmare.
23524# Putting comments in sed scripts is not portable.
23525#
23526# `end' is used to avoid that the second main sed command (meant for
23527# 0-ary CPP macros) applies to n-ary macro definitions.
23528# See the Autoconf documentation for `clear'.
23529cat >confdef2sed.sed <<\_ACEOF
23530s/[\\&,]/\\&/g
23531s,[\\$`],\\&,g
23532t clear
23533: clear
Lev Walkin8e8b5482004-06-17 23:42:48 +000023534s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Lev Walkinf15320b2004-06-03 03:38:44 +000023535t end
Lev Walkin8e8b5482004-06-17 23:42:48 +000023536s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Lev Walkinf15320b2004-06-03 03:38:44 +000023537: end
23538_ACEOF
23539# If some macros were called several times there might be several times
23540# the same #defines, which is useless. Nevertheless, we may not want to
23541# sort them, since we want the *last* AC-DEFINE to be honored.
23542uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23543sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23544rm -f confdef2sed.sed
23545
23546# This sed command replaces #undef with comments. This is necessary, for
23547# example, in the case of _POSIX_SOURCE, which is predefined and required
23548# on some systems where configure will not decide to define it.
23549cat >>conftest.undefs <<\_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +000023550s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Lev Walkinf15320b2004-06-03 03:38:44 +000023551_ACEOF
23552
23553# Break up conftest.defines because some shells have a limit on the size
23554# of here documents, and old seds have small limits too (100 cmds).
23555echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Lev Walkin8e8b5482004-06-17 23:42:48 +000023556echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000023557echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23558echo ' :' >>$CONFIG_STATUS
23559rm -f conftest.tail
23560while grep . conftest.defines >/dev/null
23561do
23562 # Write a limited-size here document to $tmp/defines.sed.
23563 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23564 # Speed up: don't consider the non `#define' lines.
Lev Walkin8e8b5482004-06-17 23:42:48 +000023565 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000023566 # Work around the forget-to-reset-the-flag bug.
23567 echo 't clr' >>$CONFIG_STATUS
23568 echo ': clr' >>$CONFIG_STATUS
23569 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23570 echo 'CEOF
23571 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23572 rm -f $tmp/in
23573 mv $tmp/out $tmp/in
23574' >>$CONFIG_STATUS
23575 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23576 rm -f conftest.defines
23577 mv conftest.tail conftest.defines
23578done
23579rm -f conftest.defines
23580echo ' fi # grep' >>$CONFIG_STATUS
23581echo >>$CONFIG_STATUS
23582
23583# Break up conftest.undefs because some shells have a limit on the size
23584# of here documents, and old seds have small limits too (100 cmds).
23585echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23586rm -f conftest.tail
23587while grep . conftest.undefs >/dev/null
23588do
23589 # Write a limited-size here document to $tmp/undefs.sed.
23590 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23591 # Speed up: don't consider the non `#undef'
Lev Walkin8e8b5482004-06-17 23:42:48 +000023592 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000023593 # Work around the forget-to-reset-the-flag bug.
23594 echo 't clr' >>$CONFIG_STATUS
23595 echo ': clr' >>$CONFIG_STATUS
23596 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23597 echo 'CEOF
23598 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23599 rm -f $tmp/in
23600 mv $tmp/out $tmp/in
23601' >>$CONFIG_STATUS
23602 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23603 rm -f conftest.undefs
23604 mv conftest.tail conftest.undefs
23605done
23606rm -f conftest.undefs
23607
23608cat >>$CONFIG_STATUS <<\_ACEOF
23609 # Let's still pretend it is `configure' which instantiates (i.e., don't
23610 # use $as_me), people would be surprised to read:
23611 # /* config.h. Generated by config.status. */
23612 if test x"$ac_file" = x-; then
23613 echo "/* Generated by configure. */" >$tmp/config.h
23614 else
23615 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23616 fi
23617 cat $tmp/in >>$tmp/config.h
23618 rm -f $tmp/in
23619 if test x"$ac_file" != x-; then
23620 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23621 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23622echo "$as_me: $ac_file is unchanged" >&6;}
23623 else
23624 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23625$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023626 X"$ac_file" : 'X\(//\)[^/]' \| \
23627 X"$ac_file" : 'X\(//\)$' \| \
23628 X"$ac_file" : 'X\(/\)' \| \
23629 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000023630echo X"$ac_file" |
23631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23633 /^X\(\/\/\)$/{ s//\1/; q; }
23634 /^X\(\/\).*/{ s//\1/; q; }
23635 s/.*/./; q'`
23636 { if $as_mkdir_p; then
23637 mkdir -p "$ac_dir"
23638 else
23639 as_dir="$ac_dir"
23640 as_dirs=
23641 while test ! -d "$as_dir"; do
23642 as_dirs="$as_dir $as_dirs"
23643 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23644$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023645 X"$as_dir" : 'X\(//\)[^/]' \| \
23646 X"$as_dir" : 'X\(//\)$' \| \
23647 X"$as_dir" : 'X\(/\)' \| \
23648 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000023649echo X"$as_dir" |
23650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23652 /^X\(\/\/\)$/{ s//\1/; q; }
23653 /^X\(\/\).*/{ s//\1/; q; }
23654 s/.*/./; q'`
23655 done
23656 test ! -n "$as_dirs" || mkdir $as_dirs
23657 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23658echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23659 { (exit 1); exit 1; }; }; }
23660
23661 rm -f $ac_file
23662 mv $tmp/config.h $ac_file
23663 fi
23664 else
23665 cat $tmp/config.h
23666 rm -f $tmp/config.h
23667 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000023668# Compute $ac_file's index in $config_headers.
23669_am_stamp_count=1
23670for _am_header in $config_headers :; do
23671 case $_am_header in
23672 $ac_file | $ac_file:* )
23673 break ;;
23674 * )
23675 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000023676 esac
23677done
Lev Walkin8e8b5482004-06-17 23:42:48 +000023678echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23679$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23680 X$ac_file : 'X\(//\)[^/]' \| \
23681 X$ac_file : 'X\(//\)$' \| \
23682 X$ac_file : 'X\(/\)' \| \
23683 . : '\(.\)' 2>/dev/null ||
23684echo X$ac_file |
23685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23687 /^X\(\/\/\)$/{ s//\1/; q; }
23688 /^X\(\/\).*/{ s//\1/; q; }
23689 s/.*/./; q'`/stamp-h$_am_stamp_count
23690done
Lev Walkinf15320b2004-06-03 03:38:44 +000023691_ACEOF
23692cat >>$CONFIG_STATUS <<\_ACEOF
23693
23694#
23695# CONFIG_COMMANDS section.
23696#
23697for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23698 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23699 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23700 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23701$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000023702 X"$ac_dest" : 'X\(//\)[^/]' \| \
23703 X"$ac_dest" : 'X\(//\)$' \| \
23704 X"$ac_dest" : 'X\(/\)' \| \
23705 . : '\(.\)' 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000023706echo X"$ac_dest" |
23707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23709 /^X\(\/\/\)$/{ s//\1/; q; }
23710 /^X\(\/\).*/{ s//\1/; q; }
23711 s/.*/./; q'`
Lev Walkin8e8b5482004-06-17 23:42:48 +000023712 { if $as_mkdir_p; then
23713 mkdir -p "$ac_dir"
23714 else
23715 as_dir="$ac_dir"
23716 as_dirs=
23717 while test ! -d "$as_dir"; do
23718 as_dirs="$as_dir $as_dirs"
23719 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23720$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23721 X"$as_dir" : 'X\(//\)[^/]' \| \
23722 X"$as_dir" : 'X\(//\)$' \| \
23723 X"$as_dir" : 'X\(/\)' \| \
23724 . : '\(.\)' 2>/dev/null ||
23725echo X"$as_dir" |
23726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23728 /^X\(\/\/\)$/{ s//\1/; q; }
23729 /^X\(\/\).*/{ s//\1/; q; }
23730 s/.*/./; q'`
23731 done
23732 test ! -n "$as_dirs" || mkdir $as_dirs
23733 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23734echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23735 { (exit 1); exit 1; }; }; }
23736
Lev Walkinf15320b2004-06-03 03:38:44 +000023737 ac_builddir=.
23738
23739if test "$ac_dir" != .; then
23740 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23741 # A "../" for each directory in $ac_dir_suffix.
23742 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23743else
23744 ac_dir_suffix= ac_top_builddir=
23745fi
23746
23747case $srcdir in
23748 .) # No --srcdir option. We are building in place.
23749 ac_srcdir=.
23750 if test -z "$ac_top_builddir"; then
23751 ac_top_srcdir=.
23752 else
23753 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23754 fi ;;
23755 [\\/]* | ?:[\\/]* ) # Absolute path.
23756 ac_srcdir=$srcdir$ac_dir_suffix;
23757 ac_top_srcdir=$srcdir ;;
23758 *) # Relative path.
23759 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23760 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23761esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000023762
23763# Do not use `cd foo && pwd` to compute absolute paths, because
23764# the directories may not exist.
23765case `pwd` in
23766.) ac_abs_builddir="$ac_dir";;
23767*)
23768 case "$ac_dir" in
23769 .) ac_abs_builddir=`pwd`;;
23770 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23771 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23772 esac;;
23773esac
23774case $ac_abs_builddir in
23775.) ac_abs_top_builddir=${ac_top_builddir}.;;
23776*)
23777 case ${ac_top_builddir}. in
23778 .) ac_abs_top_builddir=$ac_abs_builddir;;
23779 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23780 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23781 esac;;
23782esac
23783case $ac_abs_builddir in
23784.) ac_abs_srcdir=$ac_srcdir;;
23785*)
23786 case $ac_srcdir in
23787 .) ac_abs_srcdir=$ac_abs_builddir;;
23788 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23789 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23790 esac;;
23791esac
23792case $ac_abs_builddir in
23793.) ac_abs_top_srcdir=$ac_top_srcdir;;
23794*)
23795 case $ac_top_srcdir in
23796 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23797 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23798 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23799 esac;;
23800esac
Lev Walkinf15320b2004-06-03 03:38:44 +000023801
23802
23803 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23804echo "$as_me: executing $ac_dest commands" >&6;}
23805 case $ac_dest in
Lev Walkin8e8b5482004-06-17 23:42:48 +000023806 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23807 # Strip MF so we end up with the name of the file.
23808 mf=`echo "$mf" | sed -e 's/:.*$//'`
23809 # Check whether this is an Automake generated Makefile or not.
23810 # We used to match only the files named `Makefile.in', but
23811 # some people rename them; so instead we look at the file content.
23812 # Grep'ing the first line is not enough: some people post-process
23813 # each Makefile.in and add a new line on top of each file to say so.
23814 # So let's grep whole file.
23815 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23816 dirpart=`(dirname "$mf") 2>/dev/null ||
23817$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23818 X"$mf" : 'X\(//\)[^/]' \| \
23819 X"$mf" : 'X\(//\)$' \| \
23820 X"$mf" : 'X\(/\)' \| \
23821 . : '\(.\)' 2>/dev/null ||
23822echo X"$mf" |
23823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23825 /^X\(\/\/\)$/{ s//\1/; q; }
23826 /^X\(\/\).*/{ s//\1/; q; }
23827 s/.*/./; q'`
23828 else
23829 continue
23830 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000023831 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23832 # Extract the definition of DEP_FILES from the Makefile without
23833 # running `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +000023834 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000023835 test -z "$DEPDIR" && continue
23836 # When using ansi2knr, U may be empty or an underscore; expand it
Lev Walkin8e8b5482004-06-17 23:42:48 +000023837 U=`sed -n 's/^U = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000023838 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23839 # We invoke sed twice because it is the simplest approach to
23840 # changing $(DEPDIR) to its actual value in the expansion.
Lev Walkin8e8b5482004-06-17 23:42:48 +000023841 for file in `sed -n '
Lev Walkinf15320b2004-06-03 03:38:44 +000023842 /^DEP_FILES = .*\\\\$/ {
23843 s/^DEP_FILES = //
23844 :loop
23845 s/\\\\$//
23846 p
23847 n
23848 /\\\\$/ b loop
23849 p
23850 }
23851 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23852 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23853 # Make sure the directory exists.
23854 test -f "$dirpart/$file" && continue
Lev Walkin8e8b5482004-06-17 23:42:48 +000023855 fdir=`(dirname "$file") 2>/dev/null ||
23856$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23857 X"$file" : 'X\(//\)[^/]' \| \
23858 X"$file" : 'X\(//\)$' \| \
23859 X"$file" : 'X\(/\)' \| \
23860 . : '\(.\)' 2>/dev/null ||
23861echo X"$file" |
23862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23864 /^X\(\/\/\)$/{ s//\1/; q; }
23865 /^X\(\/\).*/{ s//\1/; q; }
23866 s/.*/./; q'`
23867 { if $as_mkdir_p; then
23868 mkdir -p $dirpart/$fdir
23869 else
23870 as_dir=$dirpart/$fdir
23871 as_dirs=
23872 while test ! -d "$as_dir"; do
23873 as_dirs="$as_dir $as_dirs"
23874 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23875$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23876 X"$as_dir" : 'X\(//\)[^/]' \| \
23877 X"$as_dir" : 'X\(//\)$' \| \
23878 X"$as_dir" : 'X\(/\)' \| \
23879 . : '\(.\)' 2>/dev/null ||
23880echo X"$as_dir" |
23881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23883 /^X\(\/\/\)$/{ s//\1/; q; }
23884 /^X\(\/\).*/{ s//\1/; q; }
23885 s/.*/./; q'`
23886 done
23887 test ! -n "$as_dirs" || mkdir $as_dirs
23888 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23889echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23890 { (exit 1); exit 1; }; }; }
23891
Lev Walkinf15320b2004-06-03 03:38:44 +000023892 # echo "creating $dirpart/$file"
23893 echo '# dummy' > "$dirpart/$file"
23894 done
23895done
23896 ;;
23897 esac
23898done
23899_ACEOF
23900
23901cat >>$CONFIG_STATUS <<\_ACEOF
23902
23903{ (exit 0); exit 0; }
23904_ACEOF
23905chmod +x $CONFIG_STATUS
23906ac_clean_files=$ac_clean_files_save
23907
23908
23909# configure is writing to config.log, and then calls config.status.
23910# config.status does its own redirection, appending to config.log.
23911# Unfortunately, on DOS this fails, as config.log is still kept open
23912# by configure, so config.status won't be able to write to it; its
23913# output is simply discarded. So we exec the FD to /dev/null,
23914# effectively closing config.log, so it can be properly (re)opened and
23915# appended to by config.status. When coming back to configure, we
23916# need to make the FD available again.
23917if test "$no_create" != yes; then
23918 ac_cs_success=:
23919 ac_config_status_args=
23920 test "$silent" = yes &&
23921 ac_config_status_args="$ac_config_status_args --quiet"
23922 exec 5>/dev/null
23923 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23924 exec 5>>config.log
23925 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23926 # would make configure fail if this is the last instruction.
23927 $ac_cs_success || { (exit 1); exit 1; }
23928fi
23929
23930