blob: a65d001850fddea332886d30d1ab4693b7252484 [file] [log] [blame]
Reid Spencerb64eb492004-10-10 22:16:50 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for LLVM 1.4.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276$*
277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='LLVM'
425PACKAGE_TARNAME='-llvm-'
426PACKAGE_VERSION='1.4'
427PACKAGE_STRING='LLVM 1.4'
428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430ac_unique_file=""lib/VMCore/Module.cpp""
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_subdirs_all="$ac_subdirs_all projects/sample"
469ac_subdirs_all="$ac_subdirs_all projects/Stacker"
470ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
471ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
472ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
473ac_subdirs_all="$ac_subdirs_all projects/Java"
474ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
475ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
476ac_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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar LLVMGCCDIR ENABLE_OPTIMIZED ENABLE_OPTIMIZED_TRUE ENABLE_OPTIMIZED_FALSE ENABLE_PROFILED ENABLE_PROFILED_TRUE ENABLE_PROFILED_FALSE JIT OS ARCH_X86_TRUE ARCH_X86_FALSE ARCH_SPARC_TRUE ARCH_SPARC_FALSE ARCH_PPC_TRUE ARCH_PPC_FALSE ARCH_UNKNOWN_TRUE ARCH_UNKNOWN_FALSE ARCH ENDIAN 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS PYTHON QMTEST ifGNUmake LLVMCC1 LLVMCC1PLUS ETAGSFLAGS ALLOCA MMAP_FILE HAVE_ZLIB HAVE_BZIP2 SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME subdirs LIBOBJS LTLIBOBJS'
477ac_subst_files=''
478
479# Initialize some variables set by options.
480ac_init_help=
481ac_init_version=false
482# The variables have the same names as the options, with
483# dashes changed to underlines.
484cache_file=/dev/null
485exec_prefix=NONE
486no_create=
487no_recursion=
488prefix=NONE
489program_prefix=NONE
490program_suffix=NONE
491program_transform_name=s,x,x,
492silent=
493site=
494srcdir=
495verbose=
496x_includes=NONE
497x_libraries=NONE
498
499# Installation directory options.
500# These are left unexpanded so users can "make install exec_prefix=/foo"
501# and all the variables that are supposed to be based on exec_prefix
502# by default will actually change.
503# Use braces instead of parens because sh, perl, etc. also accept them.
504bindir='${exec_prefix}/bin'
505sbindir='${exec_prefix}/sbin'
506libexecdir='${exec_prefix}/libexec'
507datadir='${prefix}/share'
508sysconfdir='${prefix}/etc'
509sharedstatedir='${prefix}/com'
510localstatedir='${prefix}/var'
511libdir='${exec_prefix}/lib'
512includedir='${prefix}/include'
513oldincludedir='/usr/include'
514infodir='${prefix}/info'
515mandir='${prefix}/man'
516
517ac_prev=
518for ac_option
519do
520 # If the previous option needs an argument, assign it.
521 if test -n "$ac_prev"; then
522 eval "$ac_prev=\$ac_option"
523 ac_prev=
524 continue
525 fi
526
527 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529 # Accept the important Cygnus configure options, so we can diagnose typos.
530
531 case $ac_option in
532
533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
534 ac_prev=bindir ;;
535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536 bindir=$ac_optarg ;;
537
538 -build | --build | --buil | --bui | --bu)
539 ac_prev=build_alias ;;
540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541 build_alias=$ac_optarg ;;
542
543 -cache-file | --cache-file | --cache-fil | --cache-fi \
544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545 ac_prev=cache_file ;;
546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548 cache_file=$ac_optarg ;;
549
550 --config-cache | -C)
551 cache_file=config.cache ;;
552
553 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554 ac_prev=datadir ;;
555 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556 | --da=*)
557 datadir=$ac_optarg ;;
558
559 -disable-* | --disable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 eval "enable_$ac_feature=no" ;;
567
568 -enable-* | --enable-*)
569 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570 # Reject names that are not valid shell variable names.
571 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573 { (exit 1); exit 1; }; }
574 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575 case $ac_option in
576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577 *) ac_optarg=yes ;;
578 esac
579 eval "enable_$ac_feature='$ac_optarg'" ;;
580
581 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583 | --exec | --exe | --ex)
584 ac_prev=exec_prefix ;;
585 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587 | --exec=* | --exe=* | --ex=*)
588 exec_prefix=$ac_optarg ;;
589
590 -gas | --gas | --ga | --g)
591 # Obsolete; use --with-gas.
592 with_gas=yes ;;
593
594 -help | --help | --hel | --he | -h)
595 ac_init_help=long ;;
596 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597 ac_init_help=recursive ;;
598 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599 ac_init_help=short ;;
600
601 -host | --host | --hos | --ho)
602 ac_prev=host_alias ;;
603 -host=* | --host=* | --hos=* | --ho=*)
604 host_alias=$ac_optarg ;;
605
606 -includedir | --includedir | --includedi | --included | --include \
607 | --includ | --inclu | --incl | --inc)
608 ac_prev=includedir ;;
609 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610 | --includ=* | --inclu=* | --incl=* | --inc=*)
611 includedir=$ac_optarg ;;
612
613 -infodir | --infodir | --infodi | --infod | --info | --inf)
614 ac_prev=infodir ;;
615 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616 infodir=$ac_optarg ;;
617
618 -libdir | --libdir | --libdi | --libd)
619 ac_prev=libdir ;;
620 -libdir=* | --libdir=* | --libdi=* | --libd=*)
621 libdir=$ac_optarg ;;
622
623 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624 | --libexe | --libex | --libe)
625 ac_prev=libexecdir ;;
626 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627 | --libexe=* | --libex=* | --libe=*)
628 libexecdir=$ac_optarg ;;
629
630 -localstatedir | --localstatedir | --localstatedi | --localstated \
631 | --localstate | --localstat | --localsta | --localst \
632 | --locals | --local | --loca | --loc | --lo)
633 ac_prev=localstatedir ;;
634 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637 localstatedir=$ac_optarg ;;
638
639 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640 ac_prev=mandir ;;
641 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642 mandir=$ac_optarg ;;
643
644 -nfp | --nfp | --nf)
645 # Obsolete; use --without-fp.
646 with_fp=no ;;
647
648 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649 | --no-cr | --no-c | -n)
650 no_create=yes ;;
651
652 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654 no_recursion=yes ;;
655
656 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658 | --oldin | --oldi | --old | --ol | --o)
659 ac_prev=oldincludedir ;;
660 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663 oldincludedir=$ac_optarg ;;
664
665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666 ac_prev=prefix ;;
667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668 prefix=$ac_optarg ;;
669
670 -program-prefix | --program-prefix | --program-prefi | --program-pref \
671 | --program-pre | --program-pr | --program-p)
672 ac_prev=program_prefix ;;
673 -program-prefix=* | --program-prefix=* | --program-prefi=* \
674 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675 program_prefix=$ac_optarg ;;
676
677 -program-suffix | --program-suffix | --program-suffi | --program-suff \
678 | --program-suf | --program-su | --program-s)
679 ac_prev=program_suffix ;;
680 -program-suffix=* | --program-suffix=* | --program-suffi=* \
681 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682 program_suffix=$ac_optarg ;;
683
684 -program-transform-name | --program-transform-name \
685 | --program-transform-nam | --program-transform-na \
686 | --program-transform-n | --program-transform- \
687 | --program-transform | --program-transfor \
688 | --program-transfo | --program-transf \
689 | --program-trans | --program-tran \
690 | --progr-tra | --program-tr | --program-t)
691 ac_prev=program_transform_name ;;
692 -program-transform-name=* | --program-transform-name=* \
693 | --program-transform-nam=* | --program-transform-na=* \
694 | --program-transform-n=* | --program-transform-=* \
695 | --program-transform=* | --program-transfor=* \
696 | --program-transfo=* | --program-transf=* \
697 | --program-trans=* | --program-tran=* \
698 | --progr-tra=* | --program-tr=* | --program-t=*)
699 program_transform_name=$ac_optarg ;;
700
701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702 | -silent | --silent | --silen | --sile | --sil)
703 silent=yes ;;
704
705 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706 ac_prev=sbindir ;;
707 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708 | --sbi=* | --sb=*)
709 sbindir=$ac_optarg ;;
710
711 -sharedstatedir | --sharedstatedir | --sharedstatedi \
712 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713 | --sharedst | --shareds | --shared | --share | --shar \
714 | --sha | --sh)
715 ac_prev=sharedstatedir ;;
716 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719 | --sha=* | --sh=*)
720 sharedstatedir=$ac_optarg ;;
721
722 -site | --site | --sit)
723 ac_prev=site ;;
724 -site=* | --site=* | --sit=*)
725 site=$ac_optarg ;;
726
727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728 ac_prev=srcdir ;;
729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730 srcdir=$ac_optarg ;;
731
732 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733 | --syscon | --sysco | --sysc | --sys | --sy)
734 ac_prev=sysconfdir ;;
735 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737 sysconfdir=$ac_optarg ;;
738
739 -target | --target | --targe | --targ | --tar | --ta | --t)
740 ac_prev=target_alias ;;
741 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742 target_alias=$ac_optarg ;;
743
744 -v | -verbose | --verbose | --verbos | --verbo | --verb)
745 verbose=yes ;;
746
747 -version | --version | --versio | --versi | --vers | -V)
748 ac_init_version=: ;;
749
750 -with-* | --with-*)
751 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package| sed 's/-/_/g'`
757 case $ac_option in
758 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759 *) ac_optarg=yes ;;
760 esac
761 eval "with_$ac_package='$ac_optarg'" ;;
762
763 -without-* | --without-*)
764 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765 # Reject names that are not valid shell variable names.
766 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767 { echo "$as_me: error: invalid package name: $ac_package" >&2
768 { (exit 1); exit 1; }; }
769 ac_package=`echo $ac_package | sed 's/-/_/g'`
770 eval "with_$ac_package=no" ;;
771
772 --x)
773 # Obsolete; use --with-x.
774 with_x=yes ;;
775
776 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777 | --x-incl | --x-inc | --x-in | --x-i)
778 ac_prev=x_includes ;;
779 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781 x_includes=$ac_optarg ;;
782
783 -x-libraries | --x-libraries | --x-librarie | --x-librari \
784 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785 ac_prev=x_libraries ;;
786 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788 x_libraries=$ac_optarg ;;
789
790 -*) { echo "$as_me: error: unrecognized option: $ac_option
791Try \`$0 --help' for more information." >&2
792 { (exit 1); exit 1; }; }
793 ;;
794
795 *=*)
796 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800 { (exit 1); exit 1; }; }
801 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802 eval "$ac_envvar='$ac_optarg'"
803 export $ac_envvar ;;
804
805 *)
806 # FIXME: should be removed in autoconf 3.0.
807 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 ;;
812
813 esac
814done
815
816if test -n "$ac_prev"; then
817 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818 { echo "$as_me: error: missing argument to $ac_option" >&2
819 { (exit 1); exit 1; }; }
820fi
821
822# Be sure to have absolute paths.
823for ac_var in exec_prefix prefix
824do
825 eval ac_val=$`echo $ac_var`
826 case $ac_val in
827 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
830 esac
831done
832
833# Be sure to have absolute paths.
834for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835 localstatedir libdir includedir oldincludedir infodir mandir
836do
837 eval ac_val=$`echo $ac_var`
838 case $ac_val in
839 [\\/$]* | ?:[\\/]* ) ;;
840 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841 { (exit 1); exit 1; }; };;
842 esac
843done
844
845# There might be people who depend on the old broken behavior: `$host'
846# used to hold the argument of --host etc.
847# FIXME: To remove some day.
848build=$build_alias
849host=$host_alias
850target=$target_alias
851
852# FIXME: To remove some day.
853if test "x$host_alias" != x; then
854 if test "x$build_alias" = x; then
855 cross_compiling=maybe
856 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857 If a cross compiler is detected then cross compile mode will be used." >&2
858 elif test "x$build_alias" != "x$host_alias"; then
859 cross_compiling=yes
860 fi
861fi
862
863ac_tool_prefix=
864test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866test "$silent" = yes && exec 6>/dev/null
867
868
869# Find the source files, if location was not specified.
870if test -z "$srcdir"; then
871 ac_srcdir_defaulted=yes
872 # Try the directory containing this script, then its parent.
873 ac_confdir=`(dirname "$0") 2>/dev/null ||
874$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875 X"$0" : 'X\(//\)[^/]' \| \
876 X"$0" : 'X\(//\)$' \| \
877 X"$0" : 'X\(/\)' \| \
878 . : '\(.\)' 2>/dev/null ||
879echo X"$0" |
880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882 /^X\(\/\/\)$/{ s//\1/; q; }
883 /^X\(\/\).*/{ s//\1/; q; }
884 s/.*/./; q'`
885 srcdir=$ac_confdir
886 if test ! -r $srcdir/$ac_unique_file; then
887 srcdir=..
888 fi
889else
890 ac_srcdir_defaulted=no
891fi
892if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895 { (exit 1); exit 1; }; }
896 else
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898 { (exit 1); exit 1; }; }
899 fi
900fi
901(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903 { (exit 1); exit 1; }; }
904srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905ac_env_build_alias_set=${build_alias+set}
906ac_env_build_alias_value=$build_alias
907ac_cv_env_build_alias_set=${build_alias+set}
908ac_cv_env_build_alias_value=$build_alias
909ac_env_host_alias_set=${host_alias+set}
910ac_env_host_alias_value=$host_alias
911ac_cv_env_host_alias_set=${host_alias+set}
912ac_cv_env_host_alias_value=$host_alias
913ac_env_target_alias_set=${target_alias+set}
914ac_env_target_alias_value=$target_alias
915ac_cv_env_target_alias_set=${target_alias+set}
916ac_cv_env_target_alias_value=$target_alias
917ac_env_CC_set=${CC+set}
918ac_env_CC_value=$CC
919ac_cv_env_CC_set=${CC+set}
920ac_cv_env_CC_value=$CC
921ac_env_CFLAGS_set=${CFLAGS+set}
922ac_env_CFLAGS_value=$CFLAGS
923ac_cv_env_CFLAGS_set=${CFLAGS+set}
924ac_cv_env_CFLAGS_value=$CFLAGS
925ac_env_LDFLAGS_set=${LDFLAGS+set}
926ac_env_LDFLAGS_value=$LDFLAGS
927ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928ac_cv_env_LDFLAGS_value=$LDFLAGS
929ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930ac_env_CPPFLAGS_value=$CPPFLAGS
931ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933ac_env_CXX_set=${CXX+set}
934ac_env_CXX_value=$CXX
935ac_cv_env_CXX_set=${CXX+set}
936ac_cv_env_CXX_value=$CXX
937ac_env_CXXFLAGS_set=${CXXFLAGS+set}
938ac_env_CXXFLAGS_value=$CXXFLAGS
939ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
940ac_cv_env_CXXFLAGS_value=$CXXFLAGS
941ac_env_CPP_set=${CPP+set}
942ac_env_CPP_value=$CPP
943ac_cv_env_CPP_set=${CPP+set}
944ac_cv_env_CPP_value=$CPP
945ac_env_CXXCPP_set=${CXXCPP+set}
946ac_env_CXXCPP_value=$CXXCPP
947ac_cv_env_CXXCPP_set=${CXXCPP+set}
948ac_cv_env_CXXCPP_value=$CXXCPP
949ac_env_F77_set=${F77+set}
950ac_env_F77_value=$F77
951ac_cv_env_F77_set=${F77+set}
952ac_cv_env_F77_value=$F77
953ac_env_FFLAGS_set=${FFLAGS+set}
954ac_env_FFLAGS_value=$FFLAGS
955ac_cv_env_FFLAGS_set=${FFLAGS+set}
956ac_cv_env_FFLAGS_value=$FFLAGS
957
958#
959# Report the --help message.
960#
961if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
964 cat <<_ACEOF
965\`configure' configures LLVM 1.4 to adapt to many kinds of systems.
966
967Usage: $0 [OPTION]... [VAR=VALUE]...
968
969To assign environment variables (e.g., CC, CFLAGS...), specify them as
970VAR=VALUE. See below for descriptions of some of the useful variables.
971
972Defaults for the options are specified in brackets.
973
974Configuration:
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
984
985_ACEOF
986
987 cat <<_ACEOF
988Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
990 [$ac_default_prefix]
991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
992 [PREFIX]
993
994By default, \`make install' will install all the files in
995\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997for instance \`--prefix=\$HOME'.
998
999For better control, use the options below.
1000
1001Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1014_ACEOF
1015
1016 cat <<\_ACEOF
1017
1018Program names:
1019 --program-prefix=PREFIX prepend PREFIX to installed program names
1020 --program-suffix=SUFFIX append SUFFIX to installed program names
1021 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1022
1023System types:
1024 --build=BUILD configure for building on BUILD [guessed]
1025 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1026 --target=TARGET configure for building compilers for TARGET [HOST]
1027_ACEOF
1028fi
1029
1030if test -n "$ac_init_help"; then
1031 case $ac_init_help in
1032 short | recursive ) echo "Configuration of LLVM 1.4:";;
1033 esac
1034 cat <<\_ACEOF
1035
1036Optional Features:
1037 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1038 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1039 --enable-optimized Build an optimized version of LLVM (default=no)
1040 --enable-profiled Build a profiled version of LLVM (default=no)
1041 --enable-jit Enable Just In Time Compiling (default is YES)
1042 --disable-dependency-tracking speeds up one-time build
1043 --enable-dependency-tracking do not reject slow dependency extractors
1044 --enable-shared[=PKGS]
1045 build shared libraries [default=yes]
1046 --enable-static[=PKGS]
1047 build static libraries [default=yes]
1048 --enable-fast-install[=PKGS]
1049 optimize for fast installation [default=yes]
1050 --disable-libtool-lock avoid locking (might break parallel builds)
1051
1052Optional Packages:
1053 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1054 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1055 --with-llvmgccdir Location of LLVM GCC front-end
1056 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057 --with-pic try to use only PIC/non-PIC objects [default=use
1058 both]
1059 --with-tags[=TAGS]
1060 include additional configurations [automatic]
1061
1062Some influential environment variables:
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CPP C preprocessor
1072 CXXCPP C++ preprocessor
1073 F77 Fortran 77 compiler command
1074 FFLAGS Fortran 77 compiler flags
1075
1076Use these variables to override the choices made by `configure' or to help
1077it to find libraries and programs with nonstandard names/locations.
1078
1079Report bugs to <llvmbugs@cs.uiuc.edu>.
1080_ACEOF
1081fi
1082
1083if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1085 ac_popdir=`pwd`
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1088 ac_builddir=.
1089
1090if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094else
1095 ac_dir_suffix= ac_top_builddir=
1096fi
1097
1098case $srcdir in
1099 .) # No --srcdir option. We are building in place.
1100 ac_srcdir=.
1101 if test -z "$ac_top_builddir"; then
1102 ac_top_srcdir=.
1103 else
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 fi ;;
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1109 *) # Relative path.
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112esac
1113
1114# Do not use `cd foo && pwd` to compute absolute paths, because
1115# the directories may not exist.
1116case `pwd` in
1117.) ac_abs_builddir="$ac_dir";;
1118*)
1119 case "$ac_dir" in
1120 .) ac_abs_builddir=`pwd`;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_top_builddir=${ac_top_builddir}.;;
1127*)
1128 case ${ac_top_builddir}. in
1129 .) ac_abs_top_builddir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_srcdir=$ac_srcdir;;
1136*)
1137 case $ac_srcdir in
1138 .) ac_abs_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_srcdir=$ac_top_srcdir;;
1145*)
1146 case $ac_top_srcdir in
1147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150 esac;;
1151esac
1152
1153 cd $ac_dir
1154 # Check for guested configure; otherwise get Cygnus style configure.
1155 if test -f $ac_srcdir/configure.gnu; then
1156 echo
1157 $SHELL $ac_srcdir/configure.gnu --help=recursive
1158 elif test -f $ac_srcdir/configure; then
1159 echo
1160 $SHELL $ac_srcdir/configure --help=recursive
1161 elif test -f $ac_srcdir/configure.ac ||
1162 test -f $ac_srcdir/configure.in; then
1163 echo
1164 $ac_configure --help
1165 else
1166 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167 fi
1168 cd $ac_popdir
1169 done
1170fi
1171
1172test -n "$ac_init_help" && exit 0
1173if $ac_init_version; then
1174 cat <<\_ACEOF
1175LLVM configure 1.4
1176generated by GNU Autoconf 2.59
1177
1178Copyright (C) 2003 Free Software Foundation, Inc.
1179This configure script is free software; the Free Software Foundation
1180gives unlimited permission to copy, distribute and modify it.
1181_ACEOF
1182 exit 0
1183fi
1184exec 5>config.log
1185cat >&5 <<_ACEOF
1186This file contains any messages produced by compilers while
1187running configure, to aid debugging if configure makes a mistake.
1188
1189It was created by LLVM $as_me 1.4, which was
1190generated by GNU Autoconf 2.59. Invocation command line was
1191
1192 $ $0 $@
1193
1194_ACEOF
1195{
1196cat <<_ASUNAME
1197## --------- ##
1198## Platform. ##
1199## --------- ##
1200
1201hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209
1210/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217
1218_ASUNAME
1219
1220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221for as_dir in $PATH
1222do
1223 IFS=$as_save_IFS
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1226done
1227
1228} >&5
1229
1230cat >&5 <<_ACEOF
1231
1232
1233## ----------- ##
1234## Core tests. ##
1235## ----------- ##
1236
1237_ACEOF
1238
1239
1240# Keep a trace of the command line.
1241# Strip out --no-create and --no-recursion so they do not pile up.
1242# Strip out --silent because we don't want to record it for future runs.
1243# Also quote any args containing shell meta-characters.
1244# Make two passes to allow for proper duplicate-argument suppression.
1245ac_configure_args=
1246ac_configure_args0=
1247ac_configure_args1=
1248ac_sep=
1249ac_must_keep_next=false
1250for ac_pass in 1 2
1251do
1252 for ac_arg
1253 do
1254 case $ac_arg in
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 continue ;;
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 esac
1262 case $ac_pass in
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 2)
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
1267 ac_must_keep_next=false # Got value, back to normal.
1268 else
1269 case $ac_arg in
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276 esac
1277 ;;
1278 -* ) ac_must_keep_next=true ;;
1279 esac
1280 fi
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1283 ac_sep=" "
1284 ;;
1285 esac
1286 done
1287done
1288$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290
1291# When interrupted or exit'd, cleanup temporary files, and complete
1292# config.log. We remove comments because anyway the quotes in there
1293# would cause problems or look ugly.
1294# WARNING: Be sure not to use single quotes in there, as some shells,
1295# such as our DU 5.0 friend, will then `close' the trap.
1296trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1298 {
1299 echo
1300
1301 cat <<\_ASBOX
1302## ---------------- ##
1303## Cache variables. ##
1304## ---------------- ##
1305_ASBOX
1306 echo
1307 # The following way of writing the cache mishandles newlines in values,
1308{
1309 (set) 2>&1 |
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311 *ac_space=\ *)
1312 sed -n \
1313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1315 ;;
1316 *)
1317 sed -n \
1318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319 ;;
1320 esac;
1321}
1322 echo
1323
1324 cat <<\_ASBOX
1325## ----------------- ##
1326## Output variables. ##
1327## ----------------- ##
1328_ASBOX
1329 echo
1330 for ac_var in $ac_subst_vars
1331 do
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1334 done | sort
1335 echo
1336
1337 if test -n "$ac_subst_files"; then
1338 cat <<\_ASBOX
1339## ------------- ##
1340## Output files. ##
1341## ------------- ##
1342_ASBOX
1343 echo
1344 for ac_var in $ac_subst_files
1345 do
1346 eval ac_val=$`echo $ac_var`
1347 echo "$ac_var='"'"'$ac_val'"'"'"
1348 done | sort
1349 echo
1350 fi
1351
1352 if test -s confdefs.h; then
1353 cat <<\_ASBOX
1354## ----------- ##
1355## confdefs.h. ##
1356## ----------- ##
1357_ASBOX
1358 echo
1359 sed "/^$/d" confdefs.h | sort
1360 echo
1361 fi
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1365 } >&5
1366 rm -f core *.core &&
1367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368 exit $exit_status
1369 ' 0
1370for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372done
1373ac_signal=0
1374
1375# confdefs.h avoids OS command line length limits that DEFS can exceed.
1376rm -rf conftest* confdefs.h
1377# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378echo >confdefs.h
1379
1380# Predefined preprocessor variables.
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_NAME "$PACKAGE_NAME"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_VERSION "$PACKAGE_VERSION"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_STRING "$PACKAGE_STRING"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404_ACEOF
1405
1406
1407# Let the site file select an alternate cache file if it wants to.
1408# Prefer explicitly selected file to automatically selected ones.
1409if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 else
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414 fi
1415fi
1416for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1421 . "$ac_site_file"
1422 fi
1423done
1424
1425if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430echo "$as_me: loading cache $cache_file" >&6;}
1431 case $cache_file in
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1434 esac
1435 fi
1436else
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438echo "$as_me: creating cache $cache_file" >&6;}
1439 >$cache_file
1440fi
1441
1442# Check that the precious variables saved in the cache have kept the same
1443# value.
1444ac_cache_corrupted=false
1445for ac_var in `(set) 2>&1 |
1446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1452 set,)
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1456 ,set)
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1460 ,);;
1461 *)
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
1463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1466echo "$as_me: former value: $ac_old_val" >&2;}
1467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1468echo "$as_me: current value: $ac_new_val" >&2;}
1469 ac_cache_corrupted=:
1470 fi;;
1471 esac
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1474 case $ac_new_val in
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1478 esac
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482 esac
1483 fi
1484done
1485if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1491fi
1492
1493ac_ext=c
1494ac_cpp='$CPP $CPPFLAGS'
1495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526ac_aux_dir=
1527for ac_dir in autoconf $srcdir/autoconf; do
1528 if test -f $ac_dir/install-sh; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install-sh -c"
1531 break
1532 elif test -f $ac_dir/install.sh; then
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/install.sh -c"
1535 break
1536 elif test -f $ac_dir/shtool; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/shtool install -c"
1539 break
1540 fi
1541done
1542if test -z "$ac_aux_dir"; then
1543 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1544echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1545 { (exit 1); exit 1; }; }
1546fi
1547ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1548ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1549ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1550
1551
1552
1553
1554# Make sure we can run config.sub.
1555$ac_config_sub sun4 >/dev/null 2>&1 ||
1556 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1557echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1558 { (exit 1); exit 1; }; }
1559
1560echo "$as_me:$LINENO: checking build system type" >&5
1561echo $ECHO_N "checking build system type... $ECHO_C" >&6
1562if test "${ac_cv_build+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565 ac_cv_build_alias=$build_alias
1566test -z "$ac_cv_build_alias" &&
1567 ac_cv_build_alias=`$ac_config_guess`
1568test -z "$ac_cv_build_alias" &&
1569 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1570echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1571 { (exit 1); exit 1; }; }
1572ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1574echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577fi
1578echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1579echo "${ECHO_T}$ac_cv_build" >&6
1580build=$ac_cv_build
1581build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586echo "$as_me:$LINENO: checking host system type" >&5
1587echo $ECHO_N "checking host system type... $ECHO_C" >&6
1588if test "${ac_cv_host+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 ac_cv_host_alias=$host_alias
1592test -z "$ac_cv_host_alias" &&
1593 ac_cv_host_alias=$ac_cv_build_alias
1594ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1596echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1598
1599fi
1600echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1601echo "${ECHO_T}$ac_cv_host" >&6
1602host=$ac_cv_host
1603host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608echo "$as_me:$LINENO: checking target system type" >&5
1609echo $ECHO_N "checking target system type... $ECHO_C" >&6
1610if test "${ac_cv_target+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 ac_cv_target_alias=$target_alias
1614test "x$ac_cv_target_alias" = "x" &&
1615 ac_cv_target_alias=$ac_cv_host_alias
1616ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1618echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621fi
1622echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1623echo "${ECHO_T}$ac_cv_target" >&6
1624target=$ac_cv_target
1625target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630# The aliases save the names the user supplied, while $host etc.
1631# will get canonicalized.
1632test -n "$target_alias" &&
1633 test "$program_prefix$program_suffix$program_transform_name" = \
1634 NONENONEs,x,x, &&
1635 program_prefix=${target_alias}-
1636
1637if test ${srcdir} != "." ; then
1638 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1639 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1640echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1641 { (exit 1); exit 1; }; }
1642 fi
1643fi
1644
1645am__api_version="1.9"
1646# Find a good install program. We prefer a C program (faster),
1647# so one script is as good as another. But avoid the broken or
1648# incompatible versions:
1649# SysV /etc/install, /usr/sbin/install
1650# SunOS /usr/etc/install
1651# IRIX /sbin/install
1652# AIX /bin/install
1653# AmigaOS /C/install, which installs bootblocks on floppy discs
1654# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1655# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1656# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1657# OS/2's system install, which has a completely different semantic
1658# ./install, which can be erroneously created by make from ./install.sh.
1659echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1660echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1661if test -z "$INSTALL"; then
1662if test "${ac_cv_path_install+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666for as_dir in $PATH
1667do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 # Account for people who put trailing slashes in PATH elements.
1671case $as_dir/ in
1672 ./ | .// | /cC/* | \
1673 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1674 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1675 /usr/ucb/* ) ;;
1676 *)
1677 # OSF1 and SCO ODT 3.0 have their own names for install.
1678 # Don't use installbsd from OSF since it installs stuff as root
1679 # by default.
1680 for ac_prog in ginstall scoinst install; do
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1683 if test $ac_prog = install &&
1684 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1685 # AIX install. It has an incompatible calling convention.
1686 :
1687 elif test $ac_prog = install &&
1688 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1689 # program-specific install script used by HP pwplus--don't use.
1690 :
1691 else
1692 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1693 break 3
1694 fi
1695 fi
1696 done
1697 done
1698 ;;
1699esac
1700done
1701
1702
1703fi
1704 if test "${ac_cv_path_install+set}" = set; then
1705 INSTALL=$ac_cv_path_install
1706 else
1707 # As a last resort, use the slow shell script. We don't cache a
1708 # path for INSTALL within a source directory, because that will
1709 # break other packages using the cache if that directory is
1710 # removed, or if the path is relative.
1711 INSTALL=$ac_install_sh
1712 fi
1713fi
1714echo "$as_me:$LINENO: result: $INSTALL" >&5
1715echo "${ECHO_T}$INSTALL" >&6
1716
1717# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1718# It thinks the first close brace ends the variable substitution.
1719test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1720
1721test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1722
1723test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1724
1725echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1726echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1727# Just in case
1728sleep 1
1729echo timestamp > conftest.file
1730# Do `set' in a subshell so we don't clobber the current shell's
1731# arguments. Must try -L first in case configure is actually a
1732# symlink; some systems play weird games with the mod time of symlinks
1733# (eg FreeBSD returns the mod time of the symlink's containing
1734# directory).
1735if (
1736 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1737 if test "$*" = "X"; then
1738 # -L didn't work.
1739 set X `ls -t $srcdir/configure conftest.file`
1740 fi
1741 rm -f conftest.file
1742 if test "$*" != "X $srcdir/configure conftest.file" \
1743 && test "$*" != "X conftest.file $srcdir/configure"; then
1744
1745 # If neither matched, then we have a broken ls. This can happen
1746 # if, for instance, CONFIG_SHELL is bash and it inherits a
1747 # broken ls alias from the environment. This has actually
1748 # happened. Such a system could not be considered "sane".
1749 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1750alias in your environment" >&5
1751echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1752alias in your environment" >&2;}
1753 { (exit 1); exit 1; }; }
1754 fi
1755
1756 test "$2" = conftest.file
1757 )
1758then
1759 # Ok.
1760 :
1761else
1762 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1763Check your system clock" >&5
1764echo "$as_me: error: newly created file is older than distributed files!
1765Check your system clock" >&2;}
1766 { (exit 1); exit 1; }; }
1767fi
1768echo "$as_me:$LINENO: result: yes" >&5
1769echo "${ECHO_T}yes" >&6
1770test "$program_prefix" != NONE &&
1771 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1772# Use a double $ so make ignores it.
1773test "$program_suffix" != NONE &&
1774 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1775# Double any \ or $. echo might interpret backslashes.
1776# By default was `s,x,x', remove it if useless.
1777cat <<\_ACEOF >conftest.sed
1778s/[\\$]/&&/g;s/;s,x,x,$//
1779_ACEOF
1780program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1781rm conftest.sed
1782
1783# expand $ac_aux_dir to an absolute path
1784am_aux_dir=`cd $ac_aux_dir && pwd`
1785
1786test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1787# Use eval to expand $SHELL
1788if eval "$MISSING --run true"; then
1789 am_missing_run="$MISSING --run "
1790else
1791 am_missing_run=
1792 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1793echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1794fi
1795
1796if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1797 # We used to keeping the `.' as first argument, in order to
1798 # allow $(mkdir_p) to be used without argument. As in
1799 # $(mkdir_p) $(somedir)
1800 # where $(somedir) is conditionally defined. However this is wrong
1801 # for two reasons:
1802 # 1. if the package is installed by a user who cannot write `.'
1803 # make install will fail,
1804 # 2. the above comment should most certainly read
1805 # $(mkdir_p) $(DESTDIR)$(somedir)
1806 # so it does not work when $(somedir) is undefined and
1807 # $(DESTDIR) is not.
1808 # To support the latter case, we have to write
1809 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1810 # so the `.' trick is pointless.
1811 mkdir_p='mkdir -p --'
1812else
1813 # On NextStep and OpenStep, the `mkdir' command does not
1814 # recognize any option. It will interpret all options as
1815 # directories to create, and then abort because `.' already
1816 # exists.
1817 for d in ./-p ./--version;
1818 do
1819 test -d $d && rmdir $d
1820 done
1821 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1822 if test -f "$ac_aux_dir/mkinstalldirs"; then
1823 mkdir_p='$(mkinstalldirs)'
1824 else
1825 mkdir_p='$(install_sh) -d'
1826 fi
1827fi
1828
1829for ac_prog in gawk mawk nawk awk
1830do
1831 # Extract the first word of "$ac_prog", so it can be a program name with args.
1832set dummy $ac_prog; ac_word=$2
1833echo "$as_me:$LINENO: checking for $ac_word" >&5
1834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835if test "${ac_cv_prog_AWK+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837else
1838 if test -n "$AWK"; then
1839 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1840else
1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_AWK="$ac_prog"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1851 fi
1852done
1853done
1854
1855fi
1856fi
1857AWK=$ac_cv_prog_AWK
1858if test -n "$AWK"; then
1859 echo "$as_me:$LINENO: result: $AWK" >&5
1860echo "${ECHO_T}$AWK" >&6
1861else
1862 echo "$as_me:$LINENO: result: no" >&5
1863echo "${ECHO_T}no" >&6
1864fi
1865
1866 test -n "$AWK" && break
1867done
1868
1869echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1870echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1871set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1872if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1874else
1875 cat >conftest.make <<\_ACEOF
1876all:
1877 @echo 'ac_maketemp="$(MAKE)"'
1878_ACEOF
1879# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1880eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1881if test -n "$ac_maketemp"; then
1882 eval ac_cv_prog_make_${ac_make}_set=yes
1883else
1884 eval ac_cv_prog_make_${ac_make}_set=no
1885fi
1886rm -f conftest.make
1887fi
1888if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1889 echo "$as_me:$LINENO: result: yes" >&5
1890echo "${ECHO_T}yes" >&6
1891 SET_MAKE=
1892else
1893 echo "$as_me:$LINENO: result: no" >&5
1894echo "${ECHO_T}no" >&6
1895 SET_MAKE="MAKE=${MAKE-make}"
1896fi
1897
1898rm -rf .tst 2>/dev/null
1899mkdir .tst 2>/dev/null
1900if test -d .tst; then
1901 am__leading_dot=.
1902else
1903 am__leading_dot=_
1904fi
1905rmdir .tst 2>/dev/null
1906
1907# test to see if srcdir already configured
1908if test "`cd $srcdir && pwd`" != "`pwd`" &&
1909 test -f $srcdir/config.status; then
1910 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1911echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1912 { (exit 1); exit 1; }; }
1913fi
1914
1915# test whether we have cygpath
1916if test -z "$CYGPATH_W"; then
1917 if (cygpath --version) >/dev/null 2>/dev/null; then
1918 CYGPATH_W='cygpath -w'
1919 else
1920 CYGPATH_W=echo
1921 fi
1922fi
1923
1924
1925# Define the identity of the package.
1926 PACKAGE='-llvm-'
1927 VERSION='1.4'
1928
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE "$PACKAGE"
1932_ACEOF
1933
1934
1935cat >>confdefs.h <<_ACEOF
1936#define VERSION "$VERSION"
1937_ACEOF
1938
1939# Some tools Automake needs.
1940
1941ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1942
1943
1944AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1945
1946
1947AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1948
1949
1950AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1951
1952
1953MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1954
1955install_sh=${install_sh-"$am_aux_dir/install-sh"}
1956
1957# Installed binaries are usually stripped using `strip' when the user
1958# run `make install-strip'. However `strip' might not be the right
1959# tool to use in cross-compilation environments, therefore Automake
1960# will honor the `STRIP' environment variable to overrule this program.
1961if test "$cross_compiling" != no; then
1962 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1964set dummy ${ac_tool_prefix}strip; ac_word=$2
1965echo "$as_me:$LINENO: checking for $ac_word" >&5
1966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967if test "${ac_cv_prog_STRIP+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970 if test -n "$STRIP"; then
1971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1972else
1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974for as_dir in $PATH
1975do
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 break 2
1983 fi
1984done
1985done
1986
1987fi
1988fi
1989STRIP=$ac_cv_prog_STRIP
1990if test -n "$STRIP"; then
1991 echo "$as_me:$LINENO: result: $STRIP" >&5
1992echo "${ECHO_T}$STRIP" >&6
1993else
1994 echo "$as_me:$LINENO: result: no" >&5
1995echo "${ECHO_T}no" >&6
1996fi
1997
1998fi
1999if test -z "$ac_cv_prog_STRIP"; then
2000 ac_ct_STRIP=$STRIP
2001 # Extract the first word of "strip", so it can be a program name with args.
2002set dummy strip; ac_word=$2
2003echo "$as_me:$LINENO: checking for $ac_word" >&5
2004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2007else
2008 if test -n "$ac_ct_STRIP"; then
2009 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2010else
2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012for as_dir in $PATH
2013do
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_ac_ct_STRIP="strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 break 2
2021 fi
2022done
2023done
2024
2025 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2026fi
2027fi
2028ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2029if test -n "$ac_ct_STRIP"; then
2030 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2031echo "${ECHO_T}$ac_ct_STRIP" >&6
2032else
2033 echo "$as_me:$LINENO: result: no" >&5
2034echo "${ECHO_T}no" >&6
2035fi
2036
2037 STRIP=$ac_ct_STRIP
2038else
2039 STRIP="$ac_cv_prog_STRIP"
2040fi
2041
2042fi
2043INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2044
2045# We need awk for the "check" target. The system "awk" is bad on
2046# some platforms.
2047# Always define AMTAR for backward compatibility.
2048
2049AMTAR=${AMTAR-"${am_missing_run}tar"}
2050
2051am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2063if test "${with_llvmgccdir+set}" = set; then
2064 withval="$with_llvmgccdir"
2065 case "${withval}" in
2066 /*|*/*) LLVMGCCDIR=$withval ;;
2067 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-llvmgccdir" >&5
2068echo "$as_me: error: bad value ${withval} for --with-llvmgccdir" >&2;}
2069 { (exit 1); exit 1; }; } ;;
2070 esac
2071else
2072 LLVMGCCDIR=/usr/local/llvm-gcc
2073fi;
2074
2075
2076# Check whether --enable-optimized or --disable-optimized was given.
2077if test "${enable_optimized+set}" = set; then
2078 enableval="$enable_optimized"
2079 case "${withval}" in
2080 yes) ENABLE_OPTIMIZED=1 ;;
2081 no) ENABLE_OPTIMIZED=0 ;;
2082 "") ENABLE_OPTIMIZED=0 ;;
2083 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --enable-optimized" >&5
2084echo "$as_me: error: bad value ${withval} for --enable-optimized" >&2;}
2085 { (exit 1); exit 1; }; } ;;
2086 esac
2087else
2088 ENABLE_OPTIMIZED=0
2089fi;
2090
2091
2092
2093if test $ENABLE_OPTIMIZED = 1; then
2094 ENABLE_OPTIMIZED_TRUE=
2095 ENABLE_OPTIMIZED_FALSE='#'
2096else
2097 ENABLE_OPTIMIZED_TRUE='#'
2098 ENABLE_OPTIMIZED_FALSE=
2099fi
2100
2101
2102# Check whether --enable-profiled or --disable-profiled was given.
2103if test "${enable_profiled+set}" = set; then
2104 enableval="$enable_profiled"
2105 case "${withval}" in
2106 yes) ENABLE_PROFILED=1 ;;
2107 no) ENABLE_PROFILED=0 ;;
2108 "") ENABLE_PROFILED=0 ;;
2109 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --enable-profiled" >&5
2110echo "$as_me: error: bad value ${withval} for --enable-profiled" >&2;}
2111 { (exit 1); exit 1; }; } ;;
2112 esac
2113else
2114 ENABLE_PROFILED=0
2115fi;
2116ENABLE_PROFILED=$ENABLE_PROFILED
2117
2118
2119
2120if test $ENABLE_PROFILED = 1; then
2121 ENABLE_PROFILED_TRUE=
2122 ENABLE_PROFILED_FALSE='#'
2123else
2124 ENABLE_PROFILED_TRUE='#'
2125 ENABLE_PROFILED_FALSE=
2126fi
2127
2128
2129# Check whether --enable-jit or --disable-jit was given.
2130if test "${enable_jit+set}" = set; then
2131 enableval="$enable_jit"
2132
2133else
2134 enableval=default
2135fi;
2136
2137if test ${enableval} = "no"
2138then
2139 JIT=
2140
2141else
2142 case $target in
2143 *i*86*) JIT=TARGET_HAS_JIT=1
2144 ;;
2145 *sparc*) JIT=TARGET_HAS_JIT=1
2146 ;;
2147 *) JIT=
2148 ;;
2149 esac
2150fi
2151
2152
2153echo "$as_me:$LINENO: checking support for generic build operating system" >&5
2154echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
2155case $build in
2156 *-*-aix*) llvm_platform_type="AIX" ;;
2157 *-*-cygwin*) llvm_platform_type="Cygwin" ;;
2158 *-*-darwin*) llvm_platform_type="Darwin" ;;
2159 *-*-freebsd*) llvm_platform_type="FreeBSD" ;;
2160 *-*-interix*) llvm_platform_type="Interix" ;;
2161 *-*-linux*) llvm_platform_type="Linux" ;;
2162 *-*-solaris*) llvm_platform_type="SunOS" ;;
2163 *-*-win32*) llvm_platform_type="Win32" ;;
2164 *-*-mingw*) llvm_platform_type="Win32" ;;
2165 *)
2166 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
2167echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
2168 { (exit 1); exit 1; }; }
2169 llvm_platform_type="Unknown"
2170 ;;
2171esac
2172OS=$llvm_platform_type
2173
2174echo "$as_me:$LINENO: result: $llvm_platform_type" >&5
2175echo "${ECHO_T}$llvm_platform_type" >&6
2176
2177echo "$as_me:$LINENO: checking target architecture" >&5
2178echo $ECHO_N "checking target architecture... $ECHO_C" >&6
2179case $target in
2180 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
2181 ;;
2182esac
2183
2184case $target in
2185 i*86-*) ARCH="x86" ;;
2186 sparc*-*) ARCH="Sparc" ;;
2187 powerpc*-*) ARCH="PowerPC" ;;
2188 *) ARCH="Unknown";;
2189esac
2190
2191
2192if test $ARCH = "x86"; then
2193 ARCH_X86_TRUE=
2194 ARCH_X86_FALSE='#'
2195else
2196 ARCH_X86_TRUE='#'
2197 ARCH_X86_FALSE=
2198fi
2199
2200
2201
2202if test $ARCH = "Sparc"; then
2203 ARCH_SPARC_TRUE=
2204 ARCH_SPARC_FALSE='#'
2205else
2206 ARCH_SPARC_TRUE='#'
2207 ARCH_SPARC_FALSE=
2208fi
2209
2210
2211
2212if test $ARCH = "PowerPC"; then
2213 ARCH_PPC_TRUE=
2214 ARCH_PPC_FALSE='#'
2215else
2216 ARCH_PPC_TRUE='#'
2217 ARCH_PPC_FALSE=
2218fi
2219
2220
2221
2222if test $ARCH = "Unknown"; then
2223 ARCH_UNKNOWN_TRUE=
2224 ARCH_UNKNOWN_FALSE='#'
2225else
2226 ARCH_UNKNOWN_TRUE='#'
2227 ARCH_UNKNOWN_FALSE=
2228fi
2229
2230ARCH=$ARCH
2231
2232echo "$as_me:$LINENO: result: $ARCH" >&5
2233echo "${ECHO_T}$ARCH" >&6
2234
2235DEPDIR="${am__leading_dot}deps"
2236
2237 ac_config_commands="$ac_config_commands depfiles"
2238
2239
2240am_make=${MAKE-make}
2241cat > confinc << 'END'
2242am__doit:
2243 @echo done
2244.PHONY: am__doit
2245END
2246# If we don't find an include directive, just comment out the code.
2247echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2248echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2249am__include="#"
2250am__quote=
2251_am_result=none
2252# First try GNU make style include.
2253echo "include confinc" > confmf
2254# We grep out `Entering directory' and `Leaving directory'
2255# messages which can occur if `w' ends up in MAKEFLAGS.
2256# In particular we don't look at `^make:' because GNU make might
2257# be invoked under some other name (usually "gmake"), in which
2258# case it prints its new name instead of `make'.
2259if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2260 am__include=include
2261 am__quote=
2262 _am_result=GNU
2263fi
2264# Now try BSD make style include.
2265if test "$am__include" = "#"; then
2266 echo '.include "confinc"' > confmf
2267 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2268 am__include=.include
2269 am__quote="\""
2270 _am_result=BSD
2271 fi
2272fi
2273
2274
2275echo "$as_me:$LINENO: result: $_am_result" >&5
2276echo "${ECHO_T}$_am_result" >&6
2277rm -f confinc confmf
2278
2279# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2280if test "${enable_dependency_tracking+set}" = set; then
2281 enableval="$enable_dependency_tracking"
2282
2283fi;
2284if test "x$enable_dependency_tracking" != xno; then
2285 am_depcomp="$ac_aux_dir/depcomp"
2286 AMDEPBACKSLASH='\'
2287fi
2288
2289
2290if test "x$enable_dependency_tracking" != xno; then
2291 AMDEP_TRUE=
2292 AMDEP_FALSE='#'
2293else
2294 AMDEP_TRUE='#'
2295 AMDEP_FALSE=
2296fi
2297
2298
2299
2300ac_ext=c
2301ac_cpp='$CPP $CPPFLAGS'
2302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305if test -n "$ac_tool_prefix"; then
2306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2307set dummy ${ac_tool_prefix}gcc; ac_word=$2
2308echo "$as_me:$LINENO: checking for $ac_word" >&5
2309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310if test "${ac_cv_prog_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC="$CC" # Let the user override the test.
2315else
2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 break 2
2326 fi
2327done
2328done
2329
2330fi
2331fi
2332CC=$ac_cv_prog_CC
2333if test -n "$CC"; then
2334 echo "$as_me:$LINENO: result: $CC" >&5
2335echo "${ECHO_T}$CC" >&6
2336else
2337 echo "$as_me:$LINENO: result: no" >&5
2338echo "${ECHO_T}no" >&6
2339fi
2340
2341fi
2342if test -z "$ac_cv_prog_CC"; then
2343 ac_ct_CC=$CC
2344 # Extract the first word of "gcc", so it can be a program name with args.
2345set dummy gcc; ac_word=$2
2346echo "$as_me:$LINENO: checking for $ac_word" >&5
2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351 if test -n "$ac_ct_CC"; then
2352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2353else
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361 ac_cv_prog_ac_ct_CC="gcc"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365done
2366done
2367
2368fi
2369fi
2370ac_ct_CC=$ac_cv_prog_ac_ct_CC
2371if test -n "$ac_ct_CC"; then
2372 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2373echo "${ECHO_T}$ac_ct_CC" >&6
2374else
2375 echo "$as_me:$LINENO: result: no" >&5
2376echo "${ECHO_T}no" >&6
2377fi
2378
2379 CC=$ac_ct_CC
2380else
2381 CC="$ac_cv_prog_CC"
2382fi
2383
2384if test -z "$CC"; then
2385 if test -n "$ac_tool_prefix"; then
2386 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2387set dummy ${ac_tool_prefix}cc; ac_word=$2
2388echo "$as_me:$LINENO: checking for $ac_word" >&5
2389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390if test "${ac_cv_prog_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393 if test -n "$CC"; then
2394 ac_cv_prog_CC="$CC" # Let the user override the test.
2395else
2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397for as_dir in $PATH
2398do
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403 ac_cv_prog_CC="${ac_tool_prefix}cc"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 break 2
2406 fi
2407done
2408done
2409
2410fi
2411fi
2412CC=$ac_cv_prog_CC
2413if test -n "$CC"; then
2414 echo "$as_me:$LINENO: result: $CC" >&5
2415echo "${ECHO_T}$CC" >&6
2416else
2417 echo "$as_me:$LINENO: result: no" >&5
2418echo "${ECHO_T}no" >&6
2419fi
2420
2421fi
2422if test -z "$ac_cv_prog_CC"; then
2423 ac_ct_CC=$CC
2424 # Extract the first word of "cc", so it can be a program name with args.
2425set dummy cc; ac_word=$2
2426echo "$as_me:$LINENO: checking for $ac_word" >&5
2427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431 if test -n "$ac_ct_CC"; then
2432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2433else
2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441 ac_cv_prog_ac_ct_CC="cc"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 break 2
2444 fi
2445done
2446done
2447
2448fi
2449fi
2450ac_ct_CC=$ac_cv_prog_ac_ct_CC
2451if test -n "$ac_ct_CC"; then
2452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2453echo "${ECHO_T}$ac_ct_CC" >&6
2454else
2455 echo "$as_me:$LINENO: result: no" >&5
2456echo "${ECHO_T}no" >&6
2457fi
2458
2459 CC=$ac_ct_CC
2460else
2461 CC="$ac_cv_prog_CC"
2462fi
2463
2464fi
2465if test -z "$CC"; then
2466 # Extract the first word of "cc", so it can be a program name with args.
2467set dummy cc; ac_word=$2
2468echo "$as_me:$LINENO: checking for $ac_word" >&5
2469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2470if test "${ac_cv_prog_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475else
2476 ac_prog_rejected=no
2477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2485 ac_prog_rejected=yes
2486 continue
2487 fi
2488 ac_cv_prog_CC="cc"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492done
2493done
2494
2495if test $ac_prog_rejected = yes; then
2496 # We found a bogon in the path, so make sure we never use it.
2497 set dummy $ac_cv_prog_CC
2498 shift
2499 if test $# != 0; then
2500 # We chose a different compiler from the bogus one.
2501 # However, it has the same basename, so the bogon will be chosen
2502 # first if we set CC to just the basename; use the full file name.
2503 shift
2504 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2505 fi
2506fi
2507fi
2508fi
2509CC=$ac_cv_prog_CC
2510if test -n "$CC"; then
2511 echo "$as_me:$LINENO: result: $CC" >&5
2512echo "${ECHO_T}$CC" >&6
2513else
2514 echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6
2516fi
2517
2518fi
2519if test -z "$CC"; then
2520 if test -n "$ac_tool_prefix"; then
2521 for ac_prog in cl
2522 do
2523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2524set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2525echo "$as_me:$LINENO: checking for $ac_word" >&5
2526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2527if test "${ac_cv_prog_CC+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2532else
2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2543 fi
2544done
2545done
2546
2547fi
2548fi
2549CC=$ac_cv_prog_CC
2550if test -n "$CC"; then
2551 echo "$as_me:$LINENO: result: $CC" >&5
2552echo "${ECHO_T}$CC" >&6
2553else
2554 echo "$as_me:$LINENO: result: no" >&5
2555echo "${ECHO_T}no" >&6
2556fi
2557
2558 test -n "$CC" && break
2559 done
2560fi
2561if test -z "$CC"; then
2562 ac_ct_CC=$CC
2563 for ac_prog in cl
2564do
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566set dummy $ac_prog; ac_word=$2
2567echo "$as_me:$LINENO: checking for $ac_word" >&5
2568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2569if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
2572 if test -n "$ac_ct_CC"; then
2573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582 ac_cv_prog_ac_ct_CC="$ac_prog"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586done
2587done
2588
2589fi
2590fi
2591ac_ct_CC=$ac_cv_prog_ac_ct_CC
2592if test -n "$ac_ct_CC"; then
2593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2594echo "${ECHO_T}$ac_ct_CC" >&6
2595else
2596 echo "$as_me:$LINENO: result: no" >&5
2597echo "${ECHO_T}no" >&6
2598fi
2599
2600 test -n "$ac_ct_CC" && break
2601done
2602
2603 CC=$ac_ct_CC
2604fi
2605
2606fi
2607
2608
2609test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2610See \`config.log' for more details." >&5
2611echo "$as_me: error: no acceptable C compiler found in \$PATH
2612See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }
2614
2615# Provide some information about the compiler.
2616echo "$as_me:$LINENO:" \
2617 "checking for C compiler version" >&5
2618ac_compiler=`set X $ac_compile; echo $2`
2619{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2620 (eval $ac_compiler --version </dev/null >&5) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }
2624{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2625 (eval $ac_compiler -v </dev/null >&5) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }
2629{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2630 (eval $ac_compiler -V </dev/null >&5) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }
2634
2635cat >conftest.$ac_ext <<_ACEOF
2636/* confdefs.h. */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
2640/* end confdefs.h. */
2641
2642int
2643main ()
2644{
2645
2646 ;
2647 return 0;
2648}
2649_ACEOF
2650ac_clean_files_save=$ac_clean_files
2651ac_clean_files="$ac_clean_files a.out a.exe b.out"
2652# Try to create an executable without -o first, disregard a.out.
2653# It will help us diagnose broken compilers, and finding out an intuition
2654# of exeext.
2655echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2656echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2657ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2658if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2659 (eval $ac_link_default) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; then
2663 # Find the output, starting from the most likely. This scheme is
2664# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2665# resort.
2666
2667# Be careful to initialize this variable, since it used to be cached.
2668# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2669ac_cv_exeext=
2670# b.out is created by i960 compilers.
2671for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2672do
2673 test -f "$ac_file" || continue
2674 case $ac_file in
2675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2676 ;;
2677 conftest.$ac_ext )
2678 # This is the source file.
2679 ;;
2680 [ab].out )
2681 # We found the default executable, but exeext='' is most
2682 # certainly right.
2683 break;;
2684 *.* )
2685 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2686 # FIXME: I believe we export ac_cv_exeext for Libtool,
2687 # but it would be cool to find out if it's true. Does anybody
2688 # maintain Libtool? --akim.
2689 export ac_cv_exeext
2690 break;;
2691 * )
2692 break;;
2693 esac
2694done
2695else
2696 echo "$as_me: failed program was:" >&5
2697sed 's/^/| /' conftest.$ac_ext >&5
2698
2699{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2700See \`config.log' for more details." >&5
2701echo "$as_me: error: C compiler cannot create executables
2702See \`config.log' for more details." >&2;}
2703 { (exit 77); exit 77; }; }
2704fi
2705
2706ac_exeext=$ac_cv_exeext
2707echo "$as_me:$LINENO: result: $ac_file" >&5
2708echo "${ECHO_T}$ac_file" >&6
2709
2710# Check the compiler produces executables we can run. If not, either
2711# the compiler is broken, or we cross compile.
2712echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2713echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2714# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2715# If not cross compiling, check that we can run a simple program.
2716if test "$cross_compiling" != yes; then
2717 if { ac_try='./$ac_file'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 cross_compiling=no
2724 else
2725 if test "$cross_compiling" = maybe; then
2726 cross_compiling=yes
2727 else
2728 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2729If you meant to cross compile, use \`--host'.
2730See \`config.log' for more details." >&5
2731echo "$as_me: error: cannot run C compiled programs.
2732If you meant to cross compile, use \`--host'.
2733See \`config.log' for more details." >&2;}
2734 { (exit 1); exit 1; }; }
2735 fi
2736 fi
2737fi
2738echo "$as_me:$LINENO: result: yes" >&5
2739echo "${ECHO_T}yes" >&6
2740
2741rm -f a.out a.exe conftest$ac_cv_exeext b.out
2742ac_clean_files=$ac_clean_files_save
2743# Check the compiler produces executables we can run. If not, either
2744# the compiler is broken, or we cross compile.
2745echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2746echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2747echo "$as_me:$LINENO: result: $cross_compiling" >&5
2748echo "${ECHO_T}$cross_compiling" >&6
2749
2750echo "$as_me:$LINENO: checking for suffix of executables" >&5
2751echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2753 (eval $ac_link) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; then
2757 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2758# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2759# work properly (i.e., refer to `conftest.exe'), while it won't with
2760# `rm'.
2761for ac_file in conftest.exe conftest conftest.*; do
2762 test -f "$ac_file" || continue
2763 case $ac_file in
2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2765 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2766 export ac_cv_exeext
2767 break;;
2768 * ) break;;
2769 esac
2770done
2771else
2772 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2773See \`config.log' for more details." >&5
2774echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2775See \`config.log' for more details." >&2;}
2776 { (exit 1); exit 1; }; }
2777fi
2778
2779rm -f conftest$ac_cv_exeext
2780echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2781echo "${ECHO_T}$ac_cv_exeext" >&6
2782
2783rm -f conftest.$ac_ext
2784EXEEXT=$ac_cv_exeext
2785ac_exeext=$EXEEXT
2786echo "$as_me:$LINENO: checking for suffix of object files" >&5
2787echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2788if test "${ac_cv_objext+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2790else
2791 cat >conftest.$ac_ext <<_ACEOF
2792/* confdefs.h. */
2793_ACEOF
2794cat confdefs.h >>conftest.$ac_ext
2795cat >>conftest.$ac_ext <<_ACEOF
2796/* end confdefs.h. */
2797
2798int
2799main ()
2800{
2801
2802 ;
2803 return 0;
2804}
2805_ACEOF
2806rm -f conftest.o conftest.obj
2807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808 (eval $ac_compile) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; then
2812 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2813 case $ac_file in
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2815 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2816 break;;
2817 esac
2818done
2819else
2820 echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2824See \`config.log' for more details." >&5
2825echo "$as_me: error: cannot compute suffix of object files: cannot compile
2826See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2828fi
2829
2830rm -f conftest.$ac_cv_objext conftest.$ac_ext
2831fi
2832echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2833echo "${ECHO_T}$ac_cv_objext" >&6
2834OBJEXT=$ac_cv_objext
2835ac_objext=$OBJEXT
2836echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2837echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2838if test "${ac_cv_c_compiler_gnu+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
2841 cat >conftest.$ac_ext <<_ACEOF
2842/* confdefs.h. */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h. */
2847
2848int
2849main ()
2850{
2851#ifndef __GNUC__
2852 choke me
2853#endif
2854
2855 ;
2856 return 0;
2857}
2858_ACEOF
2859rm -f conftest.$ac_objext
2860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>conftest.er1
2862 ac_status=$?
2863 grep -v '^ *+' conftest.er1 >conftest.err
2864 rm -f conftest.er1
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -z "$ac_c_werror_flag"
2869 || test ! -s conftest.err'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2881 ac_compiler_gnu=yes
2882else
2883 echo "$as_me: failed program was:" >&5
2884sed 's/^/| /' conftest.$ac_ext >&5
2885
2886ac_compiler_gnu=no
2887fi
2888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2889ac_cv_c_compiler_gnu=$ac_compiler_gnu
2890
2891fi
2892echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2893echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2894GCC=`test $ac_compiler_gnu = yes && echo yes`
2895ac_test_CFLAGS=${CFLAGS+set}
2896ac_save_CFLAGS=$CFLAGS
2897CFLAGS="-g"
2898echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2899echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2900if test "${ac_cv_prog_cc_g+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903 cat >conftest.$ac_ext <<_ACEOF
2904/* confdefs.h. */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h. */
2909
2910int
2911main ()
2912{
2913
2914 ;
2915 return 0;
2916}
2917_ACEOF
2918rm -f conftest.$ac_objext
2919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_cv_prog_cc_g=yes
2941else
2942 echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945ac_cv_prog_cc_g=no
2946fi
2947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948fi
2949echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2950echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2951if test "$ac_test_CFLAGS" = set; then
2952 CFLAGS=$ac_save_CFLAGS
2953elif test $ac_cv_prog_cc_g = yes; then
2954 if test "$GCC" = yes; then
2955 CFLAGS="-g -O2"
2956 else
2957 CFLAGS="-g"
2958 fi
2959else
2960 if test "$GCC" = yes; then
2961 CFLAGS="-O2"
2962 else
2963 CFLAGS=
2964 fi
2965fi
2966echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2967echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2968if test "${ac_cv_prog_cc_stdc+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971 ac_cv_prog_cc_stdc=no
2972ac_save_CC=$CC
2973cat >conftest.$ac_ext <<_ACEOF
2974/* confdefs.h. */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h. */
2979#include <stdarg.h>
2980#include <stdio.h>
2981#include <sys/types.h>
2982#include <sys/stat.h>
2983/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2984struct buf { int x; };
2985FILE * (*rcsopen) (struct buf *, struct stat *, int);
2986static char *e (p, i)
2987 char **p;
2988 int i;
2989{
2990 return p[i];
2991}
2992static char *f (char * (*g) (char **, int), char **p, ...)
2993{
2994 char *s;
2995 va_list v;
2996 va_start (v,p);
2997 s = g (p, va_arg (v,int));
2998 va_end (v);
2999 return s;
3000}
3001
3002/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3003 function prototypes and stuff, but not '\xHH' hex character constants.
3004 These don't provoke an error unfortunately, instead are silently treated
3005 as 'x'. The following induces an error, until -std1 is added to get
3006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3007 array size at least. It's necessary to write '\x00'==0 to get something
3008 that's true only with -std1. */
3009int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3010
3011int test (int i, double x);
3012struct s1 {int (*f) (int a);};
3013struct s2 {int (*f) (double a);};
3014int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3015int argc;
3016char **argv;
3017int
3018main ()
3019{
3020return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025# Don't try gcc -ansi; that turns off useful extensions and
3026# breaks some systems' header files.
3027# AIX -qlanglvl=ansi
3028# Ultrix and OSF/1 -std1
3029# HP-UX 10.20 and later -Ae
3030# HP-UX older versions -Aa -D_HPUX_SOURCE
3031# SVR4 -Xc -D__EXTENSIONS__
3032for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3033do
3034 CC="$ac_save_CC $ac_arg"
3035 rm -f conftest.$ac_objext
3036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037 (eval $ac_compile) 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_c_werror_flag"
3045 || test ! -s conftest.err'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_prog_cc_stdc=$ac_arg
3058break
3059else
3060 echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063fi
3064rm -f conftest.err conftest.$ac_objext
3065done
3066rm -f conftest.$ac_ext conftest.$ac_objext
3067CC=$ac_save_CC
3068
3069fi
3070
3071case "x$ac_cv_prog_cc_stdc" in
3072 x|xno)
3073 echo "$as_me:$LINENO: result: none needed" >&5
3074echo "${ECHO_T}none needed" >&6 ;;
3075 *)
3076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3077echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3078 CC="$CC $ac_cv_prog_cc_stdc" ;;
3079esac
3080
3081# Some people use a C++ compiler to compile C. Since we use `exit',
3082# in C++ we need to declare it. In case someone uses the same compiler
3083# for both compiling C and C++ we need to have the C++ compiler decide
3084# the declaration of exit, since it's the most demanding environment.
3085cat >conftest.$ac_ext <<_ACEOF
3086#ifndef __cplusplus
3087 choke me
3088#endif
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -z "$ac_c_werror_flag"
3100 || test ! -s conftest.err'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 (eval $ac_try) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 (eval $ac_try) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3112 for ac_declaration in \
3113 '' \
3114 'extern "C" void std::exit (int) throw (); using std::exit;' \
3115 'extern "C" void std::exit (int); using std::exit;' \
3116 'extern "C" void exit (int) throw ();' \
3117 'extern "C" void exit (int);' \
3118 'void exit (int);'
3119do
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126$ac_declaration
3127#include <stdlib.h>
3128int
3129main ()
3130{
3131exit (42);
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138 (eval $ac_compile) 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_c_werror_flag"
3146 || test ! -s conftest.err'
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 (eval $ac_try) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 :
3159else
3160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163continue
3164fi
3165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3166 cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h. */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h. */
3172$ac_declaration
3173int
3174main ()
3175{
3176exit (42);
3177 ;
3178 return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext
3182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183 (eval $ac_compile) 2>conftest.er1
3184 ac_status=$?
3185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -z "$ac_c_werror_flag"
3191 || test ! -s conftest.err'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 (eval $ac_try) 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3203 break
3204else
3205 echo "$as_me: failed program was:" >&5
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208fi
3209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3210done
3211rm -f conftest*
3212if test -n "$ac_declaration"; then
3213 echo '#ifdef __cplusplus' >>confdefs.h
3214 echo $ac_declaration >>confdefs.h
3215 echo '#endif' >>confdefs.h
3216fi
3217
3218else
3219 echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222fi
3223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3224ac_ext=c
3225ac_cpp='$CPP $CPPFLAGS'
3226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229
3230depcc="$CC" am_compiler_list=
3231
3232echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3233echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3234if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
3237 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3238 # We make a subdir and do the tests there. Otherwise we can end up
3239 # making bogus files that we don't know about and never remove. For
3240 # instance it was reported that on HP-UX the gcc test will end up
3241 # making a dummy file named `D' -- because `-MD' means `put the output
3242 # in D'.
3243 mkdir conftest.dir
3244 # Copy depcomp to subdir because otherwise we won't find it if we're
3245 # using a relative directory.
3246 cp "$am_depcomp" conftest.dir
3247 cd conftest.dir
3248 # We will build objects and dependencies in a subdirectory because
3249 # it helps to detect inapplicable dependency modes. For instance
3250 # both Tru64's cc and ICC support -MD to output dependencies as a
3251 # side effect of compilation, but ICC will put the dependencies in
3252 # the current directory while Tru64 will put them in the object
3253 # directory.
3254 mkdir sub
3255
3256 am_cv_CC_dependencies_compiler_type=none
3257 if test "$am_compiler_list" = ""; then
3258 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3259 fi
3260 for depmode in $am_compiler_list; do
3261 # Setup a source with many dependencies, because some compilers
3262 # like to wrap large dependency lists on column 80 (with \), and
3263 # we should not choose a depcomp mode which is confused by this.
3264 #
3265 # We need to recreate these files for each test, as the compiler may
3266 # overwrite some of them when testing with obscure command lines.
3267 # This happens at least with the AIX C compiler.
3268 : > sub/conftest.c
3269 for i in 1 2 3 4 5 6; do
3270 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3271 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3272 # Solaris 8's {/usr,}/bin/sh.
3273 touch sub/conftst$i.h
3274 done
3275 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3276
3277 case $depmode in
3278 nosideeffect)
3279 # after this tag, mechanisms are not by side-effect, so they'll
3280 # only be used when explicitly requested
3281 if test "x$enable_dependency_tracking" = xyes; then
3282 continue
3283 else
3284 break
3285 fi
3286 ;;
3287 none) break ;;
3288 esac
3289 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3290 # mode. It turns out that the SunPro C++ compiler does not properly
3291 # handle `-M -o', and we need to detect this.
3292 if depmode=$depmode \
3293 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3294 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3295 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3296 >/dev/null 2>conftest.err &&
3297 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3298 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3299 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3300 # icc doesn't choke on unknown options, it will just issue warnings
3301 # or remarks (even with -Werror). So we grep stderr for any message
3302 # that says an option was ignored or not supported.
3303 # When given -MP, icc 7.0 and 7.1 complain thusly:
3304 # icc: Command line warning: ignoring option '-M'; no argument required
3305 # The diagnosis changed in icc 8.0:
3306 # icc: Command line remark: option '-MP' not supported
3307 if (grep 'ignoring option' conftest.err ||
3308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3309 am_cv_CC_dependencies_compiler_type=$depmode
3310 break
3311 fi
3312 fi
3313 done
3314
3315 cd ..
3316 rm -rf conftest.dir
3317else
3318 am_cv_CC_dependencies_compiler_type=none
3319fi
3320
3321fi
3322echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3323echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3324CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3325
3326
3327
3328if
3329 test "x$enable_dependency_tracking" != xno \
3330 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3331 am__fastdepCC_TRUE=
3332 am__fastdepCC_FALSE='#'
3333else
3334 am__fastdepCC_TRUE='#'
3335 am__fastdepCC_FALSE=
3336fi
3337
3338
3339
3340echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3341echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3342if test "${ac_cv_c_bigendian+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345 # See if sys/param.h defines the BYTE_ORDER macro.
3346cat >conftest.$ac_ext <<_ACEOF
3347/* confdefs.h. */
3348_ACEOF
3349cat confdefs.h >>conftest.$ac_ext
3350cat >>conftest.$ac_ext <<_ACEOF
3351/* end confdefs.h. */
3352#include <sys/types.h>
3353#include <sys/param.h>
3354
3355int
3356main ()
3357{
3358#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3359 bogus endian macros
3360#endif
3361
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366rm -f conftest.$ac_objext
3367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368 (eval $ac_compile) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag"
3376 || test ! -s conftest.err'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest.$ac_objext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 (eval $ac_try) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 # It does; now see whether it defined to BIG_ENDIAN or not.
3389cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h. */
3395#include <sys/types.h>
3396#include <sys/param.h>
3397
3398int
3399main ()
3400{
3401#if BYTE_ORDER != BIG_ENDIAN
3402 not big endian
3403#endif
3404
3405 ;
3406 return 0;
3407}
3408_ACEOF
3409rm -f conftest.$ac_objext
3410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } &&
3418 { ac_try='test -z "$ac_c_werror_flag"
3419 || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_cv_c_bigendian=yes
3432else
3433 echo "$as_me: failed program was:" >&5
3434sed 's/^/| /' conftest.$ac_ext >&5
3435
3436ac_cv_c_bigendian=no
3437fi
3438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3439else
3440 echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443# It does not; compile a test program.
3444if test "$cross_compiling" = yes; then
3445 # try to guess the endianness by grepping values into an object file
3446 ac_cv_c_bigendian=unknown
3447 cat >conftest.$ac_ext <<_ACEOF
3448/* confdefs.h. */
3449_ACEOF
3450cat confdefs.h >>conftest.$ac_ext
3451cat >>conftest.$ac_ext <<_ACEOF
3452/* end confdefs.h. */
3453short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3454short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3455void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3456short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3457short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3458void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3459int
3460main ()
3461{
3462 _ascii (); _ebcdic ();
3463 ;
3464 return 0;
3465}
3466_ACEOF
3467rm -f conftest.$ac_objext
3468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469 (eval $ac_compile) 2>conftest.er1
3470 ac_status=$?
3471 grep -v '^ *+' conftest.er1 >conftest.err
3472 rm -f conftest.er1
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } &&
3476 { ac_try='test -z "$ac_c_werror_flag"
3477 || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3490 ac_cv_c_bigendian=yes
3491fi
3492if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3493 if test "$ac_cv_c_bigendian" = unknown; then
3494 ac_cv_c_bigendian=no
3495 else
3496 # finding both strings is unlikely to happen, but who knows?
3497 ac_cv_c_bigendian=unknown
3498 fi
3499fi
3500else
3501 echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504fi
3505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506else
3507 cat >conftest.$ac_ext <<_ACEOF
3508/* confdefs.h. */
3509_ACEOF
3510cat confdefs.h >>conftest.$ac_ext
3511cat >>conftest.$ac_ext <<_ACEOF
3512/* end confdefs.h. */
3513int
3514main ()
3515{
3516 /* Are we little or big endian? From Harbison&Steele. */
3517 union
3518 {
3519 long l;
3520 char c[sizeof (long)];
3521 } u;
3522 u.l = 1;
3523 exit (u.c[sizeof (long) - 1] == 1);
3524}
3525_ACEOF
3526rm -f conftest$ac_exeext
3527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3528 (eval $ac_link) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_cv_c_bigendian=no
3538else
3539 echo "$as_me: program exited with status $ac_status" >&5
3540echo "$as_me: failed program was:" >&5
3541sed 's/^/| /' conftest.$ac_ext >&5
3542
3543( exit $ac_status )
3544ac_cv_c_bigendian=yes
3545fi
3546rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3547fi
3548fi
3549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3550fi
3551echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3552echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3553case $ac_cv_c_bigendian in
3554 yes)
3555 ENDIAN=big
3556 ;;
3557 no)
3558 ENDIAN=little
3559 ;;
3560 *)
3561 { { echo "$as_me:$LINENO: error: unknown endianness
3562presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3563echo "$as_me: error: unknown endianness
3564presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3565 { (exit 1); exit 1; }; } ;;
3566esac
3567
3568
3569
3570# Find a good install program. We prefer a C program (faster),
3571# so one script is as good as another. But avoid the broken or
3572# incompatible versions:
3573# SysV /etc/install, /usr/sbin/install
3574# SunOS /usr/etc/install
3575# IRIX /sbin/install
3576# AIX /bin/install
3577# AmigaOS /C/install, which installs bootblocks on floppy discs
3578# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3579# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3580# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3581# OS/2's system install, which has a completely different semantic
3582# ./install, which can be erroneously created by make from ./install.sh.
3583echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3584echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3585if test -z "$INSTALL"; then
3586if test "${ac_cv_path_install+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 # Account for people who put trailing slashes in PATH elements.
3595case $as_dir/ in
3596 ./ | .// | /cC/* | \
3597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3598 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3599 /usr/ucb/* ) ;;
3600 *)
3601 # OSF1 and SCO ODT 3.0 have their own names for install.
3602 # Don't use installbsd from OSF since it installs stuff as root
3603 # by default.
3604 for ac_prog in ginstall scoinst install; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3607 if test $ac_prog = install &&
3608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3609 # AIX install. It has an incompatible calling convention.
3610 :
3611 elif test $ac_prog = install &&
3612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613 # program-specific install script used by HP pwplus--don't use.
3614 :
3615 else
3616 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3617 break 3
3618 fi
3619 fi
3620 done
3621 done
3622 ;;
3623esac
3624done
3625
3626
3627fi
3628 if test "${ac_cv_path_install+set}" = set; then
3629 INSTALL=$ac_cv_path_install
3630 else
3631 # As a last resort, use the slow shell script. We don't cache a
3632 # path for INSTALL within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the path is relative.
3635 INSTALL=$ac_install_sh
3636 fi
3637fi
3638echo "$as_me:$LINENO: result: $INSTALL" >&5
3639echo "${ECHO_T}$INSTALL" >&6
3640
3641# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3642# It thinks the first close brace ends the variable substitution.
3643test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3644
3645test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3646
3647test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3648
3649
3650ac_ext=cc
3651ac_cpp='$CXXCPP $CPPFLAGS'
3652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3655if test -n "$ac_tool_prefix"; then
3656 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3657 do
3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660echo "$as_me:$LINENO: checking for $ac_word" >&5
3661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662if test "${ac_cv_prog_CXX+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
3665 if test -n "$CXX"; then
3666 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3678 fi
3679done
3680done
3681
3682fi
3683fi
3684CXX=$ac_cv_prog_CXX
3685if test -n "$CXX"; then
3686 echo "$as_me:$LINENO: result: $CXX" >&5
3687echo "${ECHO_T}$CXX" >&6
3688else
3689 echo "$as_me:$LINENO: result: no" >&5
3690echo "${ECHO_T}no" >&6
3691fi
3692
3693 test -n "$CXX" && break
3694 done
3695fi
3696if test -z "$CXX"; then
3697 ac_ct_CXX=$CXX
3698 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3699do
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701set dummy $ac_prog; ac_word=$2
3702echo "$as_me:$LINENO: checking for $ac_word" >&5
3703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
3707 if test -n "$ac_ct_CXX"; then
3708 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_ac_ct_CXX="$ac_prog"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721done
3722done
3723
3724fi
3725fi
3726ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3727if test -n "$ac_ct_CXX"; then
3728 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3729echo "${ECHO_T}$ac_ct_CXX" >&6
3730else
3731 echo "$as_me:$LINENO: result: no" >&5
3732echo "${ECHO_T}no" >&6
3733fi
3734
3735 test -n "$ac_ct_CXX" && break
3736done
3737test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3738
3739 CXX=$ac_ct_CXX
3740fi
3741
3742
3743# Provide some information about the compiler.
3744echo "$as_me:$LINENO:" \
3745 "checking for C++ compiler version" >&5
3746ac_compiler=`set X $ac_compile; echo $2`
3747{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3748 (eval $ac_compiler --version </dev/null >&5) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }
3752{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3753 (eval $ac_compiler -v </dev/null >&5) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }
3757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3758 (eval $ac_compiler -V </dev/null >&5) 2>&5
3759 ac_status=$?
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }
3762
3763echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3764echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3765if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768 cat >conftest.$ac_ext <<_ACEOF
3769/* confdefs.h. */
3770_ACEOF
3771cat confdefs.h >>conftest.$ac_ext
3772cat >>conftest.$ac_ext <<_ACEOF
3773/* end confdefs.h. */
3774
3775int
3776main ()
3777{
3778#ifndef __GNUC__
3779 choke me
3780#endif
3781
3782 ;
3783 return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -z "$ac_cxx_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 ac_compiler_gnu=yes
3809else
3810 echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813ac_compiler_gnu=no
3814fi
3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3817
3818fi
3819echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3820echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3821GXX=`test $ac_compiler_gnu = yes && echo yes`
3822ac_test_CXXFLAGS=${CXXFLAGS+set}
3823ac_save_CXXFLAGS=$CXXFLAGS
3824CXXFLAGS="-g"
3825echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3826echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3827if test "${ac_cv_prog_cxx_g+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830 cat >conftest.$ac_ext <<_ACEOF
3831/* confdefs.h. */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h. */
3836
3837int
3838main ()
3839{
3840
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext
3846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_cxx_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_prog_cxx_g=yes
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872ac_cv_prog_cxx_g=no
3873fi
3874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875fi
3876echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3877echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3878if test "$ac_test_CXXFLAGS" = set; then
3879 CXXFLAGS=$ac_save_CXXFLAGS
3880elif test $ac_cv_prog_cxx_g = yes; then
3881 if test "$GXX" = yes; then
3882 CXXFLAGS="-g -O2"
3883 else
3884 CXXFLAGS="-g"
3885 fi
3886else
3887 if test "$GXX" = yes; then
3888 CXXFLAGS="-O2"
3889 else
3890 CXXFLAGS=
3891 fi
3892fi
3893for ac_declaration in \
3894 '' \
3895 'extern "C" void std::exit (int) throw (); using std::exit;' \
3896 'extern "C" void std::exit (int); using std::exit;' \
3897 'extern "C" void exit (int) throw ();' \
3898 'extern "C" void exit (int);' \
3899 'void exit (int);'
3900do
3901 cat >conftest.$ac_ext <<_ACEOF
3902/* confdefs.h. */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h. */
3907$ac_declaration
3908#include <stdlib.h>
3909int
3910main ()
3911{
3912exit (42);
3913 ;
3914 return 0;
3915}
3916_ACEOF
3917rm -f conftest.$ac_objext
3918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_cxx_werror_flag"
3927 || test ! -s conftest.err'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 (eval $ac_try) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 :
3940else
3941 echo "$as_me: failed program was:" >&5
3942sed 's/^/| /' conftest.$ac_ext >&5
3943
3944continue
3945fi
3946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3947 cat >conftest.$ac_ext <<_ACEOF
3948/* confdefs.h. */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
3952/* end confdefs.h. */
3953$ac_declaration
3954int
3955main ()
3956{
3957exit (42);
3958 ;
3959 return 0;
3960}
3961_ACEOF
3962rm -f conftest.$ac_objext
3963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
3971 { ac_try='test -z "$ac_cxx_werror_flag"
3972 || test ! -s conftest.err'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 break
3985else
3986 echo "$as_me: failed program was:" >&5
3987sed 's/^/| /' conftest.$ac_ext >&5
3988
3989fi
3990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991done
3992rm -f conftest*
3993if test -n "$ac_declaration"; then
3994 echo '#ifdef __cplusplus' >>confdefs.h
3995 echo $ac_declaration >>confdefs.h
3996 echo '#endif' >>confdefs.h
3997fi
3998
3999ac_ext=c
4000ac_cpp='$CPP $CPPFLAGS'
4001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004
4005depcc="$CXX" am_compiler_list=
4006
4007echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4008echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4009if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4013 # We make a subdir and do the tests there. Otherwise we can end up
4014 # making bogus files that we don't know about and never remove. For
4015 # instance it was reported that on HP-UX the gcc test will end up
4016 # making a dummy file named `D' -- because `-MD' means `put the output
4017 # in D'.
4018 mkdir conftest.dir
4019 # Copy depcomp to subdir because otherwise we won't find it if we're
4020 # using a relative directory.
4021 cp "$am_depcomp" conftest.dir
4022 cd conftest.dir
4023 # We will build objects and dependencies in a subdirectory because
4024 # it helps to detect inapplicable dependency modes. For instance
4025 # both Tru64's cc and ICC support -MD to output dependencies as a
4026 # side effect of compilation, but ICC will put the dependencies in
4027 # the current directory while Tru64 will put them in the object
4028 # directory.
4029 mkdir sub
4030
4031 am_cv_CXX_dependencies_compiler_type=none
4032 if test "$am_compiler_list" = ""; then
4033 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4034 fi
4035 for depmode in $am_compiler_list; do
4036 # Setup a source with many dependencies, because some compilers
4037 # like to wrap large dependency lists on column 80 (with \), and
4038 # we should not choose a depcomp mode which is confused by this.
4039 #
4040 # We need to recreate these files for each test, as the compiler may
4041 # overwrite some of them when testing with obscure command lines.
4042 # This happens at least with the AIX C compiler.
4043 : > sub/conftest.c
4044 for i in 1 2 3 4 5 6; do
4045 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4046 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4047 # Solaris 8's {/usr,}/bin/sh.
4048 touch sub/conftst$i.h
4049 done
4050 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4051
4052 case $depmode in
4053 nosideeffect)
4054 # after this tag, mechanisms are not by side-effect, so they'll
4055 # only be used when explicitly requested
4056 if test "x$enable_dependency_tracking" = xyes; then
4057 continue
4058 else
4059 break
4060 fi
4061 ;;
4062 none) break ;;
4063 esac
4064 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4065 # mode. It turns out that the SunPro C++ compiler does not properly
4066 # handle `-M -o', and we need to detect this.
4067 if depmode=$depmode \
4068 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4069 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4070 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4071 >/dev/null 2>conftest.err &&
4072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4073 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4075 # icc doesn't choke on unknown options, it will just issue warnings
4076 # or remarks (even with -Werror). So we grep stderr for any message
4077 # that says an option was ignored or not supported.
4078 # When given -MP, icc 7.0 and 7.1 complain thusly:
4079 # icc: Command line warning: ignoring option '-M'; no argument required
4080 # The diagnosis changed in icc 8.0:
4081 # icc: Command line remark: option '-MP' not supported
4082 if (grep 'ignoring option' conftest.err ||
4083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4084 am_cv_CXX_dependencies_compiler_type=$depmode
4085 break
4086 fi
4087 fi
4088 done
4089
4090 cd ..
4091 rm -rf conftest.dir
4092else
4093 am_cv_CXX_dependencies_compiler_type=none
4094fi
4095
4096fi
4097echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4098echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4099CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4100
4101
4102
4103if
4104 test "x$enable_dependency_tracking" != xno \
4105 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4106 am__fastdepCXX_TRUE=
4107 am__fastdepCXX_FALSE='#'
4108else
4109 am__fastdepCXX_TRUE='#'
4110 am__fastdepCXX_FALSE=
4111fi
4112
4113
4114ac_ext=c
4115ac_cpp='$CPP $CPPFLAGS'
4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119if test -n "$ac_tool_prefix"; then
4120 for ac_prog in gcc
4121 do
4122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4123set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4124echo "$as_me:$LINENO: checking for $ac_word" >&5
4125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126if test "${ac_cv_prog_CC+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129 if test -n "$CC"; then
4130 ac_cv_prog_CC="$CC" # Let the user override the test.
4131else
4132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133for as_dir in $PATH
4134do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 break 2
4142 fi
4143done
4144done
4145
4146fi
4147fi
4148CC=$ac_cv_prog_CC
4149if test -n "$CC"; then
4150 echo "$as_me:$LINENO: result: $CC" >&5
4151echo "${ECHO_T}$CC" >&6
4152else
4153 echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
4155fi
4156
4157 test -n "$CC" && break
4158 done
4159fi
4160if test -z "$CC"; then
4161 ac_ct_CC=$CC
4162 for ac_prog in gcc
4163do
4164 # Extract the first word of "$ac_prog", so it can be a program name with args.
4165set dummy $ac_prog; ac_word=$2
4166echo "$as_me:$LINENO: checking for $ac_word" >&5
4167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170else
4171 if test -n "$ac_ct_CC"; then
4172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4173else
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_ac_ct_CC="$ac_prog"
4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185done
4186done
4187
4188fi
4189fi
4190ac_ct_CC=$ac_cv_prog_ac_ct_CC
4191if test -n "$ac_ct_CC"; then
4192 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4193echo "${ECHO_T}$ac_ct_CC" >&6
4194else
4195 echo "$as_me:$LINENO: result: no" >&5
4196echo "${ECHO_T}no" >&6
4197fi
4198
4199 test -n "$ac_ct_CC" && break
4200done
4201
4202 CC=$ac_ct_CC
4203fi
4204
4205
4206test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4207See \`config.log' for more details." >&5
4208echo "$as_me: error: no acceptable C compiler found in \$PATH
4209See \`config.log' for more details." >&2;}
4210 { (exit 1); exit 1; }; }
4211
4212# Provide some information about the compiler.
4213echo "$as_me:$LINENO:" \
4214 "checking for C compiler version" >&5
4215ac_compiler=`set X $ac_compile; echo $2`
4216{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4217 (eval $ac_compiler --version </dev/null >&5) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }
4221{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4222 (eval $ac_compiler -v </dev/null >&5) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }
4226{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4227 (eval $ac_compiler -V </dev/null >&5) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }
4231
4232echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4233echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4234if test "${ac_cv_c_compiler_gnu+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236else
4237 cat >conftest.$ac_ext <<_ACEOF
4238/* confdefs.h. */
4239_ACEOF
4240cat confdefs.h >>conftest.$ac_ext
4241cat >>conftest.$ac_ext <<_ACEOF
4242/* end confdefs.h. */
4243
4244int
4245main ()
4246{
4247#ifndef __GNUC__
4248 choke me
4249#endif
4250
4251 ;
4252 return 0;
4253}
4254_ACEOF
4255rm -f conftest.$ac_objext
4256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257 (eval $ac_compile) 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
4264 { ac_try='test -z "$ac_c_werror_flag"
4265 || test ! -s conftest.err'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 (eval $ac_try) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 (eval $ac_try) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 ac_compiler_gnu=yes
4278else
4279 echo "$as_me: failed program was:" >&5
4280sed 's/^/| /' conftest.$ac_ext >&5
4281
4282ac_compiler_gnu=no
4283fi
4284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285ac_cv_c_compiler_gnu=$ac_compiler_gnu
4286
4287fi
4288echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4289echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4290GCC=`test $ac_compiler_gnu = yes && echo yes`
4291ac_test_CFLAGS=${CFLAGS+set}
4292ac_save_CFLAGS=$CFLAGS
4293CFLAGS="-g"
4294echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4295echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4296if test "${ac_cv_prog_cc_g+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4298else
4299 cat >conftest.$ac_ext <<_ACEOF
4300/* confdefs.h. */
4301_ACEOF
4302cat confdefs.h >>conftest.$ac_ext
4303cat >>conftest.$ac_ext <<_ACEOF
4304/* end confdefs.h. */
4305
4306int
4307main ()
4308{
4309
4310 ;
4311 return 0;
4312}
4313_ACEOF
4314rm -f conftest.$ac_objext
4315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4316 (eval $ac_compile) 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -z "$ac_c_werror_flag"
4324 || test ! -s conftest.err'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 (eval $ac_try) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; } &&
4330 { ac_try='test -s conftest.$ac_objext'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 (eval $ac_try) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_prog_cc_g=yes
4337else
4338 echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341ac_cv_prog_cc_g=no
4342fi
4343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4344fi
4345echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4346echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4347if test "$ac_test_CFLAGS" = set; then
4348 CFLAGS=$ac_save_CFLAGS
4349elif test $ac_cv_prog_cc_g = yes; then
4350 if test "$GCC" = yes; then
4351 CFLAGS="-g -O2"
4352 else
4353 CFLAGS="-g"
4354 fi
4355else
4356 if test "$GCC" = yes; then
4357 CFLAGS="-O2"
4358 else
4359 CFLAGS=
4360 fi
4361fi
4362echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4363echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4364if test "${ac_cv_prog_cc_stdc+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367 ac_cv_prog_cc_stdc=no
4368ac_save_CC=$CC
4369cat >conftest.$ac_ext <<_ACEOF
4370/* confdefs.h. */
4371_ACEOF
4372cat confdefs.h >>conftest.$ac_ext
4373cat >>conftest.$ac_ext <<_ACEOF
4374/* end confdefs.h. */
4375#include <stdarg.h>
4376#include <stdio.h>
4377#include <sys/types.h>
4378#include <sys/stat.h>
4379/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4380struct buf { int x; };
4381FILE * (*rcsopen) (struct buf *, struct stat *, int);
4382static char *e (p, i)
4383 char **p;
4384 int i;
4385{
4386 return p[i];
4387}
4388static char *f (char * (*g) (char **, int), char **p, ...)
4389{
4390 char *s;
4391 va_list v;
4392 va_start (v,p);
4393 s = g (p, va_arg (v,int));
4394 va_end (v);
4395 return s;
4396}
4397
4398/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4399 function prototypes and stuff, but not '\xHH' hex character constants.
4400 These don't provoke an error unfortunately, instead are silently treated
4401 as 'x'. The following induces an error, until -std1 is added to get
4402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4403 array size at least. It's necessary to write '\x00'==0 to get something
4404 that's true only with -std1. */
4405int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4406
4407int test (int i, double x);
4408struct s1 {int (*f) (int a);};
4409struct s2 {int (*f) (double a);};
4410int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4411int argc;
4412char **argv;
4413int
4414main ()
4415{
4416return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4417 ;
4418 return 0;
4419}
4420_ACEOF
4421# Don't try gcc -ansi; that turns off useful extensions and
4422# breaks some systems' header files.
4423# AIX -qlanglvl=ansi
4424# Ultrix and OSF/1 -std1
4425# HP-UX 10.20 and later -Ae
4426# HP-UX older versions -Aa -D_HPUX_SOURCE
4427# SVR4 -Xc -D__EXTENSIONS__
4428for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4429do
4430 CC="$ac_save_CC $ac_arg"
4431 rm -f conftest.$ac_objext
4432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_cv_prog_cc_stdc=$ac_arg
4454break
4455else
4456 echo "$as_me: failed program was:" >&5
4457sed 's/^/| /' conftest.$ac_ext >&5
4458
4459fi
4460rm -f conftest.err conftest.$ac_objext
4461done
4462rm -f conftest.$ac_ext conftest.$ac_objext
4463CC=$ac_save_CC
4464
4465fi
4466
4467case "x$ac_cv_prog_cc_stdc" in
4468 x|xno)
4469 echo "$as_me:$LINENO: result: none needed" >&5
4470echo "${ECHO_T}none needed" >&6 ;;
4471 *)
4472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4473echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4474 CC="$CC $ac_cv_prog_cc_stdc" ;;
4475esac
4476
4477# Some people use a C++ compiler to compile C. Since we use `exit',
4478# in C++ we need to declare it. In case someone uses the same compiler
4479# for both compiling C and C++ we need to have the C++ compiler decide
4480# the declaration of exit, since it's the most demanding environment.
4481cat >conftest.$ac_ext <<_ACEOF
4482#ifndef __cplusplus
4483 choke me
4484#endif
4485_ACEOF
4486rm -f conftest.$ac_objext
4487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -z "$ac_c_werror_flag"
4496 || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 for ac_declaration in \
4509 '' \
4510 'extern "C" void std::exit (int) throw (); using std::exit;' \
4511 'extern "C" void std::exit (int); using std::exit;' \
4512 'extern "C" void exit (int) throw ();' \
4513 'extern "C" void exit (int);' \
4514 'void exit (int);'
4515do
4516 cat >conftest.$ac_ext <<_ACEOF
4517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
4522$ac_declaration
4523#include <stdlib.h>
4524int
4525main ()
4526{
4527exit (42);
4528 ;
4529 return 0;
4530}
4531_ACEOF
4532rm -f conftest.$ac_objext
4533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>conftest.er1
4535 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
4541 { ac_try='test -z "$ac_c_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 :
4555else
4556 echo "$as_me: failed program was:" >&5
4557sed 's/^/| /' conftest.$ac_ext >&5
4558
4559continue
4560fi
4561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 cat >conftest.$ac_ext <<_ACEOF
4563/* confdefs.h. */
4564_ACEOF
4565cat confdefs.h >>conftest.$ac_ext
4566cat >>conftest.$ac_ext <<_ACEOF
4567/* end confdefs.h. */
4568$ac_declaration
4569int
4570main ()
4571{
4572exit (42);
4573 ;
4574 return 0;
4575}
4576_ACEOF
4577rm -f conftest.$ac_objext
4578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try='test -z "$ac_c_werror_flag"
4587 || test ! -s conftest.err'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 (eval $ac_try) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4599 break
4600else
4601 echo "$as_me: failed program was:" >&5
4602sed 's/^/| /' conftest.$ac_ext >&5
4603
4604fi
4605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4606done
4607rm -f conftest*
4608if test -n "$ac_declaration"; then
4609 echo '#ifdef __cplusplus' >>confdefs.h
4610 echo $ac_declaration >>confdefs.h
4611 echo '#endif' >>confdefs.h
4612fi
4613
4614else
4615 echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618fi
4619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620ac_ext=c
4621ac_cpp='$CPP $CPPFLAGS'
4622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624ac_compiler_gnu=$ac_cv_c_compiler_gnu
4625
4626depcc="$CC" am_compiler_list=
4627
4628echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4629echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4630if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632else
4633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4634 # We make a subdir and do the tests there. Otherwise we can end up
4635 # making bogus files that we don't know about and never remove. For
4636 # instance it was reported that on HP-UX the gcc test will end up
4637 # making a dummy file named `D' -- because `-MD' means `put the output
4638 # in D'.
4639 mkdir conftest.dir
4640 # Copy depcomp to subdir because otherwise we won't find it if we're
4641 # using a relative directory.
4642 cp "$am_depcomp" conftest.dir
4643 cd conftest.dir
4644 # We will build objects and dependencies in a subdirectory because
4645 # it helps to detect inapplicable dependency modes. For instance
4646 # both Tru64's cc and ICC support -MD to output dependencies as a
4647 # side effect of compilation, but ICC will put the dependencies in
4648 # the current directory while Tru64 will put them in the object
4649 # directory.
4650 mkdir sub
4651
4652 am_cv_CC_dependencies_compiler_type=none
4653 if test "$am_compiler_list" = ""; then
4654 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4655 fi
4656 for depmode in $am_compiler_list; do
4657 # Setup a source with many dependencies, because some compilers
4658 # like to wrap large dependency lists on column 80 (with \), and
4659 # we should not choose a depcomp mode which is confused by this.
4660 #
4661 # We need to recreate these files for each test, as the compiler may
4662 # overwrite some of them when testing with obscure command lines.
4663 # This happens at least with the AIX C compiler.
4664 : > sub/conftest.c
4665 for i in 1 2 3 4 5 6; do
4666 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4667 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4668 # Solaris 8's {/usr,}/bin/sh.
4669 touch sub/conftst$i.h
4670 done
4671 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4672
4673 case $depmode in
4674 nosideeffect)
4675 # after this tag, mechanisms are not by side-effect, so they'll
4676 # only be used when explicitly requested
4677 if test "x$enable_dependency_tracking" = xyes; then
4678 continue
4679 else
4680 break
4681 fi
4682 ;;
4683 none) break ;;
4684 esac
4685 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4686 # mode. It turns out that the SunPro C++ compiler does not properly
4687 # handle `-M -o', and we need to detect this.
4688 if depmode=$depmode \
4689 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4690 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4691 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4692 >/dev/null 2>conftest.err &&
4693 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4694 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4695 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4696 # icc doesn't choke on unknown options, it will just issue warnings
4697 # or remarks (even with -Werror). So we grep stderr for any message
4698 # that says an option was ignored or not supported.
4699 # When given -MP, icc 7.0 and 7.1 complain thusly:
4700 # icc: Command line warning: ignoring option '-M'; no argument required
4701 # The diagnosis changed in icc 8.0:
4702 # icc: Command line remark: option '-MP' not supported
4703 if (grep 'ignoring option' conftest.err ||
4704 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4705 am_cv_CC_dependencies_compiler_type=$depmode
4706 break
4707 fi
4708 fi
4709 done
4710
4711 cd ..
4712 rm -rf conftest.dir
4713else
4714 am_cv_CC_dependencies_compiler_type=none
4715fi
4716
4717fi
4718echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4719echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4720CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4721
4722
4723
4724if
4725 test "x$enable_dependency_tracking" != xno \
4726 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4727 am__fastdepCC_TRUE=
4728 am__fastdepCC_FALSE='#'
4729else
4730 am__fastdepCC_TRUE='#'
4731 am__fastdepCC_FALSE=
4732fi
4733
4734
4735ac_ext=c
4736ac_cpp='$CPP $CPPFLAGS'
4737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4741echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4742# On Suns, sometimes $CPP names a directory.
4743if test -n "$CPP" && test -d "$CPP"; then
4744 CPP=
4745fi
4746if test -z "$CPP"; then
4747 if test "${ac_cv_prog_CPP+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750 # Double quotes because CPP needs to be expanded
4751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4752 do
4753 ac_preproc_ok=false
4754for ac_c_preproc_warn_flag in '' yes
4755do
4756 # Use a header file that comes with gcc, so configuring glibc
4757 # with a fresh cross-compiler works.
4758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4759 # <limits.h> exists even on freestanding compilers.
4760 # On the NeXT, cc -E runs the code through the compiler's parser,
4761 # not just through cpp. "Syntax error" is here to catch this case.
4762 cat >conftest.$ac_ext <<_ACEOF
4763/* confdefs.h. */
4764_ACEOF
4765cat confdefs.h >>conftest.$ac_ext
4766cat >>conftest.$ac_ext <<_ACEOF
4767/* end confdefs.h. */
4768#ifdef __STDC__
4769# include <limits.h>
4770#else
4771# include <assert.h>
4772#endif
4773 Syntax error
4774_ACEOF
4775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4777 ac_status=$?
4778 grep -v '^ *+' conftest.er1 >conftest.err
4779 rm -f conftest.er1
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } >/dev/null; then
4783 if test -s conftest.err; then
4784 ac_cpp_err=$ac_c_preproc_warn_flag
4785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4786 else
4787 ac_cpp_err=
4788 fi
4789else
4790 ac_cpp_err=yes
4791fi
4792if test -z "$ac_cpp_err"; then
4793 :
4794else
4795 echo "$as_me: failed program was:" >&5
4796sed 's/^/| /' conftest.$ac_ext >&5
4797
4798 # Broken: fails on valid input.
4799continue
4800fi
4801rm -f conftest.err conftest.$ac_ext
4802
4803 # OK, works on sane cases. Now check whether non-existent headers
4804 # can be detected and how.
4805 cat >conftest.$ac_ext <<_ACEOF
4806/* confdefs.h. */
4807_ACEOF
4808cat confdefs.h >>conftest.$ac_ext
4809cat >>conftest.$ac_ext <<_ACEOF
4810/* end confdefs.h. */
4811#include <ac_nonexistent.h>
4812_ACEOF
4813if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4815 ac_status=$?
4816 grep -v '^ *+' conftest.er1 >conftest.err
4817 rm -f conftest.er1
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } >/dev/null; then
4821 if test -s conftest.err; then
4822 ac_cpp_err=$ac_c_preproc_warn_flag
4823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4824 else
4825 ac_cpp_err=
4826 fi
4827else
4828 ac_cpp_err=yes
4829fi
4830if test -z "$ac_cpp_err"; then
4831 # Broken: success on invalid input.
4832continue
4833else
4834 echo "$as_me: failed program was:" >&5
4835sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 # Passes both tests.
4838ac_preproc_ok=:
4839break
4840fi
4841rm -f conftest.err conftest.$ac_ext
4842
4843done
4844# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845rm -f conftest.err conftest.$ac_ext
4846if $ac_preproc_ok; then
4847 break
4848fi
4849
4850 done
4851 ac_cv_prog_CPP=$CPP
4852
4853fi
4854 CPP=$ac_cv_prog_CPP
4855else
4856 ac_cv_prog_CPP=$CPP
4857fi
4858echo "$as_me:$LINENO: result: $CPP" >&5
4859echo "${ECHO_T}$CPP" >&6
4860ac_preproc_ok=false
4861for ac_c_preproc_warn_flag in '' yes
4862do
4863 # Use a header file that comes with gcc, so configuring glibc
4864 # with a fresh cross-compiler works.
4865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866 # <limits.h> exists even on freestanding compilers.
4867 # On the NeXT, cc -E runs the code through the compiler's parser,
4868 # not just through cpp. "Syntax error" is here to catch this case.
4869 cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
4875#ifdef __STDC__
4876# include <limits.h>
4877#else
4878# include <assert.h>
4879#endif
4880 Syntax error
4881_ACEOF
4882if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null; then
4890 if test -s conftest.err; then
4891 ac_cpp_err=$ac_c_preproc_warn_flag
4892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4893 else
4894 ac_cpp_err=
4895 fi
4896else
4897 ac_cpp_err=yes
4898fi
4899if test -z "$ac_cpp_err"; then
4900 :
4901else
4902 echo "$as_me: failed program was:" >&5
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
4905 # Broken: fails on valid input.
4906continue
4907fi
4908rm -f conftest.err conftest.$ac_ext
4909
4910 # OK, works on sane cases. Now check whether non-existent headers
4911 # can be detected and how.
4912 cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h. */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4917/* end confdefs.h. */
4918#include <ac_nonexistent.h>
4919_ACEOF
4920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } >/dev/null; then
4928 if test -s conftest.err; then
4929 ac_cpp_err=$ac_c_preproc_warn_flag
4930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4931 else
4932 ac_cpp_err=
4933 fi
4934else
4935 ac_cpp_err=yes
4936fi
4937if test -z "$ac_cpp_err"; then
4938 # Broken: success on invalid input.
4939continue
4940else
4941 echo "$as_me: failed program was:" >&5
4942sed 's/^/| /' conftest.$ac_ext >&5
4943
4944 # Passes both tests.
4945ac_preproc_ok=:
4946break
4947fi
4948rm -f conftest.err conftest.$ac_ext
4949
4950done
4951# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4952rm -f conftest.err conftest.$ac_ext
4953if $ac_preproc_ok; then
4954 :
4955else
4956 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4957See \`config.log' for more details." >&5
4958echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4959See \`config.log' for more details." >&2;}
4960 { (exit 1); exit 1; }; }
4961fi
4962
4963ac_ext=c
4964ac_cpp='$CPP $CPPFLAGS'
4965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968
4969
4970echo "$as_me:$LINENO: checking " >&5
4971echo $ECHO_N "checking ... $ECHO_C" >&6
4972if test "${ac_cv_has_flex+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975 for ac_prog in flex lex
4976do
4977 # Extract the first word of "$ac_prog", so it can be a program name with args.
4978set dummy $ac_prog; ac_word=$2
4979echo "$as_me:$LINENO: checking for $ac_word" >&5
4980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981if test "${ac_cv_prog_LEX+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
4984 if test -n "$LEX"; then
4985 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4986else
4987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in $PATH
4989do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994 ac_cv_prog_LEX="$ac_prog"
4995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 break 2
4997 fi
4998done
4999done
5000
5001fi
5002fi
5003LEX=$ac_cv_prog_LEX
5004if test -n "$LEX"; then
5005 echo "$as_me:$LINENO: result: $LEX" >&5
5006echo "${ECHO_T}$LEX" >&6
5007else
5008 echo "$as_me:$LINENO: result: no" >&5
5009echo "${ECHO_T}no" >&6
5010fi
5011
5012 test -n "$LEX" && break
5013done
5014test -n "$LEX" || LEX=":"
5015
5016if test -z "$LEXLIB"
5017then
5018 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5019echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5020if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022else
5023 ac_check_lib_save_LIBS=$LIBS
5024LIBS="-lfl $LIBS"
5025cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h. */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h. */
5031
5032/* Override any gcc2 internal prototype to avoid an error. */
5033#ifdef __cplusplus
5034extern "C"
5035#endif
5036/* We use char because int might match the return type of a gcc2
5037 builtin and then its argument prototype would still apply. */
5038char yywrap ();
5039int
5040main ()
5041{
5042yywrap ();
5043 ;
5044 return 0;
5045}
5046_ACEOF
5047rm -f conftest.$ac_objext conftest$ac_exeext
5048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049 (eval $ac_link) 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -z "$ac_c_werror_flag"
5057 || test ! -s conftest.err'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 (eval $ac_try) 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; } &&
5063 { ac_try='test -s conftest$ac_exeext'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5069 ac_cv_lib_fl_yywrap=yes
5070else
5071 echo "$as_me: failed program was:" >&5
5072sed 's/^/| /' conftest.$ac_ext >&5
5073
5074ac_cv_lib_fl_yywrap=no
5075fi
5076rm -f conftest.err conftest.$ac_objext \
5077 conftest$ac_exeext conftest.$ac_ext
5078LIBS=$ac_check_lib_save_LIBS
5079fi
5080echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5081echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5082if test $ac_cv_lib_fl_yywrap = yes; then
5083 LEXLIB="-lfl"
5084else
5085 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5086echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5087if test "${ac_cv_lib_l_yywrap+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090 ac_check_lib_save_LIBS=$LIBS
5091LIBS="-ll $LIBS"
5092cat >conftest.$ac_ext <<_ACEOF
5093/* confdefs.h. */
5094_ACEOF
5095cat confdefs.h >>conftest.$ac_ext
5096cat >>conftest.$ac_ext <<_ACEOF
5097/* end confdefs.h. */
5098
5099/* Override any gcc2 internal prototype to avoid an error. */
5100#ifdef __cplusplus
5101extern "C"
5102#endif
5103/* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5105char yywrap ();
5106int
5107main ()
5108{
5109yywrap ();
5110 ;
5111 return 0;
5112}
5113_ACEOF
5114rm -f conftest.$ac_objext conftest$ac_exeext
5115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116 (eval $ac_link) 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -z "$ac_c_werror_flag"
5124 || test ! -s conftest.err'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; } &&
5130 { ac_try='test -s conftest$ac_exeext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 ac_cv_lib_l_yywrap=yes
5137else
5138 echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141ac_cv_lib_l_yywrap=no
5142fi
5143rm -f conftest.err conftest.$ac_objext \
5144 conftest$ac_exeext conftest.$ac_ext
5145LIBS=$ac_check_lib_save_LIBS
5146fi
5147echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5148echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5149if test $ac_cv_lib_l_yywrap = yes; then
5150 LEXLIB="-ll"
5151fi
5152
5153fi
5154
5155fi
5156
5157if test "x$LEX" != "x:"; then
5158 echo "$as_me:$LINENO: checking lex output file root" >&5
5159echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5160if test "${ac_cv_prog_lex_root+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162else
5163 # The minimal lex program is just a single line: %%. But some broken lexes
5164# (Solaris, I think it was) want two %% lines, so accommodate them.
5165cat >conftest.l <<_ACEOF
5166%%
5167%%
5168_ACEOF
5169{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5170 (eval $LEX conftest.l) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }
5174if test -f lex.yy.c; then
5175 ac_cv_prog_lex_root=lex.yy
5176elif test -f lexyy.c; then
5177 ac_cv_prog_lex_root=lexyy
5178else
5179 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5180echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5181 { (exit 1); exit 1; }; }
5182fi
5183fi
5184echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5185echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5186rm -f conftest.l
5187LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5188
5189echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5190echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5191if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194 # POSIX says lex can declare yytext either as a pointer or an array; the
5195# default is implementation-dependent. Figure out which it is, since
5196# not all implementations provide the %pointer and %array declarations.
5197ac_cv_prog_lex_yytext_pointer=no
5198echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5199ac_save_LIBS=$LIBS
5200LIBS="$LIBS $LEXLIB"
5201cat >conftest.$ac_ext <<_ACEOF
5202`cat $LEX_OUTPUT_ROOT.c`
5203_ACEOF
5204rm -f conftest.$ac_objext conftest$ac_exeext
5205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206 (eval $ac_link) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_cv_prog_lex_yytext_pointer=yes
5227else
5228 echo "$as_me: failed program was:" >&5
5229sed 's/^/| /' conftest.$ac_ext >&5
5230
5231fi
5232rm -f conftest.err conftest.$ac_objext \
5233 conftest$ac_exeext conftest.$ac_ext
5234LIBS=$ac_save_LIBS
5235rm -f "${LEX_OUTPUT_ROOT}.c"
5236
5237fi
5238echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5239echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5240if test $ac_cv_prog_lex_yytext_pointer = yes; then
5241
5242cat >>confdefs.h <<\_ACEOF
5243#define YYTEXT_POINTER 1
5244_ACEOF
5245
5246fi
5247
5248fi
5249
5250fi
5251echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
5252echo "${ECHO_T}$ac_cv_has_flex" >&6
5253if test "$LEX" != "flex"; then
5254 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
5255echo "$as_me: error: flex not found but required" >&2;}
5256 { (exit 1); exit 1; }; }
5257else
5258 FLEX=flex
5259
5260fi
5261
5262echo "$as_me:$LINENO: checking " >&5
5263echo $ECHO_N "checking ... $ECHO_C" >&6
5264if test "${ac_cv_has_bison+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266else
5267 for ac_prog in 'bison -y' byacc
5268do
5269 # Extract the first word of "$ac_prog", so it can be a program name with args.
5270set dummy $ac_prog; ac_word=$2
5271echo "$as_me:$LINENO: checking for $ac_word" >&5
5272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5273if test "${ac_cv_prog_YACC+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275else
5276 if test -n "$YACC"; then
5277 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5278else
5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280for as_dir in $PATH
5281do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_YACC="$ac_prog"
5287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5289 fi
5290done
5291done
5292
5293fi
5294fi
5295YACC=$ac_cv_prog_YACC
5296if test -n "$YACC"; then
5297 echo "$as_me:$LINENO: result: $YACC" >&5
5298echo "${ECHO_T}$YACC" >&6
5299else
5300 echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6
5302fi
5303
5304 test -n "$YACC" && break
5305done
5306test -n "$YACC" || YACC="yacc"
5307
5308
5309fi
5310echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
5311echo "${ECHO_T}$ac_cv_has_bison" >&6
5312if test "$YACC" != "bison -y"; then
5313 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
5314echo "$as_me: error: bison not found but required" >&2;}
5315 { (exit 1); exit 1; }; }
5316else
5317 BISON=bison
5318
5319fi
5320
5321# Check whether --enable-shared or --disable-shared was given.
5322if test "${enable_shared+set}" = set; then
5323 enableval="$enable_shared"
5324 p=${PACKAGE-default}
5325 case $enableval in
5326 yes) enable_shared=yes ;;
5327 no) enable_shared=no ;;
5328 *)
5329 enable_shared=no
5330 # Look at the argument we got. We use all the common list separators.
5331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5332 for pkg in $enableval; do
5333 IFS="$lt_save_ifs"
5334 if test "X$pkg" = "X$p"; then
5335 enable_shared=yes
5336 fi
5337 done
5338 IFS="$lt_save_ifs"
5339 ;;
5340 esac
5341else
5342 enable_shared=yes
5343fi;
5344
5345# Check whether --enable-static or --disable-static was given.
5346if test "${enable_static+set}" = set; then
5347 enableval="$enable_static"
5348 p=${PACKAGE-default}
5349 case $enableval in
5350 yes) enable_static=yes ;;
5351 no) enable_static=no ;;
5352 *)
5353 enable_static=no
5354 # Look at the argument we got. We use all the common list separators.
5355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5356 for pkg in $enableval; do
5357 IFS="$lt_save_ifs"
5358 if test "X$pkg" = "X$p"; then
5359 enable_static=yes
5360 fi
5361 done
5362 IFS="$lt_save_ifs"
5363 ;;
5364 esac
5365else
5366 enable_static=yes
5367fi;
5368
5369# Check whether --enable-fast-install or --disable-fast-install was given.
5370if test "${enable_fast_install+set}" = set; then
5371 enableval="$enable_fast_install"
5372 p=${PACKAGE-default}
5373 case $enableval in
5374 yes) enable_fast_install=yes ;;
5375 no) enable_fast_install=no ;;
5376 *)
5377 enable_fast_install=no
5378 # Look at the argument we got. We use all the common list separators.
5379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5380 for pkg in $enableval; do
5381 IFS="$lt_save_ifs"
5382 if test "X$pkg" = "X$p"; then
5383 enable_fast_install=yes
5384 fi
5385 done
5386 IFS="$lt_save_ifs"
5387 ;;
5388 esac
5389else
5390 enable_fast_install=yes
5391fi;
5392
5393echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5394echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5395if test "${lt_cv_path_SED+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397else
5398 # Loop through the user's path and test for sed and gsed.
5399# Then use that list of sed's as ones to test for truncation.
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for lt_ac_prog in sed gsed; do
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5408 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5409 fi
5410 done
5411 done
5412done
5413lt_ac_max=0
5414lt_ac_count=0
5415# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5416# along with /bin/sed that truncates output.
5417for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5418 test ! -f $lt_ac_sed && break
5419 cat /dev/null > conftest.in
5420 lt_ac_count=0
5421 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5422 # Check for GNU sed and select it if it is found.
5423 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5424 lt_cv_path_SED=$lt_ac_sed
5425 break
5426 fi
5427 while true; do
5428 cat conftest.in conftest.in >conftest.tmp
5429 mv conftest.tmp conftest.in
5430 cp conftest.in conftest.nl
5431 echo >>conftest.nl
5432 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5433 cmp -s conftest.out conftest.nl || break
5434 # 10000 chars as input seems more than enough
5435 test $lt_ac_count -gt 10 && break
5436 lt_ac_count=`expr $lt_ac_count + 1`
5437 if test $lt_ac_count -gt $lt_ac_max; then
5438 lt_ac_max=$lt_ac_count
5439 lt_cv_path_SED=$lt_ac_sed
5440 fi
5441 done
5442done
5443
5444fi
5445
5446SED=$lt_cv_path_SED
5447echo "$as_me:$LINENO: result: $SED" >&5
5448echo "${ECHO_T}$SED" >&6
5449
5450echo "$as_me:$LINENO: checking for egrep" >&5
5451echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5452if test "${ac_cv_prog_egrep+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5456 then ac_cv_prog_egrep='grep -E'
5457 else ac_cv_prog_egrep='egrep'
5458 fi
5459fi
5460echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5461echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5462 EGREP=$ac_cv_prog_egrep
5463
5464
5465
5466# Check whether --with-gnu-ld or --without-gnu-ld was given.
5467if test "${with_gnu_ld+set}" = set; then
5468 withval="$with_gnu_ld"
5469 test "$withval" = no || with_gnu_ld=yes
5470else
5471 with_gnu_ld=no
5472fi;
5473ac_prog=ld
5474if test "$GCC" = yes; then
5475 # Check if gcc -print-prog-name=ld gives a path.
5476 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5477echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5478 case $host in
5479 *-*-mingw*)
5480 # gcc leaves a trailing carriage return which upsets mingw
5481 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5482 *)
5483 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5484 esac
5485 case $ac_prog in
5486 # Accept absolute paths.
5487 [\\/]* | ?:[\\/]*)
5488 re_direlt='/[^/][^/]*/\.\./'
5489 # Canonicalize the pathname of ld
5490 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5491 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5492 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5493 done
5494 test -z "$LD" && LD="$ac_prog"
5495 ;;
5496 "")
5497 # If it fails, then pretend we aren't using GCC.
5498 ac_prog=ld
5499 ;;
5500 *)
5501 # If it is relative, then search for the first ld in PATH.
5502 with_gnu_ld=unknown
5503 ;;
5504 esac
5505elif test "$with_gnu_ld" = yes; then
5506 echo "$as_me:$LINENO: checking for GNU ld" >&5
5507echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5508else
5509 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5510echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5511fi
5512if test "${lt_cv_path_LD+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514else
5515 if test -z "$LD"; then
5516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5517 for ac_dir in $PATH; do
5518 IFS="$lt_save_ifs"
5519 test -z "$ac_dir" && ac_dir=.
5520 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5521 lt_cv_path_LD="$ac_dir/$ac_prog"
5522 # Check to see if the program is GNU ld. I'd rather use --version,
5523 # but apparently some GNU ld's only accept -v.
5524 # Break only if it was the GNU/non-GNU ld that we prefer.
5525 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5526 *GNU* | *'with BFD'*)
5527 test "$with_gnu_ld" != no && break
5528 ;;
5529 *)
5530 test "$with_gnu_ld" != yes && break
5531 ;;
5532 esac
5533 fi
5534 done
5535 IFS="$lt_save_ifs"
5536else
5537 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5538fi
5539fi
5540
5541LD="$lt_cv_path_LD"
5542if test -n "$LD"; then
5543 echo "$as_me:$LINENO: result: $LD" >&5
5544echo "${ECHO_T}$LD" >&6
5545else
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
5548fi
5549test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5550echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5551 { (exit 1); exit 1; }; }
5552echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5553echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5554if test "${lt_cv_prog_gnu_ld+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5558case `$LD -v 2>&1 </dev/null` in
5559*GNU* | *'with BFD'*)
5560 lt_cv_prog_gnu_ld=yes
5561 ;;
5562*)
5563 lt_cv_prog_gnu_ld=no
5564 ;;
5565esac
5566fi
5567echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5568echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5569with_gnu_ld=$lt_cv_prog_gnu_ld
5570
5571
5572echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5573echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5574if test "${lt_cv_ld_reload_flag+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577 lt_cv_ld_reload_flag='-r'
5578fi
5579echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5580echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5581reload_flag=$lt_cv_ld_reload_flag
5582case $reload_flag in
5583"" | " "*) ;;
5584*) reload_flag=" $reload_flag" ;;
5585esac
5586reload_cmds='$LD$reload_flag -o $output$reload_objs'
5587case $host_os in
5588 darwin*)
5589 if test "$GCC" = yes; then
5590 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5591 else
5592 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5593 fi
5594 ;;
5595esac
5596
5597echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5598echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5599if test "${lt_cv_path_NM+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602 if test -n "$NM"; then
5603 # Let the user override the test.
5604 lt_cv_path_NM="$NM"
5605else
5606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5607 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5608 IFS="$lt_save_ifs"
5609 test -z "$ac_dir" && ac_dir=.
5610 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5611 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5612 # Check to see if the nm accepts a BSD-compat flag.
5613 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5614 # nm: unknown option "B" ignored
5615 # Tru64's nm complains that /dev/null is an invalid object file
5616 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5617 */dev/null* | *'Invalid file or object type'*)
5618 lt_cv_path_NM="$tmp_nm -B"
5619 break
5620 ;;
5621 *)
5622 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5623 */dev/null*)
5624 lt_cv_path_NM="$tmp_nm -p"
5625 break
5626 ;;
5627 *)
5628 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5629 continue # so that we can try to find one that supports BSD flags
5630 ;;
5631 esac
5632 esac
5633 fi
5634 done
5635 IFS="$lt_save_ifs"
5636 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5637fi
5638fi
5639echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5640echo "${ECHO_T}$lt_cv_path_NM" >&6
5641NM="$lt_cv_path_NM"
5642
5643echo "$as_me:$LINENO: checking whether ln -s works" >&5
5644echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5645LN_S=$as_ln_s
5646if test "$LN_S" = "ln -s"; then
5647 echo "$as_me:$LINENO: result: yes" >&5
5648echo "${ECHO_T}yes" >&6
5649else
5650 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5651echo "${ECHO_T}no, using $LN_S" >&6
5652fi
5653
5654echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5655echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5656if test "${lt_cv_deplibs_check_method+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658else
5659 lt_cv_file_magic_cmd='$MAGIC_CMD'
5660lt_cv_file_magic_test_file=
5661lt_cv_deplibs_check_method='unknown'
5662# Need to set the preceding variable on all platforms that support
5663# interlibrary dependencies.
5664# 'none' -- dependencies not supported.
5665# `unknown' -- same as none, but documents that we really don't know.
5666# 'pass_all' -- all dependencies passed with no checks.
5667# 'test_compile' -- check by making test program.
5668# 'file_magic [[regex]]' -- check by looking for files in library path
5669# which responds to the $file_magic_cmd with a given extended regex.
5670# If you have `file' or equivalent on your system and you're not sure
5671# whether `pass_all' will *always* work, you probably want this one.
5672
5673case $host_os in
5674aix4* | aix5*)
5675 lt_cv_deplibs_check_method=pass_all
5676 ;;
5677
5678beos*)
5679 lt_cv_deplibs_check_method=pass_all
5680 ;;
5681
5682bsdi[45]*)
5683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5684 lt_cv_file_magic_cmd='/usr/bin/file -L'
5685 lt_cv_file_magic_test_file=/shlib/libc.so
5686 ;;
5687
5688cygwin*)
5689 # func_win32_libid is a shell function defined in ltmain.sh
5690 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5691 lt_cv_file_magic_cmd='func_win32_libid'
5692 ;;
5693
5694mingw* | pw32*)
5695 # Base MSYS/MinGW do not provide the 'file' command needed by
5696 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5697 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5698 lt_cv_file_magic_cmd='$OBJDUMP -f'
5699 ;;
5700
5701darwin* | rhapsody*)
5702 lt_cv_deplibs_check_method=pass_all
5703 ;;
5704
5705freebsd* | kfreebsd*-gnu)
5706 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5707 case $host_cpu in
5708 i*86 )
5709 # Not sure whether the presence of OpenBSD here was a mistake.
5710 # Let's accept both of them until this is cleared up.
5711 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5712 lt_cv_file_magic_cmd=/usr/bin/file
5713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5714 ;;
5715 esac
5716 else
5717 lt_cv_deplibs_check_method=pass_all
5718 fi
5719 ;;
5720
5721gnu*)
5722 lt_cv_deplibs_check_method=pass_all
5723 ;;
5724
5725hpux10.20* | hpux11*)
5726 lt_cv_file_magic_cmd=/usr/bin/file
5727 case "$host_cpu" in
5728 ia64*)
5729 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5730 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5731 ;;
5732 hppa*64*)
5733 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]'
5734 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5735 ;;
5736 *)
5737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5738 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5739 ;;
5740 esac
5741 ;;
5742
5743irix5* | irix6* | nonstopux*)
5744 case $LD in
5745 *-32|*"-32 ") libmagic=32-bit;;
5746 *-n32|*"-n32 ") libmagic=N32;;
5747 *-64|*"-64 ") libmagic=64-bit;;
5748 *) libmagic=never-match;;
5749 esac
5750 lt_cv_deplibs_check_method=pass_all
5751 ;;
5752
5753# This must be Linux ELF.
5754linux*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758netbsd*)
5759 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5761 else
5762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5763 fi
5764 ;;
5765
5766newos6*)
5767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5768 lt_cv_file_magic_cmd=/usr/bin/file
5769 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5770 ;;
5771
5772nto-qnx*)
5773 lt_cv_deplibs_check_method=unknown
5774 ;;
5775
5776openbsd*)
5777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5779 else
5780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5781 fi
5782 ;;
5783
5784osf3* | osf4* | osf5*)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787
5788sco3.2v5*)
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791
5792solaris*)
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795
5796sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5797 case $host_vendor in
5798 motorola)
5799 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]'
5800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5801 ;;
5802 ncr)
5803 lt_cv_deplibs_check_method=pass_all
5804 ;;
5805 sequent)
5806 lt_cv_file_magic_cmd='/bin/file'
5807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5808 ;;
5809 sni)
5810 lt_cv_file_magic_cmd='/bin/file'
5811 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5812 lt_cv_file_magic_test_file=/lib/libc.so
5813 ;;
5814 siemens)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817 esac
5818 ;;
5819
5820sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5821 lt_cv_deplibs_check_method=pass_all
5822 ;;
5823esac
5824
5825fi
5826echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5827echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5828file_magic_cmd=$lt_cv_file_magic_cmd
5829deplibs_check_method=$lt_cv_deplibs_check_method
5830test -z "$deplibs_check_method" && deplibs_check_method=unknown
5831
5832
5833
5834
5835# If no C compiler was specified, use CC.
5836LTCC=${LTCC-"$CC"}
5837
5838# Allow CC to be a program name with arguments.
5839compiler=$CC
5840
5841# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5842if test "${enable_libtool_lock+set}" = set; then
5843 enableval="$enable_libtool_lock"
5844
5845fi;
5846test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5847
5848# Some flags need to be propagated to the compiler or linker for good
5849# libtool support.
5850case $host in
5851ia64-*-hpux*)
5852 # Find out which ABI we are using.
5853 echo 'int i;' > conftest.$ac_ext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; then
5859 case `/usr/bin/file conftest.$ac_objext` in
5860 *ELF-32*)
5861 HPUX_IA64_MODE="32"
5862 ;;
5863 *ELF-64*)
5864 HPUX_IA64_MODE="64"
5865 ;;
5866 esac
5867 fi
5868 rm -rf conftest*
5869 ;;
5870*-*-irix6*)
5871 # Find out which ABI we are using.
5872 echo '#line 5872 "configure"' > conftest.$ac_ext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; then
5878 if test "$lt_cv_prog_gnu_ld" = yes; then
5879 case `/usr/bin/file conftest.$ac_objext` in
5880 *32-bit*)
5881 LD="${LD-ld} -melf32bsmip"
5882 ;;
5883 *N32*)
5884 LD="${LD-ld} -melf32bmipn32"
5885 ;;
5886 *64-bit*)
5887 LD="${LD-ld} -melf64bmip"
5888 ;;
5889 esac
5890 else
5891 case `/usr/bin/file conftest.$ac_objext` in
5892 *32-bit*)
5893 LD="${LD-ld} -32"
5894 ;;
5895 *N32*)
5896 LD="${LD-ld} -n32"
5897 ;;
5898 *64-bit*)
5899 LD="${LD-ld} -64"
5900 ;;
5901 esac
5902 fi
5903 fi
5904 rm -rf conftest*
5905 ;;
5906
5907x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5908 # Find out which ABI we are using.
5909 echo 'int i;' > conftest.$ac_ext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; then
5915 case "`/usr/bin/file conftest.o`" in
5916 *32-bit*)
5917 case $host in
5918 x86_64-*linux*)
5919 LD="${LD-ld} -m elf_i386"
5920 ;;
5921 ppc64-*linux*|powerpc64-*linux*)
5922 LD="${LD-ld} -m elf32ppclinux"
5923 ;;
5924 s390x-*linux*)
5925 LD="${LD-ld} -m elf_s390"
5926 ;;
5927 sparc64-*linux*)
5928 LD="${LD-ld} -m elf32_sparc"
5929 ;;
5930 esac
5931 ;;
5932 *64-bit*)
5933 case $host in
5934 x86_64-*linux*)
5935 LD="${LD-ld} -m elf_x86_64"
5936 ;;
5937 ppc*-*linux*|powerpc*-*linux*)
5938 LD="${LD-ld} -m elf64ppc"
5939 ;;
5940 s390*-*linux*)
5941 LD="${LD-ld} -m elf64_s390"
5942 ;;
5943 sparc*-*linux*)
5944 LD="${LD-ld} -m elf64_sparc"
5945 ;;
5946 esac
5947 ;;
5948 esac
5949 fi
5950 rm -rf conftest*
5951 ;;
5952
5953*-*-sco3.2v5*)
5954 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5955 SAVE_CFLAGS="$CFLAGS"
5956 CFLAGS="$CFLAGS -belf"
5957 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5958echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5959if test "${lt_cv_cc_needs_belf+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962 ac_ext=c
5963ac_cpp='$CPP $CPPFLAGS'
5964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966ac_compiler_gnu=$ac_cv_c_compiler_gnu
5967
5968 cat >conftest.$ac_ext <<_ACEOF
5969/* confdefs.h. */
5970_ACEOF
5971cat confdefs.h >>conftest.$ac_ext
5972cat >>conftest.$ac_ext <<_ACEOF
5973/* end confdefs.h. */
5974
5975int
5976main ()
5977{
5978
5979 ;
5980 return 0;
5981}
5982_ACEOF
5983rm -f conftest.$ac_objext conftest$ac_exeext
5984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5985 (eval $ac_link) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 lt_cv_cc_needs_belf=yes
6006else
6007 echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
6009
6010lt_cv_cc_needs_belf=no
6011fi
6012rm -f conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6014 ac_ext=c
6015ac_cpp='$CPP $CPPFLAGS'
6016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019
6020fi
6021echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6022echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6023 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6024 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6025 CFLAGS="$SAVE_CFLAGS"
6026 fi
6027 ;;
6028
6029esac
6030
6031need_locks="$enable_libtool_lock"
6032
6033
6034
6035echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6036echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6037if test "${ac_cv_header_stdc+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040 cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
6046#include <stdlib.h>
6047#include <stdarg.h>
6048#include <string.h>
6049#include <float.h>
6050
6051int
6052main ()
6053{
6054
6055 ;
6056 return 0;
6057}
6058_ACEOF
6059rm -f conftest.$ac_objext
6060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest.$ac_objext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_cv_header_stdc=yes
6082else
6083 echo "$as_me: failed program was:" >&5
6084sed 's/^/| /' conftest.$ac_ext >&5
6085
6086ac_cv_header_stdc=no
6087fi
6088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089
6090if test $ac_cv_header_stdc = yes; then
6091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6092 cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h. */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h. */
6098#include <string.h>
6099
6100_ACEOF
6101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6102 $EGREP "memchr" >/dev/null 2>&1; then
6103 :
6104else
6105 ac_cv_header_stdc=no
6106fi
6107rm -f conftest*
6108
6109fi
6110
6111if test $ac_cv_header_stdc = yes; then
6112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6113 cat >conftest.$ac_ext <<_ACEOF
6114/* confdefs.h. */
6115_ACEOF
6116cat confdefs.h >>conftest.$ac_ext
6117cat >>conftest.$ac_ext <<_ACEOF
6118/* end confdefs.h. */
6119#include <stdlib.h>
6120
6121_ACEOF
6122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123 $EGREP "free" >/dev/null 2>&1; then
6124 :
6125else
6126 ac_cv_header_stdc=no
6127fi
6128rm -f conftest*
6129
6130fi
6131
6132if test $ac_cv_header_stdc = yes; then
6133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6134 if test "$cross_compiling" = yes; then
6135 :
6136else
6137 cat >conftest.$ac_ext <<_ACEOF
6138/* confdefs.h. */
6139_ACEOF
6140cat confdefs.h >>conftest.$ac_ext
6141cat >>conftest.$ac_ext <<_ACEOF
6142/* end confdefs.h. */
6143#include <ctype.h>
6144#if ((' ' & 0x0FF) == 0x020)
6145# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6146# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6147#else
6148# define ISLOWER(c) \
6149 (('a' <= (c) && (c) <= 'i') \
6150 || ('j' <= (c) && (c) <= 'r') \
6151 || ('s' <= (c) && (c) <= 'z'))
6152# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6153#endif
6154
6155#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6156int
6157main ()
6158{
6159 int i;
6160 for (i = 0; i < 256; i++)
6161 if (XOR (islower (i), ISLOWER (i))
6162 || toupper (i) != TOUPPER (i))
6163 exit(2);
6164 exit (0);
6165}
6166_ACEOF
6167rm -f conftest$ac_exeext
6168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6169 (eval $ac_link) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 :
6179else
6180 echo "$as_me: program exited with status $ac_status" >&5
6181echo "$as_me: failed program was:" >&5
6182sed 's/^/| /' conftest.$ac_ext >&5
6183
6184( exit $ac_status )
6185ac_cv_header_stdc=no
6186fi
6187rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6188fi
6189fi
6190fi
6191echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6192echo "${ECHO_T}$ac_cv_header_stdc" >&6
6193if test $ac_cv_header_stdc = yes; then
6194
6195cat >>confdefs.h <<\_ACEOF
6196#define STDC_HEADERS 1
6197_ACEOF
6198
6199fi
6200
6201# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6212 inttypes.h stdint.h unistd.h
6213do
6214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215echo "$as_me:$LINENO: checking for $ac_header" >&5
6216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6217if eval "test \"\${$as_ac_Header+set}\" = set"; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220 cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226$ac_includes_default
6227
6228#include <$ac_header>
6229_ACEOF
6230rm -f conftest.$ac_objext
6231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag"
6240 || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 eval "$as_ac_Header=yes"
6253else
6254 echo "$as_me: failed program was:" >&5
6255sed 's/^/| /' conftest.$ac_ext >&5
6256
6257eval "$as_ac_Header=no"
6258fi
6259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260fi
6261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6263if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264 cat >>confdefs.h <<_ACEOF
6265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266_ACEOF
6267
6268fi
6269
6270done
6271
6272
6273
6274for ac_header in dlfcn.h
6275do
6276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6277if eval "test \"\${$as_ac_Header+set}\" = set"; then
6278 echo "$as_me:$LINENO: checking for $ac_header" >&5
6279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6280if eval "test \"\${$as_ac_Header+set}\" = set"; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282fi
6283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6284echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6285else
6286 # Is the header compilable?
6287echo "$as_me:$LINENO: checking $ac_header usability" >&5
6288echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6289cat >conftest.$ac_ext <<_ACEOF
6290/* confdefs.h. */
6291_ACEOF
6292cat confdefs.h >>conftest.$ac_ext
6293cat >>conftest.$ac_ext <<_ACEOF
6294/* end confdefs.h. */
6295$ac_includes_default
6296#include <$ac_header>
6297_ACEOF
6298rm -f conftest.$ac_objext
6299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300 (eval $ac_compile) 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try='test -z "$ac_c_werror_flag"
6308 || test ! -s conftest.err'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; } &&
6314 { ac_try='test -s conftest.$ac_objext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 ac_header_compiler=yes
6321else
6322 echo "$as_me: failed program was:" >&5
6323sed 's/^/| /' conftest.$ac_ext >&5
6324
6325ac_header_compiler=no
6326fi
6327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6328echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6329echo "${ECHO_T}$ac_header_compiler" >&6
6330
6331# Is the header present?
6332echo "$as_me:$LINENO: checking $ac_header presence" >&5
6333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6334cat >conftest.$ac_ext <<_ACEOF
6335/* confdefs.h. */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
6339/* end confdefs.h. */
6340#include <$ac_header>
6341_ACEOF
6342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } >/dev/null; then
6350 if test -s conftest.err; then
6351 ac_cpp_err=$ac_c_preproc_warn_flag
6352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6353 else
6354 ac_cpp_err=
6355 fi
6356else
6357 ac_cpp_err=yes
6358fi
6359if test -z "$ac_cpp_err"; then
6360 ac_header_preproc=yes
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 ac_header_preproc=no
6366fi
6367rm -f conftest.err conftest.$ac_ext
6368echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6369echo "${ECHO_T}$ac_header_preproc" >&6
6370
6371# So? What about this header?
6372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6373 yes:no: )
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6377echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6378 ac_header_preproc=yes
6379 ;;
6380 no:yes:* )
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6382echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6384echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6386echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6388echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6392echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6393 (
6394 cat <<\_ASBOX
6395## ----------------------------------- ##
6396## Report this to llvmbugs@cs.uiuc.edu ##
6397## ----------------------------------- ##
6398_ASBOX
6399 ) |
6400 sed "s/^/$as_me: WARNING: /" >&2
6401 ;;
6402esac
6403echo "$as_me:$LINENO: checking for $ac_header" >&5
6404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6405if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6407else
6408 eval "$as_ac_Header=\$ac_header_preproc"
6409fi
6410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412
6413fi
6414if test `eval echo '${'$as_ac_Header'}'` = yes; then
6415 cat >>confdefs.h <<_ACEOF
6416#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6417_ACEOF
6418
6419fi
6420
6421done
6422
6423
6424
6425if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6426 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6427 (test "X$CXX" != "Xg++"))) ; then
6428 ac_ext=cc
6429ac_cpp='$CXXCPP $CPPFLAGS'
6430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6433echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6434echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6435if test -z "$CXXCPP"; then
6436 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438else
6439 # Double quotes because CXXCPP needs to be expanded
6440 for CXXCPP in "$CXX -E" "/lib/cpp"
6441 do
6442 ac_preproc_ok=false
6443for ac_cxx_preproc_warn_flag in '' yes
6444do
6445 # Use a header file that comes with gcc, so configuring glibc
6446 # with a fresh cross-compiler works.
6447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6448 # <limits.h> exists even on freestanding compilers.
6449 # On the NeXT, cc -E runs the code through the compiler's parser,
6450 # not just through cpp. "Syntax error" is here to catch this case.
6451 cat >conftest.$ac_ext <<_ACEOF
6452/* confdefs.h. */
6453_ACEOF
6454cat confdefs.h >>conftest.$ac_ext
6455cat >>conftest.$ac_ext <<_ACEOF
6456/* end confdefs.h. */
6457#ifdef __STDC__
6458# include <limits.h>
6459#else
6460# include <assert.h>
6461#endif
6462 Syntax error
6463_ACEOF
6464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6466 ac_status=$?
6467 grep -v '^ *+' conftest.er1 >conftest.err
6468 rm -f conftest.er1
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } >/dev/null; then
6472 if test -s conftest.err; then
6473 ac_cpp_err=$ac_cxx_preproc_warn_flag
6474 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6475 else
6476 ac_cpp_err=
6477 fi
6478else
6479 ac_cpp_err=yes
6480fi
6481if test -z "$ac_cpp_err"; then
6482 :
6483else
6484 echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487 # Broken: fails on valid input.
6488continue
6489fi
6490rm -f conftest.err conftest.$ac_ext
6491
6492 # OK, works on sane cases. Now check whether non-existent headers
6493 # can be detected and how.
6494 cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h. */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h. */
6500#include <ac_nonexistent.h>
6501_ACEOF
6502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } >/dev/null; then
6510 if test -s conftest.err; then
6511 ac_cpp_err=$ac_cxx_preproc_warn_flag
6512 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6513 else
6514 ac_cpp_err=
6515 fi
6516else
6517 ac_cpp_err=yes
6518fi
6519if test -z "$ac_cpp_err"; then
6520 # Broken: success on invalid input.
6521continue
6522else
6523 echo "$as_me: failed program was:" >&5
6524sed 's/^/| /' conftest.$ac_ext >&5
6525
6526 # Passes both tests.
6527ac_preproc_ok=:
6528break
6529fi
6530rm -f conftest.err conftest.$ac_ext
6531
6532done
6533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6534rm -f conftest.err conftest.$ac_ext
6535if $ac_preproc_ok; then
6536 break
6537fi
6538
6539 done
6540 ac_cv_prog_CXXCPP=$CXXCPP
6541
6542fi
6543 CXXCPP=$ac_cv_prog_CXXCPP
6544else
6545 ac_cv_prog_CXXCPP=$CXXCPP
6546fi
6547echo "$as_me:$LINENO: result: $CXXCPP" >&5
6548echo "${ECHO_T}$CXXCPP" >&6
6549ac_preproc_ok=false
6550for ac_cxx_preproc_warn_flag in '' yes
6551do
6552 # Use a header file that comes with gcc, so configuring glibc
6553 # with a fresh cross-compiler works.
6554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6555 # <limits.h> exists even on freestanding compilers.
6556 # On the NeXT, cc -E runs the code through the compiler's parser,
6557 # not just through cpp. "Syntax error" is here to catch this case.
6558 cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h. */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h. */
6564#ifdef __STDC__
6565# include <limits.h>
6566#else
6567# include <assert.h>
6568#endif
6569 Syntax error
6570_ACEOF
6571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } >/dev/null; then
6579 if test -s conftest.err; then
6580 ac_cpp_err=$ac_cxx_preproc_warn_flag
6581 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6582 else
6583 ac_cpp_err=
6584 fi
6585else
6586 ac_cpp_err=yes
6587fi
6588if test -z "$ac_cpp_err"; then
6589 :
6590else
6591 echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 # Broken: fails on valid input.
6595continue
6596fi
6597rm -f conftest.err conftest.$ac_ext
6598
6599 # OK, works on sane cases. Now check whether non-existent headers
6600 # can be detected and how.
6601 cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h. */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
6606/* end confdefs.h. */
6607#include <ac_nonexistent.h>
6608_ACEOF
6609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } >/dev/null; then
6617 if test -s conftest.err; then
6618 ac_cpp_err=$ac_cxx_preproc_warn_flag
6619 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6620 else
6621 ac_cpp_err=
6622 fi
6623else
6624 ac_cpp_err=yes
6625fi
6626if test -z "$ac_cpp_err"; then
6627 # Broken: success on invalid input.
6628continue
6629else
6630 echo "$as_me: failed program was:" >&5
6631sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 # Passes both tests.
6634ac_preproc_ok=:
6635break
6636fi
6637rm -f conftest.err conftest.$ac_ext
6638
6639done
6640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6641rm -f conftest.err conftest.$ac_ext
6642if $ac_preproc_ok; then
6643 :
6644else
6645 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6646See \`config.log' for more details." >&5
6647echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6648See \`config.log' for more details." >&2;}
6649 { (exit 1); exit 1; }; }
6650fi
6651
6652ac_ext=cc
6653ac_cpp='$CXXCPP $CPPFLAGS'
6654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6657
6658fi
6659
6660
6661ac_ext=f
6662ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6663ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6665if test -n "$ac_tool_prefix"; then
6666 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6667 do
6668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6669set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6670echo "$as_me:$LINENO: checking for $ac_word" >&5
6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6672if test "${ac_cv_prog_F77+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674else
6675 if test -n "$F77"; then
6676 ac_cv_prog_F77="$F77" # Let the user override the test.
6677else
6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689done
6690done
6691
6692fi
6693fi
6694F77=$ac_cv_prog_F77
6695if test -n "$F77"; then
6696 echo "$as_me:$LINENO: result: $F77" >&5
6697echo "${ECHO_T}$F77" >&6
6698else
6699 echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6
6701fi
6702
6703 test -n "$F77" && break
6704 done
6705fi
6706if test -z "$F77"; then
6707 ac_ct_F77=$F77
6708 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6709do
6710 # Extract the first word of "$ac_prog", so it can be a program name with args.
6711set dummy $ac_prog; ac_word=$2
6712echo "$as_me:$LINENO: checking for $ac_word" >&5
6713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6714if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716else
6717 if test -n "$ac_ct_F77"; then
6718 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6719else
6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_ac_ct_F77="$ac_prog"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731done
6732done
6733
6734fi
6735fi
6736ac_ct_F77=$ac_cv_prog_ac_ct_F77
6737if test -n "$ac_ct_F77"; then
6738 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6739echo "${ECHO_T}$ac_ct_F77" >&6
6740else
6741 echo "$as_me:$LINENO: result: no" >&5
6742echo "${ECHO_T}no" >&6
6743fi
6744
6745 test -n "$ac_ct_F77" && break
6746done
6747
6748 F77=$ac_ct_F77
6749fi
6750
6751
6752# Provide some information about the compiler.
6753echo "$as_me:6753:" \
6754 "checking for Fortran 77 compiler version" >&5
6755ac_compiler=`set X $ac_compile; echo $2`
6756{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6757 (eval $ac_compiler --version </dev/null >&5) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }
6761{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6762 (eval $ac_compiler -v </dev/null >&5) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }
6766{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6767 (eval $ac_compiler -V </dev/null >&5) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }
6771rm -f a.out
6772
6773# If we don't use `.F' as extension, the preprocessor is not run on the
6774# input file. (Note that this only needs to work for GNU compilers.)
6775ac_save_ext=$ac_ext
6776ac_ext=F
6777echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6778echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6779if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781else
6782 cat >conftest.$ac_ext <<_ACEOF
6783 program main
6784#ifndef __GNUC__
6785 choke me
6786#endif
6787
6788 end
6789_ACEOF
6790rm -f conftest.$ac_objext
6791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792 (eval $ac_compile) 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -z "$ac_f77_werror_flag"
6800 || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest.$ac_objext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_compiler_gnu=yes
6813else
6814 echo "$as_me: failed program was:" >&5
6815sed 's/^/| /' conftest.$ac_ext >&5
6816
6817ac_compiler_gnu=no
6818fi
6819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6820ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6821
6822fi
6823echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6824echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6825ac_ext=$ac_save_ext
6826ac_test_FFLAGS=${FFLAGS+set}
6827ac_save_FFLAGS=$FFLAGS
6828FFLAGS=
6829echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6830echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6831if test "${ac_cv_prog_f77_g+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834 FFLAGS=-g
6835cat >conftest.$ac_ext <<_ACEOF
6836 program main
6837
6838 end
6839_ACEOF
6840rm -f conftest.$ac_objext
6841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842 (eval $ac_compile) 2>conftest.er1
6843 ac_status=$?
6844 grep -v '^ *+' conftest.er1 >conftest.err
6845 rm -f conftest.er1
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try='test -z "$ac_f77_werror_flag"
6850 || test ! -s conftest.err'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 (eval $ac_try) 2>&5
6853 ac_status=$?
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; } &&
6856 { ac_try='test -s conftest.$ac_objext'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 (eval $ac_try) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
6862 ac_cv_prog_f77_g=yes
6863else
6864 echo "$as_me: failed program was:" >&5
6865sed 's/^/| /' conftest.$ac_ext >&5
6866
6867ac_cv_prog_f77_g=no
6868fi
6869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6870
6871fi
6872echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6873echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6874if test "$ac_test_FFLAGS" = set; then
6875 FFLAGS=$ac_save_FFLAGS
6876elif test $ac_cv_prog_f77_g = yes; then
6877 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6878 FFLAGS="-g -O2"
6879 else
6880 FFLAGS="-g"
6881 fi
6882else
6883 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6884 FFLAGS="-O2"
6885 else
6886 FFLAGS=
6887 fi
6888fi
6889
6890G77=`test $ac_compiler_gnu = yes && echo yes`
6891ac_ext=c
6892ac_cpp='$CPP $CPPFLAGS'
6893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895ac_compiler_gnu=$ac_cv_c_compiler_gnu
6896
6897
6898
6899# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6900
6901# find the maximum length of command line arguments
6902echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6903echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6904if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 i=0
6908 teststring="ABCD"
6909
6910 case $build_os in
6911 msdosdjgpp*)
6912 # On DJGPP, this test can blow up pretty badly due to problems in libc
6913 # (any single argument exceeding 2000 bytes causes a buffer overrun
6914 # during glob expansion). Even if it were fixed, the result of this
6915 # check would be larger than it should be.
6916 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6917 ;;
6918
6919 gnu*)
6920 # Under GNU Hurd, this test is not required because there is
6921 # no limit to the length of command line arguments.
6922 # Libtool will interpret -1 as no limit whatsoever
6923 lt_cv_sys_max_cmd_len=-1;
6924 ;;
6925
6926 cygwin* | mingw*)
6927 # On Win9x/ME, this test blows up -- it succeeds, but takes
6928 # about 5 minutes as the teststring grows exponentially.
6929 # Worse, since 9x/ME are not pre-emptively multitasking,
6930 # you end up with a "frozen" computer, even though with patience
6931 # the test eventually succeeds (with a max line length of 256k).
6932 # Instead, let's just punt: use the minimum linelength reported by
6933 # all of the supported platforms: 8192 (on NT/2K/XP).
6934 lt_cv_sys_max_cmd_len=8192;
6935 ;;
6936
6937 amigaos*)
6938 # On AmigaOS with pdksh, this test takes hours, literally.
6939 # So we just punt and use a minimum line length of 8192.
6940 lt_cv_sys_max_cmd_len=8192;
6941 ;;
6942
6943 netbsd* | freebsd* | openbsd* | darwin* )
6944 # This has been around since 386BSD, at least. Likely further.
6945 if test -x /sbin/sysctl; then
6946 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6947 elif test -x /usr/sbin/sysctl; then
6948 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6949 else
6950 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6951 fi
6952 # And add a safety zone
6953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6954 ;;
6955
6956 *)
6957 # If test is not a shell built-in, we'll probably end up computing a
6958 # maximum length that is only half of the actual maximum length, but
6959 # we can't tell.
6960 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6961 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6962 = "XX$teststring") >/dev/null 2>&1 &&
6963 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6964 lt_cv_sys_max_cmd_len=$new_result &&
6965 test $i != 17 # 1/2 MB should be enough
6966 do
6967 i=`expr $i + 1`
6968 teststring=$teststring$teststring
6969 done
6970 teststring=
6971 # Add a significant safety factor because C++ compilers can tack on massive
6972 # amounts of additional arguments before passing them to the linker.
6973 # It appears as though 1/2 is a usable value.
6974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6975 ;;
6976 esac
6977
6978fi
6979
6980if test -n $lt_cv_sys_max_cmd_len ; then
6981 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6982echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6983else
6984 echo "$as_me:$LINENO: result: none" >&5
6985echo "${ECHO_T}none" >&6
6986fi
6987
6988
6989
6990
6991# Check for command to grab the raw symbol name followed by C symbol from nm.
6992echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6993echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6994if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997
6998# These are sane defaults that work on at least a few old systems.
6999# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7000
7001# Character class describing NM global symbol codes.
7002symcode='[BCDEGRST]'
7003
7004# Regexp to match symbols that can be accessed directly from C.
7005sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7006
7007# Transform the above into a raw symbol and a C symbol.
7008symxfrm='\1 \2\3 \3'
7009
7010# Transform an extracted symbol line into a proper C declaration
7011lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7012
7013# Transform an extracted symbol line into symbol name and symbol address
7014lt_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'"
7015
7016# Define system-specific variables.
7017case $host_os in
7018aix*)
7019 symcode='[BCDT]'
7020 ;;
7021cygwin* | mingw* | pw32*)
7022 symcode='[ABCDGISTW]'
7023 ;;
7024hpux*) # Its linker distinguishes data from code symbols
7025 if test "$host_cpu" = ia64; then
7026 symcode='[ABCDEGRST]'
7027 fi
7028 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7029 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'"
7030 ;;
7031linux*)
7032 if test "$host_cpu" = ia64; then
7033 symcode='[ABCDGIRSTW]'
7034 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7035 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'"
7036 fi
7037 ;;
7038irix* | nonstopux*)
7039 symcode='[BCDEGRST]'
7040 ;;
7041osf*)
7042 symcode='[BCDEGQRST]'
7043 ;;
7044solaris* | sysv5*)
7045 symcode='[BDRT]'
7046 ;;
7047sysv4)
7048 symcode='[DFNSTU]'
7049 ;;
7050esac
7051
7052# Handle CRLF in mingw tool chain
7053opt_cr=
7054case $build_os in
7055mingw*)
7056 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7057 ;;
7058esac
7059
7060# If we're using GNU nm, then use its standard symbol codes.
7061case `$NM -V 2>&1` in
7062*GNU* | *'with BFD'*)
7063 symcode='[ABCDGIRSTW]' ;;
7064esac
7065
7066# Try without a prefix undercore, then with it.
7067for ac_symprfx in "" "_"; do
7068
7069 # Write the raw and C identifiers.
7070 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7071
7072 # Check to see that the pipe works correctly.
7073 pipe_works=no
7074
7075 rm -f conftest*
7076 cat > conftest.$ac_ext <<EOF
7077#ifdef __cplusplus
7078extern "C" {
7079#endif
7080char nm_test_var;
7081void nm_test_func(){}
7082#ifdef __cplusplus
7083}
7084#endif
7085int main(){nm_test_var='a';nm_test_func();return(0);}
7086EOF
7087
7088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089 (eval $ac_compile) 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; then
7093 # Now try to grab the symbols.
7094 nlist=conftest.nm
7095 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7096 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && test -s "$nlist"; then
7100 # Try sorting and uniquifying the output.
7101 if sort "$nlist" | uniq > "$nlist"T; then
7102 mv -f "$nlist"T "$nlist"
7103 else
7104 rm -f "$nlist"T
7105 fi
7106
7107 # Make sure that we snagged all the symbols we need.
7108 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7109 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7110 cat <<EOF > conftest.$ac_ext
7111#ifdef __cplusplus
7112extern "C" {
7113#endif
7114
7115EOF
7116 # Now generate the symbol file.
7117 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7118
7119 cat <<EOF >> conftest.$ac_ext
7120#if defined (__STDC__) && __STDC__
7121# define lt_ptr_t void *
7122#else
7123# define lt_ptr_t char *
7124# define const
7125#endif
7126
7127/* The mapping between symbol names and symbols. */
7128const struct {
7129 const char *name;
7130 lt_ptr_t address;
7131}
7132lt_preloaded_symbols[] =
7133{
7134EOF
7135 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7136 cat <<\EOF >> conftest.$ac_ext
7137 {0, (lt_ptr_t) 0}
7138};
7139
7140#ifdef __cplusplus
7141}
7142#endif
7143EOF
7144 # Now try linking the two files.
7145 mv conftest.$ac_objext conftstm.$ac_objext
7146 lt_save_LIBS="$LIBS"
7147 lt_save_CFLAGS="$CFLAGS"
7148 LIBS="conftstm.$ac_objext"
7149 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7155 pipe_works=yes
7156 fi
7157 LIBS="$lt_save_LIBS"
7158 CFLAGS="$lt_save_CFLAGS"
7159 else
7160 echo "cannot find nm_test_func in $nlist" >&5
7161 fi
7162 else
7163 echo "cannot find nm_test_var in $nlist" >&5
7164 fi
7165 else
7166 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7167 fi
7168 else
7169 echo "$progname: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7171 fi
7172 rm -f conftest* conftst*
7173
7174 # Do not use the global_symbol_pipe unless it works.
7175 if test "$pipe_works" = yes; then
7176 break
7177 else
7178 lt_cv_sys_global_symbol_pipe=
7179 fi
7180done
7181
7182fi
7183
7184if test -z "$lt_cv_sys_global_symbol_pipe"; then
7185 lt_cv_sys_global_symbol_to_cdecl=
7186fi
7187if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7188 echo "$as_me:$LINENO: result: failed" >&5
7189echo "${ECHO_T}failed" >&6
7190else
7191 echo "$as_me:$LINENO: result: ok" >&5
7192echo "${ECHO_T}ok" >&6
7193fi
7194
7195echo "$as_me:$LINENO: checking for objdir" >&5
7196echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7197if test "${lt_cv_objdir+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200 rm -f .libs 2>/dev/null
7201mkdir .libs 2>/dev/null
7202if test -d .libs; then
7203 lt_cv_objdir=.libs
7204else
7205 # MS-DOS does not allow filenames that begin with a dot.
7206 lt_cv_objdir=_libs
7207fi
7208rmdir .libs 2>/dev/null
7209fi
7210echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7211echo "${ECHO_T}$lt_cv_objdir" >&6
7212objdir=$lt_cv_objdir
7213
7214
7215
7216
7217
7218case $host_os in
7219aix3*)
7220 # AIX sometimes has problems with the GCC collect2 program. For some
7221 # reason, if we set the COLLECT_NAMES environment variable, the problems
7222 # vanish in a puff of smoke.
7223 if test "X${COLLECT_NAMES+set}" != Xset; then
7224 COLLECT_NAMES=
7225 export COLLECT_NAMES
7226 fi
7227 ;;
7228esac
7229
7230# Sed substitution that helps us do robust quoting. It backslashifies
7231# metacharacters that are still active within double-quoted strings.
7232Xsed='sed -e s/^X//'
7233sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7234
7235# Same as above, but do not quote variable references.
7236double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7237
7238# Sed substitution to delay expansion of an escaped shell variable in a
7239# double_quote_subst'ed string.
7240delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7241
7242# Sed substitution to avoid accidental globbing in evaled expressions
7243no_glob_subst='s/\*/\\\*/g'
7244
7245# Constants:
7246rm="rm -f"
7247
7248# Global variables:
7249default_ofile=mklib
7250can_build_shared=yes
7251
7252# All known linkers require a `.a' archive for static linking (except M$VC,
7253# which needs '.lib').
7254libext=a
7255ltmain="$ac_aux_dir/ltmain.sh"
7256ofile="$default_ofile"
7257with_gnu_ld="$lt_cv_prog_gnu_ld"
7258
7259if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7261set dummy ${ac_tool_prefix}ar; ac_word=$2
7262echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7264if test "${ac_cv_prog_AR+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267 if test -n "$AR"; then
7268 ac_cv_prog_AR="$AR" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_AR="${ac_tool_prefix}ar"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281done
7282done
7283
7284fi
7285fi
7286AR=$ac_cv_prog_AR
7287if test -n "$AR"; then
7288 echo "$as_me:$LINENO: result: $AR" >&5
7289echo "${ECHO_T}$AR" >&6
7290else
7291 echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6
7293fi
7294
7295fi
7296if test -z "$ac_cv_prog_AR"; then
7297 ac_ct_AR=$AR
7298 # Extract the first word of "ar", so it can be a program name with args.
7299set dummy ar; ac_word=$2
7300echo "$as_me:$LINENO: checking for $ac_word" >&5
7301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7302if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 if test -n "$ac_ct_AR"; then
7306 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_ac_ct_AR="ar"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319done
7320done
7321
7322 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7323fi
7324fi
7325ac_ct_AR=$ac_cv_prog_ac_ct_AR
7326if test -n "$ac_ct_AR"; then
7327 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7328echo "${ECHO_T}$ac_ct_AR" >&6
7329else
7330 echo "$as_me:$LINENO: result: no" >&5
7331echo "${ECHO_T}no" >&6
7332fi
7333
7334 AR=$ac_ct_AR
7335else
7336 AR="$ac_cv_prog_AR"
7337fi
7338
7339if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7341set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7342echo "$as_me:$LINENO: checking for $ac_word" >&5
7343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7344if test "${ac_cv_prog_RANLIB+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347 if test -n "$RANLIB"; then
7348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362done
7363
7364fi
7365fi
7366RANLIB=$ac_cv_prog_RANLIB
7367if test -n "$RANLIB"; then
7368 echo "$as_me:$LINENO: result: $RANLIB" >&5
7369echo "${ECHO_T}$RANLIB" >&6
7370else
7371 echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6
7373fi
7374
7375fi
7376if test -z "$ac_cv_prog_RANLIB"; then
7377 ac_ct_RANLIB=$RANLIB
7378 # Extract the first word of "ranlib", so it can be a program name with args.
7379set dummy ranlib; ac_word=$2
7380echo "$as_me:$LINENO: checking for $ac_word" >&5
7381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7382if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384else
7385 if test -n "$ac_ct_RANLIB"; then
7386 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7387else
7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395 ac_cv_prog_ac_ct_RANLIB="ranlib"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399done
7400done
7401
7402 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7403fi
7404fi
7405ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7406if test -n "$ac_ct_RANLIB"; then
7407 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7408echo "${ECHO_T}$ac_ct_RANLIB" >&6
7409else
7410 echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6
7412fi
7413
7414 RANLIB=$ac_ct_RANLIB
7415else
7416 RANLIB="$ac_cv_prog_RANLIB"
7417fi
7418
7419if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7421set dummy ${ac_tool_prefix}strip; ac_word=$2
7422echo "$as_me:$LINENO: checking for $ac_word" >&5
7423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424if test "${ac_cv_prog_STRIP+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427 if test -n "$STRIP"; then
7428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441done
7442done
7443
7444fi
7445fi
7446STRIP=$ac_cv_prog_STRIP
7447if test -n "$STRIP"; then
7448 echo "$as_me:$LINENO: result: $STRIP" >&5
7449echo "${ECHO_T}$STRIP" >&6
7450else
7451 echo "$as_me:$LINENO: result: no" >&5
7452echo "${ECHO_T}no" >&6
7453fi
7454
7455fi
7456if test -z "$ac_cv_prog_STRIP"; then
7457 ac_ct_STRIP=$STRIP
7458 # Extract the first word of "strip", so it can be a program name with args.
7459set dummy strip; ac_word=$2
7460echo "$as_me:$LINENO: checking for $ac_word" >&5
7461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7462if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464else
7465 if test -n "$ac_ct_STRIP"; then
7466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7467else
7468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469for as_dir in $PATH
7470do
7471 IFS=$as_save_IFS
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475 ac_cv_prog_ac_ct_STRIP="strip"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 break 2
7478 fi
7479done
7480done
7481
7482 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7483fi
7484fi
7485ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7486if test -n "$ac_ct_STRIP"; then
7487 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7488echo "${ECHO_T}$ac_ct_STRIP" >&6
7489else
7490 echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6
7492fi
7493
7494 STRIP=$ac_ct_STRIP
7495else
7496 STRIP="$ac_cv_prog_STRIP"
7497fi
7498
7499
7500old_CC="$CC"
7501old_CFLAGS="$CFLAGS"
7502
7503# Set sane defaults for various variables
7504test -z "$AR" && AR=ar
7505test -z "$AR_FLAGS" && AR_FLAGS=cru
7506test -z "$AS" && AS=as
7507test -z "$CC" && CC=cc
7508test -z "$LTCC" && LTCC=$CC
7509test -z "$DLLTOOL" && DLLTOOL=dlltool
7510test -z "$LD" && LD=ld
7511test -z "$LN_S" && LN_S="ln -s"
7512test -z "$MAGIC_CMD" && MAGIC_CMD=file
7513test -z "$NM" && NM=nm
7514test -z "$SED" && SED=sed
7515test -z "$OBJDUMP" && OBJDUMP=objdump
7516test -z "$RANLIB" && RANLIB=:
7517test -z "$STRIP" && STRIP=:
7518test -z "$ac_objext" && ac_objext=o
7519
7520# Determine commands to create old-style static archives.
7521old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7522old_postinstall_cmds='chmod 644 $oldlib'
7523old_postuninstall_cmds=
7524
7525if test -n "$RANLIB"; then
7526 case $host_os in
7527 openbsd*)
7528 old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
7529 ;;
7530 *)
7531 old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
7532 ;;
7533 esac
7534 old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
7535fi
7536
7537cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7538
7539# Only perform the check for file, if the check method requires it
7540case $deplibs_check_method in
7541file_magic*)
7542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7543 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7544echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7545if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548 case $MAGIC_CMD in
7549[\\/*] | ?:[\\/]*)
7550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7551 ;;
7552*)
7553 lt_save_MAGIC_CMD="$MAGIC_CMD"
7554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7556 for ac_dir in $ac_dummy; do
7557 IFS="$lt_save_ifs"
7558 test -z "$ac_dir" && ac_dir=.
7559 if test -f $ac_dir/${ac_tool_prefix}file; then
7560 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7561 if test -n "$file_magic_test_file"; then
7562 case $deplibs_check_method in
7563 "file_magic "*)
7564 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7567 $EGREP "$file_magic_regex" > /dev/null; then
7568 :
7569 else
7570 cat <<EOF 1>&2
7571
7572*** Warning: the command libtool uses to detect shared libraries,
7573*** $file_magic_cmd, produces output that libtool cannot recognize.
7574*** The result is that libtool may fail to recognize shared libraries
7575*** as such. This will affect the creation of libtool libraries that
7576*** depend on shared libraries, but programs linked with such libtool
7577*** libraries will work regardless of this problem. Nevertheless, you
7578*** may want to report the problem to your system manager and/or to
7579*** bug-libtool@gnu.org
7580
7581EOF
7582 fi ;;
7583 esac
7584 fi
7585 break
7586 fi
7587 done
7588 IFS="$lt_save_ifs"
7589 MAGIC_CMD="$lt_save_MAGIC_CMD"
7590 ;;
7591esac
7592fi
7593
7594MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7595if test -n "$MAGIC_CMD"; then
7596 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7597echo "${ECHO_T}$MAGIC_CMD" >&6
7598else
7599 echo "$as_me:$LINENO: result: no" >&5
7600echo "${ECHO_T}no" >&6
7601fi
7602
7603if test -z "$lt_cv_path_MAGIC_CMD"; then
7604 if test -n "$ac_tool_prefix"; then
7605 echo "$as_me:$LINENO: checking for file" >&5
7606echo $ECHO_N "checking for file... $ECHO_C" >&6
7607if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 case $MAGIC_CMD in
7611[\\/*] | ?:[\\/]*)
7612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7613 ;;
7614*)
7615 lt_save_MAGIC_CMD="$MAGIC_CMD"
7616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7617 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7618 for ac_dir in $ac_dummy; do
7619 IFS="$lt_save_ifs"
7620 test -z "$ac_dir" && ac_dir=.
7621 if test -f $ac_dir/file; then
7622 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7623 if test -n "$file_magic_test_file"; then
7624 case $deplibs_check_method in
7625 "file_magic "*)
7626 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7629 $EGREP "$file_magic_regex" > /dev/null; then
7630 :
7631 else
7632 cat <<EOF 1>&2
7633
7634*** Warning: the command libtool uses to detect shared libraries,
7635*** $file_magic_cmd, produces output that libtool cannot recognize.
7636*** The result is that libtool may fail to recognize shared libraries
7637*** as such. This will affect the creation of libtool libraries that
7638*** depend on shared libraries, but programs linked with such libtool
7639*** libraries will work regardless of this problem. Nevertheless, you
7640*** may want to report the problem to your system manager and/or to
7641*** bug-libtool@gnu.org
7642
7643EOF
7644 fi ;;
7645 esac
7646 fi
7647 break
7648 fi
7649 done
7650 IFS="$lt_save_ifs"
7651 MAGIC_CMD="$lt_save_MAGIC_CMD"
7652 ;;
7653esac
7654fi
7655
7656MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657if test -n "$MAGIC_CMD"; then
7658 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7659echo "${ECHO_T}$MAGIC_CMD" >&6
7660else
7661 echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6
7663fi
7664
7665 else
7666 MAGIC_CMD=:
7667 fi
7668fi
7669
7670 fi
7671 ;;
7672esac
7673
7674enable_dlopen=no
7675enable_win32_dll=no
7676
7677# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7678if test "${enable_libtool_lock+set}" = set; then
7679 enableval="$enable_libtool_lock"
7680
7681fi;
7682test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7683
7684
7685# Check whether --with-pic or --without-pic was given.
7686if test "${with_pic+set}" = set; then
7687 withval="$with_pic"
7688 pic_mode="$withval"
7689else
7690 pic_mode=default
7691fi;
7692test -z "$pic_mode" && pic_mode=default
7693
7694# Use C for the default configuration in the libtool script
7695tagname=
7696lt_save_CC="$CC"
7697ac_ext=c
7698ac_cpp='$CPP $CPPFLAGS'
7699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701ac_compiler_gnu=$ac_cv_c_compiler_gnu
7702
7703
7704# Source file extension for C test sources.
7705ac_ext=c
7706
7707# Object file extension for compiled C test sources.
7708objext=o
7709objext=$objext
7710
7711# Code to be used in simple compile tests
7712lt_simple_compile_test_code="int some_variable = 0;\n"
7713
7714# Code to be used in simple link tests
7715lt_simple_link_test_code='int main(){return(0);}\n'
7716
7717
7718# If no C compiler was specified, use CC.
7719LTCC=${LTCC-"$CC"}
7720
7721# Allow CC to be a program name with arguments.
7722compiler=$CC
7723
7724
7725#
7726# Check for any special shared library compilation flags.
7727#
7728lt_prog_cc_shlib=
7729if test "$GCC" = no; then
7730 case $host_os in
7731 sco3.2v5*)
7732 lt_prog_cc_shlib='-belf'
7733 ;;
7734 esac
7735fi
7736if test -n "$lt_prog_cc_shlib"; then
7737 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7738echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7739 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7740 else
7741 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7742echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7743 lt_cv_prog_cc_can_build_shared=no
7744 fi
7745fi
7746
7747
7748#
7749# Check to make sure the static flag actually works.
7750#
7751echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7752echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7753if test "${lt_prog_compiler_static_works+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755else
7756 lt_prog_compiler_static_works=no
7757 save_LDFLAGS="$LDFLAGS"
7758 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7759 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7761 # The compiler can only warn and ignore the option if not recognized
7762 # So say no if there are warnings
7763 if test -s conftest.err; then
7764 # Append any errors to the config.log.
7765 cat conftest.err 1>&5
7766 else
7767 lt_prog_compiler_static_works=yes
7768 fi
7769 fi
7770 $rm conftest*
7771 LDFLAGS="$save_LDFLAGS"
7772
7773fi
7774echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7775echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7776
7777if test x"$lt_prog_compiler_static_works" = xyes; then
7778 :
7779else
7780 lt_prog_compiler_static=
7781fi
7782
7783
7784
7785
7786lt_prog_compiler_no_builtin_flag=
7787
7788if test "$GCC" = yes; then
7789 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7790
7791
7792echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7793echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7794if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796else
7797 lt_cv_prog_compiler_rtti_exceptions=no
7798 ac_outfile=conftest.$ac_objext
7799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7800 lt_compiler_flag="-fno-rtti -fno-exceptions"
7801 # Insert the option either (1) after the last *FLAGS variable, or
7802 # (2) before a word containing "conftest.", or (3) at the end.
7803 # Note that $ac_compile itself does not contain backslashes and begins
7804 # with a dollar sign (not a hyphen), so the echo should work correctly.
7805 # The option is referenced via a variable to avoid confusing sed.
7806 lt_compile=`echo "$ac_compile" | $SED \
7807 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7809 -e 's:$: $lt_compiler_flag:'`
7810 (eval echo "\"\$as_me:7810: $lt_compile\"" >&5)
7811 (eval "$lt_compile" 2>conftest.err)
7812 ac_status=$?
7813 cat conftest.err >&5
7814 echo "$as_me:7814: \$? = $ac_status" >&5
7815 if (exit $ac_status) && test -s "$ac_outfile"; then
7816 # The compiler can only warn and ignore the option if not recognized
7817 # So say no if there are warnings
7818 if test ! -s conftest.err; then
7819 lt_cv_prog_compiler_rtti_exceptions=yes
7820 fi
7821 fi
7822 $rm conftest*
7823
7824fi
7825echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7826echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7827
7828if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7829 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7830else
7831 :
7832fi
7833
7834fi
7835
7836lt_prog_compiler_wl=
7837lt_prog_compiler_pic=
7838lt_prog_compiler_static=
7839
7840echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7841echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7842
7843 if test "$GCC" = yes; then
7844 lt_prog_compiler_wl='-Wl,'
7845 lt_prog_compiler_static='-static'
7846
7847 case $host_os in
7848 aix*)
7849 # All AIX code is PIC.
7850 if test "$host_cpu" = ia64; then
7851 # AIX 5 now supports IA64 processor
7852 lt_prog_compiler_static='-Bstatic'
7853 fi
7854 ;;
7855
7856 amigaos*)
7857 # FIXME: we need at least 68020 code to build shared libraries, but
7858 # adding the `-m68020' flag to GCC prevents building anything better,
7859 # like `-m68040'.
7860 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7861 ;;
7862
7863 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7864 # PIC is the default for these OSes.
7865 ;;
7866
7867 mingw* | pw32* | os2*)
7868 # This hack is so that the source file can tell whether it is being
7869 # built for inclusion in a dll (and should export symbols for example).
7870 lt_prog_compiler_pic='-DDLL_EXPORT'
7871 ;;
7872
7873 darwin* | rhapsody*)
7874 # PIC is the default on this platform
7875 # Common symbols not allowed in MH_DYLIB files
7876 lt_prog_compiler_pic='-fno-common'
7877 ;;
7878
7879 msdosdjgpp*)
7880 # Just because we use GCC doesn't mean we suddenly get shared libraries
7881 # on systems that don't support them.
7882 lt_prog_compiler_can_build_shared=no
7883 enable_shared=no
7884 ;;
7885
7886 sysv4*MP*)
7887 if test -d /usr/nec; then
7888 lt_prog_compiler_pic=-Kconform_pic
7889 fi
7890 ;;
7891
7892 hpux*)
7893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7894 # not for PA HP-UX.
7895 case "$host_cpu" in
7896 hppa*64*|ia64*)
7897 # +Z the default
7898 ;;
7899 *)
7900 lt_prog_compiler_pic='-fPIC'
7901 ;;
7902 esac
7903 ;;
7904
7905 *)
7906 lt_prog_compiler_pic='-fPIC'
7907 ;;
7908 esac
7909 else
7910 # PORTME Check for flag to pass linker flags through the system compiler.
7911 case $host_os in
7912 aix*)
7913 lt_prog_compiler_wl='-Wl,'
7914 if test "$host_cpu" = ia64; then
7915 # AIX 5 now supports IA64 processor
7916 lt_prog_compiler_static='-Bstatic'
7917 else
7918 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7919 fi
7920 ;;
7921 darwin*)
7922 # PIC is the default on this platform
7923 # Common symbols not allowed in MH_DYLIB files
7924 case "$cc_basename" in
7925 xlc*)
7926 lt_prog_compiler_pic='-qnocommon'
7927 lt_prog_compiler_wl='-Wl,'
7928 ;;
7929 esac
7930 ;;
7931
7932 mingw* | pw32* | os2*)
7933 # This hack is so that the source file can tell whether it is being
7934 # built for inclusion in a dll (and should export symbols for example).
7935 lt_prog_compiler_pic='-DDLL_EXPORT'
7936 ;;
7937
7938 hpux9* | hpux10* | hpux11*)
7939 lt_prog_compiler_wl='-Wl,'
7940 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7941 # not for PA HP-UX.
7942 case "$host_cpu" in
7943 hppa*64*|ia64*)
7944 # +Z the default
7945 ;;
7946 *)
7947 lt_prog_compiler_pic='+Z'
7948 ;;
7949 esac
7950 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7951 lt_prog_compiler_static='${wl}-a ${wl}archive'
7952 ;;
7953
7954 irix5* | irix6* | nonstopux*)
7955 lt_prog_compiler_wl='-Wl,'
7956 # PIC (with -KPIC) is the default.
7957 lt_prog_compiler_static='-non_shared'
7958 ;;
7959
7960 newsos6)
7961 lt_prog_compiler_pic='-KPIC'
7962 lt_prog_compiler_static='-Bstatic'
7963 ;;
7964
7965 linux*)
7966 case $CC in
7967 icc* | ecc*)
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_pic='-KPIC'
7970 lt_prog_compiler_static='-static'
7971 ;;
7972 ccc*)
7973 lt_prog_compiler_wl='-Wl,'
7974 # All Alpha code is PIC.
7975 lt_prog_compiler_static='-non_shared'
7976 ;;
7977 esac
7978 ;;
7979
7980 osf3* | osf4* | osf5*)
7981 lt_prog_compiler_wl='-Wl,'
7982 # All OSF/1 code is PIC.
7983 lt_prog_compiler_static='-non_shared'
7984 ;;
7985
7986 sco3.2v5*)
7987 lt_prog_compiler_pic='-Kpic'
7988 lt_prog_compiler_static='-dn'
7989 ;;
7990
7991 solaris*)
7992 lt_prog_compiler_wl='-Wl,'
7993 lt_prog_compiler_pic='-KPIC'
7994 lt_prog_compiler_static='-Bstatic'
7995 ;;
7996
7997 sunos4*)
7998 lt_prog_compiler_wl='-Qoption ld '
7999 lt_prog_compiler_pic='-PIC'
8000 lt_prog_compiler_static='-Bstatic'
8001 ;;
8002
8003 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8004 lt_prog_compiler_wl='-Wl,'
8005 lt_prog_compiler_pic='-KPIC'
8006 lt_prog_compiler_static='-Bstatic'
8007 ;;
8008
8009 sysv4*MP*)
8010 if test -d /usr/nec ;then
8011 lt_prog_compiler_pic='-Kconform_pic'
8012 lt_prog_compiler_static='-Bstatic'
8013 fi
8014 ;;
8015
8016 uts4*)
8017 lt_prog_compiler_pic='-pic'
8018 lt_prog_compiler_static='-Bstatic'
8019 ;;
8020
8021 *)
8022 lt_prog_compiler_can_build_shared=no
8023 ;;
8024 esac
8025 fi
8026
8027echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8028echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8029
8030#
8031# Check to make sure the PIC flag actually works.
8032#
8033if test -n "$lt_prog_compiler_pic"; then
8034
8035echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8036echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8037if test "${lt_prog_compiler_pic_works+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039else
8040 lt_prog_compiler_pic_works=no
8041 ac_outfile=conftest.$ac_objext
8042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8043 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8044 # Insert the option either (1) after the last *FLAGS variable, or
8045 # (2) before a word containing "conftest.", or (3) at the end.
8046 # Note that $ac_compile itself does not contain backslashes and begins
8047 # with a dollar sign (not a hyphen), so the echo should work correctly.
8048 # The option is referenced via a variable to avoid confusing sed.
8049 lt_compile=`echo "$ac_compile" | $SED \
8050 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052 -e 's:$: $lt_compiler_flag:'`
8053 (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
8054 (eval "$lt_compile" 2>conftest.err)
8055 ac_status=$?
8056 cat conftest.err >&5
8057 echo "$as_me:8057: \$? = $ac_status" >&5
8058 if (exit $ac_status) && test -s "$ac_outfile"; then
8059 # The compiler can only warn and ignore the option if not recognized
8060 # So say no if there are warnings
8061 if test ! -s conftest.err; then
8062 lt_prog_compiler_pic_works=yes
8063 fi
8064 fi
8065 $rm conftest*
8066
8067fi
8068echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8069echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8070
8071if test x"$lt_prog_compiler_pic_works" = xyes; then
8072 case $lt_prog_compiler_pic in
8073 "" | " "*) ;;
8074 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8075 esac
8076else
8077 lt_prog_compiler_pic=
8078 lt_prog_compiler_can_build_shared=no
8079fi
8080
8081fi
8082case "$host_os" in
8083 # For platforms which do not support PIC, -DPIC is meaningless:
8084 *djgpp*)
8085 lt_prog_compiler_pic=
8086 ;;
8087 *)
8088 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8089 ;;
8090esac
8091
8092echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8093echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8094if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097 lt_cv_prog_compiler_c_o=no
8098 $rm -r conftest 2>/dev/null
8099 mkdir conftest
8100 cd conftest
8101 mkdir out
8102 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8103
8104 lt_compiler_flag="-o out/conftest2.$ac_objext"
8105 # Insert the option either (1) after the last *FLAGS variable, or
8106 # (2) before a word containing "conftest.", or (3) at the end.
8107 # Note that $ac_compile itself does not contain backslashes and begins
8108 # with a dollar sign (not a hyphen), so the echo should work correctly.
8109 lt_compile=`echo "$ac_compile" | $SED \
8110 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112 -e 's:$: $lt_compiler_flag:'`
8113 (eval echo "\"\$as_me:8113: $lt_compile\"" >&5)
8114 (eval "$lt_compile" 2>out/conftest.err)
8115 ac_status=$?
8116 cat out/conftest.err >&5
8117 echo "$as_me:8117: \$? = $ac_status" >&5
8118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8119 then
8120 # The compiler can only warn and ignore the option if not recognized
8121 # So say no if there are warnings
8122 if test ! -s out/conftest.err; then
8123 lt_cv_prog_compiler_c_o=yes
8124 fi
8125 fi
8126 chmod u+w .
8127 $rm conftest*
8128 # SGI C++ compiler will create directory out/ii_files/ for
8129 # template instantiation
8130 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8131 $rm out/* && rmdir out
8132 cd ..
8133 rmdir conftest
8134 $rm conftest*
8135
8136fi
8137echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8138echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8139
8140
8141hard_links="nottested"
8142if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8143 # do not overwrite the value of need_locks provided by the user
8144 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8145echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8146 hard_links=yes
8147 $rm conftest*
8148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8149 touch conftest.a
8150 ln conftest.a conftest.b 2>&5 || hard_links=no
8151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8152 echo "$as_me:$LINENO: result: $hard_links" >&5
8153echo "${ECHO_T}$hard_links" >&6
8154 if test "$hard_links" = no; then
8155 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8156echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8157 need_locks=warn
8158 fi
8159else
8160 need_locks=no
8161fi
8162
8163echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8164echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8165
8166 runpath_var=
8167 allow_undefined_flag=
8168 enable_shared_with_static_runtimes=no
8169 archive_cmds=
8170 archive_expsym_cmds=
8171 old_archive_From_new_cmds=
8172 old_archive_from_expsyms_cmds=
8173 export_dynamic_flag_spec=
8174 whole_archive_flag_spec=
8175 thread_safe_flag_spec=
8176 hardcode_libdir_flag_spec=
8177 hardcode_libdir_flag_spec_ld=
8178 hardcode_libdir_separator=
8179 hardcode_direct=no
8180 hardcode_minus_L=no
8181 hardcode_shlibpath_var=unsupported
8182 link_all_deplibs=unknown
8183 hardcode_automatic=no
8184 module_cmds=
8185 module_expsym_cmds=
8186 always_export_symbols=no
8187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8188 # include_expsyms should be a list of space-separated symbols to be *always*
8189 # included in the symbol list
8190 include_expsyms=
8191 # exclude_expsyms can be an extended regexp of symbols to exclude
8192 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8193 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8194 # as well as any symbol that contains `d'.
8195 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8196 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8197 # platforms (ab)use it in PIC code, but their linkers get confused if
8198 # the symbol is explicitly referenced. Since portable code cannot
8199 # rely on this symbol name, it's probably fine to never include it in
8200 # preloaded symbol tables.
8201 extract_expsyms_cmds=
8202
8203 case $host_os in
8204 cygwin* | mingw* | pw32*)
8205 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8206 # When not using gcc, we currently assume that we are using
8207 # Microsoft Visual C++.
8208 if test "$GCC" != yes; then
8209 with_gnu_ld=no
8210 fi
8211 ;;
8212 openbsd*)
8213 with_gnu_ld=no
8214 ;;
8215 esac
8216
8217 ld_shlibs=yes
8218 if test "$with_gnu_ld" = yes; then
8219 # If archive_cmds runs LD, not CC, wlarc should be empty
8220 wlarc='${wl}'
8221
8222 # See if GNU ld supports shared libraries.
8223 case $host_os in
8224 aix3* | aix4* | aix5*)
8225 # On AIX/PPC, the GNU linker is very broken
8226 if test "$host_cpu" != ia64; then
8227 ld_shlibs=no
8228 cat <<EOF 1>&2
8229
8230*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8231*** to be unable to reliably create shared libraries on AIX.
8232*** Therefore, libtool is disabling shared libraries support. If you
8233*** really care for shared libraries, you may want to modify your PATH
8234*** so that a non-GNU linker is found, and then restart.
8235
8236EOF
8237 fi
8238 ;;
8239
8240 amigaos*)
8241 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)'
8242 hardcode_libdir_flag_spec='-L$libdir'
8243 hardcode_minus_L=yes
8244
8245 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8246 # that the semantics of dynamic libraries on AmigaOS, at least up
8247 # to version 4, is to share data among multiple programs linked
8248 # with the same dynamic library. Since this doesn't match the
8249 # behavior of shared libraries on other platforms, we can't use
8250 # them.
8251 ld_shlibs=no
8252 ;;
8253
8254 beos*)
8255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8256 allow_undefined_flag=unsupported
8257 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8258 # support --undefined. This deserves some investigation. FIXME
8259 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260 else
8261 ld_shlibs=no
8262 fi
8263 ;;
8264
8265 cygwin* | mingw* | pw32*)
8266 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8267 # as there is no search path for DLLs.
8268 hardcode_libdir_flag_spec='-L$libdir'
8269 allow_undefined_flag=unsupported
8270 always_export_symbols=no
8271 enable_shared_with_static_runtimes=yes
8272 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8273
8274 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8276 # If the export-symbols file already is a .def file (1st line
8277 # is EXPORTS), use it as is; otherwise, prepend...
8278 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8279 cp $export_symbols $output_objdir/$soname.def;
8280 else
8281 echo EXPORTS > $output_objdir/$soname.def;
8282 cat $export_symbols >> $output_objdir/$soname.def;
8283 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8284 else
8285 ld_shlibs=no
8286 fi
8287 ;;
8288
8289 netbsd*)
8290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8291 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8292 wlarc=
8293 else
8294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8296 fi
8297 ;;
8298
8299 solaris* | sysv5*)
8300 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8301 ld_shlibs=no
8302 cat <<EOF 1>&2
8303
8304*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8305*** create shared libraries on Solaris systems. Therefore, libtool
8306*** is disabling shared libraries support. We urge you to upgrade GNU
8307*** binutils to release 2.9.1 or newer. Another option is to modify
8308*** your PATH or compiler configuration so that the native linker is
8309*** used, and then restart.
8310
8311EOF
8312 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8315 else
8316 ld_shlibs=no
8317 fi
8318 ;;
8319
8320 sunos4*)
8321 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8322 wlarc=
8323 hardcode_direct=yes
8324 hardcode_shlibpath_var=no
8325 ;;
8326
8327 linux*)
8328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8329 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8330 archive_cmds="$tmp_archive_cmds"
8331 supports_anon_versioning=no
8332 case `$LD -v 2>/dev/null` in
8333 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8334 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8335 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8336 *\ 2.11.*) ;; # other 2.11 versions
8337 *) supports_anon_versioning=yes ;;
8338 esac
8339 if test $supports_anon_versioning = yes; then
8340 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
8341 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8342 else
8343 archive_expsym_cmds="$tmp_archive_cmds"
8344 fi
8345 else
8346 ld_shlibs=no
8347 fi
8348 ;;
8349
8350 *)
8351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8354 else
8355 ld_shlibs=no
8356 fi
8357 ;;
8358 esac
8359
8360 if test "$ld_shlibs" = yes; then
8361 runpath_var=LD_RUN_PATH
8362 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8363 export_dynamic_flag_spec='${wl}--export-dynamic'
8364 # ancient GNU ld didn't support --whole-archive et. al.
8365 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8366 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8367 else
8368 whole_archive_flag_spec=
8369 fi
8370 fi
8371 else
8372 # PORTME fill in a description of your system's linker (not GNU ld)
8373 case $host_os in
8374 aix3*)
8375 allow_undefined_flag=unsupported
8376 always_export_symbols=yes
8377 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'
8378 # Note: this linker hardcodes the directories in LIBPATH if there
8379 # are no directories specified by -L.
8380 hardcode_minus_L=yes
8381 if test "$GCC" = yes && test -z "$link_static_flag"; then
8382 # Neither direct hardcoding nor static linking is supported with a
8383 # broken collect2.
8384 hardcode_direct=unsupported
8385 fi
8386 ;;
8387
8388 aix4* | aix5*)
8389 if test "$host_cpu" = ia64; then
8390 # On IA64, the linker does run time linking by default, so we don't
8391 # have to do anything special.
8392 aix_use_runtimelinking=no
8393 exp_sym_flag='-Bexport'
8394 no_entry_flag=""
8395 else
8396 # If we're using GNU nm, then we don't want the "-C" option.
8397 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8398 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8399 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'
8400 else
8401 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'
8402 fi
8403 aix_use_runtimelinking=no
8404
8405 # Test if we are trying to use run time linking or normal
8406 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8407 # need to do runtime linking.
8408 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8409 for ld_flag in $LDFLAGS; do
8410 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8411 aix_use_runtimelinking=yes
8412 break
8413 fi
8414 done
8415 esac
8416
8417 exp_sym_flag='-bexport'
8418 no_entry_flag='-bnoentry'
8419 fi
8420
8421 # When large executables or shared objects are built, AIX ld can
8422 # have problems creating the table of contents. If linking a library
8423 # or program results in "error TOC overflow" add -mminimal-toc to
8424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8426
8427 archive_cmds=''
8428 hardcode_direct=yes
8429 hardcode_libdir_separator=':'
8430 link_all_deplibs=yes
8431
8432 if test "$GCC" = yes; then
8433 case $host_os in aix4.012|aix4.012.*)
8434 # We only want to do this on AIX 4.2 and lower, the check
8435 # below for broken collect2 doesn't work under 4.3+
8436 collect2name=`${CC} -print-prog-name=collect2`
8437 if test -f "$collect2name" && \
8438 strings "$collect2name" | grep resolve_lib_name >/dev/null
8439 then
8440 # We have reworked collect2
8441 hardcode_direct=yes
8442 else
8443 # We have old collect2
8444 hardcode_direct=unsupported
8445 # It fails to find uninstalled libraries when the uninstalled
8446 # path is not listed in the libpath. Setting hardcode_minus_L
8447 # to unsupported forces relinking
8448 hardcode_minus_L=yes
8449 hardcode_libdir_flag_spec='-L$libdir'
8450 hardcode_libdir_separator=
8451 fi
8452 esac
8453 shared_flag='-shared'
8454 else
8455 # not using gcc
8456 if test "$host_cpu" = ia64; then
8457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8458 # chokes on -Wl,-G. The following line is correct:
8459 shared_flag='-G'
8460 else
8461 if test "$aix_use_runtimelinking" = yes; then
8462 shared_flag='${wl}-G'
8463 else
8464 shared_flag='${wl}-bM:SRE'
8465 fi
8466 fi
8467 fi
8468
8469 # It seems that -bexpall does not export symbols beginning with
8470 # underscore (_), so it is better to generate a list of symbols to export.
8471 always_export_symbols=yes
8472 if test "$aix_use_runtimelinking" = yes; then
8473 # Warning - without using the other runtime loading flags (-brtl),
8474 # -berok will link without error, but may produce a broken library.
8475 allow_undefined_flag='-berok'
8476 # Determine the default libpath from the value encoded in an empty executable.
8477 cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483
8484int
8485main ()
8486{
8487
8488 ;
8489 return 0;
8490}
8491_ACEOF
8492rm -f conftest.$ac_objext conftest$ac_exeext
8493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag"
8502 || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest$ac_exeext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514
8515aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8516}'`
8517# Check for a 64-bit object if we didn't find anything.
8518if 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; }
8519}'`; fi
8520else
8521 echo "$as_me: failed program was:" >&5
8522sed 's/^/| /' conftest.$ac_ext >&5
8523
8524fi
8525rm -f conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8527if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8528
8529 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8530 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"
8531 else
8532 if test "$host_cpu" = ia64; then
8533 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8534 allow_undefined_flag="-z nodefs"
8535 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"
8536 else
8537 # Determine the default libpath from the value encoded in an empty executable.
8538 cat >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
8545int
8546main ()
8547{
8548
8549 ;
8550 return 0;
8551}
8552_ACEOF
8553rm -f conftest.$ac_objext conftest$ac_exeext
8554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555 (eval $ac_link) 2>conftest.er1
8556 ac_status=$?
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try='test -z "$ac_c_werror_flag"
8563 || test ! -s conftest.err'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 (eval $ac_try) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; } &&
8569 { ac_try='test -s conftest$ac_exeext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575
8576aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8577}'`
8578# Check for a 64-bit object if we didn't find anything.
8579if 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; }
8580}'`; fi
8581else
8582 echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585fi
8586rm -f conftest.err conftest.$ac_objext \
8587 conftest$ac_exeext conftest.$ac_ext
8588if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8589
8590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8591 # Warning - without using the other run time loading flags,
8592 # -berok will link without error, but may produce a broken library.
8593 no_undefined_flag=' ${wl}-bernotok'
8594 allow_undefined_flag=' ${wl}-berok'
8595 # -bexpall does not export symbols beginning with underscore (_)
8596 always_export_symbols=yes
8597 # Exported symbols can be pulled into shared objects from archives
8598 whole_archive_flag_spec=' '
8599 archive_cmds_need_lc=yes
8600 # This is similar to how AIX traditionally builds it's shared libraries.
8601 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'
8602 fi
8603 fi
8604 ;;
8605
8606 amigaos*)
8607 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)'
8608 hardcode_libdir_flag_spec='-L$libdir'
8609 hardcode_minus_L=yes
8610 # see comment about different semantics on the GNU ld section
8611 ld_shlibs=no
8612 ;;
8613
8614 bsdi[45]*)
8615 export_dynamic_flag_spec=-rdynamic
8616 ;;
8617
8618 cygwin* | mingw* | pw32*)
8619 # When not using gcc, we currently assume that we are using
8620 # Microsoft Visual C++.
8621 # hardcode_libdir_flag_spec is actually meaningless, as there is
8622 # no search path for DLLs.
8623 hardcode_libdir_flag_spec=' '
8624 allow_undefined_flag=unsupported
8625 # Tell ltmain to make .lib files, not .a files.
8626 libext=lib
8627 # Tell ltmain to make .dll files, not .so files.
8628 shrext_cmds=".dll"
8629 # FIXME: Setting linknames here is a bad hack.
8630 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
8631 # The linker will automatically build a .lib file if we build a DLL.
8632 old_archive_From_new_cmds='true'
8633 # FIXME: Should let the user specify the lib program.
8634 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8635 fix_srcfile_path='`cygpath -w "$srcfile"`'
8636 enable_shared_with_static_runtimes=yes
8637 ;;
8638
8639 darwin* | rhapsody*)
8640 case "$host_os" in
8641 rhapsody* | darwin1.[012])
8642 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8643 ;;
8644 *) # Darwin 1.3 on
8645 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8646 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8647 else
8648 case ${MACOSX_DEPLOYMENT_TARGET} in
8649 10.[012])
8650 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8651 ;;
8652 10.*)
8653 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8654 ;;
8655 esac
8656 fi
8657 ;;
8658 esac
8659 archive_cmds_need_lc=no
8660 hardcode_direct=no
8661 hardcode_automatic=yes
8662 hardcode_shlibpath_var=unsupported
8663 whole_archive_flag_spec=''
8664 link_all_deplibs=yes
8665 if test "$GCC" = yes ; then
8666 output_verbose_link_cmd='echo'
8667 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8668 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8670 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}'
8671 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}'
8672 else
8673 case "$cc_basename" in
8674 xlc*)
8675 output_verbose_link_cmd='echo'
8676 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8677 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8678 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8679 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8680 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}'
8681 ;;
8682 *)
8683 ld_shlibs=no
8684 ;;
8685 esac
8686 fi
8687 ;;
8688
8689 dgux*)
8690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8691 hardcode_libdir_flag_spec='-L$libdir'
8692 hardcode_shlibpath_var=no
8693 ;;
8694
8695 freebsd1*)
8696 ld_shlibs=no
8697 ;;
8698
8699 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8700 # support. Future versions do this automatically, but an explicit c++rt0.o
8701 # does not break anything, and helps significantly (at the cost of a little
8702 # extra space).
8703 freebsd2.2*)
8704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8705 hardcode_libdir_flag_spec='-R$libdir'
8706 hardcode_direct=yes
8707 hardcode_shlibpath_var=no
8708 ;;
8709
8710 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8711 freebsd2*)
8712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8713 hardcode_direct=yes
8714 hardcode_minus_L=yes
8715 hardcode_shlibpath_var=no
8716 ;;
8717
8718 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8719 freebsd* | kfreebsd*-gnu)
8720 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8721 hardcode_libdir_flag_spec='-R$libdir'
8722 hardcode_direct=yes
8723 hardcode_shlibpath_var=no
8724 ;;
8725
8726 hpux9*)
8727 if test "$GCC" = yes; then
8728 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'
8729 else
8730 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'
8731 fi
8732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8733 hardcode_libdir_separator=:
8734 hardcode_direct=yes
8735
8736 # hardcode_minus_L: Not really in the search PATH,
8737 # but as the default location of the library.
8738 hardcode_minus_L=yes
8739 export_dynamic_flag_spec='${wl}-E'
8740 ;;
8741
8742 hpux10* | hpux11*)
8743 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8744 case "$host_cpu" in
8745 hppa*64*|ia64*)
8746 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8747 ;;
8748 *)
8749 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8750 ;;
8751 esac
8752 else
8753 case "$host_cpu" in
8754 hppa*64*|ia64*)
8755 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8756 ;;
8757 *)
8758 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8759 ;;
8760 esac
8761 fi
8762 if test "$with_gnu_ld" = no; then
8763 case "$host_cpu" in
8764 hppa*64*)
8765 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8766 hardcode_libdir_flag_spec_ld='+b $libdir'
8767 hardcode_libdir_separator=:
8768 hardcode_direct=no
8769 hardcode_shlibpath_var=no
8770 ;;
8771 ia64*)
8772 hardcode_libdir_flag_spec='-L$libdir'
8773 hardcode_direct=no
8774 hardcode_shlibpath_var=no
8775
8776 # hardcode_minus_L: Not really in the search PATH,
8777 # but as the default location of the library.
8778 hardcode_minus_L=yes
8779 ;;
8780 *)
8781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8782 hardcode_libdir_separator=:
8783 hardcode_direct=yes
8784 export_dynamic_flag_spec='${wl}-E'
8785
8786 # hardcode_minus_L: Not really in the search PATH,
8787 # but as the default location of the library.
8788 hardcode_minus_L=yes
8789 ;;
8790 esac
8791 fi
8792 ;;
8793
8794 irix5* | irix6* | nonstopux*)
8795 if test "$GCC" = yes; then
8796 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'
8797 else
8798 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'
8799 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8800 fi
8801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802 hardcode_libdir_separator=:
8803 link_all_deplibs=yes
8804 ;;
8805
8806 netbsd*)
8807 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8809 else
8810 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8811 fi
8812 hardcode_libdir_flag_spec='-R$libdir'
8813 hardcode_direct=yes
8814 hardcode_shlibpath_var=no
8815 ;;
8816
8817 newsos6)
8818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8819 hardcode_direct=yes
8820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821 hardcode_libdir_separator=:
8822 hardcode_shlibpath_var=no
8823 ;;
8824
8825 openbsd*)
8826 hardcode_direct=yes
8827 hardcode_shlibpath_var=no
8828 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8830 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832 export_dynamic_flag_spec='${wl}-E'
8833 else
8834 case $host_os in
8835 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8837 hardcode_libdir_flag_spec='-R$libdir'
8838 ;;
8839 *)
8840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8842 ;;
8843 esac
8844 fi
8845 ;;
8846
8847 os2*)
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 hardcode_minus_L=yes
8850 allow_undefined_flag=unsupported
8851 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'
8852 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8853 ;;
8854
8855 osf3*)
8856 if test "$GCC" = yes; then
8857 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858 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'
8859 else
8860 allow_undefined_flag=' -expect_unresolved \*'
8861 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'
8862 fi
8863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8864 hardcode_libdir_separator=:
8865 ;;
8866
8867 osf4* | osf5*) # as osf3* with the addition of -msym flag
8868 if test "$GCC" = yes; then
8869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8870 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'
8871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8872 else
8873 allow_undefined_flag=' -expect_unresolved \*'
8874 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'
8875 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $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'
8876 # Both c and cxx compiler support -rpath directly
8877 hardcode_libdir_flag_spec='-rpath $libdir'
8878 fi
8879 hardcode_libdir_separator=:
8880 ;;
8881
8882 sco3.2v5*)
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_shlibpath_var=no
8885 export_dynamic_flag_spec='${wl}-Bexport'
8886 runpath_var=LD_RUN_PATH
8887 hardcode_runpath_var=yes
8888 ;;
8889
8890 solaris*)
8891 no_undefined_flag=' -z text'
8892 if test "$GCC" = yes; then
8893 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8894 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
8895 else
8896 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8897 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
8898 fi
8899 hardcode_libdir_flag_spec='-R$libdir'
8900 hardcode_shlibpath_var=no
8901 case $host_os in
8902 solaris2.[0-5] | solaris2.[0-5].*) ;;
8903 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8904 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8905 esac
8906 link_all_deplibs=yes
8907 ;;
8908
8909 sunos4*)
8910 if test "x$host_vendor" = xsequent; then
8911 # Use $CC to link under sequent, because it throws in some extra .o
8912 # files that make .init and .fini sections work.
8913 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8914 else
8915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8916 fi
8917 hardcode_libdir_flag_spec='-L$libdir'
8918 hardcode_direct=yes
8919 hardcode_minus_L=yes
8920 hardcode_shlibpath_var=no
8921 ;;
8922
8923 sysv4)
8924 case $host_vendor in
8925 sni)
8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_direct=yes # is this really true???
8928 ;;
8929 siemens)
8930 ## LD is ld it makes a PLAMLIB
8931 ## CC just makes a GrossModule.
8932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8933 reload_cmds='$CC -r -o $output$reload_objs'
8934 hardcode_direct=no
8935 ;;
8936 motorola)
8937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8939 ;;
8940 esac
8941 runpath_var='LD_RUN_PATH'
8942 hardcode_shlibpath_var=no
8943 ;;
8944
8945 sysv4.3*)
8946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_shlibpath_var=no
8948 export_dynamic_flag_spec='-Bexport'
8949 ;;
8950
8951 sysv4*MP*)
8952 if test -d /usr/nec; then
8953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954 hardcode_shlibpath_var=no
8955 runpath_var=LD_RUN_PATH
8956 hardcode_runpath_var=yes
8957 ld_shlibs=yes
8958 fi
8959 ;;
8960
8961 sysv4.2uw2*)
8962 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8963 hardcode_direct=yes
8964 hardcode_minus_L=no
8965 hardcode_shlibpath_var=no
8966 hardcode_runpath_var=yes
8967 runpath_var=LD_RUN_PATH
8968 ;;
8969
8970 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8971 no_undefined_flag='${wl}-z ${wl}text'
8972 if test "$GCC" = yes; then
8973 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8974 else
8975 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976 fi
8977 runpath_var='LD_RUN_PATH'
8978 hardcode_shlibpath_var=no
8979 ;;
8980
8981 sysv5*)
8982 no_undefined_flag=' -z text'
8983 # $CC -shared without GNU ld will not create a library from C++
8984 # object files and a static libstdc++, better avoid it by now
8985 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8986 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
8987 hardcode_libdir_flag_spec=
8988 hardcode_shlibpath_var=no
8989 runpath_var='LD_RUN_PATH'
8990 ;;
8991
8992 uts4*)
8993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_shlibpath_var=no
8996 ;;
8997
8998 *)
8999 ld_shlibs=no
9000 ;;
9001 esac
9002 fi
9003
9004echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9005echo "${ECHO_T}$ld_shlibs" >&6
9006test "$ld_shlibs" = no && can_build_shared=no
9007
9008variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9009if test "$GCC" = yes; then
9010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9011fi
9012
9013#
9014# Do we need to explicitly link libc?
9015#
9016case "x$archive_cmds_need_lc" in
9017x|xyes)
9018 # Assume -lc should be added
9019 archive_cmds_need_lc=yes
9020
9021 if test "$enable_shared" = yes && test "$GCC" = yes; then
9022 case $archive_cmds in
9023 *'~'*)
9024 # FIXME: we may have to deal with multi-command sequences.
9025 ;;
9026 '$CC '*)
9027 # Test whether the compiler implicitly links with -lc since on some
9028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9029 # to ld, don't add -lc before -lgcc.
9030 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9031echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9032 $rm conftest*
9033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9034
9035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036 (eval $ac_compile) 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } 2>conftest.err; then
9040 soname=conftest
9041 lib=conftest
9042 libobjs=conftest.$ac_objext
9043 deplibs=
9044 wl=$lt_prog_compiler_wl
9045 compiler_flags=-v
9046 linker_flags=-v
9047 verstring=
9048 output_objdir=.
9049 libname=conftest
9050 lt_save_allow_undefined_flag=$allow_undefined_flag
9051 allow_undefined_flag=
9052 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9053 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }
9057 then
9058 archive_cmds_need_lc=no
9059 else
9060 archive_cmds_need_lc=yes
9061 fi
9062 allow_undefined_flag=$lt_save_allow_undefined_flag
9063 else
9064 cat conftest.err 1>&5
9065 fi
9066 $rm conftest*
9067 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9068echo "${ECHO_T}$archive_cmds_need_lc" >&6
9069 ;;
9070 esac
9071 fi
9072 ;;
9073esac
9074
9075echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9076echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9077library_names_spec=
9078libname_spec='lib$name'
9079soname_spec=
9080shrext_cmds=".so"
9081postinstall_cmds=
9082postuninstall_cmds=
9083finish_cmds=
9084finish_eval=
9085shlibpath_var=
9086shlibpath_overrides_runpath=unknown
9087version_type=none
9088dynamic_linker="$host_os ld.so"
9089sys_lib_dlsearch_path_spec="/lib /usr/lib"
9090if test "$GCC" = yes; then
9091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9092 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9093 # if the path contains ";" then we assume it to be the separator
9094 # otherwise default to the standard path separator (i.e. ":") - it is
9095 # assumed that no part of a normal pathname contains ";" but that should
9096 # okay in the real world where ";" in dirpaths is itself problematic.
9097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9098 else
9099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9100 fi
9101else
9102 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9103fi
9104need_lib_prefix=unknown
9105hardcode_into_libs=no
9106
9107# when you set need_version to no, make sure it does not cause -set_version
9108# flags to be left without arguments
9109need_version=unknown
9110
9111case $host_os in
9112aix3*)
9113 version_type=linux
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9115 shlibpath_var=LIBPATH
9116
9117 # AIX 3 has no versioning support, so we append a major version to the name.
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 ;;
9120
9121aix4* | aix5*)
9122 version_type=linux
9123 need_lib_prefix=no
9124 need_version=no
9125 hardcode_into_libs=yes
9126 if test "$host_cpu" = ia64; then
9127 # AIX 5 supports IA64
9128 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 else
9131 # With GCC up to 2.95.x, collect2 would create an import file
9132 # for dependence libraries. The import file would start with
9133 # the line `#! .'. This would cause the generated library to
9134 # depend on `.', always an invalid library. This was fixed in
9135 # development snapshots of GCC prior to 3.0.
9136 case $host_os in
9137 aix4 | aix4.[01] | aix4.[01].*)
9138 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9139 echo ' yes '
9140 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9141 :
9142 else
9143 can_build_shared=no
9144 fi
9145 ;;
9146 esac
9147 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9148 # soname into executable. Probably we can add versioning support to
9149 # collect2, so additional links can be useful in future.
9150 if test "$aix_use_runtimelinking" = yes; then
9151 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9152 # instead of lib<name>.a to let people know that these are not
9153 # typical AIX shared libraries.
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155 else
9156 # We preserve .a as extension for shared libraries through AIX4.2
9157 # and later when we are not doing run time linking.
9158 library_names_spec='${libname}${release}.a $libname.a'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 fi
9161 shlibpath_var=LIBPATH
9162 fi
9163 ;;
9164
9165amigaos*)
9166 library_names_spec='$libname.ixlibrary $libname.a'
9167 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9168 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'
9169 ;;
9170
9171beos*)
9172 library_names_spec='${libname}${shared_ext}'
9173 dynamic_linker="$host_os ld.so"
9174 shlibpath_var=LIBRARY_PATH
9175 ;;
9176
9177bsdi[45]*)
9178 version_type=linux
9179 need_version=no
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9185 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9186 # the default ld.so.conf also contains /usr/contrib/lib and
9187 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9188 # libtool to hard-code these into programs
9189 ;;
9190
9191cygwin* | mingw* | pw32*)
9192 version_type=windows
9193 shrext_cmds=".dll"
9194 need_version=no
9195 need_lib_prefix=no
9196
9197 case $GCC,$host_os in
9198 yes,cygwin* | yes,mingw* | yes,pw32*)
9199 library_names_spec='$libname.dll.a'
9200 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9201 postinstall_cmds='base_file=`basename \${file}`;
9202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
9203 dldir=$destdir/`dirname \$dlpath`;
9204 test -d \$dldir || mkdir -p \$dldir;
9205 $install_prog $dir/$dlname \$dldir/$dlname'
9206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
9207 dlpath=$dir/\$dldll;
9208 $rm \$dlpath'
9209 shlibpath_overrides_runpath=yes
9210
9211 case $host_os in
9212 cygwin*)
9213 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9214 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9215 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9216 ;;
9217 mingw*)
9218 # MinGW DLLs use traditional 'lib' prefix
9219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9220 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9221 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9222 # It is most probably a Windows format PATH printed by
9223 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9224 # path with ; separators, and with drive letters. We can handle the
9225 # drive letters (cygwin fileutils understands them), so leave them,
9226 # especially as we might pass files found there to a mingw objdump,
9227 # which wouldn't understand a cygwinified path. Ahh.
9228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9229 else
9230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9231 fi
9232 ;;
9233 pw32*)
9234 # pw32 DLLs use 'pw' prefix rather than 'lib'
9235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9236 ;;
9237 esac
9238 ;;
9239
9240 *)
9241 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9242 ;;
9243 esac
9244 dynamic_linker='Win32 ld.exe'
9245 # FIXME: first we should search . and the directory the executable is in
9246 shlibpath_var=PATH
9247 ;;
9248
9249darwin* | rhapsody*)
9250 dynamic_linker="$host_os dyld"
9251 version_type=darwin
9252 need_lib_prefix=no
9253 need_version=no
9254 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9255 soname_spec='${libname}${release}${major}$shared_ext'
9256 shlibpath_overrides_runpath=yes
9257 shlibpath_var=DYLD_LIBRARY_PATH
9258 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9259 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9260 if test "$GCC" = yes; then
9261 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"`
9262 else
9263 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9264 fi
9265 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9266 ;;
9267
9268dgux*)
9269 version_type=linux
9270 need_lib_prefix=no
9271 need_version=no
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9273 soname_spec='${libname}${release}${shared_ext}$major'
9274 shlibpath_var=LD_LIBRARY_PATH
9275 ;;
9276
9277freebsd1*)
9278 dynamic_linker=no
9279 ;;
9280
9281kfreebsd*-gnu)
9282 version_type=linux
9283 need_lib_prefix=no
9284 need_version=no
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=no
9289 hardcode_into_libs=yes
9290 dynamic_linker='GNU ld.so'
9291 ;;
9292
9293freebsd*)
9294 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9295 version_type=freebsd-$objformat
9296 case $version_type in
9297 freebsd-elf*)
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9299 need_version=no
9300 need_lib_prefix=no
9301 ;;
9302 freebsd-*)
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9304 need_version=yes
9305 ;;
9306 esac
9307 shlibpath_var=LD_LIBRARY_PATH
9308 case $host_os in
9309 freebsd2*)
9310 shlibpath_overrides_runpath=yes
9311 ;;
9312 freebsd3.01* | freebsdelf3.01*)
9313 shlibpath_overrides_runpath=yes
9314 hardcode_into_libs=yes
9315 ;;
9316 *) # from 3.2 on
9317 shlibpath_overrides_runpath=no
9318 hardcode_into_libs=yes
9319 ;;
9320 esac
9321 ;;
9322
9323gnu*)
9324 version_type=linux
9325 need_lib_prefix=no
9326 need_version=no
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 shlibpath_var=LD_LIBRARY_PATH
9330 hardcode_into_libs=yes
9331 ;;
9332
9333hpux9* | hpux10* | hpux11*)
9334 # Give a soname corresponding to the major version so that dld.sl refuses to
9335 # link against other versions.
9336 version_type=sunos
9337 need_lib_prefix=no
9338 need_version=no
9339 case "$host_cpu" in
9340 ia64*)
9341 shrext_cmds='.so'
9342 hardcode_into_libs=yes
9343 dynamic_linker="$host_os dld.so"
9344 shlibpath_var=LD_LIBRARY_PATH
9345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9347 soname_spec='${libname}${release}${shared_ext}$major'
9348 if test "X$HPUX_IA64_MODE" = X32; then
9349 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9350 else
9351 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9352 fi
9353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9354 ;;
9355 hppa*64*)
9356 shrext_cmds='.sl'
9357 hardcode_into_libs=yes
9358 dynamic_linker="$host_os dld.sl"
9359 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9365 ;;
9366 *)
9367 shrext_cmds='.sl'
9368 dynamic_linker="$host_os dld.sl"
9369 shlibpath_var=SHLIB_PATH
9370 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 ;;
9374 esac
9375 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9376 postinstall_cmds='chmod 555 $lib'
9377 ;;
9378
9379irix5* | irix6* | nonstopux*)
9380 case $host_os in
9381 nonstopux*) version_type=nonstopux ;;
9382 *)
9383 if test "$lt_cv_prog_gnu_ld" = yes; then
9384 version_type=linux
9385 else
9386 version_type=irix
9387 fi ;;
9388 esac
9389 need_lib_prefix=no
9390 need_version=no
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9393 case $host_os in
9394 irix5* | nonstopux*)
9395 libsuff= shlibsuff=
9396 ;;
9397 *)
9398 case $LD in # libtool.m4 will add one of these switches to LD
9399 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9400 libsuff= shlibsuff= libmagic=32-bit;;
9401 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9402 libsuff=32 shlibsuff=N32 libmagic=N32;;
9403 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9404 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9405 *) libsuff= shlibsuff= libmagic=never-match;;
9406 esac
9407 ;;
9408 esac
9409 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9410 shlibpath_overrides_runpath=no
9411 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9412 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9413 hardcode_into_libs=yes
9414 ;;
9415
9416# No shared lib support for Linux oldld, aout, or coff.
9417linux*oldld* | linux*aout* | linux*coff*)
9418 dynamic_linker=no
9419 ;;
9420
9421# This must be Linux ELF.
9422linux*)
9423 version_type=linux
9424 need_lib_prefix=no
9425 need_version=no
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427 soname_spec='${libname}${release}${shared_ext}$major'
9428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 shlibpath_overrides_runpath=no
9431 # This implies no fast_install, which is unacceptable.
9432 # Some rework will be needed to allow for fast_install
9433 # before this can be enabled.
9434 hardcode_into_libs=yes
9435
9436 # Append ld.so.conf contents to the search path
9437 if test -f /etc/ld.so.conf; then
9438 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9439 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9440 fi
9441
9442 # We used to test for /lib/ld.so.1 and disable shared libraries on
9443 # powerpc, because MkLinux only supported shared libraries with the
9444 # GNU dynamic linker. Since this was broken with cross compilers,
9445 # most powerpc-linux boxes support dynamic linking these days and
9446 # people can always --disable-shared, the test was removed, and we
9447 # assume the GNU/Linux dynamic linker is in use.
9448 dynamic_linker='GNU/Linux ld.so'
9449 ;;
9450
9451knetbsd*-gnu)
9452 version_type=linux
9453 need_lib_prefix=no
9454 need_version=no
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 shlibpath_overrides_runpath=no
9459 hardcode_into_libs=yes
9460 dynamic_linker='GNU ld.so'
9461 ;;
9462
9463netbsd*)
9464 version_type=sunos
9465 need_lib_prefix=no
9466 need_version=no
9467 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9470 dynamic_linker='NetBSD (a.out) ld.so'
9471 else
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9473 soname_spec='${libname}${release}${shared_ext}$major'
9474 dynamic_linker='NetBSD ld.elf_so'
9475 fi
9476 shlibpath_var=LD_LIBRARY_PATH
9477 shlibpath_overrides_runpath=yes
9478 hardcode_into_libs=yes
9479 ;;
9480
9481newsos6)
9482 version_type=linux
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 shlibpath_overrides_runpath=yes
9486 ;;
9487
9488nto-qnx*)
9489 version_type=linux
9490 need_lib_prefix=no
9491 need_version=no
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 shlibpath_var=LD_LIBRARY_PATH
9495 shlibpath_overrides_runpath=yes
9496 ;;
9497
9498openbsd*)
9499 version_type=sunos
9500 need_lib_prefix=no
9501 need_version=no
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9506 case $host_os in
9507 openbsd2.[89] | openbsd2.[89].*)
9508 shlibpath_overrides_runpath=no
9509 ;;
9510 *)
9511 shlibpath_overrides_runpath=yes
9512 ;;
9513 esac
9514 else
9515 shlibpath_overrides_runpath=yes
9516 fi
9517 ;;
9518
9519os2*)
9520 libname_spec='$name'
9521 shrext_cmds=".dll"
9522 need_lib_prefix=no
9523 library_names_spec='$libname${shared_ext} $libname.a'
9524 dynamic_linker='OS/2 ld.exe'
9525 shlibpath_var=LIBPATH
9526 ;;
9527
9528osf3* | osf4* | osf5*)
9529 version_type=osf
9530 need_lib_prefix=no
9531 need_version=no
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9536 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9537 ;;
9538
9539sco3.2v5*)
9540 version_type=osf
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 shlibpath_var=LD_LIBRARY_PATH
9544 ;;
9545
9546solaris*)
9547 version_type=linux
9548 need_lib_prefix=no
9549 need_version=no
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 shlibpath_overrides_runpath=yes
9554 hardcode_into_libs=yes
9555 # ldd complains unless libraries are executable
9556 postinstall_cmds='chmod +x $lib'
9557 ;;
9558
9559sunos4*)
9560 version_type=sunos
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9562 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9563 shlibpath_var=LD_LIBRARY_PATH
9564 shlibpath_overrides_runpath=yes
9565 if test "$with_gnu_ld" = yes; then
9566 need_lib_prefix=no
9567 fi
9568 need_version=yes
9569 ;;
9570
9571sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9572 version_type=linux
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574 soname_spec='${libname}${release}${shared_ext}$major'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 case $host_vendor in
9577 sni)
9578 shlibpath_overrides_runpath=no
9579 need_lib_prefix=no
9580 export_dynamic_flag_spec='${wl}-Blargedynsym'
9581 runpath_var=LD_RUN_PATH
9582 ;;
9583 siemens)
9584 need_lib_prefix=no
9585 ;;
9586 motorola)
9587 need_lib_prefix=no
9588 need_version=no
9589 shlibpath_overrides_runpath=no
9590 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9591 ;;
9592 esac
9593 ;;
9594
9595sysv4*MP*)
9596 if test -d /usr/nec ;then
9597 version_type=linux
9598 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9599 soname_spec='$libname${shared_ext}.$major'
9600 shlibpath_var=LD_LIBRARY_PATH
9601 fi
9602 ;;
9603
9604uts4*)
9605 version_type=linux
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 ;;
9610
9611*)
9612 dynamic_linker=no
9613 ;;
9614esac
9615echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9616echo "${ECHO_T}$dynamic_linker" >&6
9617test "$dynamic_linker" = no && can_build_shared=no
9618
9619echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9620echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9621hardcode_action=
9622if test -n "$hardcode_libdir_flag_spec" || \
9623 test -n "$runpath_var" || \
9624 test "X$hardcode_automatic" = "Xyes" ; then
9625
9626 # We can hardcode non-existant directories.
9627 if test "$hardcode_direct" != no &&
9628 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9629 # have to relink, otherwise we might link with an installed library
9630 # when we should be linking with a yet-to-be-installed one
9631 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9632 test "$hardcode_minus_L" != no; then
9633 # Linking always hardcodes the temporary library directory.
9634 hardcode_action=relink
9635 else
9636 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9637 hardcode_action=immediate
9638 fi
9639else
9640 # We cannot hardcode anything, or else we can only hardcode existing
9641 # directories.
9642 hardcode_action=unsupported
9643fi
9644echo "$as_me:$LINENO: result: $hardcode_action" >&5
9645echo "${ECHO_T}$hardcode_action" >&6
9646
9647if test "$hardcode_action" = relink; then
9648 # Fast installation is not supported
9649 enable_fast_install=no
9650elif test "$shlibpath_overrides_runpath" = yes ||
9651 test "$enable_shared" = no; then
9652 # Fast installation is not necessary
9653 enable_fast_install=needless
9654fi
9655
9656striplib=
9657old_striplib=
9658echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9659echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9660if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9661 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9662 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9663 echo "$as_me:$LINENO: result: yes" >&5
9664echo "${ECHO_T}yes" >&6
9665else
9666# FIXME - insert some real tests, host_os isn't really good enough
9667 case $host_os in
9668 darwin*)
9669 if test -n "$STRIP" ; then
9670 striplib="$STRIP -x"
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
9673 else
9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
9676fi
9677 ;;
9678 *)
9679 echo "$as_me:$LINENO: result: no" >&5
9680echo "${ECHO_T}no" >&6
9681 ;;
9682 esac
9683fi
9684
9685if test "x$enable_dlopen" != xyes; then
9686 enable_dlopen=unknown
9687 enable_dlopen_self=unknown
9688 enable_dlopen_self_static=unknown
9689else
9690 lt_cv_dlopen=no
9691 lt_cv_dlopen_libs=
9692
9693 case $host_os in
9694 beos*)
9695 lt_cv_dlopen="load_add_on"
9696 lt_cv_dlopen_libs=
9697 lt_cv_dlopen_self=yes
9698 ;;
9699
9700 mingw* | pw32*)
9701 lt_cv_dlopen="LoadLibrary"
9702 lt_cv_dlopen_libs=
9703 ;;
9704
9705 cygwin*)
9706 lt_cv_dlopen="dlopen"
9707 lt_cv_dlopen_libs=
9708 ;;
9709
9710 darwin*)
9711 # if libdl is installed we need to link against it
9712 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9713echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9714if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717 ac_check_lib_save_LIBS=$LIBS
9718LIBS="-ldl $LIBS"
9719cat >conftest.$ac_ext <<_ACEOF
9720/* confdefs.h. */
9721_ACEOF
9722cat confdefs.h >>conftest.$ac_ext
9723cat >>conftest.$ac_ext <<_ACEOF
9724/* end confdefs.h. */
9725
9726/* Override any gcc2 internal prototype to avoid an error. */
9727#ifdef __cplusplus
9728extern "C"
9729#endif
9730/* We use char because int might match the return type of a gcc2
9731 builtin and then its argument prototype would still apply. */
9732char dlopen ();
9733int
9734main ()
9735{
9736dlopen ();
9737 ;
9738 return 0;
9739}
9740_ACEOF
9741rm -f conftest.$ac_objext conftest$ac_exeext
9742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743 (eval $ac_link) 2>conftest.er1
9744 ac_status=$?
9745 grep -v '^ *+' conftest.er1 >conftest.err
9746 rm -f conftest.er1
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try='test -z "$ac_c_werror_flag"
9751 || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_lib_dl_dlopen=yes
9764else
9765 echo "$as_me: failed program was:" >&5
9766sed 's/^/| /' conftest.$ac_ext >&5
9767
9768ac_cv_lib_dl_dlopen=no
9769fi
9770rm -f conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772LIBS=$ac_check_lib_save_LIBS
9773fi
9774echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9775echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9776if test $ac_cv_lib_dl_dlopen = yes; then
9777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9778else
9779
9780 lt_cv_dlopen="dyld"
9781 lt_cv_dlopen_libs=
9782 lt_cv_dlopen_self=yes
9783
9784fi
9785
9786 ;;
9787
9788 *)
9789 echo "$as_me:$LINENO: checking for shl_load" >&5
9790echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9791if test "${ac_cv_func_shl_load+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793else
9794 cat >conftest.$ac_ext <<_ACEOF
9795/* confdefs.h. */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
9799/* end confdefs.h. */
9800/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9802#define shl_load innocuous_shl_load
9803
9804/* System header to define __stub macros and hopefully few prototypes,
9805 which can conflict with char shl_load (); below.
9806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9807 <limits.h> exists even on freestanding compilers. */
9808
9809#ifdef __STDC__
9810# include <limits.h>
9811#else
9812# include <assert.h>
9813#endif
9814
9815#undef shl_load
9816
9817/* Override any gcc2 internal prototype to avoid an error. */
9818#ifdef __cplusplus
9819extern "C"
9820{
9821#endif
9822/* We use char because int might match the return type of a gcc2
9823 builtin and then its argument prototype would still apply. */
9824char shl_load ();
9825/* The GNU C library defines this for functions which it implements
9826 to always fail with ENOSYS. Some functions are actually named
9827 something starting with __ and the normal name is an alias. */
9828#if defined (__stub_shl_load) || defined (__stub___shl_load)
9829choke me
9830#else
9831char (*f) () = shl_load;
9832#endif
9833#ifdef __cplusplus
9834}
9835#endif
9836
9837int
9838main ()
9839{
9840return f != shl_load;
9841 ;
9842 return 0;
9843}
9844_ACEOF
9845rm -f conftest.$ac_objext conftest$ac_exeext
9846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -z "$ac_c_werror_flag"
9855 || test ! -s conftest.err'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; } &&
9861 { ac_try='test -s conftest$ac_exeext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 (eval $ac_try) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9867 ac_cv_func_shl_load=yes
9868else
9869 echo "$as_me: failed program was:" >&5
9870sed 's/^/| /' conftest.$ac_ext >&5
9871
9872ac_cv_func_shl_load=no
9873fi
9874rm -f conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9876fi
9877echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9878echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9879if test $ac_cv_func_shl_load = yes; then
9880 lt_cv_dlopen="shl_load"
9881else
9882 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9883echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9884if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886else
9887 ac_check_lib_save_LIBS=$LIBS
9888LIBS="-ldld $LIBS"
9889cat >conftest.$ac_ext <<_ACEOF
9890/* confdefs.h. */
9891_ACEOF
9892cat confdefs.h >>conftest.$ac_ext
9893cat >>conftest.$ac_ext <<_ACEOF
9894/* end confdefs.h. */
9895
9896/* Override any gcc2 internal prototype to avoid an error. */
9897#ifdef __cplusplus
9898extern "C"
9899#endif
9900/* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
9902char shl_load ();
9903int
9904main ()
9905{
9906shl_load ();
9907 ;
9908 return 0;
9909}
9910_ACEOF
9911rm -f conftest.$ac_objext conftest$ac_exeext
9912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913 (eval $ac_link) 2>conftest.er1
9914 ac_status=$?
9915 grep -v '^ *+' conftest.er1 >conftest.err
9916 rm -f conftest.er1
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag"
9921 || test ! -s conftest.err'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 (eval $ac_try) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 (eval $ac_try) 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9933 ac_cv_lib_dld_shl_load=yes
9934else
9935 echo "$as_me: failed program was:" >&5
9936sed 's/^/| /' conftest.$ac_ext >&5
9937
9938ac_cv_lib_dld_shl_load=no
9939fi
9940rm -f conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9942LIBS=$ac_check_lib_save_LIBS
9943fi
9944echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9945echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9946if test $ac_cv_lib_dld_shl_load = yes; then
9947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9948else
9949 echo "$as_me:$LINENO: checking for dlopen" >&5
9950echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9951if test "${ac_cv_func_dlopen+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954 cat >conftest.$ac_ext <<_ACEOF
9955/* confdefs.h. */
9956_ACEOF
9957cat confdefs.h >>conftest.$ac_ext
9958cat >>conftest.$ac_ext <<_ACEOF
9959/* end confdefs.h. */
9960/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9962#define dlopen innocuous_dlopen
9963
9964/* System header to define __stub macros and hopefully few prototypes,
9965 which can conflict with char dlopen (); below.
9966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9967 <limits.h> exists even on freestanding compilers. */
9968
9969#ifdef __STDC__
9970# include <limits.h>
9971#else
9972# include <assert.h>
9973#endif
9974
9975#undef dlopen
9976
9977/* Override any gcc2 internal prototype to avoid an error. */
9978#ifdef __cplusplus
9979extern "C"
9980{
9981#endif
9982/* We use char because int might match the return type of a gcc2
9983 builtin and then its argument prototype would still apply. */
9984char dlopen ();
9985/* The GNU C library defines this for functions which it implements
9986 to always fail with ENOSYS. Some functions are actually named
9987 something starting with __ and the normal name is an alias. */
9988#if defined (__stub_dlopen) || defined (__stub___dlopen)
9989choke me
9990#else
9991char (*f) () = dlopen;
9992#endif
9993#ifdef __cplusplus
9994}
9995#endif
9996
9997int
9998main ()
9999{
10000return f != dlopen;
10001 ;
10002 return 0;
10003}
10004_ACEOF
10005rm -f conftest.$ac_objext conftest$ac_exeext
10006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007 (eval $ac_link) 2>conftest.er1
10008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -z "$ac_c_werror_flag"
10015 || test ! -s conftest.err'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; } &&
10021 { ac_try='test -s conftest$ac_exeext'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; }; then
10027 ac_cv_func_dlopen=yes
10028else
10029 echo "$as_me: failed program was:" >&5
10030sed 's/^/| /' conftest.$ac_ext >&5
10031
10032ac_cv_func_dlopen=no
10033fi
10034rm -f conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036fi
10037echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10038echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10039if test $ac_cv_func_dlopen = yes; then
10040 lt_cv_dlopen="dlopen"
10041else
10042 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10043echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10044if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10046else
10047 ac_check_lib_save_LIBS=$LIBS
10048LIBS="-ldl $LIBS"
10049cat >conftest.$ac_ext <<_ACEOF
10050/* confdefs.h. */
10051_ACEOF
10052cat confdefs.h >>conftest.$ac_ext
10053cat >>conftest.$ac_ext <<_ACEOF
10054/* end confdefs.h. */
10055
10056/* Override any gcc2 internal prototype to avoid an error. */
10057#ifdef __cplusplus
10058extern "C"
10059#endif
10060/* We use char because int might match the return type of a gcc2
10061 builtin and then its argument prototype would still apply. */
10062char dlopen ();
10063int
10064main ()
10065{
10066dlopen ();
10067 ;
10068 return 0;
10069}
10070_ACEOF
10071rm -f conftest.$ac_objext conftest$ac_exeext
10072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073 (eval $ac_link) 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -z "$ac_c_werror_flag"
10081 || test ! -s conftest.err'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try='test -s conftest$ac_exeext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 ac_cv_lib_dl_dlopen=yes
10094else
10095 echo "$as_me: failed program was:" >&5
10096sed 's/^/| /' conftest.$ac_ext >&5
10097
10098ac_cv_lib_dl_dlopen=no
10099fi
10100rm -f conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10102LIBS=$ac_check_lib_save_LIBS
10103fi
10104echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10105echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10106if test $ac_cv_lib_dl_dlopen = yes; then
10107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10108else
10109 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10110echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10111if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113else
10114 ac_check_lib_save_LIBS=$LIBS
10115LIBS="-lsvld $LIBS"
10116cat >conftest.$ac_ext <<_ACEOF
10117/* confdefs.h. */
10118_ACEOF
10119cat confdefs.h >>conftest.$ac_ext
10120cat >>conftest.$ac_ext <<_ACEOF
10121/* end confdefs.h. */
10122
10123/* Override any gcc2 internal prototype to avoid an error. */
10124#ifdef __cplusplus
10125extern "C"
10126#endif
10127/* We use char because int might match the return type of a gcc2
10128 builtin and then its argument prototype would still apply. */
10129char dlopen ();
10130int
10131main ()
10132{
10133dlopen ();
10134 ;
10135 return 0;
10136}
10137_ACEOF
10138rm -f conftest.$ac_objext conftest$ac_exeext
10139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10140 (eval $ac_link) 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag"
10148 || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try='test -s conftest$ac_exeext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_lib_svld_dlopen=yes
10161else
10162 echo "$as_me: failed program was:" >&5
10163sed 's/^/| /' conftest.$ac_ext >&5
10164
10165ac_cv_lib_svld_dlopen=no
10166fi
10167rm -f conftest.err conftest.$ac_objext \
10168 conftest$ac_exeext conftest.$ac_ext
10169LIBS=$ac_check_lib_save_LIBS
10170fi
10171echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10172echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10173if test $ac_cv_lib_svld_dlopen = yes; then
10174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10175else
10176 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10177echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10178if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10180else
10181 ac_check_lib_save_LIBS=$LIBS
10182LIBS="-ldld $LIBS"
10183cat >conftest.$ac_ext <<_ACEOF
10184/* confdefs.h. */
10185_ACEOF
10186cat confdefs.h >>conftest.$ac_ext
10187cat >>conftest.$ac_ext <<_ACEOF
10188/* end confdefs.h. */
10189
10190/* Override any gcc2 internal prototype to avoid an error. */
10191#ifdef __cplusplus
10192extern "C"
10193#endif
10194/* We use char because int might match the return type of a gcc2
10195 builtin and then its argument prototype would still apply. */
10196char dld_link ();
10197int
10198main ()
10199{
10200dld_link ();
10201 ;
10202 return 0;
10203}
10204_ACEOF
10205rm -f conftest.$ac_objext conftest$ac_exeext
10206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10207 (eval $ac_link) 2>conftest.er1
10208 ac_status=$?
10209 grep -v '^ *+' conftest.er1 >conftest.err
10210 rm -f conftest.er1
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } &&
10214 { ac_try='test -z "$ac_c_werror_flag"
10215 || test ! -s conftest.err'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; } &&
10221 { ac_try='test -s conftest$ac_exeext'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_cv_lib_dld_dld_link=yes
10228else
10229 echo "$as_me: failed program was:" >&5
10230sed 's/^/| /' conftest.$ac_ext >&5
10231
10232ac_cv_lib_dld_dld_link=no
10233fi
10234rm -f conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10236LIBS=$ac_check_lib_save_LIBS
10237fi
10238echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10239echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10240if test $ac_cv_lib_dld_dld_link = yes; then
10241 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10242fi
10243
10244
10245fi
10246
10247
10248fi
10249
10250
10251fi
10252
10253
10254fi
10255
10256
10257fi
10258
10259 ;;
10260 esac
10261
10262 if test "x$lt_cv_dlopen" != xno; then
10263 enable_dlopen=yes
10264 else
10265 enable_dlopen=no
10266 fi
10267
10268 case $lt_cv_dlopen in
10269 dlopen)
10270 save_CPPFLAGS="$CPPFLAGS"
10271 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10272
10273 save_LDFLAGS="$LDFLAGS"
10274 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10275
10276 save_LIBS="$LIBS"
10277 LIBS="$lt_cv_dlopen_libs $LIBS"
10278
10279 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10280echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10281if test "${lt_cv_dlopen_self+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283else
10284 if test "$cross_compiling" = yes; then :
10285 lt_cv_dlopen_self=cross
10286else
10287 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10288 lt_status=$lt_dlunknown
10289 cat > conftest.$ac_ext <<EOF
10290#line 10290 "configure"
10291#include "confdefs.h"
10292
10293#if HAVE_DLFCN_H
10294#include <dlfcn.h>
10295#endif
10296
10297#include <stdio.h>
10298
10299#ifdef RTLD_GLOBAL
10300# define LT_DLGLOBAL RTLD_GLOBAL
10301#else
10302# ifdef DL_GLOBAL
10303# define LT_DLGLOBAL DL_GLOBAL
10304# else
10305# define LT_DLGLOBAL 0
10306# endif
10307#endif
10308
10309/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10310 find out it does not work in some platform. */
10311#ifndef LT_DLLAZY_OR_NOW
10312# ifdef RTLD_LAZY
10313# define LT_DLLAZY_OR_NOW RTLD_LAZY
10314# else
10315# ifdef DL_LAZY
10316# define LT_DLLAZY_OR_NOW DL_LAZY
10317# else
10318# ifdef RTLD_NOW
10319# define LT_DLLAZY_OR_NOW RTLD_NOW
10320# else
10321# ifdef DL_NOW
10322# define LT_DLLAZY_OR_NOW DL_NOW
10323# else
10324# define LT_DLLAZY_OR_NOW 0
10325# endif
10326# endif
10327# endif
10328# endif
10329#endif
10330
10331#ifdef __cplusplus
10332extern "C" void exit (int);
10333#endif
10334
10335void fnord() { int i=42;}
10336int main ()
10337{
10338 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10339 int status = $lt_dlunknown;
10340
10341 if (self)
10342 {
10343 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10344 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10345 /* dlclose (self); */
10346 }
10347
10348 exit (status);
10349}
10350EOF
10351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352 (eval $ac_link) 2>&5
10353 ac_status=$?
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10356 (./conftest; exit; ) 2>/dev/null
10357 lt_status=$?
10358 case x$lt_status in
10359 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10360 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10361 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10362 esac
10363 else :
10364 # compilation failed
10365 lt_cv_dlopen_self=no
10366 fi
10367fi
10368rm -fr conftest*
10369
10370
10371fi
10372echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10373echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10374
10375 if test "x$lt_cv_dlopen_self" = xyes; then
10376 LDFLAGS="$LDFLAGS $link_static_flag"
10377 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10378echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10379if test "${lt_cv_dlopen_self_static+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381else
10382 if test "$cross_compiling" = yes; then :
10383 lt_cv_dlopen_self_static=cross
10384else
10385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10386 lt_status=$lt_dlunknown
10387 cat > conftest.$ac_ext <<EOF
10388#line 10388 "configure"
10389#include "confdefs.h"
10390
10391#if HAVE_DLFCN_H
10392#include <dlfcn.h>
10393#endif
10394
10395#include <stdio.h>
10396
10397#ifdef RTLD_GLOBAL
10398# define LT_DLGLOBAL RTLD_GLOBAL
10399#else
10400# ifdef DL_GLOBAL
10401# define LT_DLGLOBAL DL_GLOBAL
10402# else
10403# define LT_DLGLOBAL 0
10404# endif
10405#endif
10406
10407/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10408 find out it does not work in some platform. */
10409#ifndef LT_DLLAZY_OR_NOW
10410# ifdef RTLD_LAZY
10411# define LT_DLLAZY_OR_NOW RTLD_LAZY
10412# else
10413# ifdef DL_LAZY
10414# define LT_DLLAZY_OR_NOW DL_LAZY
10415# else
10416# ifdef RTLD_NOW
10417# define LT_DLLAZY_OR_NOW RTLD_NOW
10418# else
10419# ifdef DL_NOW
10420# define LT_DLLAZY_OR_NOW DL_NOW
10421# else
10422# define LT_DLLAZY_OR_NOW 0
10423# endif
10424# endif
10425# endif
10426# endif
10427#endif
10428
10429#ifdef __cplusplus
10430extern "C" void exit (int);
10431#endif
10432
10433void fnord() { int i=42;}
10434int main ()
10435{
10436 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10437 int status = $lt_dlunknown;
10438
10439 if (self)
10440 {
10441 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10442 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10443 /* dlclose (self); */
10444 }
10445
10446 exit (status);
10447}
10448EOF
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450 (eval $ac_link) 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10454 (./conftest; exit; ) 2>/dev/null
10455 lt_status=$?
10456 case x$lt_status in
10457 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10458 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10459 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10460 esac
10461 else :
10462 # compilation failed
10463 lt_cv_dlopen_self_static=no
10464 fi
10465fi
10466rm -fr conftest*
10467
10468
10469fi
10470echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10471echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10472 fi
10473
10474 CPPFLAGS="$save_CPPFLAGS"
10475 LDFLAGS="$save_LDFLAGS"
10476 LIBS="$save_LIBS"
10477 ;;
10478 esac
10479
10480 case $lt_cv_dlopen_self in
10481 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10482 *) enable_dlopen_self=unknown ;;
10483 esac
10484
10485 case $lt_cv_dlopen_self_static in
10486 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10487 *) enable_dlopen_self_static=unknown ;;
10488 esac
10489fi
10490
10491
10492# Report which librarie types wil actually be built
10493echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10494echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10495echo "$as_me:$LINENO: result: $can_build_shared" >&5
10496echo "${ECHO_T}$can_build_shared" >&6
10497
10498echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10499echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10500test "$can_build_shared" = "no" && enable_shared=no
10501
10502# On AIX, shared libraries and static libraries use the same namespace, and
10503# are all built from PIC.
10504case "$host_os" in
10505aix3*)
10506 test "$enable_shared" = yes && enable_static=no
10507 if test -n "$RANLIB"; then
10508 archive_cmds="$archive_cmds;\$RANLIB \$lib"
10509 postinstall_cmds='$RANLIB $lib'
10510 fi
10511 ;;
10512
10513aix4* | aix5*)
10514 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10515 test "$enable_shared" = yes && enable_static=no
10516 fi
10517 ;;
10518esac
10519echo "$as_me:$LINENO: result: $enable_shared" >&5
10520echo "${ECHO_T}$enable_shared" >&6
10521
10522echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10523echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10524# Make sure either enable_shared or enable_static is yes.
10525test "$enable_shared" = yes || enable_static=yes
10526echo "$as_me:$LINENO: result: $enable_static" >&5
10527echo "${ECHO_T}$enable_static" >&6
10528
10529# The else clause should only fire when bootstrapping the
10530# libtool distribution, otherwise you forgot to ship ltmain.sh
10531# with your package, and you will get complaints that there are
10532# no rules to generate ltmain.sh.
10533if test -f "$ltmain"; then
10534 # See if we are running on zsh, and set the options which allow our commands through
10535 # without removal of \ escapes.
10536 if test -n "${ZSH_VERSION+set}" ; then
10537 setopt NO_GLOB_SUBST
10538 fi
10539 # Now quote all the things that may contain metacharacters while being
10540 # careful not to overquote the AC_SUBSTed values. We take copies of the
10541 # variables and quote the copies for generation of the libtool script.
10542 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10543 SED SHELL STRIP \
10544 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10545 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10546 deplibs_check_method reload_flag reload_cmds need_locks \
10547 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10548 lt_cv_sys_global_symbol_to_c_name_address \
10549 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10550 old_postinstall_cmds old_postuninstall_cmds \
10551 compiler \
10552 CC \
10553 LD \
10554 lt_prog_compiler_wl \
10555 lt_prog_compiler_pic \
10556 lt_prog_compiler_static \
10557 lt_prog_compiler_no_builtin_flag \
10558 export_dynamic_flag_spec \
10559 thread_safe_flag_spec \
10560 whole_archive_flag_spec \
10561 enable_shared_with_static_runtimes \
10562 old_archive_cmds \
10563 old_archive_from_new_cmds \
10564 predep_objects \
10565 postdep_objects \
10566 predeps \
10567 postdeps \
10568 compiler_lib_search_path \
10569 archive_cmds \
10570 archive_expsym_cmds \
10571 postinstall_cmds \
10572 postuninstall_cmds \
10573 old_archive_from_expsyms_cmds \
10574 allow_undefined_flag \
10575 no_undefined_flag \
10576 export_symbols_cmds \
10577 hardcode_libdir_flag_spec \
10578 hardcode_libdir_flag_spec_ld \
10579 hardcode_libdir_separator \
10580 hardcode_automatic \
10581 module_cmds \
10582 module_expsym_cmds \
10583 lt_cv_prog_compiler_c_o \
10584 exclude_expsyms \
10585 include_expsyms; do
10586
10587 case $var in
10588 old_archive_cmds | \
10589 old_archive_from_new_cmds | \
10590 archive_cmds | \
10591 archive_expsym_cmds | \
10592 module_cmds | \
10593 module_expsym_cmds | \
10594 old_archive_from_expsyms_cmds | \
10595 export_symbols_cmds | \
10596 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10597 postinstall_cmds | postuninstall_cmds | \
10598 old_postinstall_cmds | old_postuninstall_cmds | \
10599 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10600 # Double-quote double-evaled strings.
10601 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10602 ;;
10603 *)
10604 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10605 ;;
10606 esac
10607 done
10608
10609 case $lt_echo in
10610 *'\$0 --fallback-echo"')
10611 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10612 ;;
10613 esac
10614
10615cfgfile="${ofile}T"
10616 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10617 $rm -f "$cfgfile"
10618 { echo "$as_me:$LINENO: creating $ofile" >&5
10619echo "$as_me: creating $ofile" >&6;}
10620
10621 cat <<__EOF__ >> "$cfgfile"
10622#! $SHELL
10623
10624# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10625# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10626# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10627#
10628# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10629# Free Software Foundation, Inc.
10630#
10631# This file is part of GNU Libtool:
10632# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10633#
10634# This program is free software; you can redistribute it and/or modify
10635# it under the terms of the GNU General Public License as published by
10636# the Free Software Foundation; either version 2 of the License, or
10637# (at your option) any later version.
10638#
10639# This program is distributed in the hope that it will be useful, but
10640# WITHOUT ANY WARRANTY; without even the implied warranty of
10641# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10642# General Public License for more details.
10643#
10644# You should have received a copy of the GNU General Public License
10645# along with this program; if not, write to the Free Software
10646# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10647#
10648# As a special exception to the GNU General Public License, if you
10649# distribute this file as part of a program that contains a
10650# configuration script generated by Autoconf, you may include it under
10651# the same distribution terms that you use for the rest of that program.
10652
10653# A sed program that does not truncate output.
10654SED=$lt_SED
10655
10656# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10657Xsed="$SED -e s/^X//"
10658
10659# The HP-UX ksh and POSIX shell print the target directory to stdout
10660# if CDPATH is set.
10661(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10662
10663# The names of the tagged configurations supported by this script.
10664available_tags=
10665
10666# ### BEGIN LIBTOOL CONFIG
10667
10668# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10669
10670# Shell to use when invoking shell scripts.
10671SHELL=$lt_SHELL
10672
10673# Whether or not to build shared libraries.
10674build_libtool_libs=$enable_shared
10675
10676# Whether or not to build static libraries.
10677build_old_libs=$enable_static
10678
10679# Whether or not to add -lc for building shared libraries.
10680build_libtool_need_lc=$archive_cmds_need_lc
10681
10682# Whether or not to disallow shared libs when runtime libs are static
10683allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10684
10685# Whether or not to optimize for fast installation.
10686fast_install=$enable_fast_install
10687
10688# The host system.
10689host_alias=$host_alias
10690host=$host
10691
10692# An echo program that does not interpret backslashes.
10693echo=$lt_echo
10694
10695# The archiver.
10696AR=$lt_AR
10697AR_FLAGS=$lt_AR_FLAGS
10698
10699# A C compiler.
10700LTCC=$lt_LTCC
10701
10702# A language-specific compiler.
10703CC=$lt_compiler
10704
10705# Is the compiler the GNU C compiler?
10706with_gcc=$GCC
10707
10708# An ERE matcher.
10709EGREP=$lt_EGREP
10710
10711# The linker used to build libraries.
10712LD=$lt_LD
10713
10714# Whether we need hard or soft links.
10715LN_S=$lt_LN_S
10716
10717# A BSD-compatible nm program.
10718NM=$lt_NM
10719
10720# A symbol stripping program
10721STRIP=$lt_STRIP
10722
10723# Used to examine libraries when file_magic_cmd begins "file"
10724MAGIC_CMD=$MAGIC_CMD
10725
10726# Used on cygwin: DLL creation program.
10727DLLTOOL="$DLLTOOL"
10728
10729# Used on cygwin: object dumper.
10730OBJDUMP="$OBJDUMP"
10731
10732# Used on cygwin: assembler.
10733AS="$AS"
10734
10735# The name of the directory that contains temporary libtool files.
10736objdir=$objdir
10737
10738# How to create reloadable object files.
10739reload_flag=$lt_reload_flag
10740reload_cmds=$lt_reload_cmds
10741
10742# How to pass a linker flag through the compiler.
10743wl=$lt_lt_prog_compiler_wl
10744
10745# Object file suffix (normally "o").
10746objext="$ac_objext"
10747
10748# Old archive suffix (normally "a").
10749libext="$libext"
10750
10751# Shared library suffix (normally ".so").
10752shrext_cmds='$shrext_cmds'
10753
10754# Executable file suffix (normally "").
10755exeext="$exeext"
10756
10757# Additional compiler flags for building library objects.
10758pic_flag=$lt_lt_prog_compiler_pic
10759pic_mode=$pic_mode
10760
10761# What is the maximum length of a command?
10762max_cmd_len=$lt_cv_sys_max_cmd_len
10763
10764# Does compiler simultaneously support -c and -o options?
10765compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10766
10767# Must we lock files when doing compilation ?
10768need_locks=$lt_need_locks
10769
10770# Do we need the lib prefix for modules?
10771need_lib_prefix=$need_lib_prefix
10772
10773# Do we need a version for libraries?
10774need_version=$need_version
10775
10776# Whether dlopen is supported.
10777dlopen_support=$enable_dlopen
10778
10779# Whether dlopen of programs is supported.
10780dlopen_self=$enable_dlopen_self
10781
10782# Whether dlopen of statically linked programs is supported.
10783dlopen_self_static=$enable_dlopen_self_static
10784
10785# Compiler flag to prevent dynamic linking.
10786link_static_flag=$lt_lt_prog_compiler_static
10787
10788# Compiler flag to turn off builtin functions.
10789no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10790
10791# Compiler flag to allow reflexive dlopens.
10792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10793
10794# Compiler flag to generate shared objects directly from archives.
10795whole_archive_flag_spec=$lt_whole_archive_flag_spec
10796
10797# Compiler flag to generate thread-safe objects.
10798thread_safe_flag_spec=$lt_thread_safe_flag_spec
10799
10800# Library versioning type.
10801version_type=$version_type
10802
10803# Format of library name prefix.
10804libname_spec=$lt_libname_spec
10805
10806# List of archive names. First name is the real one, the rest are links.
10807# The last name is the one that the linker finds with -lNAME.
10808library_names_spec=$lt_library_names_spec
10809
10810# The coded name of the library, if different from the real name.
10811soname_spec=$lt_soname_spec
10812
10813# Commands used to build and install an old-style archive.
10814RANLIB=$lt_RANLIB
10815old_archive_cmds=$lt_old_archive_cmds
10816old_postinstall_cmds=$lt_old_postinstall_cmds
10817old_postuninstall_cmds=$lt_old_postuninstall_cmds
10818
10819# Create an old-style archive from a shared archive.
10820old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10821
10822# Create a temporary old-style archive to link instead of a shared archive.
10823old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10824
10825# Commands used to build and install a shared archive.
10826archive_cmds=$lt_archive_cmds
10827archive_expsym_cmds=$lt_archive_expsym_cmds
10828postinstall_cmds=$lt_postinstall_cmds
10829postuninstall_cmds=$lt_postuninstall_cmds
10830
10831# Commands used to build a loadable module (assumed same as above if empty)
10832module_cmds=$lt_module_cmds
10833module_expsym_cmds=$lt_module_expsym_cmds
10834
10835# Commands to strip libraries.
10836old_striplib=$lt_old_striplib
10837striplib=$lt_striplib
10838
10839# Dependencies to place before the objects being linked to create a
10840# shared library.
10841predep_objects=$lt_predep_objects
10842
10843# Dependencies to place after the objects being linked to create a
10844# shared library.
10845postdep_objects=$lt_postdep_objects
10846
10847# Dependencies to place before the objects being linked to create a
10848# shared library.
10849predeps=$lt_predeps
10850
10851# Dependencies to place after the objects being linked to create a
10852# shared library.
10853postdeps=$lt_postdeps
10854
10855# The library search path used internally by the compiler when linking
10856# a shared library.
10857compiler_lib_search_path=$lt_compiler_lib_search_path
10858
10859# Method to check whether dependent libraries are shared objects.
10860deplibs_check_method=$lt_deplibs_check_method
10861
10862# Command to use when deplibs_check_method == file_magic.
10863file_magic_cmd=$lt_file_magic_cmd
10864
10865# Flag that allows shared libraries with undefined symbols to be built.
10866allow_undefined_flag=$lt_allow_undefined_flag
10867
10868# Flag that forces no undefined symbols.
10869no_undefined_flag=$lt_no_undefined_flag
10870
10871# Commands used to finish a libtool library installation in a directory.
10872finish_cmds=$lt_finish_cmds
10873
10874# Same as above, but a single script fragment to be evaled but not shown.
10875finish_eval=$lt_finish_eval
10876
10877# Take the output of nm and produce a listing of raw symbols and C names.
10878global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10879
10880# Transform the output of nm in a proper C declaration
10881global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10882
10883# Transform the output of nm in a C name address pair
10884global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10885
10886# This is the shared library runtime path variable.
10887runpath_var=$runpath_var
10888
10889# This is the shared library path variable.
10890shlibpath_var=$shlibpath_var
10891
10892# Is shlibpath searched before the hard-coded library search path?
10893shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10894
10895# How to hardcode a shared library path into an executable.
10896hardcode_action=$hardcode_action
10897
10898# Whether we should hardcode library paths into libraries.
10899hardcode_into_libs=$hardcode_into_libs
10900
10901# Flag to hardcode \$libdir into a binary during linking.
10902# This must work even if \$libdir does not exist.
10903hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10904
10905# If ld is used when linking, flag to hardcode \$libdir into
10906# a binary during linking. This must work even if \$libdir does
10907# not exist.
10908hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10909
10910# Whether we need a single -rpath flag with a separated argument.
10911hardcode_libdir_separator=$lt_hardcode_libdir_separator
10912
10913# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10914# resulting binary.
10915hardcode_direct=$hardcode_direct
10916
10917# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10918# resulting binary.
10919hardcode_minus_L=$hardcode_minus_L
10920
10921# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10922# the resulting binary.
10923hardcode_shlibpath_var=$hardcode_shlibpath_var
10924
10925# Set to yes if building a shared library automatically hardcodes DIR into the library
10926# and all subsequent libraries and executables linked against it.
10927hardcode_automatic=$hardcode_automatic
10928
10929# Variables whose values should be saved in libtool wrapper scripts and
10930# restored at relink time.
10931variables_saved_for_relink="$variables_saved_for_relink"
10932
10933# Whether libtool must link a program against all its dependency libraries.
10934link_all_deplibs=$link_all_deplibs
10935
10936# Compile-time system search path for libraries
10937sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10938
10939# Run-time system search path for libraries
10940sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10941
10942# Fix the shell variable \$srcfile for the compiler.
10943fix_srcfile_path="$fix_srcfile_path"
10944
10945# Set to yes if exported symbols are required.
10946always_export_symbols=$always_export_symbols
10947
10948# The commands to list exported symbols.
10949export_symbols_cmds=$lt_export_symbols_cmds
10950
10951# The commands to extract the exported symbol list from a shared archive.
10952extract_expsyms_cmds=$lt_extract_expsyms_cmds
10953
10954# Symbols that should not be listed in the preloaded symbols.
10955exclude_expsyms=$lt_exclude_expsyms
10956
10957# Symbols that must always be exported.
10958include_expsyms=$lt_include_expsyms
10959
10960# ### END LIBTOOL CONFIG
10961
10962__EOF__
10963
10964
10965 case $host_os in
10966 aix3*)
10967 cat <<\EOF >> "$cfgfile"
10968
10969# AIX sometimes has problems with the GCC collect2 program. For some
10970# reason, if we set the COLLECT_NAMES environment variable, the problems
10971# vanish in a puff of smoke.
10972if test "X${COLLECT_NAMES+set}" != Xset; then
10973 COLLECT_NAMES=
10974 export COLLECT_NAMES
10975fi
10976EOF
10977 ;;
10978 esac
10979
10980 # We use sed instead of cat because bash on DJGPP gets confused if
10981 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10982 # text mode, it properly converts lines to CR/LF. This bash problem
10983 # is reportedly fixed, but why not run on old versions too?
10984 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10985
10986 mv -f "$cfgfile" "$ofile" || \
10987 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10988 chmod +x "$ofile"
10989
10990else
10991 # If there is no Makefile yet, we rely on a make rule to execute
10992 # `config.status --recheck' to rerun these tests and create the
10993 # libtool script then.
10994 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10995 if test -f "$ltmain_in"; then
10996 test -f Makefile && make "$ltmain"
10997 fi
10998fi
10999
11000
11001ac_ext=c
11002ac_cpp='$CPP $CPPFLAGS'
11003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005ac_compiler_gnu=$ac_cv_c_compiler_gnu
11006
11007CC="$lt_save_CC"
11008
11009
11010# Check whether --with-tags or --without-tags was given.
11011if test "${with_tags+set}" = set; then
11012 withval="$with_tags"
11013 tagnames="$withval"
11014fi;
11015
11016if test -f "$ltmain" && test -n "$tagnames"; then
11017 if test ! -f "${ofile}"; then
11018 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11019echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11020 fi
11021
11022 if test -z "$LTCC"; then
11023 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11024 if test -z "$LTCC"; then
11025 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11026echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11027 else
11028 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11029echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11030 fi
11031 fi
11032
11033 # Extract list of available tagged configurations in $ofile.
11034 # Note that this assumes the entire list is on one line.
11035 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11036
11037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11038 for tagname in $tagnames; do
11039 IFS="$lt_save_ifs"
11040 # Check whether tagname contains only valid characters
11041 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11042 "") ;;
11043 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11044echo "$as_me: error: invalid tag name: $tagname" >&2;}
11045 { (exit 1); exit 1; }; }
11046 ;;
11047 esac
11048
11049 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11050 then
11051 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11052echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11053 { (exit 1); exit 1; }; }
11054 fi
11055
11056 # Update the list of available tags.
11057 if test -n "$tagname"; then
11058 echo appending configuration tag \"$tagname\" to $ofile
11059
11060 case $tagname in
11061 CXX)
11062 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11063 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11064 (test "X$CXX" != "Xg++"))) ; then
11065 ac_ext=cc
11066ac_cpp='$CXXCPP $CPPFLAGS'
11067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11070
11071
11072
11073
11074archive_cmds_need_lc_CXX=no
11075allow_undefined_flag_CXX=
11076always_export_symbols_CXX=no
11077archive_expsym_cmds_CXX=
11078export_dynamic_flag_spec_CXX=
11079hardcode_direct_CXX=no
11080hardcode_libdir_flag_spec_CXX=
11081hardcode_libdir_flag_spec_ld_CXX=
11082hardcode_libdir_separator_CXX=
11083hardcode_minus_L_CXX=no
11084hardcode_automatic_CXX=no
11085module_cmds_CXX=
11086module_expsym_cmds_CXX=
11087link_all_deplibs_CXX=unknown
11088old_archive_cmds_CXX=$old_archive_cmds
11089no_undefined_flag_CXX=
11090whole_archive_flag_spec_CXX=
11091enable_shared_with_static_runtimes_CXX=no
11092
11093# Dependencies to place before and after the object being linked:
11094predep_objects_CXX=
11095postdep_objects_CXX=
11096predeps_CXX=
11097postdeps_CXX=
11098compiler_lib_search_path_CXX=
11099
11100# Source file extension for C++ test sources.
11101ac_ext=cc
11102
11103# Object file extension for compiled C++ test sources.
11104objext=o
11105objext_CXX=$objext
11106
11107# Code to be used in simple compile tests
11108lt_simple_compile_test_code="int some_variable = 0;\n"
11109
11110# Code to be used in simple link tests
11111lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11112
11113# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11114
11115# If no C compiler was specified, use CC.
11116LTCC=${LTCC-"$CC"}
11117
11118# Allow CC to be a program name with arguments.
11119compiler=$CC
11120
11121
11122# Allow CC to be a program name with arguments.
11123lt_save_CC=$CC
11124lt_save_LD=$LD
11125lt_save_GCC=$GCC
11126GCC=$GXX
11127lt_save_with_gnu_ld=$with_gnu_ld
11128lt_save_path_LD=$lt_cv_path_LD
11129if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11130 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11131else
11132 unset lt_cv_prog_gnu_ld
11133fi
11134if test -n "${lt_cv_path_LDCXX+set}"; then
11135 lt_cv_path_LD=$lt_cv_path_LDCXX
11136else
11137 unset lt_cv_path_LD
11138fi
11139test -z "${LDCXX+set}" || LD=$LDCXX
11140CC=${CXX-"c++"}
11141compiler=$CC
11142compiler_CXX=$CC
11143cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11144
11145# We don't want -fno-exception wen compiling C++ code, so set the
11146# no_builtin_flag separately
11147if test "$GXX" = yes; then
11148 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11149else
11150 lt_prog_compiler_no_builtin_flag_CXX=
11151fi
11152
11153if test "$GXX" = yes; then
11154 # Set up default GNU C++ configuration
11155
11156
11157# Check whether --with-gnu-ld or --without-gnu-ld was given.
11158if test "${with_gnu_ld+set}" = set; then
11159 withval="$with_gnu_ld"
11160 test "$withval" = no || with_gnu_ld=yes
11161else
11162 with_gnu_ld=no
11163fi;
11164ac_prog=ld
11165if test "$GCC" = yes; then
11166 # Check if gcc -print-prog-name=ld gives a path.
11167 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11168echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11169 case $host in
11170 *-*-mingw*)
11171 # gcc leaves a trailing carriage return which upsets mingw
11172 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11173 *)
11174 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11175 esac
11176 case $ac_prog in
11177 # Accept absolute paths.
11178 [\\/]* | ?:[\\/]*)
11179 re_direlt='/[^/][^/]*/\.\./'
11180 # Canonicalize the pathname of ld
11181 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11182 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11183 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11184 done
11185 test -z "$LD" && LD="$ac_prog"
11186 ;;
11187 "")
11188 # If it fails, then pretend we aren't using GCC.
11189 ac_prog=ld
11190 ;;
11191 *)
11192 # If it is relative, then search for the first ld in PATH.
11193 with_gnu_ld=unknown
11194 ;;
11195 esac
11196elif test "$with_gnu_ld" = yes; then
11197 echo "$as_me:$LINENO: checking for GNU ld" >&5
11198echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11199else
11200 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11201echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11202fi
11203if test "${lt_cv_path_LD+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205else
11206 if test -z "$LD"; then
11207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11208 for ac_dir in $PATH; do
11209 IFS="$lt_save_ifs"
11210 test -z "$ac_dir" && ac_dir=.
11211 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11212 lt_cv_path_LD="$ac_dir/$ac_prog"
11213 # Check to see if the program is GNU ld. I'd rather use --version,
11214 # but apparently some GNU ld's only accept -v.
11215 # Break only if it was the GNU/non-GNU ld that we prefer.
11216 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11217 *GNU* | *'with BFD'*)
11218 test "$with_gnu_ld" != no && break
11219 ;;
11220 *)
11221 test "$with_gnu_ld" != yes && break
11222 ;;
11223 esac
11224 fi
11225 done
11226 IFS="$lt_save_ifs"
11227else
11228 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11229fi
11230fi
11231
11232LD="$lt_cv_path_LD"
11233if test -n "$LD"; then
11234 echo "$as_me:$LINENO: result: $LD" >&5
11235echo "${ECHO_T}$LD" >&6
11236else
11237 echo "$as_me:$LINENO: result: no" >&5
11238echo "${ECHO_T}no" >&6
11239fi
11240test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11241echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11242 { (exit 1); exit 1; }; }
11243echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11244echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11245if test "${lt_cv_prog_gnu_ld+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11247else
11248 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11249case `$LD -v 2>&1 </dev/null` in
11250*GNU* | *'with BFD'*)
11251 lt_cv_prog_gnu_ld=yes
11252 ;;
11253*)
11254 lt_cv_prog_gnu_ld=no
11255 ;;
11256esac
11257fi
11258echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11259echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11260with_gnu_ld=$lt_cv_prog_gnu_ld
11261
11262
11263
11264 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11265 # archiving commands below assume that GNU ld is being used.
11266 if test "$with_gnu_ld" = yes; then
11267 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11268 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'
11269
11270 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11272
11273 # If archive_cmds runs LD, not CC, wlarc should be empty
11274 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11275 # investigate it a little bit more. (MM)
11276 wlarc='${wl}'
11277
11278 # ancient GNU ld didn't support --whole-archive et. al.
11279 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11280 grep 'no-whole-archive' > /dev/null; then
11281 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11282 else
11283 whole_archive_flag_spec_CXX=
11284 fi
11285 else
11286 with_gnu_ld=no
11287 wlarc=
11288
11289 # A generic and very simple default shared library creation
11290 # command for GNU C++ for the case where it uses the native
11291 # linker, instead of GNU ld. If possible, this setting should
11292 # overridden to take advantage of the native linker features on
11293 # the platform it is being used on.
11294 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11295 fi
11296
11297 # Commands to make compiler produce verbose output that lists
11298 # what "hidden" libraries, object files and flags are used when
11299 # linking a shared library.
11300 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11301
11302else
11303 GXX=no
11304 with_gnu_ld=no
11305 wlarc=
11306fi
11307
11308# PORTME: fill in a description of your system's C++ link characteristics
11309echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11310echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11311ld_shlibs_CXX=yes
11312case $host_os in
11313 aix3*)
11314 # FIXME: insert proper C++ library support
11315 ld_shlibs_CXX=no
11316 ;;
11317 aix4* | aix5*)
11318 if test "$host_cpu" = ia64; then
11319 # On IA64, the linker does run time linking by default, so we don't
11320 # have to do anything special.
11321 aix_use_runtimelinking=no
11322 exp_sym_flag='-Bexport'
11323 no_entry_flag=""
11324 else
11325 aix_use_runtimelinking=no
11326
11327 # Test if we are trying to use run time linking or normal
11328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11329 # need to do runtime linking.
11330 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11331 for ld_flag in $LDFLAGS; do
11332 case $ld_flag in
11333 *-brtl*)
11334 aix_use_runtimelinking=yes
11335 break
11336 ;;
11337 esac
11338 done
11339 esac
11340
11341 exp_sym_flag='-bexport'
11342 no_entry_flag='-bnoentry'
11343 fi
11344
11345 # When large executables or shared objects are built, AIX ld can
11346 # have problems creating the table of contents. If linking a library
11347 # or program results in "error TOC overflow" add -mminimal-toc to
11348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11350
11351 archive_cmds_CXX=''
11352 hardcode_direct_CXX=yes
11353 hardcode_libdir_separator_CXX=':'
11354 link_all_deplibs_CXX=yes
11355
11356 if test "$GXX" = yes; then
11357 case $host_os in aix4.012|aix4.012.*)
11358 # We only want to do this on AIX 4.2 and lower, the check
11359 # below for broken collect2 doesn't work under 4.3+
11360 collect2name=`${CC} -print-prog-name=collect2`
11361 if test -f "$collect2name" && \
11362 strings "$collect2name" | grep resolve_lib_name >/dev/null
11363 then
11364 # We have reworked collect2
11365 hardcode_direct_CXX=yes
11366 else
11367 # We have old collect2
11368 hardcode_direct_CXX=unsupported
11369 # It fails to find uninstalled libraries when the uninstalled
11370 # path is not listed in the libpath. Setting hardcode_minus_L
11371 # to unsupported forces relinking
11372 hardcode_minus_L_CXX=yes
11373 hardcode_libdir_flag_spec_CXX='-L$libdir'
11374 hardcode_libdir_separator_CXX=
11375 fi
11376 esac
11377 shared_flag='-shared'
11378 else
11379 # not using gcc
11380 if test "$host_cpu" = ia64; then
11381 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11382 # chokes on -Wl,-G. The following line is correct:
11383 shared_flag='-G'
11384 else
11385 if test "$aix_use_runtimelinking" = yes; then
11386 shared_flag='${wl}-G'
11387 else
11388 shared_flag='${wl}-bM:SRE'
11389 fi
11390 fi
11391 fi
11392
11393 # It seems that -bexpall does not export symbols beginning with
11394 # underscore (_), so it is better to generate a list of symbols to export.
11395 always_export_symbols_CXX=yes
11396 if test "$aix_use_runtimelinking" = yes; then
11397 # Warning - without using the other runtime loading flags (-brtl),
11398 # -berok will link without error, but may produce a broken library.
11399 allow_undefined_flag_CXX='-berok'
11400 # Determine the default libpath from the value encoded in an empty executable.
11401 cat >conftest.$ac_ext <<_ACEOF
11402/* confdefs.h. */
11403_ACEOF
11404cat confdefs.h >>conftest.$ac_ext
11405cat >>conftest.$ac_ext <<_ACEOF
11406/* end confdefs.h. */
11407
11408int
11409main ()
11410{
11411
11412 ;
11413 return 0;
11414}
11415_ACEOF
11416rm -f conftest.$ac_objext conftest$ac_exeext
11417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11418 (eval $ac_link) 2>conftest.er1
11419 ac_status=$?
11420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
11425 { ac_try='test -z "$ac_cxx_werror_flag"
11426 || test ! -s conftest.err'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; } &&
11432 { ac_try='test -s conftest$ac_exeext'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11438
11439aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11440}'`
11441# Check for a 64-bit object if we didn't find anything.
11442if 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; }
11443}'`; fi
11444else
11445 echo "$as_me: failed program was:" >&5
11446sed 's/^/| /' conftest.$ac_ext >&5
11447
11448fi
11449rm -f conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11452
11453 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11454
11455 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"
11456 else
11457 if test "$host_cpu" = ia64; then
11458 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11459 allow_undefined_flag_CXX="-z nodefs"
11460 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"
11461 else
11462 # Determine the default libpath from the value encoded in an empty executable.
11463 cat >conftest.$ac_ext <<_ACEOF
11464/* confdefs.h. */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h. */
11469
11470int
11471main ()
11472{
11473
11474 ;
11475 return 0;
11476}
11477_ACEOF
11478rm -f conftest.$ac_objext conftest$ac_exeext
11479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480 (eval $ac_link) 2>conftest.er1
11481 ac_status=$?
11482 grep -v '^ *+' conftest.er1 >conftest.err
11483 rm -f conftest.er1
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_cxx_werror_flag"
11488 || test ! -s conftest.err'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; } &&
11494 { ac_try='test -s conftest$ac_exeext'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11500
11501aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11502}'`
11503# Check for a 64-bit object if we didn't find anything.
11504if 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; }
11505}'`; fi
11506else
11507 echo "$as_me: failed program was:" >&5
11508sed 's/^/| /' conftest.$ac_ext >&5
11509
11510fi
11511rm -f conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11514
11515 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11516 # Warning - without using the other run time loading flags,
11517 # -berok will link without error, but may produce a broken library.
11518 no_undefined_flag_CXX=' ${wl}-bernotok'
11519 allow_undefined_flag_CXX=' ${wl}-berok'
11520 # -bexpall does not export symbols beginning with underscore (_)
11521 always_export_symbols_CXX=yes
11522 # Exported symbols can be pulled into shared objects from archives
11523 whole_archive_flag_spec_CXX=' '
11524 archive_cmds_need_lc_CXX=yes
11525 # This is similar to how AIX traditionally builds it's shared libraries.
11526 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'
11527 fi
11528 fi
11529 ;;
11530 chorus*)
11531 case $cc_basename in
11532 *)
11533 # FIXME: insert proper C++ library support
11534 ld_shlibs_CXX=no
11535 ;;
11536 esac
11537 ;;
11538
11539
11540 cygwin* | mingw* | pw32*)
11541 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11542 # as there is no search path for DLLs.
11543 hardcode_libdir_flag_spec_CXX='-L$libdir'
11544 allow_undefined_flag_CXX=unsupported
11545 always_export_symbols_CXX=no
11546 enable_shared_with_static_runtimes_CXX=yes
11547
11548 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11549 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'
11550 # If the export-symbols file already is a .def file (1st line
11551 # is EXPORTS), use it as is; otherwise, prepend...
11552 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11553 cp $export_symbols $output_objdir/$soname.def;
11554 else
11555 echo EXPORTS > $output_objdir/$soname.def;
11556 cat $export_symbols >> $output_objdir/$soname.def;
11557 fi;$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'
11558 else
11559 ld_shlibs_CXX=no
11560 fi
11561 ;;
11562 darwin* | rhapsody*)
11563 case "$host_os" in
11564 rhapsody* | darwin1.[012])
11565 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11566 ;;
11567 *) # Darwin 1.3 on
11568 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11569 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11570 else
11571 case ${MACOSX_DEPLOYMENT_TARGET} in
11572 10.[012])
11573 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11574 ;;
11575 10.*)
11576 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11577 ;;
11578 esac
11579 fi
11580 ;;
11581 esac
11582 archive_cmds_need_lc_CXX=no
11583 hardcode_direct_CXX=no
11584 hardcode_automatic_CXX=yes
11585 hardcode_shlibpath_var_CXX=unsupported
11586 whole_archive_flag_spec_CXX=''
11587 link_all_deplibs_CXX=yes
11588
11589 if test "$GXX" = yes ; then
11590 lt_int_apple_cc_single_mod=no
11591 output_verbose_link_cmd='echo'
11592 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11593 lt_int_apple_cc_single_mod=yes
11594 fi
11595 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11596 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11597 else
11598 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs;$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11599 fi
11600 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11601 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11602 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11603 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}'
11604 else
11605 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs;$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11606 fi
11607 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}'
11608 else
11609 case "$cc_basename" in
11610 xlc*)
11611 output_verbose_link_cmd='echo'
11612 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11613 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11614 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11615 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11616 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}'
11617 ;;
11618 *)
11619 ld_shlibs_CXX=no
11620 ;;
11621 esac
11622 fi
11623 ;;
11624
11625 dgux*)
11626 case $cc_basename in
11627 ec++)
11628 # FIXME: insert proper C++ library support
11629 ld_shlibs_CXX=no
11630 ;;
11631 ghcx)
11632 # Green Hills C++ Compiler
11633 # FIXME: insert proper C++ library support
11634 ld_shlibs_CXX=no
11635 ;;
11636 *)
11637 # FIXME: insert proper C++ library support
11638 ld_shlibs_CXX=no
11639 ;;
11640 esac
11641 ;;
11642 freebsd12*)
11643 # C++ shared libraries reported to be fairly broken before switch to ELF
11644 ld_shlibs_CXX=no
11645 ;;
11646 freebsd-elf*)
11647 archive_cmds_need_lc_CXX=no
11648 ;;
11649 freebsd* | kfreebsd*-gnu)
11650 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11651 # conventions
11652 ld_shlibs_CXX=yes
11653 ;;
11654 gnu*)
11655 ;;
11656 hpux9*)
11657 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11658 hardcode_libdir_separator_CXX=:
11659 export_dynamic_flag_spec_CXX='${wl}-E'
11660 hardcode_direct_CXX=yes
11661 hardcode_minus_L_CXX=yes # Not in the search PATH,
11662 # but as the default
11663 # location of the library.
11664
11665 case $cc_basename in
11666 CC)
11667 # FIXME: insert proper C++ library support
11668 ld_shlibs_CXX=no
11669 ;;
11670 aCC)
11671 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'
11672 # Commands to make compiler produce verbose output that lists
11673 # what "hidden" libraries, object files and flags are used when
11674 # linking a shared library.
11675 #
11676 # There doesn't appear to be a way to prevent this compiler from
11677 # explicitly linking system object files so we need to strip them
11678 # from the output so that they don't get included in the library
11679 # dependencies.
11680 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'
11681 ;;
11682 *)
11683 if test "$GXX" = yes; then
11684 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'
11685 else
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11688 fi
11689 ;;
11690 esac
11691 ;;
11692 hpux10*|hpux11*)
11693 if test $with_gnu_ld = no; then
11694 case "$host_cpu" in
11695 hppa*64*)
11696 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11697 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11698 hardcode_libdir_separator_CXX=:
11699 ;;
11700 ia64*)
11701 hardcode_libdir_flag_spec_CXX='-L$libdir'
11702 ;;
11703 *)
11704 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11705 hardcode_libdir_separator_CXX=:
11706 export_dynamic_flag_spec_CXX='${wl}-E'
11707 ;;
11708 esac
11709 fi
11710 case "$host_cpu" in
11711 hppa*64*)
11712 hardcode_direct_CXX=no
11713 hardcode_shlibpath_var_CXX=no
11714 ;;
11715 ia64*)
11716 hardcode_direct_CXX=no
11717 hardcode_shlibpath_var_CXX=no
11718 hardcode_minus_L_CXX=yes # Not in the search PATH,
11719 # but as the default
11720 # location of the library.
11721 ;;
11722 *)
11723 hardcode_direct_CXX=yes
11724 hardcode_minus_L_CXX=yes # Not in the search PATH,
11725 # but as the default
11726 # location of the library.
11727 ;;
11728 esac
11729
11730 case $cc_basename in
11731 CC)
11732 # FIXME: insert proper C++ library support
11733 ld_shlibs_CXX=no
11734 ;;
11735 aCC)
11736 case "$host_cpu" in
11737 hppa*64*|ia64*)
11738 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11739 ;;
11740 *)
11741 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11742 ;;
11743 esac
11744 # Commands to make compiler produce verbose output that lists
11745 # what "hidden" libraries, object files and flags are used when
11746 # linking a shared library.
11747 #
11748 # There doesn't appear to be a way to prevent this compiler from
11749 # explicitly linking system object files so we need to strip them
11750 # from the output so that they don't get included in the library
11751 # dependencies.
11752 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'
11753 ;;
11754 *)
11755 if test "$GXX" = yes; then
11756 if test $with_gnu_ld = no; then
11757 case "$host_cpu" in
11758 ia64*|hppa*64*)
11759 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11760 ;;
11761 *)
11762 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'
11763 ;;
11764 esac
11765 fi
11766 else
11767 # FIXME: insert proper C++ library support
11768 ld_shlibs_CXX=no
11769 fi
11770 ;;
11771 esac
11772 ;;
11773 irix5* | irix6*)
11774 case $cc_basename in
11775 CC)
11776 # SGI C++
11777 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'
11778
11779 # Archives containing C++ object files must be created using
11780 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11781 # necessary to make sure instantiated templates are included
11782 # in the archive.
11783 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11784 ;;
11785 *)
11786 if test "$GXX" = yes; then
11787 if test "$with_gnu_ld" = no; then
11788 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'
11789 else
11790 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'
11791 fi
11792 fi
11793 link_all_deplibs_CXX=yes
11794 ;;
11795 esac
11796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11797 hardcode_libdir_separator_CXX=:
11798 ;;
11799 linux*)
11800 case $cc_basename in
11801 KCC)
11802 # Kuck and Associates, Inc. (KAI) C++ Compiler
11803
11804 # KCC will only create a shared library if the output file
11805 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11806 # to its proper name (with version) after linking.
11807 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'
11808 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'
11809 # Commands to make compiler produce verbose output that lists
11810 # what "hidden" libraries, object files and flags are used when
11811 # linking a shared library.
11812 #
11813 # There doesn't appear to be a way to prevent this compiler from
11814 # explicitly linking system object files so we need to strip them
11815 # from the output so that they don't get included in the library
11816 # dependencies.
11817 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'
11818
11819 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11820 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11821
11822 # Archives containing C++ object files must be created using
11823 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11824 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11825 ;;
11826 icpc)
11827 # Intel C++
11828 with_gnu_ld=yes
11829 # version 8.0 and above of icpc choke on multiply defined symbols
11830 # if we add $predep_objects and $postdep_objects, however 7.1 and
11831 # earlier do not add the objects themselves.
11832 case `$CC -V 2>&1` in
11833 *"Version 7."*)
11834 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11835 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'
11836 ;;
11837 *) # Version 8.0 or newer
11838 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11839 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11840 ;;
11841 esac
11842 archive_cmds_need_lc_CXX=no
11843 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11844 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11845 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11846 ;;
11847 cxx)
11848 # Compaq C++
11849 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11850 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'
11851
11852 runpath_var=LD_RUN_PATH
11853 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11854 hardcode_libdir_separator_CXX=:
11855
11856 # Commands to make compiler produce verbose output that lists
11857 # what "hidden" libraries, object files and flags are used when
11858 # linking a shared library.
11859 #
11860 # There doesn't appear to be a way to prevent this compiler from
11861 # explicitly linking system object files so we need to strip them
11862 # from the output so that they don't get included in the library
11863 # dependencies.
11864 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'
11865 ;;
11866 esac
11867 ;;
11868 lynxos*)
11869 # FIXME: insert proper C++ library support
11870 ld_shlibs_CXX=no
11871 ;;
11872 m88k*)
11873 # FIXME: insert proper C++ library support
11874 ld_shlibs_CXX=no
11875 ;;
11876 mvs*)
11877 case $cc_basename in
11878 cxx)
11879 # FIXME: insert proper C++ library support
11880 ld_shlibs_CXX=no
11881 ;;
11882 *)
11883 # FIXME: insert proper C++ library support
11884 ld_shlibs_CXX=no
11885 ;;
11886 esac
11887 ;;
11888 netbsd*)
11889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11890 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11891 wlarc=
11892 hardcode_libdir_flag_spec_CXX='-R$libdir'
11893 hardcode_direct_CXX=yes
11894 hardcode_shlibpath_var_CXX=no
11895 fi
11896 # Workaround some broken pre-1.5 toolchains
11897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11898 ;;
11899 openbsd2*)
11900 # C++ shared libraries are fairly broken
11901 ld_shlibs_CXX=no
11902 ;;
11903 openbsd*)
11904 hardcode_direct_CXX=yes
11905 hardcode_shlibpath_var_CXX=no
11906 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11907 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11909 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11910 export_dynamic_flag_spec_CXX='${wl}-E'
11911 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11912 fi
11913 output_verbose_link_cmd='echo'
11914 ;;
11915 osf3*)
11916 case $cc_basename in
11917 KCC)
11918 # Kuck and Associates, Inc. (KAI) C++ Compiler
11919
11920 # KCC will only create a shared library if the output file
11921 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11922 # to its proper name (with version) after linking.
11923 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'
11924
11925 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11926 hardcode_libdir_separator_CXX=:
11927
11928 # Archives containing C++ object files must be created using
11929 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11930 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11931
11932 ;;
11933 RCC)
11934 # Rational C++ 2.4.1
11935 # FIXME: insert proper C++ library support
11936 ld_shlibs_CXX=no
11937 ;;
11938 cxx)
11939 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11940 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'
11941
11942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11943 hardcode_libdir_separator_CXX=:
11944
11945 # Commands to make compiler produce verbose output that lists
11946 # what "hidden" libraries, object files and flags are used when
11947 # linking a shared library.
11948 #
11949 # There doesn't appear to be a way to prevent this compiler from
11950 # explicitly linking system object files so we need to strip them
11951 # from the output so that they don't get included in the library
11952 # dependencies.
11953 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'
11954 ;;
11955 *)
11956 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11958 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'
11959
11960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11961 hardcode_libdir_separator_CXX=:
11962
11963 # Commands to make compiler produce verbose output that lists
11964 # what "hidden" libraries, object files and flags are used when
11965 # linking a shared library.
11966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11967
11968 else
11969 # FIXME: insert proper C++ library support
11970 ld_shlibs_CXX=no
11971 fi
11972 ;;
11973 esac
11974 ;;
11975 osf4* | osf5*)
11976 case $cc_basename in
11977 KCC)
11978 # Kuck and Associates, Inc. (KAI) C++ Compiler
11979
11980 # KCC will only create a shared library if the output file
11981 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11982 # to its proper name (with version) after linking.
11983 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'
11984
11985 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11986 hardcode_libdir_separator_CXX=:
11987
11988 # Archives containing C++ object files must be created using
11989 # the KAI C++ compiler.
11990 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11991 ;;
11992 RCC)
11993 # Rational C++ 2.4.1
11994 # FIXME: insert proper C++ library support
11995 ld_shlibs_CXX=no
11996 ;;
11997 cxx)
11998 allow_undefined_flag_CXX=' -expect_unresolved \*'
11999 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'
12000 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$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;$rm $lib.exp'
12001
12002 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12003 hardcode_libdir_separator_CXX=:
12004
12005 # Commands to make compiler produce verbose output that lists
12006 # what "hidden" libraries, object files and flags are used when
12007 # linking a shared library.
12008 #
12009 # There doesn't appear to be a way to prevent this compiler from
12010 # explicitly linking system object files so we need to strip them
12011 # from the output so that they don't get included in the library
12012 # dependencies.
12013 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'
12014 ;;
12015 *)
12016 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12017 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12018 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'
12019
12020 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12021 hardcode_libdir_separator_CXX=:
12022
12023 # Commands to make compiler produce verbose output that lists
12024 # what "hidden" libraries, object files and flags are used when
12025 # linking a shared library.
12026 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12027
12028 else
12029 # FIXME: insert proper C++ library support
12030 ld_shlibs_CXX=no
12031 fi
12032 ;;
12033 esac
12034 ;;
12035 psos*)
12036 # FIXME: insert proper C++ library support
12037 ld_shlibs_CXX=no
12038 ;;
12039 sco*)
12040 archive_cmds_need_lc_CXX=no
12041 case $cc_basename in
12042 CC)
12043 # FIXME: insert proper C++ library support
12044 ld_shlibs_CXX=no
12045 ;;
12046 *)
12047 # FIXME: insert proper C++ library support
12048 ld_shlibs_CXX=no
12049 ;;
12050 esac
12051 ;;
12052 sunos4*)
12053 case $cc_basename in
12054 CC)
12055 # Sun C++ 4.x
12056 # FIXME: insert proper C++ library support
12057 ld_shlibs_CXX=no
12058 ;;
12059 lcc)
12060 # Lucid
12061 # FIXME: insert proper C++ library support
12062 ld_shlibs_CXX=no
12063 ;;
12064 *)
12065 # FIXME: insert proper C++ library support
12066 ld_shlibs_CXX=no
12067 ;;
12068 esac
12069 ;;
12070 solaris*)
12071 case $cc_basename in
12072 CC)
12073 # Sun C++ 4.2, 5.x and Centerline C++
12074 no_undefined_flag_CXX=' -zdefs'
12075 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12076 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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'
12077
12078 hardcode_libdir_flag_spec_CXX='-R$libdir'
12079 hardcode_shlibpath_var_CXX=no
12080 case $host_os in
12081 solaris2.0-5 | solaris2.0-5.*) ;;
12082 *)
12083 # The C++ compiler is used as linker so we must use $wl
12084 # flag to pass the commands to the underlying system
12085 # linker.
12086 # Supported since Solaris 2.6 (maybe 2.5.1?)
12087 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12088 ;;
12089 esac
12090 link_all_deplibs_CXX=yes
12091
12092 # Commands to make compiler produce verbose output that lists
12093 # what "hidden" libraries, object files and flags are used when
12094 # linking a shared library.
12095 #
12096 # There doesn't appear to be a way to prevent this compiler from
12097 # explicitly linking system object files so we need to strip them
12098 # from the output so that they don't get included in the library
12099 # dependencies.
12100 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'
12101
12102 # Archives containing C++ object files must be created using
12103 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12104 # necessary to make sure instantiated templates are included
12105 # in the archive.
12106 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12107 ;;
12108 gcx)
12109 # Green Hills C++ Compiler
12110 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111
12112 # The C++ compiler must be used to create the archive.
12113 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12114 ;;
12115 *)
12116 # GNU C++ compiler with Solaris linker
12117 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12118 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12119 if $CC --version | grep -v '^2\.7' > /dev/null; then
12120 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12121 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
12122 # Commands to make compiler produce verbose output that lists
12123 # what "hidden" libraries, object files and flags are used when
12124 # linking a shared library.
12125 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12126 else
12127 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12128 # platform.
12129 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12130 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
12131 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
12132
12133 # Commands to make compiler produce verbose output that lists
12134 # what "hidden" libraries, object files and flags are used when
12135 # linking a shared library.
12136 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12137 fi
12138
12139 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12140 fi
12141 ;;
12142 esac
12143 ;;
12144 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12145 archive_cmds_need_lc_CXX=no
12146 ;;
12147 tandem*)
12148 case $cc_basename in
12149 NCC)
12150 # NonStop-UX NCC 3.20
12151 # FIXME: insert proper C++ library support
12152 ld_shlibs_CXX=no
12153 ;;
12154 *)
12155 # FIXME: insert proper C++ library support
12156 ld_shlibs_CXX=no
12157 ;;
12158 esac
12159 ;;
12160 vxworks*)
12161 # FIXME: insert proper C++ library support
12162 ld_shlibs_CXX=no
12163 ;;
12164 *)
12165 # FIXME: insert proper C++ library support
12166 ld_shlibs_CXX=no
12167 ;;
12168esac
12169echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12170echo "${ECHO_T}$ld_shlibs_CXX" >&6
12171test "$ld_shlibs_CXX" = no && can_build_shared=no
12172
12173GCC_CXX="$GXX"
12174LD_CXX="$LD"
12175
12176
12177cat > conftest.$ac_ext <<EOF
12178class Foo
12179{
12180public:
12181 Foo (void) { a = 0; }
12182private:
12183 int a;
12184};
12185EOF
12186
12187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12188 (eval $ac_compile) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; then
12192 # Parse the compiler output and extract the necessary
12193 # objects, libraries and library flags.
12194
12195 # Sentinel used to keep track of whether or not we are before
12196 # the conftest object file.
12197 pre_test_object_deps_done=no
12198
12199 # The `*' in the case matches for architectures that use `case' in
12200 # $output_verbose_cmd can trigger glob expansion during the loop
12201 # eval without this substitution.
12202 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12203
12204 for p in `eval $output_verbose_link_cmd`; do
12205 case $p in
12206
12207 -L* | -R* | -l*)
12208 # Some compilers place space between "-{L,R}" and the path.
12209 # Remove the space.
12210 if test $p = "-L" \
12211 || test $p = "-R"; then
12212 prev=$p
12213 continue
12214 else
12215 prev=
12216 fi
12217
12218 if test "$pre_test_object_deps_done" = no; then
12219 case $p in
12220 -L* | -R*)
12221 # Internal compiler library paths should come after those
12222 # provided the user. The postdeps already come after the
12223 # user supplied libs so there is no need to process them.
12224 if test -z "$compiler_lib_search_path_CXX"; then
12225 compiler_lib_search_path_CXX="${prev}${p}"
12226 else
12227 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12228 fi
12229 ;;
12230 # The "-l" case would never come before the object being
12231 # linked, so don't bother handling this case.
12232 esac
12233 else
12234 if test -z "$postdeps_CXX"; then
12235 postdeps_CXX="${prev}${p}"
12236 else
12237 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12238 fi
12239 fi
12240 ;;
12241
12242 *.$objext)
12243 # This assumes that the test object file only shows up
12244 # once in the compiler output.
12245 if test "$p" = "conftest.$objext"; then
12246 pre_test_object_deps_done=yes
12247 continue
12248 fi
12249
12250 if test "$pre_test_object_deps_done" = no; then
12251 if test -z "$predep_objects_CXX"; then
12252 predep_objects_CXX="$p"
12253 else
12254 predep_objects_CXX="$predep_objects_CXX $p"
12255 fi
12256 else
12257 if test -z "$postdep_objects_CXX"; then
12258 postdep_objects_CXX="$p"
12259 else
12260 postdep_objects_CXX="$postdep_objects_CXX $p"
12261 fi
12262 fi
12263 ;;
12264
12265 *) ;; # Ignore the rest.
12266
12267 esac
12268 done
12269
12270 # Clean up.
12271 rm -f a.out a.exe
12272else
12273 echo "libtool.m4: error: problem compiling CXX test program"
12274fi
12275
12276$rm -f confest.$objext
12277
12278case " $postdeps_CXX " in
12279*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12280esac
12281
12282lt_prog_compiler_wl_CXX=
12283lt_prog_compiler_pic_CXX=
12284lt_prog_compiler_static_CXX=
12285
12286echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12287echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12288
12289 # C++ specific cases for pic, static, wl, etc.
12290 if test "$GXX" = yes; then
12291 lt_prog_compiler_wl_CXX='-Wl,'
12292 lt_prog_compiler_static_CXX='-static'
12293
12294 case $host_os in
12295 aix*)
12296 # All AIX code is PIC.
12297 if test "$host_cpu" = ia64; then
12298 # AIX 5 now supports IA64 processor
12299 lt_prog_compiler_static_CXX='-Bstatic'
12300 fi
12301 ;;
12302 amigaos*)
12303 # FIXME: we need at least 68020 code to build shared libraries, but
12304 # adding the `-m68020' flag to GCC prevents building anything better,
12305 # like `-m68040'.
12306 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12307 ;;
12308 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12309 # PIC is the default for these OSes.
12310 ;;
12311 mingw* | os2* | pw32*)
12312 # This hack is so that the source file can tell whether it is being
12313 # built for inclusion in a dll (and should export symbols for example).
12314 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12315 ;;
12316 darwin* | rhapsody*)
12317 # PIC is the default on this platform
12318 # Common symbols not allowed in MH_DYLIB files
12319 lt_prog_compiler_pic_CXX='-fno-common'
12320 ;;
12321 *djgpp*)
12322 # DJGPP does not support shared libraries at all
12323 lt_prog_compiler_pic_CXX=
12324 ;;
12325 sysv4*MP*)
12326 if test -d /usr/nec; then
12327 lt_prog_compiler_pic_CXX=-Kconform_pic
12328 fi
12329 ;;
12330 hpux*)
12331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12332 # not for PA HP-UX.
12333 case "$host_cpu" in
12334 hppa*64*|ia64*)
12335 ;;
12336 *)
12337 lt_prog_compiler_pic_CXX='-fPIC'
12338 ;;
12339 esac
12340 ;;
12341 *)
12342 lt_prog_compiler_pic_CXX='-fPIC'
12343 ;;
12344 esac
12345 else
12346 case $host_os in
12347 aix4* | aix5*)
12348 # All AIX code is PIC.
12349 if test "$host_cpu" = ia64; then
12350 # AIX 5 now supports IA64 processor
12351 lt_prog_compiler_static_CXX='-Bstatic'
12352 else
12353 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12354 fi
12355 ;;
12356 chorus*)
12357 case $cc_basename in
12358 cxch68)
12359 # Green Hills C++ Compiler
12360 # _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"
12361 ;;
12362 esac
12363 ;;
12364 darwin*)
12365 # PIC is the default on this platform
12366 # Common symbols not allowed in MH_DYLIB files
12367 case "$cc_basename" in
12368 xlc*)
12369 lt_prog_compiler_pic_CXX='-qnocommon'
12370 lt_prog_compiler_wl_CXX='-Wl,'
12371 ;;
12372 esac
12373 ;;
12374 dgux*)
12375 case $cc_basename in
12376 ec++)
12377 lt_prog_compiler_pic_CXX='-KPIC'
12378 ;;
12379 ghcx)
12380 # Green Hills C++ Compiler
12381 lt_prog_compiler_pic_CXX='-pic'
12382 ;;
12383 *)
12384 ;;
12385 esac
12386 ;;
12387 freebsd* | kfreebsd*-gnu)
12388 # FreeBSD uses GNU C++
12389 ;;
12390 hpux9* | hpux10* | hpux11*)
12391 case $cc_basename in
12392 CC)
12393 lt_prog_compiler_wl_CXX='-Wl,'
12394 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12395 if test "$host_cpu" != ia64; then
12396 lt_prog_compiler_pic_CXX='+Z'
12397 fi
12398 ;;
12399 aCC)
12400 lt_prog_compiler_wl_CXX='-Wl,'
12401 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12402 case "$host_cpu" in
12403 hppa*64*|ia64*)
12404 # +Z the default
12405 ;;
12406 *)
12407 lt_prog_compiler_pic_CXX='+Z'
12408 ;;
12409 esac
12410 ;;
12411 *)
12412 ;;
12413 esac
12414 ;;
12415 irix5* | irix6* | nonstopux*)
12416 case $cc_basename in
12417 CC)
12418 lt_prog_compiler_wl_CXX='-Wl,'
12419 lt_prog_compiler_static_CXX='-non_shared'
12420 # CC pic flag -KPIC is the default.
12421 ;;
12422 *)
12423 ;;
12424 esac
12425 ;;
12426 linux*)
12427 case $cc_basename in
12428 KCC)
12429 # KAI C++ Compiler
12430 lt_prog_compiler_wl_CXX='--backend -Wl,'
12431 lt_prog_compiler_pic_CXX='-fPIC'
12432 ;;
12433 icpc)
12434 # Intel C++
12435 lt_prog_compiler_wl_CXX='-Wl,'
12436 lt_prog_compiler_pic_CXX='-KPIC'
12437 lt_prog_compiler_static_CXX='-static'
12438 ;;
12439 cxx)
12440 # Compaq C++
12441 # Make sure the PIC flag is empty. It appears that all Alpha
12442 # Linux and Compaq Tru64 Unix objects are PIC.
12443 lt_prog_compiler_pic_CXX=
12444 lt_prog_compiler_static_CXX='-non_shared'
12445 ;;
12446 *)
12447 ;;
12448 esac
12449 ;;
12450 lynxos*)
12451 ;;
12452 m88k*)
12453 ;;
12454 mvs*)
12455 case $cc_basename in
12456 cxx)
12457 lt_prog_compiler_pic_CXX='-W c,exportall'
12458 ;;
12459 *)
12460 ;;
12461 esac
12462 ;;
12463 netbsd*)
12464 ;;
12465 osf3* | osf4* | osf5*)
12466 case $cc_basename in
12467 KCC)
12468 lt_prog_compiler_wl_CXX='--backend -Wl,'
12469 ;;
12470 RCC)
12471 # Rational C++ 2.4.1
12472 lt_prog_compiler_pic_CXX='-pic'
12473 ;;
12474 cxx)
12475 # Digital/Compaq C++
12476 lt_prog_compiler_wl_CXX='-Wl,'
12477 # Make sure the PIC flag is empty. It appears that all Alpha
12478 # Linux and Compaq Tru64 Unix objects are PIC.
12479 lt_prog_compiler_pic_CXX=
12480 lt_prog_compiler_static_CXX='-non_shared'
12481 ;;
12482 *)
12483 ;;
12484 esac
12485 ;;
12486 psos*)
12487 ;;
12488 sco*)
12489 case $cc_basename in
12490 CC)
12491 lt_prog_compiler_pic_CXX='-fPIC'
12492 ;;
12493 *)
12494 ;;
12495 esac
12496 ;;
12497 solaris*)
12498 case $cc_basename in
12499 CC)
12500 # Sun C++ 4.2, 5.x and Centerline C++
12501 lt_prog_compiler_pic_CXX='-KPIC'
12502 lt_prog_compiler_static_CXX='-Bstatic'
12503 lt_prog_compiler_wl_CXX='-Qoption ld '
12504 ;;
12505 gcx)
12506 # Green Hills C++ Compiler
12507 lt_prog_compiler_pic_CXX='-PIC'
12508 ;;
12509 *)
12510 ;;
12511 esac
12512 ;;
12513 sunos4*)
12514 case $cc_basename in
12515 CC)
12516 # Sun C++ 4.x
12517 lt_prog_compiler_pic_CXX='-pic'
12518 lt_prog_compiler_static_CXX='-Bstatic'
12519 ;;
12520 lcc)
12521 # Lucid
12522 lt_prog_compiler_pic_CXX='-pic'
12523 ;;
12524 *)
12525 ;;
12526 esac
12527 ;;
12528 tandem*)
12529 case $cc_basename in
12530 NCC)
12531 # NonStop-UX NCC 3.20
12532 lt_prog_compiler_pic_CXX='-KPIC'
12533 ;;
12534 *)
12535 ;;
12536 esac
12537 ;;
12538 unixware*)
12539 ;;
12540 vxworks*)
12541 ;;
12542 *)
12543 lt_prog_compiler_can_build_shared_CXX=no
12544 ;;
12545 esac
12546 fi
12547
12548echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12549echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12550
12551#
12552# Check to make sure the PIC flag actually works.
12553#
12554if test -n "$lt_prog_compiler_pic_CXX"; then
12555
12556echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12557echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12558if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560else
12561 lt_prog_compiler_pic_works_CXX=no
12562 ac_outfile=conftest.$ac_objext
12563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12564 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12565 # Insert the option either (1) after the last *FLAGS variable, or
12566 # (2) before a word containing "conftest.", or (3) at the end.
12567 # Note that $ac_compile itself does not contain backslashes and begins
12568 # with a dollar sign (not a hyphen), so the echo should work correctly.
12569 # The option is referenced via a variable to avoid confusing sed.
12570 lt_compile=`echo "$ac_compile" | $SED \
12571 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12573 -e 's:$: $lt_compiler_flag:'`
12574 (eval echo "\"\$as_me:12574: $lt_compile\"" >&5)
12575 (eval "$lt_compile" 2>conftest.err)
12576 ac_status=$?
12577 cat conftest.err >&5
12578 echo "$as_me:12578: \$? = $ac_status" >&5
12579 if (exit $ac_status) && test -s "$ac_outfile"; then
12580 # The compiler can only warn and ignore the option if not recognized
12581 # So say no if there are warnings
12582 if test ! -s conftest.err; then
12583 lt_prog_compiler_pic_works_CXX=yes
12584 fi
12585 fi
12586 $rm conftest*
12587
12588fi
12589echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12590echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12591
12592if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12593 case $lt_prog_compiler_pic_CXX in
12594 "" | " "*) ;;
12595 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12596 esac
12597else
12598 lt_prog_compiler_pic_CXX=
12599 lt_prog_compiler_can_build_shared_CXX=no
12600fi
12601
12602fi
12603case "$host_os" in
12604 # For platforms which do not support PIC, -DPIC is meaningless:
12605 *djgpp*)
12606 lt_prog_compiler_pic_CXX=
12607 ;;
12608 *)
12609 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12610 ;;
12611esac
12612
12613echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12614echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12615if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617else
12618 lt_cv_prog_compiler_c_o_CXX=no
12619 $rm -r conftest 2>/dev/null
12620 mkdir conftest
12621 cd conftest
12622 mkdir out
12623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12624
12625 lt_compiler_flag="-o out/conftest2.$ac_objext"
12626 # Insert the option either (1) after the last *FLAGS variable, or
12627 # (2) before a word containing "conftest.", or (3) at the end.
12628 # Note that $ac_compile itself does not contain backslashes and begins
12629 # with a dollar sign (not a hyphen), so the echo should work correctly.
12630 lt_compile=`echo "$ac_compile" | $SED \
12631 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12633 -e 's:$: $lt_compiler_flag:'`
12634 (eval echo "\"\$as_me:12634: $lt_compile\"" >&5)
12635 (eval "$lt_compile" 2>out/conftest.err)
12636 ac_status=$?
12637 cat out/conftest.err >&5
12638 echo "$as_me:12638: \$? = $ac_status" >&5
12639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12640 then
12641 # The compiler can only warn and ignore the option if not recognized
12642 # So say no if there are warnings
12643 if test ! -s out/conftest.err; then
12644 lt_cv_prog_compiler_c_o_CXX=yes
12645 fi
12646 fi
12647 chmod u+w .
12648 $rm conftest*
12649 # SGI C++ compiler will create directory out/ii_files/ for
12650 # template instantiation
12651 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12652 $rm out/* && rmdir out
12653 cd ..
12654 rmdir conftest
12655 $rm conftest*
12656
12657fi
12658echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12659echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12660
12661
12662hard_links="nottested"
12663if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12664 # do not overwrite the value of need_locks provided by the user
12665 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12666echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12667 hard_links=yes
12668 $rm conftest*
12669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12670 touch conftest.a
12671 ln conftest.a conftest.b 2>&5 || hard_links=no
12672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12673 echo "$as_me:$LINENO: result: $hard_links" >&5
12674echo "${ECHO_T}$hard_links" >&6
12675 if test "$hard_links" = no; then
12676 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12677echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12678 need_locks=warn
12679 fi
12680else
12681 need_locks=no
12682fi
12683
12684echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12685echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12686
12687 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12688 case $host_os in
12689 aix4* | aix5*)
12690 # If we're using GNU nm, then we don't want the "-C" option.
12691 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12692 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12693 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'
12694 else
12695 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'
12696 fi
12697 ;;
12698 pw32*)
12699 export_symbols_cmds_CXX="$ltdll_cmds"
12700 ;;
12701 cygwin* | mingw*)
12702 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12703 ;;
12704 *)
12705 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12706 ;;
12707 esac
12708
12709echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12710echo "${ECHO_T}$ld_shlibs_CXX" >&6
12711test "$ld_shlibs_CXX" = no && can_build_shared=no
12712
12713variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12714if test "$GCC" = yes; then
12715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12716fi
12717
12718#
12719# Do we need to explicitly link libc?
12720#
12721case "x$archive_cmds_need_lc_CXX" in
12722x|xyes)
12723 # Assume -lc should be added
12724 archive_cmds_need_lc_CXX=yes
12725
12726 if test "$enable_shared" = yes && test "$GCC" = yes; then
12727 case $archive_cmds_CXX in
12728 *'~'*)
12729 # FIXME: we may have to deal with multi-command sequences.
12730 ;;
12731 '$CC '*)
12732 # Test whether the compiler implicitly links with -lc since on some
12733 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12734 # to ld, don't add -lc before -lgcc.
12735 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12736echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12737 $rm conftest*
12738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12739
12740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12741 (eval $ac_compile) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } 2>conftest.err; then
12745 soname=conftest
12746 lib=conftest
12747 libobjs=conftest.$ac_objext
12748 deplibs=
12749 wl=$lt_prog_compiler_wl_CXX
12750 compiler_flags=-v
12751 linker_flags=-v
12752 verstring=
12753 output_objdir=.
12754 libname=conftest
12755 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12756 allow_undefined_flag_CXX=
12757 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12758 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }
12762 then
12763 archive_cmds_need_lc_CXX=no
12764 else
12765 archive_cmds_need_lc_CXX=yes
12766 fi
12767 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12768 else
12769 cat conftest.err 1>&5
12770 fi
12771 $rm conftest*
12772 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12773echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12774 ;;
12775 esac
12776 fi
12777 ;;
12778esac
12779
12780echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12781echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12782library_names_spec=
12783libname_spec='lib$name'
12784soname_spec=
12785shrext_cmds=".so"
12786postinstall_cmds=
12787postuninstall_cmds=
12788finish_cmds=
12789finish_eval=
12790shlibpath_var=
12791shlibpath_overrides_runpath=unknown
12792version_type=none
12793dynamic_linker="$host_os ld.so"
12794sys_lib_dlsearch_path_spec="/lib /usr/lib"
12795if test "$GCC" = yes; then
12796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12797 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12798 # if the path contains ";" then we assume it to be the separator
12799 # otherwise default to the standard path separator (i.e. ":") - it is
12800 # assumed that no part of a normal pathname contains ";" but that should
12801 # okay in the real world where ";" in dirpaths is itself problematic.
12802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12803 else
12804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12805 fi
12806else
12807 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12808fi
12809need_lib_prefix=unknown
12810hardcode_into_libs=no
12811
12812# when you set need_version to no, make sure it does not cause -set_version
12813# flags to be left without arguments
12814need_version=unknown
12815
12816case $host_os in
12817aix3*)
12818 version_type=linux
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12820 shlibpath_var=LIBPATH
12821
12822 # AIX 3 has no versioning support, so we append a major version to the name.
12823 soname_spec='${libname}${release}${shared_ext}$major'
12824 ;;
12825
12826aix4* | aix5*)
12827 version_type=linux
12828 need_lib_prefix=no
12829 need_version=no
12830 hardcode_into_libs=yes
12831 if test "$host_cpu" = ia64; then
12832 # AIX 5 supports IA64
12833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12834 shlibpath_var=LD_LIBRARY_PATH
12835 else
12836 # With GCC up to 2.95.x, collect2 would create an import file
12837 # for dependence libraries. The import file would start with
12838 # the line `#! .'. This would cause the generated library to
12839 # depend on `.', always an invalid library. This was fixed in
12840 # development snapshots of GCC prior to 3.0.
12841 case $host_os in
12842 aix4 | aix4.[01] | aix4.[01].*)
12843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12844 echo ' yes '
12845 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12846 :
12847 else
12848 can_build_shared=no
12849 fi
12850 ;;
12851 esac
12852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12853 # soname into executable. Probably we can add versioning support to
12854 # collect2, so additional links can be useful in future.
12855 if test "$aix_use_runtimelinking" = yes; then
12856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12857 # instead of lib<name>.a to let people know that these are not
12858 # typical AIX shared libraries.
12859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12860 else
12861 # We preserve .a as extension for shared libraries through AIX4.2
12862 # and later when we are not doing run time linking.
12863 library_names_spec='${libname}${release}.a $libname.a'
12864 soname_spec='${libname}${release}${shared_ext}$major'
12865 fi
12866 shlibpath_var=LIBPATH
12867 fi
12868 ;;
12869
12870amigaos*)
12871 library_names_spec='$libname.ixlibrary $libname.a'
12872 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12873 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'
12874 ;;
12875
12876beos*)
12877 library_names_spec='${libname}${shared_ext}'
12878 dynamic_linker="$host_os ld.so"
12879 shlibpath_var=LIBRARY_PATH
12880 ;;
12881
12882bsdi[45]*)
12883 version_type=linux
12884 need_version=no
12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12886 soname_spec='${libname}${release}${shared_ext}$major'
12887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12888 shlibpath_var=LD_LIBRARY_PATH
12889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12891 # the default ld.so.conf also contains /usr/contrib/lib and
12892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12893 # libtool to hard-code these into programs
12894 ;;
12895
12896cygwin* | mingw* | pw32*)
12897 version_type=windows
12898 shrext_cmds=".dll"
12899 need_version=no
12900 need_lib_prefix=no
12901
12902 case $GCC,$host_os in
12903 yes,cygwin* | yes,mingw* | yes,pw32*)
12904 library_names_spec='$libname.dll.a'
12905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12906 postinstall_cmds='base_file=`basename \${file}`;
12907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
12908 dldir=$destdir/`dirname \$dlpath`;
12909 test -d \$dldir || mkdir -p \$dldir;
12910 $install_prog $dir/$dlname \$dldir/$dlname'
12911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
12912 dlpath=$dir/\$dldll;
12913 $rm \$dlpath'
12914 shlibpath_overrides_runpath=yes
12915
12916 case $host_os in
12917 cygwin*)
12918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12921 ;;
12922 mingw*)
12923 # MinGW DLLs use traditional 'lib' prefix
12924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12927 # It is most probably a Windows format PATH printed by
12928 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12929 # path with ; separators, and with drive letters. We can handle the
12930 # drive letters (cygwin fileutils understands them), so leave them,
12931 # especially as we might pass files found there to a mingw objdump,
12932 # which wouldn't understand a cygwinified path. Ahh.
12933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12934 else
12935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12936 fi
12937 ;;
12938 pw32*)
12939 # pw32 DLLs use 'pw' prefix rather than 'lib'
12940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12941 ;;
12942 esac
12943 ;;
12944
12945 *)
12946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12947 ;;
12948 esac
12949 dynamic_linker='Win32 ld.exe'
12950 # FIXME: first we should search . and the directory the executable is in
12951 shlibpath_var=PATH
12952 ;;
12953
12954darwin* | rhapsody*)
12955 dynamic_linker="$host_os dyld"
12956 version_type=darwin
12957 need_lib_prefix=no
12958 need_version=no
12959 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12960 soname_spec='${libname}${release}${major}$shared_ext'
12961 shlibpath_overrides_runpath=yes
12962 shlibpath_var=DYLD_LIBRARY_PATH
12963 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12964 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12965 if test "$GCC" = yes; then
12966 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"`
12967 else
12968 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12969 fi
12970 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12971 ;;
12972
12973dgux*)
12974 version_type=linux
12975 need_lib_prefix=no
12976 need_version=no
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12978 soname_spec='${libname}${release}${shared_ext}$major'
12979 shlibpath_var=LD_LIBRARY_PATH
12980 ;;
12981
12982freebsd1*)
12983 dynamic_linker=no
12984 ;;
12985
12986kfreebsd*-gnu)
12987 version_type=linux
12988 need_lib_prefix=no
12989 need_version=no
12990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12991 soname_spec='${libname}${release}${shared_ext}$major'
12992 shlibpath_var=LD_LIBRARY_PATH
12993 shlibpath_overrides_runpath=no
12994 hardcode_into_libs=yes
12995 dynamic_linker='GNU ld.so'
12996 ;;
12997
12998freebsd*)
12999 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13000 version_type=freebsd-$objformat
13001 case $version_type in
13002 freebsd-elf*)
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13004 need_version=no
13005 need_lib_prefix=no
13006 ;;
13007 freebsd-*)
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13009 need_version=yes
13010 ;;
13011 esac
13012 shlibpath_var=LD_LIBRARY_PATH
13013 case $host_os in
13014 freebsd2*)
13015 shlibpath_overrides_runpath=yes
13016 ;;
13017 freebsd3.01* | freebsdelf3.01*)
13018 shlibpath_overrides_runpath=yes
13019 hardcode_into_libs=yes
13020 ;;
13021 *) # from 3.2 on
13022 shlibpath_overrides_runpath=no
13023 hardcode_into_libs=yes
13024 ;;
13025 esac
13026 ;;
13027
13028gnu*)
13029 version_type=linux
13030 need_lib_prefix=no
13031 need_version=no
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13033 soname_spec='${libname}${release}${shared_ext}$major'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 hardcode_into_libs=yes
13036 ;;
13037
13038hpux9* | hpux10* | hpux11*)
13039 # Give a soname corresponding to the major version so that dld.sl refuses to
13040 # link against other versions.
13041 version_type=sunos
13042 need_lib_prefix=no
13043 need_version=no
13044 case "$host_cpu" in
13045 ia64*)
13046 shrext_cmds='.so'
13047 hardcode_into_libs=yes
13048 dynamic_linker="$host_os dld.so"
13049 shlibpath_var=LD_LIBRARY_PATH
13050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13052 soname_spec='${libname}${release}${shared_ext}$major'
13053 if test "X$HPUX_IA64_MODE" = X32; then
13054 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13055 else
13056 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13057 fi
13058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13059 ;;
13060 hppa*64*)
13061 shrext_cmds='.sl'
13062 hardcode_into_libs=yes
13063 dynamic_linker="$host_os dld.sl"
13064 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13067 soname_spec='${libname}${release}${shared_ext}$major'
13068 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13070 ;;
13071 *)
13072 shrext_cmds='.sl'
13073 dynamic_linker="$host_os dld.sl"
13074 shlibpath_var=SHLIB_PATH
13075 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13077 soname_spec='${libname}${release}${shared_ext}$major'
13078 ;;
13079 esac
13080 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13081 postinstall_cmds='chmod 555 $lib'
13082 ;;
13083
13084irix5* | irix6* | nonstopux*)
13085 case $host_os in
13086 nonstopux*) version_type=nonstopux ;;
13087 *)
13088 if test "$lt_cv_prog_gnu_ld" = yes; then
13089 version_type=linux
13090 else
13091 version_type=irix
13092 fi ;;
13093 esac
13094 need_lib_prefix=no
13095 need_version=no
13096 soname_spec='${libname}${release}${shared_ext}$major'
13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13098 case $host_os in
13099 irix5* | nonstopux*)
13100 libsuff= shlibsuff=
13101 ;;
13102 *)
13103 case $LD in # libtool.m4 will add one of these switches to LD
13104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13105 libsuff= shlibsuff= libmagic=32-bit;;
13106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13107 libsuff=32 shlibsuff=N32 libmagic=N32;;
13108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13110 *) libsuff= shlibsuff= libmagic=never-match;;
13111 esac
13112 ;;
13113 esac
13114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13115 shlibpath_overrides_runpath=no
13116 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13117 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13118 hardcode_into_libs=yes
13119 ;;
13120
13121# No shared lib support for Linux oldld, aout, or coff.
13122linux*oldld* | linux*aout* | linux*coff*)
13123 dynamic_linker=no
13124 ;;
13125
13126# This must be Linux ELF.
13127linux*)
13128 version_type=linux
13129 need_lib_prefix=no
13130 need_version=no
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 soname_spec='${libname}${release}${shared_ext}$major'
13133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13134 shlibpath_var=LD_LIBRARY_PATH
13135 shlibpath_overrides_runpath=no
13136 # This implies no fast_install, which is unacceptable.
13137 # Some rework will be needed to allow for fast_install
13138 # before this can be enabled.
13139 hardcode_into_libs=yes
13140
13141 # Append ld.so.conf contents to the search path
13142 if test -f /etc/ld.so.conf; then
13143 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13144 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13145 fi
13146
13147 # We used to test for /lib/ld.so.1 and disable shared libraries on
13148 # powerpc, because MkLinux only supported shared libraries with the
13149 # GNU dynamic linker. Since this was broken with cross compilers,
13150 # most powerpc-linux boxes support dynamic linking these days and
13151 # people can always --disable-shared, the test was removed, and we
13152 # assume the GNU/Linux dynamic linker is in use.
13153 dynamic_linker='GNU/Linux ld.so'
13154 ;;
13155
13156knetbsd*-gnu)
13157 version_type=linux
13158 need_lib_prefix=no
13159 need_version=no
13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13161 soname_spec='${libname}${release}${shared_ext}$major'
13162 shlibpath_var=LD_LIBRARY_PATH
13163 shlibpath_overrides_runpath=no
13164 hardcode_into_libs=yes
13165 dynamic_linker='GNU ld.so'
13166 ;;
13167
13168netbsd*)
13169 version_type=sunos
13170 need_lib_prefix=no
13171 need_version=no
13172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13175 dynamic_linker='NetBSD (a.out) ld.so'
13176 else
13177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13178 soname_spec='${libname}${release}${shared_ext}$major'
13179 dynamic_linker='NetBSD ld.elf_so'
13180 fi
13181 shlibpath_var=LD_LIBRARY_PATH
13182 shlibpath_overrides_runpath=yes
13183 hardcode_into_libs=yes
13184 ;;
13185
13186newsos6)
13187 version_type=linux
13188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13189 shlibpath_var=LD_LIBRARY_PATH
13190 shlibpath_overrides_runpath=yes
13191 ;;
13192
13193nto-qnx*)
13194 version_type=linux
13195 need_lib_prefix=no
13196 need_version=no
13197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198 soname_spec='${libname}${release}${shared_ext}$major'
13199 shlibpath_var=LD_LIBRARY_PATH
13200 shlibpath_overrides_runpath=yes
13201 ;;
13202
13203openbsd*)
13204 version_type=sunos
13205 need_lib_prefix=no
13206 need_version=no
13207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13209 shlibpath_var=LD_LIBRARY_PATH
13210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13211 case $host_os in
13212 openbsd2.[89] | openbsd2.[89].*)
13213 shlibpath_overrides_runpath=no
13214 ;;
13215 *)
13216 shlibpath_overrides_runpath=yes
13217 ;;
13218 esac
13219 else
13220 shlibpath_overrides_runpath=yes
13221 fi
13222 ;;
13223
13224os2*)
13225 libname_spec='$name'
13226 shrext_cmds=".dll"
13227 need_lib_prefix=no
13228 library_names_spec='$libname${shared_ext} $libname.a'
13229 dynamic_linker='OS/2 ld.exe'
13230 shlibpath_var=LIBPATH
13231 ;;
13232
13233osf3* | osf4* | osf5*)
13234 version_type=osf
13235 need_lib_prefix=no
13236 need_version=no
13237 soname_spec='${libname}${release}${shared_ext}$major'
13238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13239 shlibpath_var=LD_LIBRARY_PATH
13240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13242 ;;
13243
13244sco3.2v5*)
13245 version_type=osf
13246 soname_spec='${libname}${release}${shared_ext}$major'
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248 shlibpath_var=LD_LIBRARY_PATH
13249 ;;
13250
13251solaris*)
13252 version_type=linux
13253 need_lib_prefix=no
13254 need_version=no
13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13256 soname_spec='${libname}${release}${shared_ext}$major'
13257 shlibpath_var=LD_LIBRARY_PATH
13258 shlibpath_overrides_runpath=yes
13259 hardcode_into_libs=yes
13260 # ldd complains unless libraries are executable
13261 postinstall_cmds='chmod +x $lib'
13262 ;;
13263
13264sunos4*)
13265 version_type=sunos
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13267 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13268 shlibpath_var=LD_LIBRARY_PATH
13269 shlibpath_overrides_runpath=yes
13270 if test "$with_gnu_ld" = yes; then
13271 need_lib_prefix=no
13272 fi
13273 need_version=yes
13274 ;;
13275
13276sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13277 version_type=linux
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 shlibpath_var=LD_LIBRARY_PATH
13281 case $host_vendor in
13282 sni)
13283 shlibpath_overrides_runpath=no
13284 need_lib_prefix=no
13285 export_dynamic_flag_spec='${wl}-Blargedynsym'
13286 runpath_var=LD_RUN_PATH
13287 ;;
13288 siemens)
13289 need_lib_prefix=no
13290 ;;
13291 motorola)
13292 need_lib_prefix=no
13293 need_version=no
13294 shlibpath_overrides_runpath=no
13295 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13296 ;;
13297 esac
13298 ;;
13299
13300sysv4*MP*)
13301 if test -d /usr/nec ;then
13302 version_type=linux
13303 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13304 soname_spec='$libname${shared_ext}.$major'
13305 shlibpath_var=LD_LIBRARY_PATH
13306 fi
13307 ;;
13308
13309uts4*)
13310 version_type=linux
13311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13312 soname_spec='${libname}${release}${shared_ext}$major'
13313 shlibpath_var=LD_LIBRARY_PATH
13314 ;;
13315
13316*)
13317 dynamic_linker=no
13318 ;;
13319esac
13320echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13321echo "${ECHO_T}$dynamic_linker" >&6
13322test "$dynamic_linker" = no && can_build_shared=no
13323
13324echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13325echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13326hardcode_action_CXX=
13327if test -n "$hardcode_libdir_flag_spec_CXX" || \
13328 test -n "$runpath_var_CXX" || \
13329 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13330
13331 # We can hardcode non-existant directories.
13332 if test "$hardcode_direct_CXX" != no &&
13333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13334 # have to relink, otherwise we might link with an installed library
13335 # when we should be linking with a yet-to-be-installed one
13336 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13337 test "$hardcode_minus_L_CXX" != no; then
13338 # Linking always hardcodes the temporary library directory.
13339 hardcode_action_CXX=relink
13340 else
13341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13342 hardcode_action_CXX=immediate
13343 fi
13344else
13345 # We cannot hardcode anything, or else we can only hardcode existing
13346 # directories.
13347 hardcode_action_CXX=unsupported
13348fi
13349echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13350echo "${ECHO_T}$hardcode_action_CXX" >&6
13351
13352if test "$hardcode_action_CXX" = relink; then
13353 # Fast installation is not supported
13354 enable_fast_install=no
13355elif test "$shlibpath_overrides_runpath" = yes ||
13356 test "$enable_shared" = no; then
13357 # Fast installation is not necessary
13358 enable_fast_install=needless
13359fi
13360
13361striplib=
13362old_striplib=
13363echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13364echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13365if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13367 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13368 echo "$as_me:$LINENO: result: yes" >&5
13369echo "${ECHO_T}yes" >&6
13370else
13371# FIXME - insert some real tests, host_os isn't really good enough
13372 case $host_os in
13373 darwin*)
13374 if test -n "$STRIP" ; then
13375 striplib="$STRIP -x"
13376 echo "$as_me:$LINENO: result: yes" >&5
13377echo "${ECHO_T}yes" >&6
13378 else
13379 echo "$as_me:$LINENO: result: no" >&5
13380echo "${ECHO_T}no" >&6
13381fi
13382 ;;
13383 *)
13384 echo "$as_me:$LINENO: result: no" >&5
13385echo "${ECHO_T}no" >&6
13386 ;;
13387 esac
13388fi
13389
13390if test "x$enable_dlopen" != xyes; then
13391 enable_dlopen=unknown
13392 enable_dlopen_self=unknown
13393 enable_dlopen_self_static=unknown
13394else
13395 lt_cv_dlopen=no
13396 lt_cv_dlopen_libs=
13397
13398 case $host_os in
13399 beos*)
13400 lt_cv_dlopen="load_add_on"
13401 lt_cv_dlopen_libs=
13402 lt_cv_dlopen_self=yes
13403 ;;
13404
13405 mingw* | pw32*)
13406 lt_cv_dlopen="LoadLibrary"
13407 lt_cv_dlopen_libs=
13408 ;;
13409
13410 cygwin*)
13411 lt_cv_dlopen="dlopen"
13412 lt_cv_dlopen_libs=
13413 ;;
13414
13415 darwin*)
13416 # if libdl is installed we need to link against it
13417 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13418echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13419if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13421else
13422 ac_check_lib_save_LIBS=$LIBS
13423LIBS="-ldl $LIBS"
13424cat >conftest.$ac_ext <<_ACEOF
13425/* confdefs.h. */
13426_ACEOF
13427cat confdefs.h >>conftest.$ac_ext
13428cat >>conftest.$ac_ext <<_ACEOF
13429/* end confdefs.h. */
13430
13431/* Override any gcc2 internal prototype to avoid an error. */
13432#ifdef __cplusplus
13433extern "C"
13434#endif
13435/* We use char because int might match the return type of a gcc2
13436 builtin and then its argument prototype would still apply. */
13437char dlopen ();
13438int
13439main ()
13440{
13441dlopen ();
13442 ;
13443 return 0;
13444}
13445_ACEOF
13446rm -f conftest.$ac_objext conftest$ac_exeext
13447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448 (eval $ac_link) 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_cxx_werror_flag"
13456 || test ! -s conftest.err'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest$ac_exeext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_cv_lib_dl_dlopen=yes
13469else
13470 echo "$as_me: failed program was:" >&5
13471sed 's/^/| /' conftest.$ac_ext >&5
13472
13473ac_cv_lib_dl_dlopen=no
13474fi
13475rm -f conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13477LIBS=$ac_check_lib_save_LIBS
13478fi
13479echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13480echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13481if test $ac_cv_lib_dl_dlopen = yes; then
13482 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13483else
13484
13485 lt_cv_dlopen="dyld"
13486 lt_cv_dlopen_libs=
13487 lt_cv_dlopen_self=yes
13488
13489fi
13490
13491 ;;
13492
13493 *)
13494 echo "$as_me:$LINENO: checking for shl_load" >&5
13495echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13496if test "${ac_cv_func_shl_load+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13498else
13499 cat >conftest.$ac_ext <<_ACEOF
13500/* confdefs.h. */
13501_ACEOF
13502cat confdefs.h >>conftest.$ac_ext
13503cat >>conftest.$ac_ext <<_ACEOF
13504/* end confdefs.h. */
13505/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13507#define shl_load innocuous_shl_load
13508
13509/* System header to define __stub macros and hopefully few prototypes,
13510 which can conflict with char shl_load (); below.
13511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13512 <limits.h> exists even on freestanding compilers. */
13513
13514#ifdef __STDC__
13515# include <limits.h>
13516#else
13517# include <assert.h>
13518#endif
13519
13520#undef shl_load
13521
13522/* Override any gcc2 internal prototype to avoid an error. */
13523#ifdef __cplusplus
13524extern "C"
13525{
13526#endif
13527/* We use char because int might match the return type of a gcc2
13528 builtin and then its argument prototype would still apply. */
13529char shl_load ();
13530/* The GNU C library defines this for functions which it implements
13531 to always fail with ENOSYS. Some functions are actually named
13532 something starting with __ and the normal name is an alias. */
13533#if defined (__stub_shl_load) || defined (__stub___shl_load)
13534choke me
13535#else
13536char (*f) () = shl_load;
13537#endif
13538#ifdef __cplusplus
13539}
13540#endif
13541
13542int
13543main ()
13544{
13545return f != shl_load;
13546 ;
13547 return 0;
13548}
13549_ACEOF
13550rm -f conftest.$ac_objext conftest$ac_exeext
13551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13552 (eval $ac_link) 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_cxx_werror_flag"
13560 || test ! -s conftest.err'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest$ac_exeext'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13572 ac_cv_func_shl_load=yes
13573else
13574 echo "$as_me: failed program was:" >&5
13575sed 's/^/| /' conftest.$ac_ext >&5
13576
13577ac_cv_func_shl_load=no
13578fi
13579rm -f conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext conftest.$ac_ext
13581fi
13582echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13583echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13584if test $ac_cv_func_shl_load = yes; then
13585 lt_cv_dlopen="shl_load"
13586else
13587 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13588echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13589if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591else
13592 ac_check_lib_save_LIBS=$LIBS
13593LIBS="-ldld $LIBS"
13594cat >conftest.$ac_ext <<_ACEOF
13595/* confdefs.h. */
13596_ACEOF
13597cat confdefs.h >>conftest.$ac_ext
13598cat >>conftest.$ac_ext <<_ACEOF
13599/* end confdefs.h. */
13600
13601/* Override any gcc2 internal prototype to avoid an error. */
13602#ifdef __cplusplus
13603extern "C"
13604#endif
13605/* We use char because int might match the return type of a gcc2
13606 builtin and then its argument prototype would still apply. */
13607char shl_load ();
13608int
13609main ()
13610{
13611shl_load ();
13612 ;
13613 return 0;
13614}
13615_ACEOF
13616rm -f conftest.$ac_objext conftest$ac_exeext
13617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 (eval $ac_link) 2>conftest.er1
13619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
13625 { ac_try='test -z "$ac_cxx_werror_flag"
13626 || test ! -s conftest.err'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest$ac_exeext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 ac_cv_lib_dld_shl_load=yes
13639else
13640 echo "$as_me: failed program was:" >&5
13641sed 's/^/| /' conftest.$ac_ext >&5
13642
13643ac_cv_lib_dld_shl_load=no
13644fi
13645rm -f conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
13647LIBS=$ac_check_lib_save_LIBS
13648fi
13649echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13650echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13651if test $ac_cv_lib_dld_shl_load = yes; then
13652 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13653else
13654 echo "$as_me:$LINENO: checking for dlopen" >&5
13655echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13656if test "${ac_cv_func_dlopen+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658else
13659 cat >conftest.$ac_ext <<_ACEOF
13660/* confdefs.h. */
13661_ACEOF
13662cat confdefs.h >>conftest.$ac_ext
13663cat >>conftest.$ac_ext <<_ACEOF
13664/* end confdefs.h. */
13665/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13667#define dlopen innocuous_dlopen
13668
13669/* System header to define __stub macros and hopefully few prototypes,
13670 which can conflict with char dlopen (); below.
13671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13672 <limits.h> exists even on freestanding compilers. */
13673
13674#ifdef __STDC__
13675# include <limits.h>
13676#else
13677# include <assert.h>
13678#endif
13679
13680#undef dlopen
13681
13682/* Override any gcc2 internal prototype to avoid an error. */
13683#ifdef __cplusplus
13684extern "C"
13685{
13686#endif
13687/* We use char because int might match the return type of a gcc2
13688 builtin and then its argument prototype would still apply. */
13689char dlopen ();
13690/* The GNU C library defines this for functions which it implements
13691 to always fail with ENOSYS. Some functions are actually named
13692 something starting with __ and the normal name is an alias. */
13693#if defined (__stub_dlopen) || defined (__stub___dlopen)
13694choke me
13695#else
13696char (*f) () = dlopen;
13697#endif
13698#ifdef __cplusplus
13699}
13700#endif
13701
13702int
13703main ()
13704{
13705return f != dlopen;
13706 ;
13707 return 0;
13708}
13709_ACEOF
13710rm -f conftest.$ac_objext conftest$ac_exeext
13711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712 (eval $ac_link) 2>conftest.er1
13713 ac_status=$?
13714 grep -v '^ *+' conftest.er1 >conftest.err
13715 rm -f conftest.er1
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try='test -z "$ac_cxx_werror_flag"
13720 || test ! -s conftest.err'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest$ac_exeext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_func_dlopen=yes
13733else
13734 echo "$as_me: failed program was:" >&5
13735sed 's/^/| /' conftest.$ac_ext >&5
13736
13737ac_cv_func_dlopen=no
13738fi
13739rm -f conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13741fi
13742echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13743echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13744if test $ac_cv_func_dlopen = yes; then
13745 lt_cv_dlopen="dlopen"
13746else
13747 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13748echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13749if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751else
13752 ac_check_lib_save_LIBS=$LIBS
13753LIBS="-ldl $LIBS"
13754cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h. */
13760
13761/* Override any gcc2 internal prototype to avoid an error. */
13762#ifdef __cplusplus
13763extern "C"
13764#endif
13765/* We use char because int might match the return type of a gcc2
13766 builtin and then its argument prototype would still apply. */
13767char dlopen ();
13768int
13769main ()
13770{
13771dlopen ();
13772 ;
13773 return 0;
13774}
13775_ACEOF
13776rm -f conftest.$ac_objext conftest$ac_exeext
13777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13778 (eval $ac_link) 2>conftest.er1
13779 ac_status=$?
13780 grep -v '^ *+' conftest.er1 >conftest.err
13781 rm -f conftest.er1
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -z "$ac_cxx_werror_flag"
13786 || test ! -s conftest.err'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } &&
13792 { ac_try='test -s conftest$ac_exeext'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_lib_dl_dlopen=yes
13799else
13800 echo "$as_me: failed program was:" >&5
13801sed 's/^/| /' conftest.$ac_ext >&5
13802
13803ac_cv_lib_dl_dlopen=no
13804fi
13805rm -f conftest.err conftest.$ac_objext \
13806 conftest$ac_exeext conftest.$ac_ext
13807LIBS=$ac_check_lib_save_LIBS
13808fi
13809echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13810echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13811if test $ac_cv_lib_dl_dlopen = yes; then
13812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13813else
13814 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13815echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13816if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13818else
13819 ac_check_lib_save_LIBS=$LIBS
13820LIBS="-lsvld $LIBS"
13821cat >conftest.$ac_ext <<_ACEOF
13822/* confdefs.h. */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h. */
13827
13828/* Override any gcc2 internal prototype to avoid an error. */
13829#ifdef __cplusplus
13830extern "C"
13831#endif
13832/* We use char because int might match the return type of a gcc2
13833 builtin and then its argument prototype would still apply. */
13834char dlopen ();
13835int
13836main ()
13837{
13838dlopen ();
13839 ;
13840 return 0;
13841}
13842_ACEOF
13843rm -f conftest.$ac_objext conftest$ac_exeext
13844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13845 (eval $ac_link) 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_cxx_werror_flag"
13853 || test ! -s conftest.err'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest$ac_exeext'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 ac_cv_lib_svld_dlopen=yes
13866else
13867 echo "$as_me: failed program was:" >&5
13868sed 's/^/| /' conftest.$ac_ext >&5
13869
13870ac_cv_lib_svld_dlopen=no
13871fi
13872rm -f conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext conftest.$ac_ext
13874LIBS=$ac_check_lib_save_LIBS
13875fi
13876echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13877echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13878if test $ac_cv_lib_svld_dlopen = yes; then
13879 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13880else
13881 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13882echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13883if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885else
13886 ac_check_lib_save_LIBS=$LIBS
13887LIBS="-ldld $LIBS"
13888cat >conftest.$ac_ext <<_ACEOF
13889/* confdefs.h. */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h. */
13894
13895/* Override any gcc2 internal prototype to avoid an error. */
13896#ifdef __cplusplus
13897extern "C"
13898#endif
13899/* We use char because int might match the return type of a gcc2
13900 builtin and then its argument prototype would still apply. */
13901char dld_link ();
13902int
13903main ()
13904{
13905dld_link ();
13906 ;
13907 return 0;
13908}
13909_ACEOF
13910rm -f conftest.$ac_objext conftest$ac_exeext
13911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13912 (eval $ac_link) 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try='test -z "$ac_cxx_werror_flag"
13920 || test ! -s conftest.err'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; } &&
13926 { ac_try='test -s conftest$ac_exeext'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13932 ac_cv_lib_dld_dld_link=yes
13933else
13934 echo "$as_me: failed program was:" >&5
13935sed 's/^/| /' conftest.$ac_ext >&5
13936
13937ac_cv_lib_dld_dld_link=no
13938fi
13939rm -f conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941LIBS=$ac_check_lib_save_LIBS
13942fi
13943echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13944echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13945if test $ac_cv_lib_dld_dld_link = yes; then
13946 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13947fi
13948
13949
13950fi
13951
13952
13953fi
13954
13955
13956fi
13957
13958
13959fi
13960
13961
13962fi
13963
13964 ;;
13965 esac
13966
13967 if test "x$lt_cv_dlopen" != xno; then
13968 enable_dlopen=yes
13969 else
13970 enable_dlopen=no
13971 fi
13972
13973 case $lt_cv_dlopen in
13974 dlopen)
13975 save_CPPFLAGS="$CPPFLAGS"
13976 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13977
13978 save_LDFLAGS="$LDFLAGS"
13979 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13980
13981 save_LIBS="$LIBS"
13982 LIBS="$lt_cv_dlopen_libs $LIBS"
13983
13984 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13985echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13986if test "${lt_cv_dlopen_self+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13988else
13989 if test "$cross_compiling" = yes; then :
13990 lt_cv_dlopen_self=cross
13991else
13992 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13993 lt_status=$lt_dlunknown
13994 cat > conftest.$ac_ext <<EOF
13995#line 13995 "configure"
13996#include "confdefs.h"
13997
13998#if HAVE_DLFCN_H
13999#include <dlfcn.h>
14000#endif
14001
14002#include <stdio.h>
14003
14004#ifdef RTLD_GLOBAL
14005# define LT_DLGLOBAL RTLD_GLOBAL
14006#else
14007# ifdef DL_GLOBAL
14008# define LT_DLGLOBAL DL_GLOBAL
14009# else
14010# define LT_DLGLOBAL 0
14011# endif
14012#endif
14013
14014/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14015 find out it does not work in some platform. */
14016#ifndef LT_DLLAZY_OR_NOW
14017# ifdef RTLD_LAZY
14018# define LT_DLLAZY_OR_NOW RTLD_LAZY
14019# else
14020# ifdef DL_LAZY
14021# define LT_DLLAZY_OR_NOW DL_LAZY
14022# else
14023# ifdef RTLD_NOW
14024# define LT_DLLAZY_OR_NOW RTLD_NOW
14025# else
14026# ifdef DL_NOW
14027# define LT_DLLAZY_OR_NOW DL_NOW
14028# else
14029# define LT_DLLAZY_OR_NOW 0
14030# endif
14031# endif
14032# endif
14033# endif
14034#endif
14035
14036#ifdef __cplusplus
14037extern "C" void exit (int);
14038#endif
14039
14040void fnord() { int i=42;}
14041int main ()
14042{
14043 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14044 int status = $lt_dlunknown;
14045
14046 if (self)
14047 {
14048 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14049 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14050 /* dlclose (self); */
14051 }
14052
14053 exit (status);
14054}
14055EOF
14056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14057 (eval $ac_link) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14061 (./conftest; exit; ) 2>/dev/null
14062 lt_status=$?
14063 case x$lt_status in
14064 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14065 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14066 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14067 esac
14068 else :
14069 # compilation failed
14070 lt_cv_dlopen_self=no
14071 fi
14072fi
14073rm -fr conftest*
14074
14075
14076fi
14077echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14078echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14079
14080 if test "x$lt_cv_dlopen_self" = xyes; then
14081 LDFLAGS="$LDFLAGS $link_static_flag"
14082 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14083echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14084if test "${lt_cv_dlopen_self_static+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086else
14087 if test "$cross_compiling" = yes; then :
14088 lt_cv_dlopen_self_static=cross
14089else
14090 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14091 lt_status=$lt_dlunknown
14092 cat > conftest.$ac_ext <<EOF
14093#line 14093 "configure"
14094#include "confdefs.h"
14095
14096#if HAVE_DLFCN_H
14097#include <dlfcn.h>
14098#endif
14099
14100#include <stdio.h>
14101
14102#ifdef RTLD_GLOBAL
14103# define LT_DLGLOBAL RTLD_GLOBAL
14104#else
14105# ifdef DL_GLOBAL
14106# define LT_DLGLOBAL DL_GLOBAL
14107# else
14108# define LT_DLGLOBAL 0
14109# endif
14110#endif
14111
14112/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14113 find out it does not work in some platform. */
14114#ifndef LT_DLLAZY_OR_NOW
14115# ifdef RTLD_LAZY
14116# define LT_DLLAZY_OR_NOW RTLD_LAZY
14117# else
14118# ifdef DL_LAZY
14119# define LT_DLLAZY_OR_NOW DL_LAZY
14120# else
14121# ifdef RTLD_NOW
14122# define LT_DLLAZY_OR_NOW RTLD_NOW
14123# else
14124# ifdef DL_NOW
14125# define LT_DLLAZY_OR_NOW DL_NOW
14126# else
14127# define LT_DLLAZY_OR_NOW 0
14128# endif
14129# endif
14130# endif
14131# endif
14132#endif
14133
14134#ifdef __cplusplus
14135extern "C" void exit (int);
14136#endif
14137
14138void fnord() { int i=42;}
14139int main ()
14140{
14141 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14142 int status = $lt_dlunknown;
14143
14144 if (self)
14145 {
14146 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14147 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14148 /* dlclose (self); */
14149 }
14150
14151 exit (status);
14152}
14153EOF
14154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14155 (eval $ac_link) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14159 (./conftest; exit; ) 2>/dev/null
14160 lt_status=$?
14161 case x$lt_status in
14162 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14163 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14164 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14165 esac
14166 else :
14167 # compilation failed
14168 lt_cv_dlopen_self_static=no
14169 fi
14170fi
14171rm -fr conftest*
14172
14173
14174fi
14175echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14176echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14177 fi
14178
14179 CPPFLAGS="$save_CPPFLAGS"
14180 LDFLAGS="$save_LDFLAGS"
14181 LIBS="$save_LIBS"
14182 ;;
14183 esac
14184
14185 case $lt_cv_dlopen_self in
14186 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14187 *) enable_dlopen_self=unknown ;;
14188 esac
14189
14190 case $lt_cv_dlopen_self_static in
14191 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14192 *) enable_dlopen_self_static=unknown ;;
14193 esac
14194fi
14195
14196
14197# The else clause should only fire when bootstrapping the
14198# libtool distribution, otherwise you forgot to ship ltmain.sh
14199# with your package, and you will get complaints that there are
14200# no rules to generate ltmain.sh.
14201if test -f "$ltmain"; then
14202 # See if we are running on zsh, and set the options which allow our commands through
14203 # without removal of \ escapes.
14204 if test -n "${ZSH_VERSION+set}" ; then
14205 setopt NO_GLOB_SUBST
14206 fi
14207 # Now quote all the things that may contain metacharacters while being
14208 # careful not to overquote the AC_SUBSTed values. We take copies of the
14209 # variables and quote the copies for generation of the libtool script.
14210 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14211 SED SHELL STRIP \
14212 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14213 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14214 deplibs_check_method reload_flag reload_cmds need_locks \
14215 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14216 lt_cv_sys_global_symbol_to_c_name_address \
14217 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14218 old_postinstall_cmds old_postuninstall_cmds \
14219 compiler_CXX \
14220 CC_CXX \
14221 LD_CXX \
14222 lt_prog_compiler_wl_CXX \
14223 lt_prog_compiler_pic_CXX \
14224 lt_prog_compiler_static_CXX \
14225 lt_prog_compiler_no_builtin_flag_CXX \
14226 export_dynamic_flag_spec_CXX \
14227 thread_safe_flag_spec_CXX \
14228 whole_archive_flag_spec_CXX \
14229 enable_shared_with_static_runtimes_CXX \
14230 old_archive_cmds_CXX \
14231 old_archive_from_new_cmds_CXX \
14232 predep_objects_CXX \
14233 postdep_objects_CXX \
14234 predeps_CXX \
14235 postdeps_CXX \
14236 compiler_lib_search_path_CXX \
14237 archive_cmds_CXX \
14238 archive_expsym_cmds_CXX \
14239 postinstall_cmds_CXX \
14240 postuninstall_cmds_CXX \
14241 old_archive_from_expsyms_cmds_CXX \
14242 allow_undefined_flag_CXX \
14243 no_undefined_flag_CXX \
14244 export_symbols_cmds_CXX \
14245 hardcode_libdir_flag_spec_CXX \
14246 hardcode_libdir_flag_spec_ld_CXX \
14247 hardcode_libdir_separator_CXX \
14248 hardcode_automatic_CXX \
14249 module_cmds_CXX \
14250 module_expsym_cmds_CXX \
14251 lt_cv_prog_compiler_c_o_CXX \
14252 exclude_expsyms_CXX \
14253 include_expsyms_CXX; do
14254
14255 case $var in
14256 old_archive_cmds_CXX | \
14257 old_archive_from_new_cmds_CXX | \
14258 archive_cmds_CXX | \
14259 archive_expsym_cmds_CXX | \
14260 module_cmds_CXX | \
14261 module_expsym_cmds_CXX | \
14262 old_archive_from_expsyms_cmds_CXX | \
14263 export_symbols_cmds_CXX | \
14264 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14265 postinstall_cmds | postuninstall_cmds | \
14266 old_postinstall_cmds | old_postuninstall_cmds | \
14267 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14268 # Double-quote double-evaled strings.
14269 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14270 ;;
14271 *)
14272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14273 ;;
14274 esac
14275 done
14276
14277 case $lt_echo in
14278 *'\$0 --fallback-echo"')
14279 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14280 ;;
14281 esac
14282
14283cfgfile="$ofile"
14284
14285 cat <<__EOF__ >> "$cfgfile"
14286# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14287
14288# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14289
14290# Shell to use when invoking shell scripts.
14291SHELL=$lt_SHELL
14292
14293# Whether or not to build shared libraries.
14294build_libtool_libs=$enable_shared
14295
14296# Whether or not to build static libraries.
14297build_old_libs=$enable_static
14298
14299# Whether or not to add -lc for building shared libraries.
14300build_libtool_need_lc=$archive_cmds_need_lc_CXX
14301
14302# Whether or not to disallow shared libs when runtime libs are static
14303allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14304
14305# Whether or not to optimize for fast installation.
14306fast_install=$enable_fast_install
14307
14308# The host system.
14309host_alias=$host_alias
14310host=$host
14311
14312# An echo program that does not interpret backslashes.
14313echo=$lt_echo
14314
14315# The archiver.
14316AR=$lt_AR
14317AR_FLAGS=$lt_AR_FLAGS
14318
14319# A C compiler.
14320LTCC=$lt_LTCC
14321
14322# A language-specific compiler.
14323CC=$lt_compiler_CXX
14324
14325# Is the compiler the GNU C compiler?
14326with_gcc=$GCC_CXX
14327
14328# An ERE matcher.
14329EGREP=$lt_EGREP
14330
14331# The linker used to build libraries.
14332LD=$lt_LD_CXX
14333
14334# Whether we need hard or soft links.
14335LN_S=$lt_LN_S
14336
14337# A BSD-compatible nm program.
14338NM=$lt_NM
14339
14340# A symbol stripping program
14341STRIP=$lt_STRIP
14342
14343# Used to examine libraries when file_magic_cmd begins "file"
14344MAGIC_CMD=$MAGIC_CMD
14345
14346# Used on cygwin: DLL creation program.
14347DLLTOOL="$DLLTOOL"
14348
14349# Used on cygwin: object dumper.
14350OBJDUMP="$OBJDUMP"
14351
14352# Used on cygwin: assembler.
14353AS="$AS"
14354
14355# The name of the directory that contains temporary libtool files.
14356objdir=$objdir
14357
14358# How to create reloadable object files.
14359reload_flag=$lt_reload_flag
14360reload_cmds=$lt_reload_cmds
14361
14362# How to pass a linker flag through the compiler.
14363wl=$lt_lt_prog_compiler_wl_CXX
14364
14365# Object file suffix (normally "o").
14366objext="$ac_objext"
14367
14368# Old archive suffix (normally "a").
14369libext="$libext"
14370
14371# Shared library suffix (normally ".so").
14372shrext_cmds='$shrext_cmds'
14373
14374# Executable file suffix (normally "").
14375exeext="$exeext"
14376
14377# Additional compiler flags for building library objects.
14378pic_flag=$lt_lt_prog_compiler_pic_CXX
14379pic_mode=$pic_mode
14380
14381# What is the maximum length of a command?
14382max_cmd_len=$lt_cv_sys_max_cmd_len
14383
14384# Does compiler simultaneously support -c and -o options?
14385compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14386
14387# Must we lock files when doing compilation ?
14388need_locks=$lt_need_locks
14389
14390# Do we need the lib prefix for modules?
14391need_lib_prefix=$need_lib_prefix
14392
14393# Do we need a version for libraries?
14394need_version=$need_version
14395
14396# Whether dlopen is supported.
14397dlopen_support=$enable_dlopen
14398
14399# Whether dlopen of programs is supported.
14400dlopen_self=$enable_dlopen_self
14401
14402# Whether dlopen of statically linked programs is supported.
14403dlopen_self_static=$enable_dlopen_self_static
14404
14405# Compiler flag to prevent dynamic linking.
14406link_static_flag=$lt_lt_prog_compiler_static_CXX
14407
14408# Compiler flag to turn off builtin functions.
14409no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14410
14411# Compiler flag to allow reflexive dlopens.
14412export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14413
14414# Compiler flag to generate shared objects directly from archives.
14415whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14416
14417# Compiler flag to generate thread-safe objects.
14418thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14419
14420# Library versioning type.
14421version_type=$version_type
14422
14423# Format of library name prefix.
14424libname_spec=$lt_libname_spec
14425
14426# List of archive names. First name is the real one, the rest are links.
14427# The last name is the one that the linker finds with -lNAME.
14428library_names_spec=$lt_library_names_spec
14429
14430# The coded name of the library, if different from the real name.
14431soname_spec=$lt_soname_spec
14432
14433# Commands used to build and install an old-style archive.
14434RANLIB=$lt_RANLIB
14435old_archive_cmds=$lt_old_archive_cmds_CXX
14436old_postinstall_cmds=$lt_old_postinstall_cmds
14437old_postuninstall_cmds=$lt_old_postuninstall_cmds
14438
14439# Create an old-style archive from a shared archive.
14440old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14441
14442# Create a temporary old-style archive to link instead of a shared archive.
14443old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14444
14445# Commands used to build and install a shared archive.
14446archive_cmds=$lt_archive_cmds_CXX
14447archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14448postinstall_cmds=$lt_postinstall_cmds
14449postuninstall_cmds=$lt_postuninstall_cmds
14450
14451# Commands used to build a loadable module (assumed same as above if empty)
14452module_cmds=$lt_module_cmds_CXX
14453module_expsym_cmds=$lt_module_expsym_cmds_CXX
14454
14455# Commands to strip libraries.
14456old_striplib=$lt_old_striplib
14457striplib=$lt_striplib
14458
14459# Dependencies to place before the objects being linked to create a
14460# shared library.
14461predep_objects=$lt_predep_objects_CXX
14462
14463# Dependencies to place after the objects being linked to create a
14464# shared library.
14465postdep_objects=$lt_postdep_objects_CXX
14466
14467# Dependencies to place before the objects being linked to create a
14468# shared library.
14469predeps=$lt_predeps_CXX
14470
14471# Dependencies to place after the objects being linked to create a
14472# shared library.
14473postdeps=$lt_postdeps_CXX
14474
14475# The library search path used internally by the compiler when linking
14476# a shared library.
14477compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14478
14479# Method to check whether dependent libraries are shared objects.
14480deplibs_check_method=$lt_deplibs_check_method
14481
14482# Command to use when deplibs_check_method == file_magic.
14483file_magic_cmd=$lt_file_magic_cmd
14484
14485# Flag that allows shared libraries with undefined symbols to be built.
14486allow_undefined_flag=$lt_allow_undefined_flag_CXX
14487
14488# Flag that forces no undefined symbols.
14489no_undefined_flag=$lt_no_undefined_flag_CXX
14490
14491# Commands used to finish a libtool library installation in a directory.
14492finish_cmds=$lt_finish_cmds
14493
14494# Same as above, but a single script fragment to be evaled but not shown.
14495finish_eval=$lt_finish_eval
14496
14497# Take the output of nm and produce a listing of raw symbols and C names.
14498global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14499
14500# Transform the output of nm in a proper C declaration
14501global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14502
14503# Transform the output of nm in a C name address pair
14504global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14505
14506# This is the shared library runtime path variable.
14507runpath_var=$runpath_var
14508
14509# This is the shared library path variable.
14510shlibpath_var=$shlibpath_var
14511
14512# Is shlibpath searched before the hard-coded library search path?
14513shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14514
14515# How to hardcode a shared library path into an executable.
14516hardcode_action=$hardcode_action_CXX
14517
14518# Whether we should hardcode library paths into libraries.
14519hardcode_into_libs=$hardcode_into_libs
14520
14521# Flag to hardcode \$libdir into a binary during linking.
14522# This must work even if \$libdir does not exist.
14523hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14524
14525# If ld is used when linking, flag to hardcode \$libdir into
14526# a binary during linking. This must work even if \$libdir does
14527# not exist.
14528hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14529
14530# Whether we need a single -rpath flag with a separated argument.
14531hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14532
14533# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14534# resulting binary.
14535hardcode_direct=$hardcode_direct_CXX
14536
14537# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14538# resulting binary.
14539hardcode_minus_L=$hardcode_minus_L_CXX
14540
14541# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14542# the resulting binary.
14543hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14544
14545# Set to yes if building a shared library automatically hardcodes DIR into the library
14546# and all subsequent libraries and executables linked against it.
14547hardcode_automatic=$hardcode_automatic_CXX
14548
14549# Variables whose values should be saved in libtool wrapper scripts and
14550# restored at relink time.
14551variables_saved_for_relink="$variables_saved_for_relink"
14552
14553# Whether libtool must link a program against all its dependency libraries.
14554link_all_deplibs=$link_all_deplibs_CXX
14555
14556# Compile-time system search path for libraries
14557sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14558
14559# Run-time system search path for libraries
14560sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14561
14562# Fix the shell variable \$srcfile for the compiler.
14563fix_srcfile_path="$fix_srcfile_path_CXX"
14564
14565# Set to yes if exported symbols are required.
14566always_export_symbols=$always_export_symbols_CXX
14567
14568# The commands to list exported symbols.
14569export_symbols_cmds=$lt_export_symbols_cmds_CXX
14570
14571# The commands to extract the exported symbol list from a shared archive.
14572extract_expsyms_cmds=$lt_extract_expsyms_cmds
14573
14574# Symbols that should not be listed in the preloaded symbols.
14575exclude_expsyms=$lt_exclude_expsyms_CXX
14576
14577# Symbols that must always be exported.
14578include_expsyms=$lt_include_expsyms_CXX
14579
14580# ### END LIBTOOL TAG CONFIG: $tagname
14581
14582__EOF__
14583
14584
14585else
14586 # If there is no Makefile yet, we rely on a make rule to execute
14587 # `config.status --recheck' to rerun these tests and create the
14588 # libtool script then.
14589 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14590 if test -f "$ltmain_in"; then
14591 test -f Makefile && make "$ltmain"
14592 fi
14593fi
14594
14595
14596ac_ext=c
14597ac_cpp='$CPP $CPPFLAGS'
14598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14600ac_compiler_gnu=$ac_cv_c_compiler_gnu
14601
14602CC=$lt_save_CC
14603LDCXX=$LD
14604LD=$lt_save_LD
14605GCC=$lt_save_GCC
14606with_gnu_ldcxx=$with_gnu_ld
14607with_gnu_ld=$lt_save_with_gnu_ld
14608lt_cv_path_LDCXX=$lt_cv_path_LD
14609lt_cv_path_LD=$lt_save_path_LD
14610lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14611lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14612
14613 else
14614 tagname=""
14615 fi
14616 ;;
14617
14618 F77)
14619 if test -n "$F77" && test "X$F77" != "Xno"; then
14620
14621ac_ext=f
14622ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14623ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14624ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14625
14626
14627archive_cmds_need_lc_F77=no
14628allow_undefined_flag_F77=
14629always_export_symbols_F77=no
14630archive_expsym_cmds_F77=
14631export_dynamic_flag_spec_F77=
14632hardcode_direct_F77=no
14633hardcode_libdir_flag_spec_F77=
14634hardcode_libdir_flag_spec_ld_F77=
14635hardcode_libdir_separator_F77=
14636hardcode_minus_L_F77=no
14637hardcode_automatic_F77=no
14638module_cmds_F77=
14639module_expsym_cmds_F77=
14640link_all_deplibs_F77=unknown
14641old_archive_cmds_F77=$old_archive_cmds
14642no_undefined_flag_F77=
14643whole_archive_flag_spec_F77=
14644enable_shared_with_static_runtimes_F77=no
14645
14646# Source file extension for f77 test sources.
14647ac_ext=f
14648
14649# Object file extension for compiled f77 test sources.
14650objext=o
14651objext_F77=$objext
14652
14653# Code to be used in simple compile tests
14654lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14655
14656# Code to be used in simple link tests
14657lt_simple_link_test_code=" program t\n end\n"
14658
14659# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14660
14661# If no C compiler was specified, use CC.
14662LTCC=${LTCC-"$CC"}
14663
14664# Allow CC to be a program name with arguments.
14665compiler=$CC
14666
14667
14668# Allow CC to be a program name with arguments.
14669lt_save_CC="$CC"
14670CC=${F77-"f77"}
14671compiler=$CC
14672compiler_F77=$CC
14673cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14674
14675echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14676echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14677echo "$as_me:$LINENO: result: $can_build_shared" >&5
14678echo "${ECHO_T}$can_build_shared" >&6
14679
14680echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14681echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14682test "$can_build_shared" = "no" && enable_shared=no
14683
14684# On AIX, shared libraries and static libraries use the same namespace, and
14685# are all built from PIC.
14686case "$host_os" in
14687aix3*)
14688 test "$enable_shared" = yes && enable_static=no
14689 if test -n "$RANLIB"; then
14690 archive_cmds="$archive_cmds;\$RANLIB \$lib"
14691 postinstall_cmds='$RANLIB $lib'
14692 fi
14693 ;;
14694aix4* | aix5*)
14695 test "$enable_shared" = yes && enable_static=no
14696 ;;
14697esac
14698echo "$as_me:$LINENO: result: $enable_shared" >&5
14699echo "${ECHO_T}$enable_shared" >&6
14700
14701echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14702echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14703# Make sure either enable_shared or enable_static is yes.
14704test "$enable_shared" = yes || enable_static=yes
14705echo "$as_me:$LINENO: result: $enable_static" >&5
14706echo "${ECHO_T}$enable_static" >&6
14707
14708test "$ld_shlibs_F77" = no && can_build_shared=no
14709
14710GCC_F77="$G77"
14711LD_F77="$LD"
14712
14713lt_prog_compiler_wl_F77=
14714lt_prog_compiler_pic_F77=
14715lt_prog_compiler_static_F77=
14716
14717echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14718echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14719
14720 if test "$GCC" = yes; then
14721 lt_prog_compiler_wl_F77='-Wl,'
14722 lt_prog_compiler_static_F77='-static'
14723
14724 case $host_os in
14725 aix*)
14726 # All AIX code is PIC.
14727 if test "$host_cpu" = ia64; then
14728 # AIX 5 now supports IA64 processor
14729 lt_prog_compiler_static_F77='-Bstatic'
14730 fi
14731 ;;
14732
14733 amigaos*)
14734 # FIXME: we need at least 68020 code to build shared libraries, but
14735 # adding the `-m68020' flag to GCC prevents building anything better,
14736 # like `-m68040'.
14737 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14738 ;;
14739
14740 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14741 # PIC is the default for these OSes.
14742 ;;
14743
14744 mingw* | pw32* | os2*)
14745 # This hack is so that the source file can tell whether it is being
14746 # built for inclusion in a dll (and should export symbols for example).
14747 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14748 ;;
14749
14750 darwin* | rhapsody*)
14751 # PIC is the default on this platform
14752 # Common symbols not allowed in MH_DYLIB files
14753 lt_prog_compiler_pic_F77='-fno-common'
14754 ;;
14755
14756 msdosdjgpp*)
14757 # Just because we use GCC doesn't mean we suddenly get shared libraries
14758 # on systems that don't support them.
14759 lt_prog_compiler_can_build_shared_F77=no
14760 enable_shared=no
14761 ;;
14762
14763 sysv4*MP*)
14764 if test -d /usr/nec; then
14765 lt_prog_compiler_pic_F77=-Kconform_pic
14766 fi
14767 ;;
14768
14769 hpux*)
14770 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14771 # not for PA HP-UX.
14772 case "$host_cpu" in
14773 hppa*64*|ia64*)
14774 # +Z the default
14775 ;;
14776 *)
14777 lt_prog_compiler_pic_F77='-fPIC'
14778 ;;
14779 esac
14780 ;;
14781
14782 *)
14783 lt_prog_compiler_pic_F77='-fPIC'
14784 ;;
14785 esac
14786 else
14787 # PORTME Check for flag to pass linker flags through the system compiler.
14788 case $host_os in
14789 aix*)
14790 lt_prog_compiler_wl_F77='-Wl,'
14791 if test "$host_cpu" = ia64; then
14792 # AIX 5 now supports IA64 processor
14793 lt_prog_compiler_static_F77='-Bstatic'
14794 else
14795 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14796 fi
14797 ;;
14798 darwin*)
14799 # PIC is the default on this platform
14800 # Common symbols not allowed in MH_DYLIB files
14801 case "$cc_basename" in
14802 xlc*)
14803 lt_prog_compiler_pic_F77='-qnocommon'
14804 lt_prog_compiler_wl_F77='-Wl,'
14805 ;;
14806 esac
14807 ;;
14808
14809 mingw* | pw32* | os2*)
14810 # This hack is so that the source file can tell whether it is being
14811 # built for inclusion in a dll (and should export symbols for example).
14812 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14813 ;;
14814
14815 hpux9* | hpux10* | hpux11*)
14816 lt_prog_compiler_wl_F77='-Wl,'
14817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14818 # not for PA HP-UX.
14819 case "$host_cpu" in
14820 hppa*64*|ia64*)
14821 # +Z the default
14822 ;;
14823 *)
14824 lt_prog_compiler_pic_F77='+Z'
14825 ;;
14826 esac
14827 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14828 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14829 ;;
14830
14831 irix5* | irix6* | nonstopux*)
14832 lt_prog_compiler_wl_F77='-Wl,'
14833 # PIC (with -KPIC) is the default.
14834 lt_prog_compiler_static_F77='-non_shared'
14835 ;;
14836
14837 newsos6)
14838 lt_prog_compiler_pic_F77='-KPIC'
14839 lt_prog_compiler_static_F77='-Bstatic'
14840 ;;
14841
14842 linux*)
14843 case $CC in
14844 icc* | ecc*)
14845 lt_prog_compiler_wl_F77='-Wl,'
14846 lt_prog_compiler_pic_F77='-KPIC'
14847 lt_prog_compiler_static_F77='-static'
14848 ;;
14849 ccc*)
14850 lt_prog_compiler_wl_F77='-Wl,'
14851 # All Alpha code is PIC.
14852 lt_prog_compiler_static_F77='-non_shared'
14853 ;;
14854 esac
14855 ;;
14856
14857 osf3* | osf4* | osf5*)
14858 lt_prog_compiler_wl_F77='-Wl,'
14859 # All OSF/1 code is PIC.
14860 lt_prog_compiler_static_F77='-non_shared'
14861 ;;
14862
14863 sco3.2v5*)
14864 lt_prog_compiler_pic_F77='-Kpic'
14865 lt_prog_compiler_static_F77='-dn'
14866 ;;
14867
14868 solaris*)
14869 lt_prog_compiler_wl_F77='-Wl,'
14870 lt_prog_compiler_pic_F77='-KPIC'
14871 lt_prog_compiler_static_F77='-Bstatic'
14872 ;;
14873
14874 sunos4*)
14875 lt_prog_compiler_wl_F77='-Qoption ld '
14876 lt_prog_compiler_pic_F77='-PIC'
14877 lt_prog_compiler_static_F77='-Bstatic'
14878 ;;
14879
14880 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14881 lt_prog_compiler_wl_F77='-Wl,'
14882 lt_prog_compiler_pic_F77='-KPIC'
14883 lt_prog_compiler_static_F77='-Bstatic'
14884 ;;
14885
14886 sysv4*MP*)
14887 if test -d /usr/nec ;then
14888 lt_prog_compiler_pic_F77='-Kconform_pic'
14889 lt_prog_compiler_static_F77='-Bstatic'
14890 fi
14891 ;;
14892
14893 uts4*)
14894 lt_prog_compiler_pic_F77='-pic'
14895 lt_prog_compiler_static_F77='-Bstatic'
14896 ;;
14897
14898 *)
14899 lt_prog_compiler_can_build_shared_F77=no
14900 ;;
14901 esac
14902 fi
14903
14904echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14905echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14906
14907#
14908# Check to make sure the PIC flag actually works.
14909#
14910if test -n "$lt_prog_compiler_pic_F77"; then
14911
14912echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14913echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14914if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14916else
14917 lt_prog_compiler_pic_works_F77=no
14918 ac_outfile=conftest.$ac_objext
14919 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14920 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14921 # Insert the option either (1) after the last *FLAGS variable, or
14922 # (2) before a word containing "conftest.", or (3) at the end.
14923 # Note that $ac_compile itself does not contain backslashes and begins
14924 # with a dollar sign (not a hyphen), so the echo should work correctly.
14925 # The option is referenced via a variable to avoid confusing sed.
14926 lt_compile=`echo "$ac_compile" | $SED \
14927 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14929 -e 's:$: $lt_compiler_flag:'`
14930 (eval echo "\"\$as_me:14930: $lt_compile\"" >&5)
14931 (eval "$lt_compile" 2>conftest.err)
14932 ac_status=$?
14933 cat conftest.err >&5
14934 echo "$as_me:14934: \$? = $ac_status" >&5
14935 if (exit $ac_status) && test -s "$ac_outfile"; then
14936 # The compiler can only warn and ignore the option if not recognized
14937 # So say no if there are warnings
14938 if test ! -s conftest.err; then
14939 lt_prog_compiler_pic_works_F77=yes
14940 fi
14941 fi
14942 $rm conftest*
14943
14944fi
14945echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14946echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14947
14948if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14949 case $lt_prog_compiler_pic_F77 in
14950 "" | " "*) ;;
14951 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14952 esac
14953else
14954 lt_prog_compiler_pic_F77=
14955 lt_prog_compiler_can_build_shared_F77=no
14956fi
14957
14958fi
14959case "$host_os" in
14960 # For platforms which do not support PIC, -DPIC is meaningless:
14961 *djgpp*)
14962 lt_prog_compiler_pic_F77=
14963 ;;
14964 *)
14965 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14966 ;;
14967esac
14968
14969echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14970echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14971if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14973else
14974 lt_cv_prog_compiler_c_o_F77=no
14975 $rm -r conftest 2>/dev/null
14976 mkdir conftest
14977 cd conftest
14978 mkdir out
14979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14980
14981 lt_compiler_flag="-o out/conftest2.$ac_objext"
14982 # Insert the option either (1) after the last *FLAGS variable, or
14983 # (2) before a word containing "conftest.", or (3) at the end.
14984 # Note that $ac_compile itself does not contain backslashes and begins
14985 # with a dollar sign (not a hyphen), so the echo should work correctly.
14986 lt_compile=`echo "$ac_compile" | $SED \
14987 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14989 -e 's:$: $lt_compiler_flag:'`
14990 (eval echo "\"\$as_me:14990: $lt_compile\"" >&5)
14991 (eval "$lt_compile" 2>out/conftest.err)
14992 ac_status=$?
14993 cat out/conftest.err >&5
14994 echo "$as_me:14994: \$? = $ac_status" >&5
14995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14996 then
14997 # The compiler can only warn and ignore the option if not recognized
14998 # So say no if there are warnings
14999 if test ! -s out/conftest.err; then
15000 lt_cv_prog_compiler_c_o_F77=yes
15001 fi
15002 fi
15003 chmod u+w .
15004 $rm conftest*
15005 # SGI C++ compiler will create directory out/ii_files/ for
15006 # template instantiation
15007 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15008 $rm out/* && rmdir out
15009 cd ..
15010 rmdir conftest
15011 $rm conftest*
15012
15013fi
15014echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15015echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15016
15017
15018hard_links="nottested"
15019if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15020 # do not overwrite the value of need_locks provided by the user
15021 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15022echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15023 hard_links=yes
15024 $rm conftest*
15025 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15026 touch conftest.a
15027 ln conftest.a conftest.b 2>&5 || hard_links=no
15028 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15029 echo "$as_me:$LINENO: result: $hard_links" >&5
15030echo "${ECHO_T}$hard_links" >&6
15031 if test "$hard_links" = no; then
15032 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15033echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15034 need_locks=warn
15035 fi
15036else
15037 need_locks=no
15038fi
15039
15040echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15041echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15042
15043 runpath_var=
15044 allow_undefined_flag_F77=
15045 enable_shared_with_static_runtimes_F77=no
15046 archive_cmds_F77=
15047 archive_expsym_cmds_F77=
15048 old_archive_From_new_cmds_F77=
15049 old_archive_from_expsyms_cmds_F77=
15050 export_dynamic_flag_spec_F77=
15051 whole_archive_flag_spec_F77=
15052 thread_safe_flag_spec_F77=
15053 hardcode_libdir_flag_spec_F77=
15054 hardcode_libdir_flag_spec_ld_F77=
15055 hardcode_libdir_separator_F77=
15056 hardcode_direct_F77=no
15057 hardcode_minus_L_F77=no
15058 hardcode_shlibpath_var_F77=unsupported
15059 link_all_deplibs_F77=unknown
15060 hardcode_automatic_F77=no
15061 module_cmds_F77=
15062 module_expsym_cmds_F77=
15063 always_export_symbols_F77=no
15064 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15065 # include_expsyms should be a list of space-separated symbols to be *always*
15066 # included in the symbol list
15067 include_expsyms_F77=
15068 # exclude_expsyms can be an extended regexp of symbols to exclude
15069 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15071 # as well as any symbol that contains `d'.
15072 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15074 # platforms (ab)use it in PIC code, but their linkers get confused if
15075 # the symbol is explicitly referenced. Since portable code cannot
15076 # rely on this symbol name, it's probably fine to never include it in
15077 # preloaded symbol tables.
15078 extract_expsyms_cmds=
15079
15080 case $host_os in
15081 cygwin* | mingw* | pw32*)
15082 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15083 # When not using gcc, we currently assume that we are using
15084 # Microsoft Visual C++.
15085 if test "$GCC" != yes; then
15086 with_gnu_ld=no
15087 fi
15088 ;;
15089 openbsd*)
15090 with_gnu_ld=no
15091 ;;
15092 esac
15093
15094 ld_shlibs_F77=yes
15095 if test "$with_gnu_ld" = yes; then
15096 # If archive_cmds runs LD, not CC, wlarc should be empty
15097 wlarc='${wl}'
15098
15099 # See if GNU ld supports shared libraries.
15100 case $host_os in
15101 aix3* | aix4* | aix5*)
15102 # On AIX/PPC, the GNU linker is very broken
15103 if test "$host_cpu" != ia64; then
15104 ld_shlibs_F77=no
15105 cat <<EOF 1>&2
15106
15107*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15108*** to be unable to reliably create shared libraries on AIX.
15109*** Therefore, libtool is disabling shared libraries support. If you
15110*** really care for shared libraries, you may want to modify your PATH
15111*** so that a non-GNU linker is found, and then restart.
15112
15113EOF
15114 fi
15115 ;;
15116
15117 amigaos*)
15118 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)'
15119 hardcode_libdir_flag_spec_F77='-L$libdir'
15120 hardcode_minus_L_F77=yes
15121
15122 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15123 # that the semantics of dynamic libraries on AmigaOS, at least up
15124 # to version 4, is to share data among multiple programs linked
15125 # with the same dynamic library. Since this doesn't match the
15126 # behavior of shared libraries on other platforms, we can't use
15127 # them.
15128 ld_shlibs_F77=no
15129 ;;
15130
15131 beos*)
15132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15133 allow_undefined_flag_F77=unsupported
15134 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15135 # support --undefined. This deserves some investigation. FIXME
15136 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15137 else
15138 ld_shlibs_F77=no
15139 fi
15140 ;;
15141
15142 cygwin* | mingw* | pw32*)
15143 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15144 # as there is no search path for DLLs.
15145 hardcode_libdir_flag_spec_F77='-L$libdir'
15146 allow_undefined_flag_F77=unsupported
15147 always_export_symbols_F77=no
15148 enable_shared_with_static_runtimes_F77=yes
15149 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15150
15151 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15152 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15153 # If the export-symbols file already is a .def file (1st line
15154 # is EXPORTS), use it as is; otherwise, prepend...
15155 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15156 cp $export_symbols $output_objdir/$soname.def;
15157 else
15158 echo EXPORTS > $output_objdir/$soname.def;
15159 cat $export_symbols >> $output_objdir/$soname.def;
15160 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15161 else
15162 ld_shlibs=no
15163 fi
15164 ;;
15165
15166 netbsd*)
15167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15168 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15169 wlarc=
15170 else
15171 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15173 fi
15174 ;;
15175
15176 solaris* | sysv5*)
15177 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15178 ld_shlibs_F77=no
15179 cat <<EOF 1>&2
15180
15181*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15182*** create shared libraries on Solaris systems. Therefore, libtool
15183*** is disabling shared libraries support. We urge you to upgrade GNU
15184*** binutils to release 2.9.1 or newer. Another option is to modify
15185*** your PATH or compiler configuration so that the native linker is
15186*** used, and then restart.
15187
15188EOF
15189 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15190 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15191 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15192 else
15193 ld_shlibs_F77=no
15194 fi
15195 ;;
15196
15197 sunos4*)
15198 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15199 wlarc=
15200 hardcode_direct_F77=yes
15201 hardcode_shlibpath_var_F77=no
15202 ;;
15203
15204 linux*)
15205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15206 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15207 archive_cmds_F77="$tmp_archive_cmds"
15208 supports_anon_versioning=no
15209 case `$LD -v 2>/dev/null` in
15210 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15211 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15212 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15213 *\ 2.11.*) ;; # other 2.11 versions
15214 *) supports_anon_versioning=yes ;;
15215 esac
15216 if test $supports_anon_versioning = yes; then
15217 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
15218 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15219 else
15220 archive_expsym_cmds_F77="$tmp_archive_cmds"
15221 fi
15222 else
15223 ld_shlibs_F77=no
15224 fi
15225 ;;
15226
15227 *)
15228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15229 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15231 else
15232 ld_shlibs_F77=no
15233 fi
15234 ;;
15235 esac
15236
15237 if test "$ld_shlibs_F77" = yes; then
15238 runpath_var=LD_RUN_PATH
15239 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15240 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15241 # ancient GNU ld didn't support --whole-archive et. al.
15242 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15243 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15244 else
15245 whole_archive_flag_spec_F77=
15246 fi
15247 fi
15248 else
15249 # PORTME fill in a description of your system's linker (not GNU ld)
15250 case $host_os in
15251 aix3*)
15252 allow_undefined_flag_F77=unsupported
15253 always_export_symbols_F77=yes
15254 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'
15255 # Note: this linker hardcodes the directories in LIBPATH if there
15256 # are no directories specified by -L.
15257 hardcode_minus_L_F77=yes
15258 if test "$GCC" = yes && test -z "$link_static_flag"; then
15259 # Neither direct hardcoding nor static linking is supported with a
15260 # broken collect2.
15261 hardcode_direct_F77=unsupported
15262 fi
15263 ;;
15264
15265 aix4* | aix5*)
15266 if test "$host_cpu" = ia64; then
15267 # On IA64, the linker does run time linking by default, so we don't
15268 # have to do anything special.
15269 aix_use_runtimelinking=no
15270 exp_sym_flag='-Bexport'
15271 no_entry_flag=""
15272 else
15273 # If we're using GNU nm, then we don't want the "-C" option.
15274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15275 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15276 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'
15277 else
15278 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'
15279 fi
15280 aix_use_runtimelinking=no
15281
15282 # Test if we are trying to use run time linking or normal
15283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15284 # need to do runtime linking.
15285 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15286 for ld_flag in $LDFLAGS; do
15287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15288 aix_use_runtimelinking=yes
15289 break
15290 fi
15291 done
15292 esac
15293
15294 exp_sym_flag='-bexport'
15295 no_entry_flag='-bnoentry'
15296 fi
15297
15298 # When large executables or shared objects are built, AIX ld can
15299 # have problems creating the table of contents. If linking a library
15300 # or program results in "error TOC overflow" add -mminimal-toc to
15301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15303
15304 archive_cmds_F77=''
15305 hardcode_direct_F77=yes
15306 hardcode_libdir_separator_F77=':'
15307 link_all_deplibs_F77=yes
15308
15309 if test "$GCC" = yes; then
15310 case $host_os in aix4.012|aix4.012.*)
15311 # We only want to do this on AIX 4.2 and lower, the check
15312 # below for broken collect2 doesn't work under 4.3+
15313 collect2name=`${CC} -print-prog-name=collect2`
15314 if test -f "$collect2name" && \
15315 strings "$collect2name" | grep resolve_lib_name >/dev/null
15316 then
15317 # We have reworked collect2
15318 hardcode_direct_F77=yes
15319 else
15320 # We have old collect2
15321 hardcode_direct_F77=unsupported
15322 # It fails to find uninstalled libraries when the uninstalled
15323 # path is not listed in the libpath. Setting hardcode_minus_L
15324 # to unsupported forces relinking
15325 hardcode_minus_L_F77=yes
15326 hardcode_libdir_flag_spec_F77='-L$libdir'
15327 hardcode_libdir_separator_F77=
15328 fi
15329 esac
15330 shared_flag='-shared'
15331 else
15332 # not using gcc
15333 if test "$host_cpu" = ia64; then
15334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15335 # chokes on -Wl,-G. The following line is correct:
15336 shared_flag='-G'
15337 else
15338 if test "$aix_use_runtimelinking" = yes; then
15339 shared_flag='${wl}-G'
15340 else
15341 shared_flag='${wl}-bM:SRE'
15342 fi
15343 fi
15344 fi
15345
15346 # It seems that -bexpall does not export symbols beginning with
15347 # underscore (_), so it is better to generate a list of symbols to export.
15348 always_export_symbols_F77=yes
15349 if test "$aix_use_runtimelinking" = yes; then
15350 # Warning - without using the other runtime loading flags (-brtl),
15351 # -berok will link without error, but may produce a broken library.
15352 allow_undefined_flag_F77='-berok'
15353 # Determine the default libpath from the value encoded in an empty executable.
15354 cat >conftest.$ac_ext <<_ACEOF
15355 program main
15356
15357 end
15358_ACEOF
15359rm -f conftest.$ac_objext conftest$ac_exeext
15360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15361 (eval $ac_link) 2>conftest.er1
15362 ac_status=$?
15363 grep -v '^ *+' conftest.er1 >conftest.err
15364 rm -f conftest.er1
15365 cat conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } &&
15368 { ac_try='test -z "$ac_f77_werror_flag"
15369 || test ! -s conftest.err'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest$ac_exeext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381
15382aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15383}'`
15384# Check for a 64-bit object if we didn't find anything.
15385if 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; }
15386}'`; fi
15387else
15388 echo "$as_me: failed program was:" >&5
15389sed 's/^/| /' conftest.$ac_ext >&5
15390
15391fi
15392rm -f conftest.err conftest.$ac_objext \
15393 conftest$ac_exeext conftest.$ac_ext
15394if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15395
15396 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15397 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"
15398 else
15399 if test "$host_cpu" = ia64; then
15400 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15401 allow_undefined_flag_F77="-z nodefs"
15402 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"
15403 else
15404 # Determine the default libpath from the value encoded in an empty executable.
15405 cat >conftest.$ac_ext <<_ACEOF
15406 program main
15407
15408 end
15409_ACEOF
15410rm -f conftest.$ac_objext conftest$ac_exeext
15411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15412 (eval $ac_link) 2>conftest.er1
15413 ac_status=$?
15414 grep -v '^ *+' conftest.er1 >conftest.err
15415 rm -f conftest.er1
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -z "$ac_f77_werror_flag"
15420 || test ! -s conftest.err'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest$ac_exeext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432
15433aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15434}'`
15435# Check for a 64-bit object if we didn't find anything.
15436if 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; }
15437}'`; fi
15438else
15439 echo "$as_me: failed program was:" >&5
15440sed 's/^/| /' conftest.$ac_ext >&5
15441
15442fi
15443rm -f conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
15445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15446
15447 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15448 # Warning - without using the other run time loading flags,
15449 # -berok will link without error, but may produce a broken library.
15450 no_undefined_flag_F77=' ${wl}-bernotok'
15451 allow_undefined_flag_F77=' ${wl}-berok'
15452 # -bexpall does not export symbols beginning with underscore (_)
15453 always_export_symbols_F77=yes
15454 # Exported symbols can be pulled into shared objects from archives
15455 whole_archive_flag_spec_F77=' '
15456 archive_cmds_need_lc_F77=yes
15457 # This is similar to how AIX traditionally builds it's shared libraries.
15458 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'
15459 fi
15460 fi
15461 ;;
15462
15463 amigaos*)
15464 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)'
15465 hardcode_libdir_flag_spec_F77='-L$libdir'
15466 hardcode_minus_L_F77=yes
15467 # see comment about different semantics on the GNU ld section
15468 ld_shlibs_F77=no
15469 ;;
15470
15471 bsdi[45]*)
15472 export_dynamic_flag_spec_F77=-rdynamic
15473 ;;
15474
15475 cygwin* | mingw* | pw32*)
15476 # When not using gcc, we currently assume that we are using
15477 # Microsoft Visual C++.
15478 # hardcode_libdir_flag_spec is actually meaningless, as there is
15479 # no search path for DLLs.
15480 hardcode_libdir_flag_spec_F77=' '
15481 allow_undefined_flag_F77=unsupported
15482 # Tell ltmain to make .lib files, not .a files.
15483 libext=lib
15484 # Tell ltmain to make .dll files, not .so files.
15485 shrext_cmds=".dll"
15486 # FIXME: Setting linknames here is a bad hack.
15487 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
15488 # The linker will automatically build a .lib file if we build a DLL.
15489 old_archive_From_new_cmds_F77='true'
15490 # FIXME: Should let the user specify the lib program.
15491 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15492 fix_srcfile_path='`cygpath -w "$srcfile"`'
15493 enable_shared_with_static_runtimes_F77=yes
15494 ;;
15495
15496 darwin* | rhapsody*)
15497 case "$host_os" in
15498 rhapsody* | darwin1.[012])
15499 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15500 ;;
15501 *) # Darwin 1.3 on
15502 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15503 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15504 else
15505 case ${MACOSX_DEPLOYMENT_TARGET} in
15506 10.[012])
15507 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15508 ;;
15509 10.*)
15510 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15511 ;;
15512 esac
15513 fi
15514 ;;
15515 esac
15516 archive_cmds_need_lc_F77=no
15517 hardcode_direct_F77=no
15518 hardcode_automatic_F77=yes
15519 hardcode_shlibpath_var_F77=unsupported
15520 whole_archive_flag_spec_F77=''
15521 link_all_deplibs_F77=yes
15522 if test "$GCC" = yes ; then
15523 output_verbose_link_cmd='echo'
15524 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15525 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15526 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15527 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15528 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}'
15529 else
15530 case "$cc_basename" in
15531 xlc*)
15532 output_verbose_link_cmd='echo'
15533 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15534 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15536 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15537 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}'
15538 ;;
15539 *)
15540 ld_shlibs_F77=no
15541 ;;
15542 esac
15543 fi
15544 ;;
15545
15546 dgux*)
15547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_libdir_flag_spec_F77='-L$libdir'
15549 hardcode_shlibpath_var_F77=no
15550 ;;
15551
15552 freebsd1*)
15553 ld_shlibs_F77=no
15554 ;;
15555
15556 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15557 # support. Future versions do this automatically, but an explicit c++rt0.o
15558 # does not break anything, and helps significantly (at the cost of a little
15559 # extra space).
15560 freebsd2.2*)
15561 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15562 hardcode_libdir_flag_spec_F77='-R$libdir'
15563 hardcode_direct_F77=yes
15564 hardcode_shlibpath_var_F77=no
15565 ;;
15566
15567 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15568 freebsd2*)
15569 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_direct_F77=yes
15571 hardcode_minus_L_F77=yes
15572 hardcode_shlibpath_var_F77=no
15573 ;;
15574
15575 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15576 freebsd* | kfreebsd*-gnu)
15577 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15578 hardcode_libdir_flag_spec_F77='-R$libdir'
15579 hardcode_direct_F77=yes
15580 hardcode_shlibpath_var_F77=no
15581 ;;
15582
15583 hpux9*)
15584 if test "$GCC" = yes; then
15585 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'
15586 else
15587 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'
15588 fi
15589 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15590 hardcode_libdir_separator_F77=:
15591 hardcode_direct_F77=yes
15592
15593 # hardcode_minus_L: Not really in the search PATH,
15594 # but as the default location of the library.
15595 hardcode_minus_L_F77=yes
15596 export_dynamic_flag_spec_F77='${wl}-E'
15597 ;;
15598
15599 hpux10* | hpux11*)
15600 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15601 case "$host_cpu" in
15602 hppa*64*|ia64*)
15603 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15604 ;;
15605 *)
15606 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15607 ;;
15608 esac
15609 else
15610 case "$host_cpu" in
15611 hppa*64*|ia64*)
15612 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15613 ;;
15614 *)
15615 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15616 ;;
15617 esac
15618 fi
15619 if test "$with_gnu_ld" = no; then
15620 case "$host_cpu" in
15621 hppa*64*)
15622 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15623 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15624 hardcode_libdir_separator_F77=:
15625 hardcode_direct_F77=no
15626 hardcode_shlibpath_var_F77=no
15627 ;;
15628 ia64*)
15629 hardcode_libdir_flag_spec_F77='-L$libdir'
15630 hardcode_direct_F77=no
15631 hardcode_shlibpath_var_F77=no
15632
15633 # hardcode_minus_L: Not really in the search PATH,
15634 # but as the default location of the library.
15635 hardcode_minus_L_F77=yes
15636 ;;
15637 *)
15638 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15639 hardcode_libdir_separator_F77=:
15640 hardcode_direct_F77=yes
15641 export_dynamic_flag_spec_F77='${wl}-E'
15642
15643 # hardcode_minus_L: Not really in the search PATH,
15644 # but as the default location of the library.
15645 hardcode_minus_L_F77=yes
15646 ;;
15647 esac
15648 fi
15649 ;;
15650
15651 irix5* | irix6* | nonstopux*)
15652 if test "$GCC" = yes; then
15653 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'
15654 else
15655 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'
15656 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15657 fi
15658 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15659 hardcode_libdir_separator_F77=:
15660 link_all_deplibs_F77=yes
15661 ;;
15662
15663 netbsd*)
15664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15665 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15666 else
15667 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15668 fi
15669 hardcode_libdir_flag_spec_F77='-R$libdir'
15670 hardcode_direct_F77=yes
15671 hardcode_shlibpath_var_F77=no
15672 ;;
15673
15674 newsos6)
15675 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15676 hardcode_direct_F77=yes
15677 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15678 hardcode_libdir_separator_F77=:
15679 hardcode_shlibpath_var_F77=no
15680 ;;
15681
15682 openbsd*)
15683 hardcode_direct_F77=yes
15684 hardcode_shlibpath_var_F77=no
15685 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15686 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15687 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15688 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15689 export_dynamic_flag_spec_F77='${wl}-E'
15690 else
15691 case $host_os in
15692 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15693 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15694 hardcode_libdir_flag_spec_F77='-R$libdir'
15695 ;;
15696 *)
15697 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15698 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15699 ;;
15700 esac
15701 fi
15702 ;;
15703
15704 os2*)
15705 hardcode_libdir_flag_spec_F77='-L$libdir'
15706 hardcode_minus_L_F77=yes
15707 allow_undefined_flag_F77=unsupported
15708 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'
15709 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15710 ;;
15711
15712 osf3*)
15713 if test "$GCC" = yes; then
15714 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15715 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'
15716 else
15717 allow_undefined_flag_F77=' -expect_unresolved \*'
15718 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'
15719 fi
15720 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15721 hardcode_libdir_separator_F77=:
15722 ;;
15723
15724 osf4* | osf5*) # as osf3* with the addition of -msym flag
15725 if test "$GCC" = yes; then
15726 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15727 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'
15728 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15729 else
15730 allow_undefined_flag_F77=' -expect_unresolved \*'
15731 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'
15732 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; $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'
15733 # Both c and cxx compiler support -rpath directly
15734 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15735 fi
15736 hardcode_libdir_separator_F77=:
15737 ;;
15738
15739 sco3.2v5*)
15740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_shlibpath_var_F77=no
15742 export_dynamic_flag_spec_F77='${wl}-Bexport'
15743 runpath_var=LD_RUN_PATH
15744 hardcode_runpath_var=yes
15745 ;;
15746
15747 solaris*)
15748 no_undefined_flag_F77=' -z text'
15749 if test "$GCC" = yes; then
15750 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15751 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
15752 else
15753 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
15755 fi
15756 hardcode_libdir_flag_spec_F77='-R$libdir'
15757 hardcode_shlibpath_var_F77=no
15758 case $host_os in
15759 solaris2.[0-5] | solaris2.[0-5].*) ;;
15760 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15761 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15762 esac
15763 link_all_deplibs_F77=yes
15764 ;;
15765
15766 sunos4*)
15767 if test "x$host_vendor" = xsequent; then
15768 # Use $CC to link under sequent, because it throws in some extra .o
15769 # files that make .init and .fini sections work.
15770 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15771 else
15772 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15773 fi
15774 hardcode_libdir_flag_spec_F77='-L$libdir'
15775 hardcode_direct_F77=yes
15776 hardcode_minus_L_F77=yes
15777 hardcode_shlibpath_var_F77=no
15778 ;;
15779
15780 sysv4)
15781 case $host_vendor in
15782 sni)
15783 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15784 hardcode_direct_F77=yes # is this really true???
15785 ;;
15786 siemens)
15787 ## LD is ld it makes a PLAMLIB
15788 ## CC just makes a GrossModule.
15789 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15790 reload_cmds_F77='$CC -r -o $output$reload_objs'
15791 hardcode_direct_F77=no
15792 ;;
15793 motorola)
15794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15795 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15796 ;;
15797 esac
15798 runpath_var='LD_RUN_PATH'
15799 hardcode_shlibpath_var_F77=no
15800 ;;
15801
15802 sysv4.3*)
15803 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15804 hardcode_shlibpath_var_F77=no
15805 export_dynamic_flag_spec_F77='-Bexport'
15806 ;;
15807
15808 sysv4*MP*)
15809 if test -d /usr/nec; then
15810 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15811 hardcode_shlibpath_var_F77=no
15812 runpath_var=LD_RUN_PATH
15813 hardcode_runpath_var=yes
15814 ld_shlibs_F77=yes
15815 fi
15816 ;;
15817
15818 sysv4.2uw2*)
15819 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15820 hardcode_direct_F77=yes
15821 hardcode_minus_L_F77=no
15822 hardcode_shlibpath_var_F77=no
15823 hardcode_runpath_var=yes
15824 runpath_var=LD_RUN_PATH
15825 ;;
15826
15827 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15828 no_undefined_flag_F77='${wl}-z ${wl}text'
15829 if test "$GCC" = yes; then
15830 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831 else
15832 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833 fi
15834 runpath_var='LD_RUN_PATH'
15835 hardcode_shlibpath_var_F77=no
15836 ;;
15837
15838 sysv5*)
15839 no_undefined_flag_F77=' -z text'
15840 # $CC -shared without GNU ld will not create a library from C++
15841 # object files and a static libstdc++, better avoid it by now
15842 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
15844 hardcode_libdir_flag_spec_F77=
15845 hardcode_shlibpath_var_F77=no
15846 runpath_var='LD_RUN_PATH'
15847 ;;
15848
15849 uts4*)
15850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15851 hardcode_libdir_flag_spec_F77='-L$libdir'
15852 hardcode_shlibpath_var_F77=no
15853 ;;
15854
15855 *)
15856 ld_shlibs_F77=no
15857 ;;
15858 esac
15859 fi
15860
15861echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15862echo "${ECHO_T}$ld_shlibs_F77" >&6
15863test "$ld_shlibs_F77" = no && can_build_shared=no
15864
15865variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15866if test "$GCC" = yes; then
15867 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15868fi
15869
15870#
15871# Do we need to explicitly link libc?
15872#
15873case "x$archive_cmds_need_lc_F77" in
15874x|xyes)
15875 # Assume -lc should be added
15876 archive_cmds_need_lc_F77=yes
15877
15878 if test "$enable_shared" = yes && test "$GCC" = yes; then
15879 case $archive_cmds_F77 in
15880 *'~'*)
15881 # FIXME: we may have to deal with multi-command sequences.
15882 ;;
15883 '$CC '*)
15884 # Test whether the compiler implicitly links with -lc since on some
15885 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15886 # to ld, don't add -lc before -lgcc.
15887 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15888echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15889 $rm conftest*
15890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15891
15892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15893 (eval $ac_compile) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } 2>conftest.err; then
15897 soname=conftest
15898 lib=conftest
15899 libobjs=conftest.$ac_objext
15900 deplibs=
15901 wl=$lt_prog_compiler_wl_F77
15902 compiler_flags=-v
15903 linker_flags=-v
15904 verstring=
15905 output_objdir=.
15906 libname=conftest
15907 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15908 allow_undefined_flag_F77=
15909 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15910 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }
15914 then
15915 archive_cmds_need_lc_F77=no
15916 else
15917 archive_cmds_need_lc_F77=yes
15918 fi
15919 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15920 else
15921 cat conftest.err 1>&5
15922 fi
15923 $rm conftest*
15924 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15925echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15926 ;;
15927 esac
15928 fi
15929 ;;
15930esac
15931
15932echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15933echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15934library_names_spec=
15935libname_spec='lib$name'
15936soname_spec=
15937shrext_cmds=".so"
15938postinstall_cmds=
15939postuninstall_cmds=
15940finish_cmds=
15941finish_eval=
15942shlibpath_var=
15943shlibpath_overrides_runpath=unknown
15944version_type=none
15945dynamic_linker="$host_os ld.so"
15946sys_lib_dlsearch_path_spec="/lib /usr/lib"
15947if test "$GCC" = yes; then
15948 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15949 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15950 # if the path contains ";" then we assume it to be the separator
15951 # otherwise default to the standard path separator (i.e. ":") - it is
15952 # assumed that no part of a normal pathname contains ";" but that should
15953 # okay in the real world where ";" in dirpaths is itself problematic.
15954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15955 else
15956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15957 fi
15958else
15959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15960fi
15961need_lib_prefix=unknown
15962hardcode_into_libs=no
15963
15964# when you set need_version to no, make sure it does not cause -set_version
15965# flags to be left without arguments
15966need_version=unknown
15967
15968case $host_os in
15969aix3*)
15970 version_type=linux
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15972 shlibpath_var=LIBPATH
15973
15974 # AIX 3 has no versioning support, so we append a major version to the name.
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 ;;
15977
15978aix4* | aix5*)
15979 version_type=linux
15980 need_lib_prefix=no
15981 need_version=no
15982 hardcode_into_libs=yes
15983 if test "$host_cpu" = ia64; then
15984 # AIX 5 supports IA64
15985 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 else
15988 # With GCC up to 2.95.x, collect2 would create an import file
15989 # for dependence libraries. The import file would start with
15990 # the line `#! .'. This would cause the generated library to
15991 # depend on `.', always an invalid library. This was fixed in
15992 # development snapshots of GCC prior to 3.0.
15993 case $host_os in
15994 aix4 | aix4.[01] | aix4.[01].*)
15995 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15996 echo ' yes '
15997 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15998 :
15999 else
16000 can_build_shared=no
16001 fi
16002 ;;
16003 esac
16004 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16005 # soname into executable. Probably we can add versioning support to
16006 # collect2, so additional links can be useful in future.
16007 if test "$aix_use_runtimelinking" = yes; then
16008 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16009 # instead of lib<name>.a to let people know that these are not
16010 # typical AIX shared libraries.
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012 else
16013 # We preserve .a as extension for shared libraries through AIX4.2
16014 # and later when we are not doing run time linking.
16015 library_names_spec='${libname}${release}.a $libname.a'
16016 soname_spec='${libname}${release}${shared_ext}$major'
16017 fi
16018 shlibpath_var=LIBPATH
16019 fi
16020 ;;
16021
16022amigaos*)
16023 library_names_spec='$libname.ixlibrary $libname.a'
16024 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16025 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'
16026 ;;
16027
16028beos*)
16029 library_names_spec='${libname}${shared_ext}'
16030 dynamic_linker="$host_os ld.so"
16031 shlibpath_var=LIBRARY_PATH
16032 ;;
16033
16034bsdi[45]*)
16035 version_type=linux
16036 need_version=no
16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16038 soname_spec='${libname}${release}${shared_ext}$major'
16039 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16040 shlibpath_var=LD_LIBRARY_PATH
16041 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16042 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16043 # the default ld.so.conf also contains /usr/contrib/lib and
16044 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16045 # libtool to hard-code these into programs
16046 ;;
16047
16048cygwin* | mingw* | pw32*)
16049 version_type=windows
16050 shrext_cmds=".dll"
16051 need_version=no
16052 need_lib_prefix=no
16053
16054 case $GCC,$host_os in
16055 yes,cygwin* | yes,mingw* | yes,pw32*)
16056 library_names_spec='$libname.dll.a'
16057 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16058 postinstall_cmds='base_file=`basename \${file}`;
16059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16060 dldir=$destdir/`dirname \$dlpath`;
16061 test -d \$dldir || mkdir -p \$dldir;
16062 $install_prog $dir/$dlname \$dldir/$dlname'
16063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16064 dlpath=$dir/\$dldll;
16065 $rm \$dlpath'
16066 shlibpath_overrides_runpath=yes
16067
16068 case $host_os in
16069 cygwin*)
16070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16071 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16072 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16073 ;;
16074 mingw*)
16075 # MinGW DLLs use traditional 'lib' prefix
16076 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16078 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16079 # It is most probably a Windows format PATH printed by
16080 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16081 # path with ; separators, and with drive letters. We can handle the
16082 # drive letters (cygwin fileutils understands them), so leave them,
16083 # especially as we might pass files found there to a mingw objdump,
16084 # which wouldn't understand a cygwinified path. Ahh.
16085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16086 else
16087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16088 fi
16089 ;;
16090 pw32*)
16091 # pw32 DLLs use 'pw' prefix rather than 'lib'
16092 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16093 ;;
16094 esac
16095 ;;
16096
16097 *)
16098 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16099 ;;
16100 esac
16101 dynamic_linker='Win32 ld.exe'
16102 # FIXME: first we should search . and the directory the executable is in
16103 shlibpath_var=PATH
16104 ;;
16105
16106darwin* | rhapsody*)
16107 dynamic_linker="$host_os dyld"
16108 version_type=darwin
16109 need_lib_prefix=no
16110 need_version=no
16111 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16112 soname_spec='${libname}${release}${major}$shared_ext'
16113 shlibpath_overrides_runpath=yes
16114 shlibpath_var=DYLD_LIBRARY_PATH
16115 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16116 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16117 if test "$GCC" = yes; then
16118 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"`
16119 else
16120 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16121 fi
16122 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16123 ;;
16124
16125dgux*)
16126 version_type=linux
16127 need_lib_prefix=no
16128 need_version=no
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 shlibpath_var=LD_LIBRARY_PATH
16132 ;;
16133
16134freebsd1*)
16135 dynamic_linker=no
16136 ;;
16137
16138kfreebsd*-gnu)
16139 version_type=linux
16140 need_lib_prefix=no
16141 need_version=no
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 shlibpath_var=LD_LIBRARY_PATH
16145 shlibpath_overrides_runpath=no
16146 hardcode_into_libs=yes
16147 dynamic_linker='GNU ld.so'
16148 ;;
16149
16150freebsd*)
16151 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16152 version_type=freebsd-$objformat
16153 case $version_type in
16154 freebsd-elf*)
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16156 need_version=no
16157 need_lib_prefix=no
16158 ;;
16159 freebsd-*)
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16161 need_version=yes
16162 ;;
16163 esac
16164 shlibpath_var=LD_LIBRARY_PATH
16165 case $host_os in
16166 freebsd2*)
16167 shlibpath_overrides_runpath=yes
16168 ;;
16169 freebsd3.01* | freebsdelf3.01*)
16170 shlibpath_overrides_runpath=yes
16171 hardcode_into_libs=yes
16172 ;;
16173 *) # from 3.2 on
16174 shlibpath_overrides_runpath=no
16175 hardcode_into_libs=yes
16176 ;;
16177 esac
16178 ;;
16179
16180gnu*)
16181 version_type=linux
16182 need_lib_prefix=no
16183 need_version=no
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16185 soname_spec='${libname}${release}${shared_ext}$major'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 hardcode_into_libs=yes
16188 ;;
16189
16190hpux9* | hpux10* | hpux11*)
16191 # Give a soname corresponding to the major version so that dld.sl refuses to
16192 # link against other versions.
16193 version_type=sunos
16194 need_lib_prefix=no
16195 need_version=no
16196 case "$host_cpu" in
16197 ia64*)
16198 shrext_cmds='.so'
16199 hardcode_into_libs=yes
16200 dynamic_linker="$host_os dld.so"
16201 shlibpath_var=LD_LIBRARY_PATH
16202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 if test "X$HPUX_IA64_MODE" = X32; then
16206 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16207 else
16208 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16209 fi
16210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16211 ;;
16212 hppa*64*)
16213 shrext_cmds='.sl'
16214 hardcode_into_libs=yes
16215 dynamic_linker="$host_os dld.sl"
16216 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16222 ;;
16223 *)
16224 shrext_cmds='.sl'
16225 dynamic_linker="$host_os dld.sl"
16226 shlibpath_var=SHLIB_PATH
16227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 ;;
16231 esac
16232 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16233 postinstall_cmds='chmod 555 $lib'
16234 ;;
16235
16236irix5* | irix6* | nonstopux*)
16237 case $host_os in
16238 nonstopux*) version_type=nonstopux ;;
16239 *)
16240 if test "$lt_cv_prog_gnu_ld" = yes; then
16241 version_type=linux
16242 else
16243 version_type=irix
16244 fi ;;
16245 esac
16246 need_lib_prefix=no
16247 need_version=no
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16250 case $host_os in
16251 irix5* | nonstopux*)
16252 libsuff= shlibsuff=
16253 ;;
16254 *)
16255 case $LD in # libtool.m4 will add one of these switches to LD
16256 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16257 libsuff= shlibsuff= libmagic=32-bit;;
16258 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16259 libsuff=32 shlibsuff=N32 libmagic=N32;;
16260 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16261 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16262 *) libsuff= shlibsuff= libmagic=never-match;;
16263 esac
16264 ;;
16265 esac
16266 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16267 shlibpath_overrides_runpath=no
16268 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16269 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16270 hardcode_into_libs=yes
16271 ;;
16272
16273# No shared lib support for Linux oldld, aout, or coff.
16274linux*oldld* | linux*aout* | linux*coff*)
16275 dynamic_linker=no
16276 ;;
16277
16278# This must be Linux ELF.
16279linux*)
16280 version_type=linux
16281 need_lib_prefix=no
16282 need_version=no
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284 soname_spec='${libname}${release}${shared_ext}$major'
16285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16286 shlibpath_var=LD_LIBRARY_PATH
16287 shlibpath_overrides_runpath=no
16288 # This implies no fast_install, which is unacceptable.
16289 # Some rework will be needed to allow for fast_install
16290 # before this can be enabled.
16291 hardcode_into_libs=yes
16292
16293 # Append ld.so.conf contents to the search path
16294 if test -f /etc/ld.so.conf; then
16295 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16296 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16297 fi
16298
16299 # We used to test for /lib/ld.so.1 and disable shared libraries on
16300 # powerpc, because MkLinux only supported shared libraries with the
16301 # GNU dynamic linker. Since this was broken with cross compilers,
16302 # most powerpc-linux boxes support dynamic linking these days and
16303 # people can always --disable-shared, the test was removed, and we
16304 # assume the GNU/Linux dynamic linker is in use.
16305 dynamic_linker='GNU/Linux ld.so'
16306 ;;
16307
16308knetbsd*-gnu)
16309 version_type=linux
16310 need_lib_prefix=no
16311 need_version=no
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 shlibpath_var=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath=no
16316 hardcode_into_libs=yes
16317 dynamic_linker='GNU ld.so'
16318 ;;
16319
16320netbsd*)
16321 version_type=sunos
16322 need_lib_prefix=no
16323 need_version=no
16324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16327 dynamic_linker='NetBSD (a.out) ld.so'
16328 else
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 dynamic_linker='NetBSD ld.elf_so'
16332 fi
16333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=yes
16335 hardcode_into_libs=yes
16336 ;;
16337
16338newsos6)
16339 version_type=linux
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341 shlibpath_var=LD_LIBRARY_PATH
16342 shlibpath_overrides_runpath=yes
16343 ;;
16344
16345nto-qnx*)
16346 version_type=linux
16347 need_lib_prefix=no
16348 need_version=no
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350 soname_spec='${libname}${release}${shared_ext}$major'
16351 shlibpath_var=LD_LIBRARY_PATH
16352 shlibpath_overrides_runpath=yes
16353 ;;
16354
16355openbsd*)
16356 version_type=sunos
16357 need_lib_prefix=no
16358 need_version=no
16359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16361 shlibpath_var=LD_LIBRARY_PATH
16362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16363 case $host_os in
16364 openbsd2.[89] | openbsd2.[89].*)
16365 shlibpath_overrides_runpath=no
16366 ;;
16367 *)
16368 shlibpath_overrides_runpath=yes
16369 ;;
16370 esac
16371 else
16372 shlibpath_overrides_runpath=yes
16373 fi
16374 ;;
16375
16376os2*)
16377 libname_spec='$name'
16378 shrext_cmds=".dll"
16379 need_lib_prefix=no
16380 library_names_spec='$libname${shared_ext} $libname.a'
16381 dynamic_linker='OS/2 ld.exe'
16382 shlibpath_var=LIBPATH
16383 ;;
16384
16385osf3* | osf4* | osf5*)
16386 version_type=osf
16387 need_lib_prefix=no
16388 need_version=no
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 shlibpath_var=LD_LIBRARY_PATH
16392 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16393 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16394 ;;
16395
16396sco3.2v5*)
16397 version_type=osf
16398 soname_spec='${libname}${release}${shared_ext}$major'
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 ;;
16402
16403solaris*)
16404 version_type=linux
16405 need_lib_prefix=no
16406 need_version=no
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 shlibpath_var=LD_LIBRARY_PATH
16410 shlibpath_overrides_runpath=yes
16411 hardcode_into_libs=yes
16412 # ldd complains unless libraries are executable
16413 postinstall_cmds='chmod +x $lib'
16414 ;;
16415
16416sunos4*)
16417 version_type=sunos
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=yes
16422 if test "$with_gnu_ld" = yes; then
16423 need_lib_prefix=no
16424 fi
16425 need_version=yes
16426 ;;
16427
16428sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16429 version_type=linux
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431 soname_spec='${libname}${release}${shared_ext}$major'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 case $host_vendor in
16434 sni)
16435 shlibpath_overrides_runpath=no
16436 need_lib_prefix=no
16437 export_dynamic_flag_spec='${wl}-Blargedynsym'
16438 runpath_var=LD_RUN_PATH
16439 ;;
16440 siemens)
16441 need_lib_prefix=no
16442 ;;
16443 motorola)
16444 need_lib_prefix=no
16445 need_version=no
16446 shlibpath_overrides_runpath=no
16447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16448 ;;
16449 esac
16450 ;;
16451
16452sysv4*MP*)
16453 if test -d /usr/nec ;then
16454 version_type=linux
16455 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16456 soname_spec='$libname${shared_ext}.$major'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 fi
16459 ;;
16460
16461uts4*)
16462 version_type=linux
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 ;;
16467
16468*)
16469 dynamic_linker=no
16470 ;;
16471esac
16472echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16473echo "${ECHO_T}$dynamic_linker" >&6
16474test "$dynamic_linker" = no && can_build_shared=no
16475
16476echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16477echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16478hardcode_action_F77=
16479if test -n "$hardcode_libdir_flag_spec_F77" || \
16480 test -n "$runpath_var_F77" || \
16481 test "X$hardcode_automatic_F77" = "Xyes" ; then
16482
16483 # We can hardcode non-existant directories.
16484 if test "$hardcode_direct_F77" != no &&
16485 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16486 # have to relink, otherwise we might link with an installed library
16487 # when we should be linking with a yet-to-be-installed one
16488 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16489 test "$hardcode_minus_L_F77" != no; then
16490 # Linking always hardcodes the temporary library directory.
16491 hardcode_action_F77=relink
16492 else
16493 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16494 hardcode_action_F77=immediate
16495 fi
16496else
16497 # We cannot hardcode anything, or else we can only hardcode existing
16498 # directories.
16499 hardcode_action_F77=unsupported
16500fi
16501echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16502echo "${ECHO_T}$hardcode_action_F77" >&6
16503
16504if test "$hardcode_action_F77" = relink; then
16505 # Fast installation is not supported
16506 enable_fast_install=no
16507elif test "$shlibpath_overrides_runpath" = yes ||
16508 test "$enable_shared" = no; then
16509 # Fast installation is not necessary
16510 enable_fast_install=needless
16511fi
16512
16513striplib=
16514old_striplib=
16515echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16516echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16517if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16518 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16519 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16520 echo "$as_me:$LINENO: result: yes" >&5
16521echo "${ECHO_T}yes" >&6
16522else
16523# FIXME - insert some real tests, host_os isn't really good enough
16524 case $host_os in
16525 darwin*)
16526 if test -n "$STRIP" ; then
16527 striplib="$STRIP -x"
16528 echo "$as_me:$LINENO: result: yes" >&5
16529echo "${ECHO_T}yes" >&6
16530 else
16531 echo "$as_me:$LINENO: result: no" >&5
16532echo "${ECHO_T}no" >&6
16533fi
16534 ;;
16535 *)
16536 echo "$as_me:$LINENO: result: no" >&5
16537echo "${ECHO_T}no" >&6
16538 ;;
16539 esac
16540fi
16541
16542
16543
16544# The else clause should only fire when bootstrapping the
16545# libtool distribution, otherwise you forgot to ship ltmain.sh
16546# with your package, and you will get complaints that there are
16547# no rules to generate ltmain.sh.
16548if test -f "$ltmain"; then
16549 # See if we are running on zsh, and set the options which allow our commands through
16550 # without removal of \ escapes.
16551 if test -n "${ZSH_VERSION+set}" ; then
16552 setopt NO_GLOB_SUBST
16553 fi
16554 # Now quote all the things that may contain metacharacters while being
16555 # careful not to overquote the AC_SUBSTed values. We take copies of the
16556 # variables and quote the copies for generation of the libtool script.
16557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16558 SED SHELL STRIP \
16559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16561 deplibs_check_method reload_flag reload_cmds need_locks \
16562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16563 lt_cv_sys_global_symbol_to_c_name_address \
16564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16565 old_postinstall_cmds old_postuninstall_cmds \
16566 compiler_F77 \
16567 CC_F77 \
16568 LD_F77 \
16569 lt_prog_compiler_wl_F77 \
16570 lt_prog_compiler_pic_F77 \
16571 lt_prog_compiler_static_F77 \
16572 lt_prog_compiler_no_builtin_flag_F77 \
16573 export_dynamic_flag_spec_F77 \
16574 thread_safe_flag_spec_F77 \
16575 whole_archive_flag_spec_F77 \
16576 enable_shared_with_static_runtimes_F77 \
16577 old_archive_cmds_F77 \
16578 old_archive_from_new_cmds_F77 \
16579 predep_objects_F77 \
16580 postdep_objects_F77 \
16581 predeps_F77 \
16582 postdeps_F77 \
16583 compiler_lib_search_path_F77 \
16584 archive_cmds_F77 \
16585 archive_expsym_cmds_F77 \
16586 postinstall_cmds_F77 \
16587 postuninstall_cmds_F77 \
16588 old_archive_from_expsyms_cmds_F77 \
16589 allow_undefined_flag_F77 \
16590 no_undefined_flag_F77 \
16591 export_symbols_cmds_F77 \
16592 hardcode_libdir_flag_spec_F77 \
16593 hardcode_libdir_flag_spec_ld_F77 \
16594 hardcode_libdir_separator_F77 \
16595 hardcode_automatic_F77 \
16596 module_cmds_F77 \
16597 module_expsym_cmds_F77 \
16598 lt_cv_prog_compiler_c_o_F77 \
16599 exclude_expsyms_F77 \
16600 include_expsyms_F77; do
16601
16602 case $var in
16603 old_archive_cmds_F77 | \
16604 old_archive_from_new_cmds_F77 | \
16605 archive_cmds_F77 | \
16606 archive_expsym_cmds_F77 | \
16607 module_cmds_F77 | \
16608 module_expsym_cmds_F77 | \
16609 old_archive_from_expsyms_cmds_F77 | \
16610 export_symbols_cmds_F77 | \
16611 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16612 postinstall_cmds | postuninstall_cmds | \
16613 old_postinstall_cmds | old_postuninstall_cmds | \
16614 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16615 # Double-quote double-evaled strings.
16616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16617 ;;
16618 *)
16619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16620 ;;
16621 esac
16622 done
16623
16624 case $lt_echo in
16625 *'\$0 --fallback-echo"')
16626 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16627 ;;
16628 esac
16629
16630cfgfile="$ofile"
16631
16632 cat <<__EOF__ >> "$cfgfile"
16633# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16634
16635# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16636
16637# Shell to use when invoking shell scripts.
16638SHELL=$lt_SHELL
16639
16640# Whether or not to build shared libraries.
16641build_libtool_libs=$enable_shared
16642
16643# Whether or not to build static libraries.
16644build_old_libs=$enable_static
16645
16646# Whether or not to add -lc for building shared libraries.
16647build_libtool_need_lc=$archive_cmds_need_lc_F77
16648
16649# Whether or not to disallow shared libs when runtime libs are static
16650allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16651
16652# Whether or not to optimize for fast installation.
16653fast_install=$enable_fast_install
16654
16655# The host system.
16656host_alias=$host_alias
16657host=$host
16658
16659# An echo program that does not interpret backslashes.
16660echo=$lt_echo
16661
16662# The archiver.
16663AR=$lt_AR
16664AR_FLAGS=$lt_AR_FLAGS
16665
16666# A C compiler.
16667LTCC=$lt_LTCC
16668
16669# A language-specific compiler.
16670CC=$lt_compiler_F77
16671
16672# Is the compiler the GNU C compiler?
16673with_gcc=$GCC_F77
16674
16675# An ERE matcher.
16676EGREP=$lt_EGREP
16677
16678# The linker used to build libraries.
16679LD=$lt_LD_F77
16680
16681# Whether we need hard or soft links.
16682LN_S=$lt_LN_S
16683
16684# A BSD-compatible nm program.
16685NM=$lt_NM
16686
16687# A symbol stripping program
16688STRIP=$lt_STRIP
16689
16690# Used to examine libraries when file_magic_cmd begins "file"
16691MAGIC_CMD=$MAGIC_CMD
16692
16693# Used on cygwin: DLL creation program.
16694DLLTOOL="$DLLTOOL"
16695
16696# Used on cygwin: object dumper.
16697OBJDUMP="$OBJDUMP"
16698
16699# Used on cygwin: assembler.
16700AS="$AS"
16701
16702# The name of the directory that contains temporary libtool files.
16703objdir=$objdir
16704
16705# How to create reloadable object files.
16706reload_flag=$lt_reload_flag
16707reload_cmds=$lt_reload_cmds
16708
16709# How to pass a linker flag through the compiler.
16710wl=$lt_lt_prog_compiler_wl_F77
16711
16712# Object file suffix (normally "o").
16713objext="$ac_objext"
16714
16715# Old archive suffix (normally "a").
16716libext="$libext"
16717
16718# Shared library suffix (normally ".so").
16719shrext_cmds='$shrext_cmds'
16720
16721# Executable file suffix (normally "").
16722exeext="$exeext"
16723
16724# Additional compiler flags for building library objects.
16725pic_flag=$lt_lt_prog_compiler_pic_F77
16726pic_mode=$pic_mode
16727
16728# What is the maximum length of a command?
16729max_cmd_len=$lt_cv_sys_max_cmd_len
16730
16731# Does compiler simultaneously support -c and -o options?
16732compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16733
16734# Must we lock files when doing compilation ?
16735need_locks=$lt_need_locks
16736
16737# Do we need the lib prefix for modules?
16738need_lib_prefix=$need_lib_prefix
16739
16740# Do we need a version for libraries?
16741need_version=$need_version
16742
16743# Whether dlopen is supported.
16744dlopen_support=$enable_dlopen
16745
16746# Whether dlopen of programs is supported.
16747dlopen_self=$enable_dlopen_self
16748
16749# Whether dlopen of statically linked programs is supported.
16750dlopen_self_static=$enable_dlopen_self_static
16751
16752# Compiler flag to prevent dynamic linking.
16753link_static_flag=$lt_lt_prog_compiler_static_F77
16754
16755# Compiler flag to turn off builtin functions.
16756no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16757
16758# Compiler flag to allow reflexive dlopens.
16759export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16760
16761# Compiler flag to generate shared objects directly from archives.
16762whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16763
16764# Compiler flag to generate thread-safe objects.
16765thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16766
16767# Library versioning type.
16768version_type=$version_type
16769
16770# Format of library name prefix.
16771libname_spec=$lt_libname_spec
16772
16773# List of archive names. First name is the real one, the rest are links.
16774# The last name is the one that the linker finds with -lNAME.
16775library_names_spec=$lt_library_names_spec
16776
16777# The coded name of the library, if different from the real name.
16778soname_spec=$lt_soname_spec
16779
16780# Commands used to build and install an old-style archive.
16781RANLIB=$lt_RANLIB
16782old_archive_cmds=$lt_old_archive_cmds_F77
16783old_postinstall_cmds=$lt_old_postinstall_cmds
16784old_postuninstall_cmds=$lt_old_postuninstall_cmds
16785
16786# Create an old-style archive from a shared archive.
16787old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16788
16789# Create a temporary old-style archive to link instead of a shared archive.
16790old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16791
16792# Commands used to build and install a shared archive.
16793archive_cmds=$lt_archive_cmds_F77
16794archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16795postinstall_cmds=$lt_postinstall_cmds
16796postuninstall_cmds=$lt_postuninstall_cmds
16797
16798# Commands used to build a loadable module (assumed same as above if empty)
16799module_cmds=$lt_module_cmds_F77
16800module_expsym_cmds=$lt_module_expsym_cmds_F77
16801
16802# Commands to strip libraries.
16803old_striplib=$lt_old_striplib
16804striplib=$lt_striplib
16805
16806# Dependencies to place before the objects being linked to create a
16807# shared library.
16808predep_objects=$lt_predep_objects_F77
16809
16810# Dependencies to place after the objects being linked to create a
16811# shared library.
16812postdep_objects=$lt_postdep_objects_F77
16813
16814# Dependencies to place before the objects being linked to create a
16815# shared library.
16816predeps=$lt_predeps_F77
16817
16818# Dependencies to place after the objects being linked to create a
16819# shared library.
16820postdeps=$lt_postdeps_F77
16821
16822# The library search path used internally by the compiler when linking
16823# a shared library.
16824compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16825
16826# Method to check whether dependent libraries are shared objects.
16827deplibs_check_method=$lt_deplibs_check_method
16828
16829# Command to use when deplibs_check_method == file_magic.
16830file_magic_cmd=$lt_file_magic_cmd
16831
16832# Flag that allows shared libraries with undefined symbols to be built.
16833allow_undefined_flag=$lt_allow_undefined_flag_F77
16834
16835# Flag that forces no undefined symbols.
16836no_undefined_flag=$lt_no_undefined_flag_F77
16837
16838# Commands used to finish a libtool library installation in a directory.
16839finish_cmds=$lt_finish_cmds
16840
16841# Same as above, but a single script fragment to be evaled but not shown.
16842finish_eval=$lt_finish_eval
16843
16844# Take the output of nm and produce a listing of raw symbols and C names.
16845global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16846
16847# Transform the output of nm in a proper C declaration
16848global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16849
16850# Transform the output of nm in a C name address pair
16851global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16852
16853# This is the shared library runtime path variable.
16854runpath_var=$runpath_var
16855
16856# This is the shared library path variable.
16857shlibpath_var=$shlibpath_var
16858
16859# Is shlibpath searched before the hard-coded library search path?
16860shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16861
16862# How to hardcode a shared library path into an executable.
16863hardcode_action=$hardcode_action_F77
16864
16865# Whether we should hardcode library paths into libraries.
16866hardcode_into_libs=$hardcode_into_libs
16867
16868# Flag to hardcode \$libdir into a binary during linking.
16869# This must work even if \$libdir does not exist.
16870hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16871
16872# If ld is used when linking, flag to hardcode \$libdir into
16873# a binary during linking. This must work even if \$libdir does
16874# not exist.
16875hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16876
16877# Whether we need a single -rpath flag with a separated argument.
16878hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16879
16880# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16881# resulting binary.
16882hardcode_direct=$hardcode_direct_F77
16883
16884# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16885# resulting binary.
16886hardcode_minus_L=$hardcode_minus_L_F77
16887
16888# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16889# the resulting binary.
16890hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16891
16892# Set to yes if building a shared library automatically hardcodes DIR into the library
16893# and all subsequent libraries and executables linked against it.
16894hardcode_automatic=$hardcode_automatic_F77
16895
16896# Variables whose values should be saved in libtool wrapper scripts and
16897# restored at relink time.
16898variables_saved_for_relink="$variables_saved_for_relink"
16899
16900# Whether libtool must link a program against all its dependency libraries.
16901link_all_deplibs=$link_all_deplibs_F77
16902
16903# Compile-time system search path for libraries
16904sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16905
16906# Run-time system search path for libraries
16907sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16908
16909# Fix the shell variable \$srcfile for the compiler.
16910fix_srcfile_path="$fix_srcfile_path_F77"
16911
16912# Set to yes if exported symbols are required.
16913always_export_symbols=$always_export_symbols_F77
16914
16915# The commands to list exported symbols.
16916export_symbols_cmds=$lt_export_symbols_cmds_F77
16917
16918# The commands to extract the exported symbol list from a shared archive.
16919extract_expsyms_cmds=$lt_extract_expsyms_cmds
16920
16921# Symbols that should not be listed in the preloaded symbols.
16922exclude_expsyms=$lt_exclude_expsyms_F77
16923
16924# Symbols that must always be exported.
16925include_expsyms=$lt_include_expsyms_F77
16926
16927# ### END LIBTOOL TAG CONFIG: $tagname
16928
16929__EOF__
16930
16931
16932else
16933 # If there is no Makefile yet, we rely on a make rule to execute
16934 # `config.status --recheck' to rerun these tests and create the
16935 # libtool script then.
16936 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16937 if test -f "$ltmain_in"; then
16938 test -f Makefile && make "$ltmain"
16939 fi
16940fi
16941
16942
16943ac_ext=c
16944ac_cpp='$CPP $CPPFLAGS'
16945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947ac_compiler_gnu=$ac_cv_c_compiler_gnu
16948
16949CC="$lt_save_CC"
16950
16951 else
16952 tagname=""
16953 fi
16954 ;;
16955
16956 GCJ)
16957 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16958 ac_ext=c
16959ac_cpp='$CPP $CPPFLAGS'
16960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16962ac_compiler_gnu=$ac_cv_c_compiler_gnu
16963
16964
16965# Source file extension for Java test sources.
16966ac_ext=java
16967
16968# Object file extension for compiled Java test sources.
16969objext=o
16970objext_GCJ=$objext
16971
16972# Code to be used in simple compile tests
16973lt_simple_compile_test_code="class foo {}\n"
16974
16975# Code to be used in simple link tests
16976lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16977
16978# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16979
16980# If no C compiler was specified, use CC.
16981LTCC=${LTCC-"$CC"}
16982
16983# Allow CC to be a program name with arguments.
16984compiler=$CC
16985
16986
16987# Allow CC to be a program name with arguments.
16988lt_save_CC="$CC"
16989CC=${GCJ-"gcj"}
16990compiler=$CC
16991compiler_GCJ=$CC
16992
16993# GCJ did not exist at the time GCC didn't implicitly link libc in.
16994archive_cmds_need_lc_GCJ=no
16995
16996
16997lt_prog_compiler_no_builtin_flag_GCJ=
16998
16999if test "$GCC" = yes; then
17000 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17001
17002
17003echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17004echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17005if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17007else
17008 lt_cv_prog_compiler_rtti_exceptions=no
17009 ac_outfile=conftest.$ac_objext
17010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17011 lt_compiler_flag="-fno-rtti -fno-exceptions"
17012 # Insert the option either (1) after the last *FLAGS variable, or
17013 # (2) before a word containing "conftest.", or (3) at the end.
17014 # Note that $ac_compile itself does not contain backslashes and begins
17015 # with a dollar sign (not a hyphen), so the echo should work correctly.
17016 # The option is referenced via a variable to avoid confusing sed.
17017 lt_compile=`echo "$ac_compile" | $SED \
17018 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17020 -e 's:$: $lt_compiler_flag:'`
17021 (eval echo "\"\$as_me:17021: $lt_compile\"" >&5)
17022 (eval "$lt_compile" 2>conftest.err)
17023 ac_status=$?
17024 cat conftest.err >&5
17025 echo "$as_me:17025: \$? = $ac_status" >&5
17026 if (exit $ac_status) && test -s "$ac_outfile"; then
17027 # The compiler can only warn and ignore the option if not recognized
17028 # So say no if there are warnings
17029 if test ! -s conftest.err; then
17030 lt_cv_prog_compiler_rtti_exceptions=yes
17031 fi
17032 fi
17033 $rm conftest*
17034
17035fi
17036echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17037echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17038
17039if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17040 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17041else
17042 :
17043fi
17044
17045fi
17046
17047lt_prog_compiler_wl_GCJ=
17048lt_prog_compiler_pic_GCJ=
17049lt_prog_compiler_static_GCJ=
17050
17051echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17052echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17053
17054 if test "$GCC" = yes; then
17055 lt_prog_compiler_wl_GCJ='-Wl,'
17056 lt_prog_compiler_static_GCJ='-static'
17057
17058 case $host_os in
17059 aix*)
17060 # All AIX code is PIC.
17061 if test "$host_cpu" = ia64; then
17062 # AIX 5 now supports IA64 processor
17063 lt_prog_compiler_static_GCJ='-Bstatic'
17064 fi
17065 ;;
17066
17067 amigaos*)
17068 # FIXME: we need at least 68020 code to build shared libraries, but
17069 # adding the `-m68020' flag to GCC prevents building anything better,
17070 # like `-m68040'.
17071 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17072 ;;
17073
17074 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17075 # PIC is the default for these OSes.
17076 ;;
17077
17078 mingw* | pw32* | os2*)
17079 # This hack is so that the source file can tell whether it is being
17080 # built for inclusion in a dll (and should export symbols for example).
17081 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17082 ;;
17083
17084 darwin* | rhapsody*)
17085 # PIC is the default on this platform
17086 # Common symbols not allowed in MH_DYLIB files
17087 lt_prog_compiler_pic_GCJ='-fno-common'
17088 ;;
17089
17090 msdosdjgpp*)
17091 # Just because we use GCC doesn't mean we suddenly get shared libraries
17092 # on systems that don't support them.
17093 lt_prog_compiler_can_build_shared_GCJ=no
17094 enable_shared=no
17095 ;;
17096
17097 sysv4*MP*)
17098 if test -d /usr/nec; then
17099 lt_prog_compiler_pic_GCJ=-Kconform_pic
17100 fi
17101 ;;
17102
17103 hpux*)
17104 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17105 # not for PA HP-UX.
17106 case "$host_cpu" in
17107 hppa*64*|ia64*)
17108 # +Z the default
17109 ;;
17110 *)
17111 lt_prog_compiler_pic_GCJ='-fPIC'
17112 ;;
17113 esac
17114 ;;
17115
17116 *)
17117 lt_prog_compiler_pic_GCJ='-fPIC'
17118 ;;
17119 esac
17120 else
17121 # PORTME Check for flag to pass linker flags through the system compiler.
17122 case $host_os in
17123 aix*)
17124 lt_prog_compiler_wl_GCJ='-Wl,'
17125 if test "$host_cpu" = ia64; then
17126 # AIX 5 now supports IA64 processor
17127 lt_prog_compiler_static_GCJ='-Bstatic'
17128 else
17129 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17130 fi
17131 ;;
17132 darwin*)
17133 # PIC is the default on this platform
17134 # Common symbols not allowed in MH_DYLIB files
17135 case "$cc_basename" in
17136 xlc*)
17137 lt_prog_compiler_pic_GCJ='-qnocommon'
17138 lt_prog_compiler_wl_GCJ='-Wl,'
17139 ;;
17140 esac
17141 ;;
17142
17143 mingw* | pw32* | os2*)
17144 # This hack is so that the source file can tell whether it is being
17145 # built for inclusion in a dll (and should export symbols for example).
17146 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17147 ;;
17148
17149 hpux9* | hpux10* | hpux11*)
17150 lt_prog_compiler_wl_GCJ='-Wl,'
17151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17152 # not for PA HP-UX.
17153 case "$host_cpu" in
17154 hppa*64*|ia64*)
17155 # +Z the default
17156 ;;
17157 *)
17158 lt_prog_compiler_pic_GCJ='+Z'
17159 ;;
17160 esac
17161 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17162 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17163 ;;
17164
17165 irix5* | irix6* | nonstopux*)
17166 lt_prog_compiler_wl_GCJ='-Wl,'
17167 # PIC (with -KPIC) is the default.
17168 lt_prog_compiler_static_GCJ='-non_shared'
17169 ;;
17170
17171 newsos6)
17172 lt_prog_compiler_pic_GCJ='-KPIC'
17173 lt_prog_compiler_static_GCJ='-Bstatic'
17174 ;;
17175
17176 linux*)
17177 case $CC in
17178 icc* | ecc*)
17179 lt_prog_compiler_wl_GCJ='-Wl,'
17180 lt_prog_compiler_pic_GCJ='-KPIC'
17181 lt_prog_compiler_static_GCJ='-static'
17182 ;;
17183 ccc*)
17184 lt_prog_compiler_wl_GCJ='-Wl,'
17185 # All Alpha code is PIC.
17186 lt_prog_compiler_static_GCJ='-non_shared'
17187 ;;
17188 esac
17189 ;;
17190
17191 osf3* | osf4* | osf5*)
17192 lt_prog_compiler_wl_GCJ='-Wl,'
17193 # All OSF/1 code is PIC.
17194 lt_prog_compiler_static_GCJ='-non_shared'
17195 ;;
17196
17197 sco3.2v5*)
17198 lt_prog_compiler_pic_GCJ='-Kpic'
17199 lt_prog_compiler_static_GCJ='-dn'
17200 ;;
17201
17202 solaris*)
17203 lt_prog_compiler_wl_GCJ='-Wl,'
17204 lt_prog_compiler_pic_GCJ='-KPIC'
17205 lt_prog_compiler_static_GCJ='-Bstatic'
17206 ;;
17207
17208 sunos4*)
17209 lt_prog_compiler_wl_GCJ='-Qoption ld '
17210 lt_prog_compiler_pic_GCJ='-PIC'
17211 lt_prog_compiler_static_GCJ='-Bstatic'
17212 ;;
17213
17214 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17215 lt_prog_compiler_wl_GCJ='-Wl,'
17216 lt_prog_compiler_pic_GCJ='-KPIC'
17217 lt_prog_compiler_static_GCJ='-Bstatic'
17218 ;;
17219
17220 sysv4*MP*)
17221 if test -d /usr/nec ;then
17222 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17223 lt_prog_compiler_static_GCJ='-Bstatic'
17224 fi
17225 ;;
17226
17227 uts4*)
17228 lt_prog_compiler_pic_GCJ='-pic'
17229 lt_prog_compiler_static_GCJ='-Bstatic'
17230 ;;
17231
17232 *)
17233 lt_prog_compiler_can_build_shared_GCJ=no
17234 ;;
17235 esac
17236 fi
17237
17238echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17239echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17240
17241#
17242# Check to make sure the PIC flag actually works.
17243#
17244if test -n "$lt_prog_compiler_pic_GCJ"; then
17245
17246echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17247echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17248if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17250else
17251 lt_prog_compiler_pic_works_GCJ=no
17252 ac_outfile=conftest.$ac_objext
17253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17254 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17255 # Insert the option either (1) after the last *FLAGS variable, or
17256 # (2) before a word containing "conftest.", or (3) at the end.
17257 # Note that $ac_compile itself does not contain backslashes and begins
17258 # with a dollar sign (not a hyphen), so the echo should work correctly.
17259 # The option is referenced via a variable to avoid confusing sed.
17260 lt_compile=`echo "$ac_compile" | $SED \
17261 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17263 -e 's:$: $lt_compiler_flag:'`
17264 (eval echo "\"\$as_me:17264: $lt_compile\"" >&5)
17265 (eval "$lt_compile" 2>conftest.err)
17266 ac_status=$?
17267 cat conftest.err >&5
17268 echo "$as_me:17268: \$? = $ac_status" >&5
17269 if (exit $ac_status) && test -s "$ac_outfile"; then
17270 # The compiler can only warn and ignore the option if not recognized
17271 # So say no if there are warnings
17272 if test ! -s conftest.err; then
17273 lt_prog_compiler_pic_works_GCJ=yes
17274 fi
17275 fi
17276 $rm conftest*
17277
17278fi
17279echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17280echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17281
17282if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17283 case $lt_prog_compiler_pic_GCJ in
17284 "" | " "*) ;;
17285 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17286 esac
17287else
17288 lt_prog_compiler_pic_GCJ=
17289 lt_prog_compiler_can_build_shared_GCJ=no
17290fi
17291
17292fi
17293case "$host_os" in
17294 # For platforms which do not support PIC, -DPIC is meaningless:
17295 *djgpp*)
17296 lt_prog_compiler_pic_GCJ=
17297 ;;
17298 *)
17299 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17300 ;;
17301esac
17302
17303echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17304echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17305if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17307else
17308 lt_cv_prog_compiler_c_o_GCJ=no
17309 $rm -r conftest 2>/dev/null
17310 mkdir conftest
17311 cd conftest
17312 mkdir out
17313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17314
17315 lt_compiler_flag="-o out/conftest2.$ac_objext"
17316 # Insert the option either (1) after the last *FLAGS variable, or
17317 # (2) before a word containing "conftest.", or (3) at the end.
17318 # Note that $ac_compile itself does not contain backslashes and begins
17319 # with a dollar sign (not a hyphen), so the echo should work correctly.
17320 lt_compile=`echo "$ac_compile" | $SED \
17321 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17323 -e 's:$: $lt_compiler_flag:'`
17324 (eval echo "\"\$as_me:17324: $lt_compile\"" >&5)
17325 (eval "$lt_compile" 2>out/conftest.err)
17326 ac_status=$?
17327 cat out/conftest.err >&5
17328 echo "$as_me:17328: \$? = $ac_status" >&5
17329 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17330 then
17331 # The compiler can only warn and ignore the option if not recognized
17332 # So say no if there are warnings
17333 if test ! -s out/conftest.err; then
17334 lt_cv_prog_compiler_c_o_GCJ=yes
17335 fi
17336 fi
17337 chmod u+w .
17338 $rm conftest*
17339 # SGI C++ compiler will create directory out/ii_files/ for
17340 # template instantiation
17341 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17342 $rm out/* && rmdir out
17343 cd ..
17344 rmdir conftest
17345 $rm conftest*
17346
17347fi
17348echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17349echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17350
17351
17352hard_links="nottested"
17353if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17354 # do not overwrite the value of need_locks provided by the user
17355 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17356echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17357 hard_links=yes
17358 $rm conftest*
17359 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17360 touch conftest.a
17361 ln conftest.a conftest.b 2>&5 || hard_links=no
17362 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17363 echo "$as_me:$LINENO: result: $hard_links" >&5
17364echo "${ECHO_T}$hard_links" >&6
17365 if test "$hard_links" = no; then
17366 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17367echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17368 need_locks=warn
17369 fi
17370else
17371 need_locks=no
17372fi
17373
17374echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17375echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17376
17377 runpath_var=
17378 allow_undefined_flag_GCJ=
17379 enable_shared_with_static_runtimes_GCJ=no
17380 archive_cmds_GCJ=
17381 archive_expsym_cmds_GCJ=
17382 old_archive_From_new_cmds_GCJ=
17383 old_archive_from_expsyms_cmds_GCJ=
17384 export_dynamic_flag_spec_GCJ=
17385 whole_archive_flag_spec_GCJ=
17386 thread_safe_flag_spec_GCJ=
17387 hardcode_libdir_flag_spec_GCJ=
17388 hardcode_libdir_flag_spec_ld_GCJ=
17389 hardcode_libdir_separator_GCJ=
17390 hardcode_direct_GCJ=no
17391 hardcode_minus_L_GCJ=no
17392 hardcode_shlibpath_var_GCJ=unsupported
17393 link_all_deplibs_GCJ=unknown
17394 hardcode_automatic_GCJ=no
17395 module_cmds_GCJ=
17396 module_expsym_cmds_GCJ=
17397 always_export_symbols_GCJ=no
17398 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17399 # include_expsyms should be a list of space-separated symbols to be *always*
17400 # included in the symbol list
17401 include_expsyms_GCJ=
17402 # exclude_expsyms can be an extended regexp of symbols to exclude
17403 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17404 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17405 # as well as any symbol that contains `d'.
17406 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17407 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17408 # platforms (ab)use it in PIC code, but their linkers get confused if
17409 # the symbol is explicitly referenced. Since portable code cannot
17410 # rely on this symbol name, it's probably fine to never include it in
17411 # preloaded symbol tables.
17412 extract_expsyms_cmds=
17413
17414 case $host_os in
17415 cygwin* | mingw* | pw32*)
17416 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17417 # When not using gcc, we currently assume that we are using
17418 # Microsoft Visual C++.
17419 if test "$GCC" != yes; then
17420 with_gnu_ld=no
17421 fi
17422 ;;
17423 openbsd*)
17424 with_gnu_ld=no
17425 ;;
17426 esac
17427
17428 ld_shlibs_GCJ=yes
17429 if test "$with_gnu_ld" = yes; then
17430 # If archive_cmds runs LD, not CC, wlarc should be empty
17431 wlarc='${wl}'
17432
17433 # See if GNU ld supports shared libraries.
17434 case $host_os in
17435 aix3* | aix4* | aix5*)
17436 # On AIX/PPC, the GNU linker is very broken
17437 if test "$host_cpu" != ia64; then
17438 ld_shlibs_GCJ=no
17439 cat <<EOF 1>&2
17440
17441*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17442*** to be unable to reliably create shared libraries on AIX.
17443*** Therefore, libtool is disabling shared libraries support. If you
17444*** really care for shared libraries, you may want to modify your PATH
17445*** so that a non-GNU linker is found, and then restart.
17446
17447EOF
17448 fi
17449 ;;
17450
17451 amigaos*)
17452 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)'
17453 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17454 hardcode_minus_L_GCJ=yes
17455
17456 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17457 # that the semantics of dynamic libraries on AmigaOS, at least up
17458 # to version 4, is to share data among multiple programs linked
17459 # with the same dynamic library. Since this doesn't match the
17460 # behavior of shared libraries on other platforms, we can't use
17461 # them.
17462 ld_shlibs_GCJ=no
17463 ;;
17464
17465 beos*)
17466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17467 allow_undefined_flag_GCJ=unsupported
17468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17469 # support --undefined. This deserves some investigation. FIXME
17470 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17471 else
17472 ld_shlibs_GCJ=no
17473 fi
17474 ;;
17475
17476 cygwin* | mingw* | pw32*)
17477 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17478 # as there is no search path for DLLs.
17479 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17480 allow_undefined_flag_GCJ=unsupported
17481 always_export_symbols_GCJ=no
17482 enable_shared_with_static_runtimes_GCJ=yes
17483 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17484
17485 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17486 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17487 # If the export-symbols file already is a .def file (1st line
17488 # is EXPORTS), use it as is; otherwise, prepend...
17489 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17490 cp $export_symbols $output_objdir/$soname.def;
17491 else
17492 echo EXPORTS > $output_objdir/$soname.def;
17493 cat $export_symbols >> $output_objdir/$soname.def;
17494 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17495 else
17496 ld_shlibs=no
17497 fi
17498 ;;
17499
17500 netbsd*)
17501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17502 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17503 wlarc=
17504 else
17505 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17506 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17507 fi
17508 ;;
17509
17510 solaris* | sysv5*)
17511 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17512 ld_shlibs_GCJ=no
17513 cat <<EOF 1>&2
17514
17515*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17516*** create shared libraries on Solaris systems. Therefore, libtool
17517*** is disabling shared libraries support. We urge you to upgrade GNU
17518*** binutils to release 2.9.1 or newer. Another option is to modify
17519*** your PATH or compiler configuration so that the native linker is
17520*** used, and then restart.
17521
17522EOF
17523 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17524 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17526 else
17527 ld_shlibs_GCJ=no
17528 fi
17529 ;;
17530
17531 sunos4*)
17532 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17533 wlarc=
17534 hardcode_direct_GCJ=yes
17535 hardcode_shlibpath_var_GCJ=no
17536 ;;
17537
17538 linux*)
17539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17540 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17541 archive_cmds_GCJ="$tmp_archive_cmds"
17542 supports_anon_versioning=no
17543 case `$LD -v 2>/dev/null` in
17544 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17545 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17546 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17547 *\ 2.11.*) ;; # other 2.11 versions
17548 *) supports_anon_versioning=yes ;;
17549 esac
17550 if test $supports_anon_versioning = yes; then
17551 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
17552 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17553 else
17554 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17555 fi
17556 else
17557 ld_shlibs_GCJ=no
17558 fi
17559 ;;
17560
17561 *)
17562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17563 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17564 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17565 else
17566 ld_shlibs_GCJ=no
17567 fi
17568 ;;
17569 esac
17570
17571 if test "$ld_shlibs_GCJ" = yes; then
17572 runpath_var=LD_RUN_PATH
17573 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17574 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17575 # ancient GNU ld didn't support --whole-archive et. al.
17576 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17577 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17578 else
17579 whole_archive_flag_spec_GCJ=
17580 fi
17581 fi
17582 else
17583 # PORTME fill in a description of your system's linker (not GNU ld)
17584 case $host_os in
17585 aix3*)
17586 allow_undefined_flag_GCJ=unsupported
17587 always_export_symbols_GCJ=yes
17588 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'
17589 # Note: this linker hardcodes the directories in LIBPATH if there
17590 # are no directories specified by -L.
17591 hardcode_minus_L_GCJ=yes
17592 if test "$GCC" = yes && test -z "$link_static_flag"; then
17593 # Neither direct hardcoding nor static linking is supported with a
17594 # broken collect2.
17595 hardcode_direct_GCJ=unsupported
17596 fi
17597 ;;
17598
17599 aix4* | aix5*)
17600 if test "$host_cpu" = ia64; then
17601 # On IA64, the linker does run time linking by default, so we don't
17602 # have to do anything special.
17603 aix_use_runtimelinking=no
17604 exp_sym_flag='-Bexport'
17605 no_entry_flag=""
17606 else
17607 # If we're using GNU nm, then we don't want the "-C" option.
17608 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17609 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17610 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'
17611 else
17612 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'
17613 fi
17614 aix_use_runtimelinking=no
17615
17616 # Test if we are trying to use run time linking or normal
17617 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17618 # need to do runtime linking.
17619 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17620 for ld_flag in $LDFLAGS; do
17621 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17622 aix_use_runtimelinking=yes
17623 break
17624 fi
17625 done
17626 esac
17627
17628 exp_sym_flag='-bexport'
17629 no_entry_flag='-bnoentry'
17630 fi
17631
17632 # When large executables or shared objects are built, AIX ld can
17633 # have problems creating the table of contents. If linking a library
17634 # or program results in "error TOC overflow" add -mminimal-toc to
17635 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17636 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17637
17638 archive_cmds_GCJ=''
17639 hardcode_direct_GCJ=yes
17640 hardcode_libdir_separator_GCJ=':'
17641 link_all_deplibs_GCJ=yes
17642
17643 if test "$GCC" = yes; then
17644 case $host_os in aix4.012|aix4.012.*)
17645 # We only want to do this on AIX 4.2 and lower, the check
17646 # below for broken collect2 doesn't work under 4.3+
17647 collect2name=`${CC} -print-prog-name=collect2`
17648 if test -f "$collect2name" && \
17649 strings "$collect2name" | grep resolve_lib_name >/dev/null
17650 then
17651 # We have reworked collect2
17652 hardcode_direct_GCJ=yes
17653 else
17654 # We have old collect2
17655 hardcode_direct_GCJ=unsupported
17656 # It fails to find uninstalled libraries when the uninstalled
17657 # path is not listed in the libpath. Setting hardcode_minus_L
17658 # to unsupported forces relinking
17659 hardcode_minus_L_GCJ=yes
17660 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17661 hardcode_libdir_separator_GCJ=
17662 fi
17663 esac
17664 shared_flag='-shared'
17665 else
17666 # not using gcc
17667 if test "$host_cpu" = ia64; then
17668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17669 # chokes on -Wl,-G. The following line is correct:
17670 shared_flag='-G'
17671 else
17672 if test "$aix_use_runtimelinking" = yes; then
17673 shared_flag='${wl}-G'
17674 else
17675 shared_flag='${wl}-bM:SRE'
17676 fi
17677 fi
17678 fi
17679
17680 # It seems that -bexpall does not export symbols beginning with
17681 # underscore (_), so it is better to generate a list of symbols to export.
17682 always_export_symbols_GCJ=yes
17683 if test "$aix_use_runtimelinking" = yes; then
17684 # Warning - without using the other runtime loading flags (-brtl),
17685 # -berok will link without error, but may produce a broken library.
17686 allow_undefined_flag_GCJ='-berok'
17687 # Determine the default libpath from the value encoded in an empty executable.
17688 cat >conftest.$ac_ext <<_ACEOF
17689/* confdefs.h. */
17690_ACEOF
17691cat confdefs.h >>conftest.$ac_ext
17692cat >>conftest.$ac_ext <<_ACEOF
17693/* end confdefs.h. */
17694
17695int
17696main ()
17697{
17698
17699 ;
17700 return 0;
17701}
17702_ACEOF
17703rm -f conftest.$ac_objext conftest$ac_exeext
17704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17705 (eval $ac_link) 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag"
17713 || test ! -s conftest.err'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725
17726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17727}'`
17728# Check for a 64-bit object if we didn't find anything.
17729if 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; }
17730}'`; fi
17731else
17732 echo "$as_me: failed program was:" >&5
17733sed 's/^/| /' conftest.$ac_ext >&5
17734
17735fi
17736rm -f conftest.err conftest.$ac_objext \
17737 conftest$ac_exeext conftest.$ac_ext
17738if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17739
17740 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17741 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"
17742 else
17743 if test "$host_cpu" = ia64; then
17744 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17745 allow_undefined_flag_GCJ="-z nodefs"
17746 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"
17747 else
17748 # Determine the default libpath from the value encoded in an empty executable.
17749 cat >conftest.$ac_ext <<_ACEOF
17750/* confdefs.h. */
17751_ACEOF
17752cat confdefs.h >>conftest.$ac_ext
17753cat >>conftest.$ac_ext <<_ACEOF
17754/* end confdefs.h. */
17755
17756int
17757main ()
17758{
17759
17760 ;
17761 return 0;
17762}
17763_ACEOF
17764rm -f conftest.$ac_objext conftest$ac_exeext
17765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17766 (eval $ac_link) 2>conftest.er1
17767 ac_status=$?
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag"
17774 || test ! -s conftest.err'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest$ac_exeext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786
17787aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17788}'`
17789# Check for a 64-bit object if we didn't find anything.
17790if 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; }
17791}'`; fi
17792else
17793 echo "$as_me: failed program was:" >&5
17794sed 's/^/| /' conftest.$ac_ext >&5
17795
17796fi
17797rm -f conftest.err conftest.$ac_objext \
17798 conftest$ac_exeext conftest.$ac_ext
17799if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17800
17801 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17802 # Warning - without using the other run time loading flags,
17803 # -berok will link without error, but may produce a broken library.
17804 no_undefined_flag_GCJ=' ${wl}-bernotok'
17805 allow_undefined_flag_GCJ=' ${wl}-berok'
17806 # -bexpall does not export symbols beginning with underscore (_)
17807 always_export_symbols_GCJ=yes
17808 # Exported symbols can be pulled into shared objects from archives
17809 whole_archive_flag_spec_GCJ=' '
17810 archive_cmds_need_lc_GCJ=yes
17811 # This is similar to how AIX traditionally builds it's shared libraries.
17812 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'
17813 fi
17814 fi
17815 ;;
17816
17817 amigaos*)
17818 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)'
17819 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17820 hardcode_minus_L_GCJ=yes
17821 # see comment about different semantics on the GNU ld section
17822 ld_shlibs_GCJ=no
17823 ;;
17824
17825 bsdi[45]*)
17826 export_dynamic_flag_spec_GCJ=-rdynamic
17827 ;;
17828
17829 cygwin* | mingw* | pw32*)
17830 # When not using gcc, we currently assume that we are using
17831 # Microsoft Visual C++.
17832 # hardcode_libdir_flag_spec is actually meaningless, as there is
17833 # no search path for DLLs.
17834 hardcode_libdir_flag_spec_GCJ=' '
17835 allow_undefined_flag_GCJ=unsupported
17836 # Tell ltmain to make .lib files, not .a files.
17837 libext=lib
17838 # Tell ltmain to make .dll files, not .so files.
17839 shrext_cmds=".dll"
17840 # FIXME: Setting linknames here is a bad hack.
17841 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
17842 # The linker will automatically build a .lib file if we build a DLL.
17843 old_archive_From_new_cmds_GCJ='true'
17844 # FIXME: Should let the user specify the lib program.
17845 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17846 fix_srcfile_path='`cygpath -w "$srcfile"`'
17847 enable_shared_with_static_runtimes_GCJ=yes
17848 ;;
17849
17850 darwin* | rhapsody*)
17851 case "$host_os" in
17852 rhapsody* | darwin1.[012])
17853 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17854 ;;
17855 *) # Darwin 1.3 on
17856 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17857 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17858 else
17859 case ${MACOSX_DEPLOYMENT_TARGET} in
17860 10.[012])
17861 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17862 ;;
17863 10.*)
17864 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17865 ;;
17866 esac
17867 fi
17868 ;;
17869 esac
17870 archive_cmds_need_lc_GCJ=no
17871 hardcode_direct_GCJ=no
17872 hardcode_automatic_GCJ=yes
17873 hardcode_shlibpath_var_GCJ=unsupported
17874 whole_archive_flag_spec_GCJ=''
17875 link_all_deplibs_GCJ=yes
17876 if test "$GCC" = yes ; then
17877 output_verbose_link_cmd='echo'
17878 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17879 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17880 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17881 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17882 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}'
17883 else
17884 case "$cc_basename" in
17885 xlc*)
17886 output_verbose_link_cmd='echo'
17887 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17888 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17889 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17890 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17891 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}'
17892 ;;
17893 *)
17894 ld_shlibs_GCJ=no
17895 ;;
17896 esac
17897 fi
17898 ;;
17899
17900 dgux*)
17901 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17902 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17903 hardcode_shlibpath_var_GCJ=no
17904 ;;
17905
17906 freebsd1*)
17907 ld_shlibs_GCJ=no
17908 ;;
17909
17910 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17911 # support. Future versions do this automatically, but an explicit c++rt0.o
17912 # does not break anything, and helps significantly (at the cost of a little
17913 # extra space).
17914 freebsd2.2*)
17915 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17916 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17917 hardcode_direct_GCJ=yes
17918 hardcode_shlibpath_var_GCJ=no
17919 ;;
17920
17921 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17922 freebsd2*)
17923 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17924 hardcode_direct_GCJ=yes
17925 hardcode_minus_L_GCJ=yes
17926 hardcode_shlibpath_var_GCJ=no
17927 ;;
17928
17929 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17930 freebsd* | kfreebsd*-gnu)
17931 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17932 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17933 hardcode_direct_GCJ=yes
17934 hardcode_shlibpath_var_GCJ=no
17935 ;;
17936
17937 hpux9*)
17938 if test "$GCC" = yes; then
17939 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'
17940 else
17941 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'
17942 fi
17943 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17944 hardcode_libdir_separator_GCJ=:
17945 hardcode_direct_GCJ=yes
17946
17947 # hardcode_minus_L: Not really in the search PATH,
17948 # but as the default location of the library.
17949 hardcode_minus_L_GCJ=yes
17950 export_dynamic_flag_spec_GCJ='${wl}-E'
17951 ;;
17952
17953 hpux10* | hpux11*)
17954 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17955 case "$host_cpu" in
17956 hppa*64*|ia64*)
17957 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17958 ;;
17959 *)
17960 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17961 ;;
17962 esac
17963 else
17964 case "$host_cpu" in
17965 hppa*64*|ia64*)
17966 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17967 ;;
17968 *)
17969 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17970 ;;
17971 esac
17972 fi
17973 if test "$with_gnu_ld" = no; then
17974 case "$host_cpu" in
17975 hppa*64*)
17976 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17977 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17978 hardcode_libdir_separator_GCJ=:
17979 hardcode_direct_GCJ=no
17980 hardcode_shlibpath_var_GCJ=no
17981 ;;
17982 ia64*)
17983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17984 hardcode_direct_GCJ=no
17985 hardcode_shlibpath_var_GCJ=no
17986
17987 # hardcode_minus_L: Not really in the search PATH,
17988 # but as the default location of the library.
17989 hardcode_minus_L_GCJ=yes
17990 ;;
17991 *)
17992 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17993 hardcode_libdir_separator_GCJ=:
17994 hardcode_direct_GCJ=yes
17995 export_dynamic_flag_spec_GCJ='${wl}-E'
17996
17997 # hardcode_minus_L: Not really in the search PATH,
17998 # but as the default location of the library.
17999 hardcode_minus_L_GCJ=yes
18000 ;;
18001 esac
18002 fi
18003 ;;
18004
18005 irix5* | irix6* | nonstopux*)
18006 if test "$GCC" = yes; then
18007 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'
18008 else
18009 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'
18010 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18011 fi
18012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18013 hardcode_libdir_separator_GCJ=:
18014 link_all_deplibs_GCJ=yes
18015 ;;
18016
18017 netbsd*)
18018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18019 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18020 else
18021 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18022 fi
18023 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18024 hardcode_direct_GCJ=yes
18025 hardcode_shlibpath_var_GCJ=no
18026 ;;
18027
18028 newsos6)
18029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030 hardcode_direct_GCJ=yes
18031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18032 hardcode_libdir_separator_GCJ=:
18033 hardcode_shlibpath_var_GCJ=no
18034 ;;
18035
18036 openbsd*)
18037 hardcode_direct_GCJ=yes
18038 hardcode_shlibpath_var_GCJ=no
18039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18040 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18041 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18042 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18043 export_dynamic_flag_spec_GCJ='${wl}-E'
18044 else
18045 case $host_os in
18046 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18047 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18048 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18049 ;;
18050 *)
18051 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18053 ;;
18054 esac
18055 fi
18056 ;;
18057
18058 os2*)
18059 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18060 hardcode_minus_L_GCJ=yes
18061 allow_undefined_flag_GCJ=unsupported
18062 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'
18063 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18064 ;;
18065
18066 osf3*)
18067 if test "$GCC" = yes; then
18068 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18069 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'
18070 else
18071 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18072 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'
18073 fi
18074 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18075 hardcode_libdir_separator_GCJ=:
18076 ;;
18077
18078 osf4* | osf5*) # as osf3* with the addition of -msym flag
18079 if test "$GCC" = yes; then
18080 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18081 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'
18082 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18083 else
18084 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18085 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'
18086 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; $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'
18087 # Both c and cxx compiler support -rpath directly
18088 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18089 fi
18090 hardcode_libdir_separator_GCJ=:
18091 ;;
18092
18093 sco3.2v5*)
18094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18095 hardcode_shlibpath_var_GCJ=no
18096 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18097 runpath_var=LD_RUN_PATH
18098 hardcode_runpath_var=yes
18099 ;;
18100
18101 solaris*)
18102 no_undefined_flag_GCJ=' -z text'
18103 if test "$GCC" = yes; then
18104 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
18106 else
18107 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18108 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
18109 fi
18110 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18111 hardcode_shlibpath_var_GCJ=no
18112 case $host_os in
18113 solaris2.[0-5] | solaris2.[0-5].*) ;;
18114 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18115 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18116 esac
18117 link_all_deplibs_GCJ=yes
18118 ;;
18119
18120 sunos4*)
18121 if test "x$host_vendor" = xsequent; then
18122 # Use $CC to link under sequent, because it throws in some extra .o
18123 # files that make .init and .fini sections work.
18124 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18125 else
18126 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18127 fi
18128 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18129 hardcode_direct_GCJ=yes
18130 hardcode_minus_L_GCJ=yes
18131 hardcode_shlibpath_var_GCJ=no
18132 ;;
18133
18134 sysv4)
18135 case $host_vendor in
18136 sni)
18137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18138 hardcode_direct_GCJ=yes # is this really true???
18139 ;;
18140 siemens)
18141 ## LD is ld it makes a PLAMLIB
18142 ## CC just makes a GrossModule.
18143 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18144 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18145 hardcode_direct_GCJ=no
18146 ;;
18147 motorola)
18148 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18149 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18150 ;;
18151 esac
18152 runpath_var='LD_RUN_PATH'
18153 hardcode_shlibpath_var_GCJ=no
18154 ;;
18155
18156 sysv4.3*)
18157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18158 hardcode_shlibpath_var_GCJ=no
18159 export_dynamic_flag_spec_GCJ='-Bexport'
18160 ;;
18161
18162 sysv4*MP*)
18163 if test -d /usr/nec; then
18164 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18165 hardcode_shlibpath_var_GCJ=no
18166 runpath_var=LD_RUN_PATH
18167 hardcode_runpath_var=yes
18168 ld_shlibs_GCJ=yes
18169 fi
18170 ;;
18171
18172 sysv4.2uw2*)
18173 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18174 hardcode_direct_GCJ=yes
18175 hardcode_minus_L_GCJ=no
18176 hardcode_shlibpath_var_GCJ=no
18177 hardcode_runpath_var=yes
18178 runpath_var=LD_RUN_PATH
18179 ;;
18180
18181 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18182 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18183 if test "$GCC" = yes; then
18184 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18185 else
18186 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18187 fi
18188 runpath_var='LD_RUN_PATH'
18189 hardcode_shlibpath_var_GCJ=no
18190 ;;
18191
18192 sysv5*)
18193 no_undefined_flag_GCJ=' -z text'
18194 # $CC -shared without GNU ld will not create a library from C++
18195 # object files and a static libstdc++, better avoid it by now
18196 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18197 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
18198 hardcode_libdir_flag_spec_GCJ=
18199 hardcode_shlibpath_var_GCJ=no
18200 runpath_var='LD_RUN_PATH'
18201 ;;
18202
18203 uts4*)
18204 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18205 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18206 hardcode_shlibpath_var_GCJ=no
18207 ;;
18208
18209 *)
18210 ld_shlibs_GCJ=no
18211 ;;
18212 esac
18213 fi
18214
18215echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18216echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18217test "$ld_shlibs_GCJ" = no && can_build_shared=no
18218
18219variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18220if test "$GCC" = yes; then
18221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18222fi
18223
18224#
18225# Do we need to explicitly link libc?
18226#
18227case "x$archive_cmds_need_lc_GCJ" in
18228x|xyes)
18229 # Assume -lc should be added
18230 archive_cmds_need_lc_GCJ=yes
18231
18232 if test "$enable_shared" = yes && test "$GCC" = yes; then
18233 case $archive_cmds_GCJ in
18234 *'~'*)
18235 # FIXME: we may have to deal with multi-command sequences.
18236 ;;
18237 '$CC '*)
18238 # Test whether the compiler implicitly links with -lc since on some
18239 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18240 # to ld, don't add -lc before -lgcc.
18241 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18242echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18243 $rm conftest*
18244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18245
18246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247 (eval $ac_compile) 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } 2>conftest.err; then
18251 soname=conftest
18252 lib=conftest
18253 libobjs=conftest.$ac_objext
18254 deplibs=
18255 wl=$lt_prog_compiler_wl_GCJ
18256 compiler_flags=-v
18257 linker_flags=-v
18258 verstring=
18259 output_objdir=.
18260 libname=conftest
18261 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18262 allow_undefined_flag_GCJ=
18263 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18264 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }
18268 then
18269 archive_cmds_need_lc_GCJ=no
18270 else
18271 archive_cmds_need_lc_GCJ=yes
18272 fi
18273 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18274 else
18275 cat conftest.err 1>&5
18276 fi
18277 $rm conftest*
18278 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18279echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18280 ;;
18281 esac
18282 fi
18283 ;;
18284esac
18285
18286echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18287echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18288library_names_spec=
18289libname_spec='lib$name'
18290soname_spec=
18291shrext_cmds=".so"
18292postinstall_cmds=
18293postuninstall_cmds=
18294finish_cmds=
18295finish_eval=
18296shlibpath_var=
18297shlibpath_overrides_runpath=unknown
18298version_type=none
18299dynamic_linker="$host_os ld.so"
18300sys_lib_dlsearch_path_spec="/lib /usr/lib"
18301if test "$GCC" = yes; then
18302 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18303 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18304 # if the path contains ";" then we assume it to be the separator
18305 # otherwise default to the standard path separator (i.e. ":") - it is
18306 # assumed that no part of a normal pathname contains ";" but that should
18307 # okay in the real world where ";" in dirpaths is itself problematic.
18308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18309 else
18310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18311 fi
18312else
18313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18314fi
18315need_lib_prefix=unknown
18316hardcode_into_libs=no
18317
18318# when you set need_version to no, make sure it does not cause -set_version
18319# flags to be left without arguments
18320need_version=unknown
18321
18322case $host_os in
18323aix3*)
18324 version_type=linux
18325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18326 shlibpath_var=LIBPATH
18327
18328 # AIX 3 has no versioning support, so we append a major version to the name.
18329 soname_spec='${libname}${release}${shared_ext}$major'
18330 ;;
18331
18332aix4* | aix5*)
18333 version_type=linux
18334 need_lib_prefix=no
18335 need_version=no
18336 hardcode_into_libs=yes
18337 if test "$host_cpu" = ia64; then
18338 # AIX 5 supports IA64
18339 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18340 shlibpath_var=LD_LIBRARY_PATH
18341 else
18342 # With GCC up to 2.95.x, collect2 would create an import file
18343 # for dependence libraries. The import file would start with
18344 # the line `#! .'. This would cause the generated library to
18345 # depend on `.', always an invalid library. This was fixed in
18346 # development snapshots of GCC prior to 3.0.
18347 case $host_os in
18348 aix4 | aix4.[01] | aix4.[01].*)
18349 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18350 echo ' yes '
18351 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18352 :
18353 else
18354 can_build_shared=no
18355 fi
18356 ;;
18357 esac
18358 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18359 # soname into executable. Probably we can add versioning support to
18360 # collect2, so additional links can be useful in future.
18361 if test "$aix_use_runtimelinking" = yes; then
18362 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18363 # instead of lib<name>.a to let people know that these are not
18364 # typical AIX shared libraries.
18365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18366 else
18367 # We preserve .a as extension for shared libraries through AIX4.2
18368 # and later when we are not doing run time linking.
18369 library_names_spec='${libname}${release}.a $libname.a'
18370 soname_spec='${libname}${release}${shared_ext}$major'
18371 fi
18372 shlibpath_var=LIBPATH
18373 fi
18374 ;;
18375
18376amigaos*)
18377 library_names_spec='$libname.ixlibrary $libname.a'
18378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18379 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'
18380 ;;
18381
18382beos*)
18383 library_names_spec='${libname}${shared_ext}'
18384 dynamic_linker="$host_os ld.so"
18385 shlibpath_var=LIBRARY_PATH
18386 ;;
18387
18388bsdi[45]*)
18389 version_type=linux
18390 need_version=no
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392 soname_spec='${libname}${release}${shared_ext}$major'
18393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18394 shlibpath_var=LD_LIBRARY_PATH
18395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18397 # the default ld.so.conf also contains /usr/contrib/lib and
18398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18399 # libtool to hard-code these into programs
18400 ;;
18401
18402cygwin* | mingw* | pw32*)
18403 version_type=windows
18404 shrext_cmds=".dll"
18405 need_version=no
18406 need_lib_prefix=no
18407
18408 case $GCC,$host_os in
18409 yes,cygwin* | yes,mingw* | yes,pw32*)
18410 library_names_spec='$libname.dll.a'
18411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18412 postinstall_cmds='base_file=`basename \${file}`;
18413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
18414 dldir=$destdir/`dirname \$dlpath`;
18415 test -d \$dldir || mkdir -p \$dldir;
18416 $install_prog $dir/$dlname \$dldir/$dlname'
18417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
18418 dlpath=$dir/\$dldll;
18419 $rm \$dlpath'
18420 shlibpath_overrides_runpath=yes
18421
18422 case $host_os in
18423 cygwin*)
18424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18426 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18427 ;;
18428 mingw*)
18429 # MinGW DLLs use traditional 'lib' prefix
18430 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18431 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18432 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18433 # It is most probably a Windows format PATH printed by
18434 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18435 # path with ; separators, and with drive letters. We can handle the
18436 # drive letters (cygwin fileutils understands them), so leave them,
18437 # especially as we might pass files found there to a mingw objdump,
18438 # which wouldn't understand a cygwinified path. Ahh.
18439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18440 else
18441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18442 fi
18443 ;;
18444 pw32*)
18445 # pw32 DLLs use 'pw' prefix rather than 'lib'
18446 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18447 ;;
18448 esac
18449 ;;
18450
18451 *)
18452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18453 ;;
18454 esac
18455 dynamic_linker='Win32 ld.exe'
18456 # FIXME: first we should search . and the directory the executable is in
18457 shlibpath_var=PATH
18458 ;;
18459
18460darwin* | rhapsody*)
18461 dynamic_linker="$host_os dyld"
18462 version_type=darwin
18463 need_lib_prefix=no
18464 need_version=no
18465 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18466 soname_spec='${libname}${release}${major}$shared_ext'
18467 shlibpath_overrides_runpath=yes
18468 shlibpath_var=DYLD_LIBRARY_PATH
18469 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18470 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18471 if test "$GCC" = yes; then
18472 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"`
18473 else
18474 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18475 fi
18476 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18477 ;;
18478
18479dgux*)
18480 version_type=linux
18481 need_lib_prefix=no
18482 need_version=no
18483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18484 soname_spec='${libname}${release}${shared_ext}$major'
18485 shlibpath_var=LD_LIBRARY_PATH
18486 ;;
18487
18488freebsd1*)
18489 dynamic_linker=no
18490 ;;
18491
18492kfreebsd*-gnu)
18493 version_type=linux
18494 need_lib_prefix=no
18495 need_version=no
18496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18497 soname_spec='${libname}${release}${shared_ext}$major'
18498 shlibpath_var=LD_LIBRARY_PATH
18499 shlibpath_overrides_runpath=no
18500 hardcode_into_libs=yes
18501 dynamic_linker='GNU ld.so'
18502 ;;
18503
18504freebsd*)
18505 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18506 version_type=freebsd-$objformat
18507 case $version_type in
18508 freebsd-elf*)
18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18510 need_version=no
18511 need_lib_prefix=no
18512 ;;
18513 freebsd-*)
18514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18515 need_version=yes
18516 ;;
18517 esac
18518 shlibpath_var=LD_LIBRARY_PATH
18519 case $host_os in
18520 freebsd2*)
18521 shlibpath_overrides_runpath=yes
18522 ;;
18523 freebsd3.01* | freebsdelf3.01*)
18524 shlibpath_overrides_runpath=yes
18525 hardcode_into_libs=yes
18526 ;;
18527 *) # from 3.2 on
18528 shlibpath_overrides_runpath=no
18529 hardcode_into_libs=yes
18530 ;;
18531 esac
18532 ;;
18533
18534gnu*)
18535 version_type=linux
18536 need_lib_prefix=no
18537 need_version=no
18538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18539 soname_spec='${libname}${release}${shared_ext}$major'
18540 shlibpath_var=LD_LIBRARY_PATH
18541 hardcode_into_libs=yes
18542 ;;
18543
18544hpux9* | hpux10* | hpux11*)
18545 # Give a soname corresponding to the major version so that dld.sl refuses to
18546 # link against other versions.
18547 version_type=sunos
18548 need_lib_prefix=no
18549 need_version=no
18550 case "$host_cpu" in
18551 ia64*)
18552 shrext_cmds='.so'
18553 hardcode_into_libs=yes
18554 dynamic_linker="$host_os dld.so"
18555 shlibpath_var=LD_LIBRARY_PATH
18556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18558 soname_spec='${libname}${release}${shared_ext}$major'
18559 if test "X$HPUX_IA64_MODE" = X32; then
18560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18561 else
18562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18563 fi
18564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18565 ;;
18566 hppa*64*)
18567 shrext_cmds='.sl'
18568 hardcode_into_libs=yes
18569 dynamic_linker="$host_os dld.sl"
18570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573 soname_spec='${libname}${release}${shared_ext}$major'
18574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18576 ;;
18577 *)
18578 shrext_cmds='.sl'
18579 dynamic_linker="$host_os dld.sl"
18580 shlibpath_var=SHLIB_PATH
18581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583 soname_spec='${libname}${release}${shared_ext}$major'
18584 ;;
18585 esac
18586 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18587 postinstall_cmds='chmod 555 $lib'
18588 ;;
18589
18590irix5* | irix6* | nonstopux*)
18591 case $host_os in
18592 nonstopux*) version_type=nonstopux ;;
18593 *)
18594 if test "$lt_cv_prog_gnu_ld" = yes; then
18595 version_type=linux
18596 else
18597 version_type=irix
18598 fi ;;
18599 esac
18600 need_lib_prefix=no
18601 need_version=no
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18604 case $host_os in
18605 irix5* | nonstopux*)
18606 libsuff= shlibsuff=
18607 ;;
18608 *)
18609 case $LD in # libtool.m4 will add one of these switches to LD
18610 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18611 libsuff= shlibsuff= libmagic=32-bit;;
18612 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18613 libsuff=32 shlibsuff=N32 libmagic=N32;;
18614 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18615 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18616 *) libsuff= shlibsuff= libmagic=never-match;;
18617 esac
18618 ;;
18619 esac
18620 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18621 shlibpath_overrides_runpath=no
18622 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18623 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18624 hardcode_into_libs=yes
18625 ;;
18626
18627# No shared lib support for Linux oldld, aout, or coff.
18628linux*oldld* | linux*aout* | linux*coff*)
18629 dynamic_linker=no
18630 ;;
18631
18632# This must be Linux ELF.
18633linux*)
18634 version_type=linux
18635 need_lib_prefix=no
18636 need_version=no
18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18638 soname_spec='${libname}${release}${shared_ext}$major'
18639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18640 shlibpath_var=LD_LIBRARY_PATH
18641 shlibpath_overrides_runpath=no
18642 # This implies no fast_install, which is unacceptable.
18643 # Some rework will be needed to allow for fast_install
18644 # before this can be enabled.
18645 hardcode_into_libs=yes
18646
18647 # Append ld.so.conf contents to the search path
18648 if test -f /etc/ld.so.conf; then
18649 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18650 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18651 fi
18652
18653 # We used to test for /lib/ld.so.1 and disable shared libraries on
18654 # powerpc, because MkLinux only supported shared libraries with the
18655 # GNU dynamic linker. Since this was broken with cross compilers,
18656 # most powerpc-linux boxes support dynamic linking these days and
18657 # people can always --disable-shared, the test was removed, and we
18658 # assume the GNU/Linux dynamic linker is in use.
18659 dynamic_linker='GNU/Linux ld.so'
18660 ;;
18661
18662knetbsd*-gnu)
18663 version_type=linux
18664 need_lib_prefix=no
18665 need_version=no
18666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18667 soname_spec='${libname}${release}${shared_ext}$major'
18668 shlibpath_var=LD_LIBRARY_PATH
18669 shlibpath_overrides_runpath=no
18670 hardcode_into_libs=yes
18671 dynamic_linker='GNU ld.so'
18672 ;;
18673
18674netbsd*)
18675 version_type=sunos
18676 need_lib_prefix=no
18677 need_version=no
18678 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18681 dynamic_linker='NetBSD (a.out) ld.so'
18682 else
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18684 soname_spec='${libname}${release}${shared_ext}$major'
18685 dynamic_linker='NetBSD ld.elf_so'
18686 fi
18687 shlibpath_var=LD_LIBRARY_PATH
18688 shlibpath_overrides_runpath=yes
18689 hardcode_into_libs=yes
18690 ;;
18691
18692newsos6)
18693 version_type=linux
18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18695 shlibpath_var=LD_LIBRARY_PATH
18696 shlibpath_overrides_runpath=yes
18697 ;;
18698
18699nto-qnx*)
18700 version_type=linux
18701 need_lib_prefix=no
18702 need_version=no
18703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704 soname_spec='${libname}${release}${shared_ext}$major'
18705 shlibpath_var=LD_LIBRARY_PATH
18706 shlibpath_overrides_runpath=yes
18707 ;;
18708
18709openbsd*)
18710 version_type=sunos
18711 need_lib_prefix=no
18712 need_version=no
18713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18715 shlibpath_var=LD_LIBRARY_PATH
18716 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18717 case $host_os in
18718 openbsd2.[89] | openbsd2.[89].*)
18719 shlibpath_overrides_runpath=no
18720 ;;
18721 *)
18722 shlibpath_overrides_runpath=yes
18723 ;;
18724 esac
18725 else
18726 shlibpath_overrides_runpath=yes
18727 fi
18728 ;;
18729
18730os2*)
18731 libname_spec='$name'
18732 shrext_cmds=".dll"
18733 need_lib_prefix=no
18734 library_names_spec='$libname${shared_ext} $libname.a'
18735 dynamic_linker='OS/2 ld.exe'
18736 shlibpath_var=LIBPATH
18737 ;;
18738
18739osf3* | osf4* | osf5*)
18740 version_type=osf
18741 need_lib_prefix=no
18742 need_version=no
18743 soname_spec='${libname}${release}${shared_ext}$major'
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745 shlibpath_var=LD_LIBRARY_PATH
18746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18748 ;;
18749
18750sco3.2v5*)
18751 version_type=osf
18752 soname_spec='${libname}${release}${shared_ext}$major'
18753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18754 shlibpath_var=LD_LIBRARY_PATH
18755 ;;
18756
18757solaris*)
18758 version_type=linux
18759 need_lib_prefix=no
18760 need_version=no
18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762 soname_spec='${libname}${release}${shared_ext}$major'
18763 shlibpath_var=LD_LIBRARY_PATH
18764 shlibpath_overrides_runpath=yes
18765 hardcode_into_libs=yes
18766 # ldd complains unless libraries are executable
18767 postinstall_cmds='chmod +x $lib'
18768 ;;
18769
18770sunos4*)
18771 version_type=sunos
18772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18773 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18774 shlibpath_var=LD_LIBRARY_PATH
18775 shlibpath_overrides_runpath=yes
18776 if test "$with_gnu_ld" = yes; then
18777 need_lib_prefix=no
18778 fi
18779 need_version=yes
18780 ;;
18781
18782sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18783 version_type=linux
18784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18785 soname_spec='${libname}${release}${shared_ext}$major'
18786 shlibpath_var=LD_LIBRARY_PATH
18787 case $host_vendor in
18788 sni)
18789 shlibpath_overrides_runpath=no
18790 need_lib_prefix=no
18791 export_dynamic_flag_spec='${wl}-Blargedynsym'
18792 runpath_var=LD_RUN_PATH
18793 ;;
18794 siemens)
18795 need_lib_prefix=no
18796 ;;
18797 motorola)
18798 need_lib_prefix=no
18799 need_version=no
18800 shlibpath_overrides_runpath=no
18801 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18802 ;;
18803 esac
18804 ;;
18805
18806sysv4*MP*)
18807 if test -d /usr/nec ;then
18808 version_type=linux
18809 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18810 soname_spec='$libname${shared_ext}.$major'
18811 shlibpath_var=LD_LIBRARY_PATH
18812 fi
18813 ;;
18814
18815uts4*)
18816 version_type=linux
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18818 soname_spec='${libname}${release}${shared_ext}$major'
18819 shlibpath_var=LD_LIBRARY_PATH
18820 ;;
18821
18822*)
18823 dynamic_linker=no
18824 ;;
18825esac
18826echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18827echo "${ECHO_T}$dynamic_linker" >&6
18828test "$dynamic_linker" = no && can_build_shared=no
18829
18830echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18831echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18832hardcode_action_GCJ=
18833if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18834 test -n "$runpath_var_GCJ" || \
18835 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18836
18837 # We can hardcode non-existant directories.
18838 if test "$hardcode_direct_GCJ" != no &&
18839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18840 # have to relink, otherwise we might link with an installed library
18841 # when we should be linking with a yet-to-be-installed one
18842 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18843 test "$hardcode_minus_L_GCJ" != no; then
18844 # Linking always hardcodes the temporary library directory.
18845 hardcode_action_GCJ=relink
18846 else
18847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18848 hardcode_action_GCJ=immediate
18849 fi
18850else
18851 # We cannot hardcode anything, or else we can only hardcode existing
18852 # directories.
18853 hardcode_action_GCJ=unsupported
18854fi
18855echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18856echo "${ECHO_T}$hardcode_action_GCJ" >&6
18857
18858if test "$hardcode_action_GCJ" = relink; then
18859 # Fast installation is not supported
18860 enable_fast_install=no
18861elif test "$shlibpath_overrides_runpath" = yes ||
18862 test "$enable_shared" = no; then
18863 # Fast installation is not necessary
18864 enable_fast_install=needless
18865fi
18866
18867striplib=
18868old_striplib=
18869echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18870echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18871if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18872 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18873 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18874 echo "$as_me:$LINENO: result: yes" >&5
18875echo "${ECHO_T}yes" >&6
18876else
18877# FIXME - insert some real tests, host_os isn't really good enough
18878 case $host_os in
18879 darwin*)
18880 if test -n "$STRIP" ; then
18881 striplib="$STRIP -x"
18882 echo "$as_me:$LINENO: result: yes" >&5
18883echo "${ECHO_T}yes" >&6
18884 else
18885 echo "$as_me:$LINENO: result: no" >&5
18886echo "${ECHO_T}no" >&6
18887fi
18888 ;;
18889 *)
18890 echo "$as_me:$LINENO: result: no" >&5
18891echo "${ECHO_T}no" >&6
18892 ;;
18893 esac
18894fi
18895
18896if test "x$enable_dlopen" != xyes; then
18897 enable_dlopen=unknown
18898 enable_dlopen_self=unknown
18899 enable_dlopen_self_static=unknown
18900else
18901 lt_cv_dlopen=no
18902 lt_cv_dlopen_libs=
18903
18904 case $host_os in
18905 beos*)
18906 lt_cv_dlopen="load_add_on"
18907 lt_cv_dlopen_libs=
18908 lt_cv_dlopen_self=yes
18909 ;;
18910
18911 mingw* | pw32*)
18912 lt_cv_dlopen="LoadLibrary"
18913 lt_cv_dlopen_libs=
18914 ;;
18915
18916 cygwin*)
18917 lt_cv_dlopen="dlopen"
18918 lt_cv_dlopen_libs=
18919 ;;
18920
18921 darwin*)
18922 # if libdl is installed we need to link against it
18923 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18924echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18925if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927else
18928 ac_check_lib_save_LIBS=$LIBS
18929LIBS="-ldl $LIBS"
18930cat >conftest.$ac_ext <<_ACEOF
18931/* confdefs.h. */
18932_ACEOF
18933cat confdefs.h >>conftest.$ac_ext
18934cat >>conftest.$ac_ext <<_ACEOF
18935/* end confdefs.h. */
18936
18937/* Override any gcc2 internal prototype to avoid an error. */
18938#ifdef __cplusplus
18939extern "C"
18940#endif
18941/* We use char because int might match the return type of a gcc2
18942 builtin and then its argument prototype would still apply. */
18943char dlopen ();
18944int
18945main ()
18946{
18947dlopen ();
18948 ;
18949 return 0;
18950}
18951_ACEOF
18952rm -f conftest.$ac_objext conftest$ac_exeext
18953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18954 (eval $ac_link) 2>conftest.er1
18955 ac_status=$?
18956 grep -v '^ *+' conftest.er1 >conftest.err
18957 rm -f conftest.er1
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
18961 { ac_try='test -z "$ac_c_werror_flag"
18962 || test ! -s conftest.err'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; } &&
18968 { ac_try='test -s conftest$ac_exeext'
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
18974 ac_cv_lib_dl_dlopen=yes
18975else
18976 echo "$as_me: failed program was:" >&5
18977sed 's/^/| /' conftest.$ac_ext >&5
18978
18979ac_cv_lib_dl_dlopen=no
18980fi
18981rm -f conftest.err conftest.$ac_objext \
18982 conftest$ac_exeext conftest.$ac_ext
18983LIBS=$ac_check_lib_save_LIBS
18984fi
18985echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18986echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18987if test $ac_cv_lib_dl_dlopen = yes; then
18988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18989else
18990
18991 lt_cv_dlopen="dyld"
18992 lt_cv_dlopen_libs=
18993 lt_cv_dlopen_self=yes
18994
18995fi
18996
18997 ;;
18998
18999 *)
19000 echo "$as_me:$LINENO: checking for shl_load" >&5
19001echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19002if test "${ac_cv_func_shl_load+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19004else
19005 cat >conftest.$ac_ext <<_ACEOF
19006/* confdefs.h. */
19007_ACEOF
19008cat confdefs.h >>conftest.$ac_ext
19009cat >>conftest.$ac_ext <<_ACEOF
19010/* end confdefs.h. */
19011/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19013#define shl_load innocuous_shl_load
19014
19015/* System header to define __stub macros and hopefully few prototypes,
19016 which can conflict with char shl_load (); below.
19017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19018 <limits.h> exists even on freestanding compilers. */
19019
19020#ifdef __STDC__
19021# include <limits.h>
19022#else
19023# include <assert.h>
19024#endif
19025
19026#undef shl_load
19027
19028/* Override any gcc2 internal prototype to avoid an error. */
19029#ifdef __cplusplus
19030extern "C"
19031{
19032#endif
19033/* We use char because int might match the return type of a gcc2
19034 builtin and then its argument prototype would still apply. */
19035char shl_load ();
19036/* The GNU C library defines this for functions which it implements
19037 to always fail with ENOSYS. Some functions are actually named
19038 something starting with __ and the normal name is an alias. */
19039#if defined (__stub_shl_load) || defined (__stub___shl_load)
19040choke me
19041#else
19042char (*f) () = shl_load;
19043#endif
19044#ifdef __cplusplus
19045}
19046#endif
19047
19048int
19049main ()
19050{
19051return f != shl_load;
19052 ;
19053 return 0;
19054}
19055_ACEOF
19056rm -f conftest.$ac_objext conftest$ac_exeext
19057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19058 (eval $ac_link) 2>conftest.er1
19059 ac_status=$?
19060 grep -v '^ *+' conftest.er1 >conftest.err
19061 rm -f conftest.er1
19062 cat conftest.err >&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } &&
19065 { ac_try='test -z "$ac_c_werror_flag"
19066 || test ! -s conftest.err'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try='test -s conftest$ac_exeext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 ac_cv_func_shl_load=yes
19079else
19080 echo "$as_me: failed program was:" >&5
19081sed 's/^/| /' conftest.$ac_ext >&5
19082
19083ac_cv_func_shl_load=no
19084fi
19085rm -f conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext conftest.$ac_ext
19087fi
19088echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19089echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19090if test $ac_cv_func_shl_load = yes; then
19091 lt_cv_dlopen="shl_load"
19092else
19093 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19094echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19095if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19096 echo $ECHO_N "(cached) $ECHO_C" >&6
19097else
19098 ac_check_lib_save_LIBS=$LIBS
19099LIBS="-ldld $LIBS"
19100cat >conftest.$ac_ext <<_ACEOF
19101/* confdefs.h. */
19102_ACEOF
19103cat confdefs.h >>conftest.$ac_ext
19104cat >>conftest.$ac_ext <<_ACEOF
19105/* end confdefs.h. */
19106
19107/* Override any gcc2 internal prototype to avoid an error. */
19108#ifdef __cplusplus
19109extern "C"
19110#endif
19111/* We use char because int might match the return type of a gcc2
19112 builtin and then its argument prototype would still apply. */
19113char shl_load ();
19114int
19115main ()
19116{
19117shl_load ();
19118 ;
19119 return 0;
19120}
19121_ACEOF
19122rm -f conftest.$ac_objext conftest$ac_exeext
19123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19124 (eval $ac_link) 2>conftest.er1
19125 ac_status=$?
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
19131 { ac_try='test -z "$ac_c_werror_flag"
19132 || test ! -s conftest.err'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; } &&
19138 { ac_try='test -s conftest$ac_exeext'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19144 ac_cv_lib_dld_shl_load=yes
19145else
19146 echo "$as_me: failed program was:" >&5
19147sed 's/^/| /' conftest.$ac_ext >&5
19148
19149ac_cv_lib_dld_shl_load=no
19150fi
19151rm -f conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19153LIBS=$ac_check_lib_save_LIBS
19154fi
19155echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19156echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19157if test $ac_cv_lib_dld_shl_load = yes; then
19158 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19159else
19160 echo "$as_me:$LINENO: checking for dlopen" >&5
19161echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19162if test "${ac_cv_func_dlopen+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19164else
19165 cat >conftest.$ac_ext <<_ACEOF
19166/* confdefs.h. */
19167_ACEOF
19168cat confdefs.h >>conftest.$ac_ext
19169cat >>conftest.$ac_ext <<_ACEOF
19170/* end confdefs.h. */
19171/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19173#define dlopen innocuous_dlopen
19174
19175/* System header to define __stub macros and hopefully few prototypes,
19176 which can conflict with char dlopen (); below.
19177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19178 <limits.h> exists even on freestanding compilers. */
19179
19180#ifdef __STDC__
19181# include <limits.h>
19182#else
19183# include <assert.h>
19184#endif
19185
19186#undef dlopen
19187
19188/* Override any gcc2 internal prototype to avoid an error. */
19189#ifdef __cplusplus
19190extern "C"
19191{
19192#endif
19193/* We use char because int might match the return type of a gcc2
19194 builtin and then its argument prototype would still apply. */
19195char dlopen ();
19196/* The GNU C library defines this for functions which it implements
19197 to always fail with ENOSYS. Some functions are actually named
19198 something starting with __ and the normal name is an alias. */
19199#if defined (__stub_dlopen) || defined (__stub___dlopen)
19200choke me
19201#else
19202char (*f) () = dlopen;
19203#endif
19204#ifdef __cplusplus
19205}
19206#endif
19207
19208int
19209main ()
19210{
19211return f != dlopen;
19212 ;
19213 return 0;
19214}
19215_ACEOF
19216rm -f conftest.$ac_objext conftest$ac_exeext
19217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19218 (eval $ac_link) 2>conftest.er1
19219 ac_status=$?
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag"
19226 || test ! -s conftest.err'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest$ac_exeext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_func_dlopen=yes
19239else
19240 echo "$as_me: failed program was:" >&5
19241sed 's/^/| /' conftest.$ac_ext >&5
19242
19243ac_cv_func_dlopen=no
19244fi
19245rm -f conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
19247fi
19248echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19249echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19250if test $ac_cv_func_dlopen = yes; then
19251 lt_cv_dlopen="dlopen"
19252else
19253 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19254echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19255if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19257else
19258 ac_check_lib_save_LIBS=$LIBS
19259LIBS="-ldl $LIBS"
19260cat >conftest.$ac_ext <<_ACEOF
19261/* confdefs.h. */
19262_ACEOF
19263cat confdefs.h >>conftest.$ac_ext
19264cat >>conftest.$ac_ext <<_ACEOF
19265/* end confdefs.h. */
19266
19267/* Override any gcc2 internal prototype to avoid an error. */
19268#ifdef __cplusplus
19269extern "C"
19270#endif
19271/* We use char because int might match the return type of a gcc2
19272 builtin and then its argument prototype would still apply. */
19273char dlopen ();
19274int
19275main ()
19276{
19277dlopen ();
19278 ;
19279 return 0;
19280}
19281_ACEOF
19282rm -f conftest.$ac_objext conftest$ac_exeext
19283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19284 (eval $ac_link) 2>conftest.er1
19285 ac_status=$?
19286 grep -v '^ *+' conftest.er1 >conftest.err
19287 rm -f conftest.er1
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
19291 { ac_try='test -z "$ac_c_werror_flag"
19292 || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest$ac_exeext'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_lib_dl_dlopen=yes
19305else
19306 echo "$as_me: failed program was:" >&5
19307sed 's/^/| /' conftest.$ac_ext >&5
19308
19309ac_cv_lib_dl_dlopen=no
19310fi
19311rm -f conftest.err conftest.$ac_objext \
19312 conftest$ac_exeext conftest.$ac_ext
19313LIBS=$ac_check_lib_save_LIBS
19314fi
19315echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19316echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19317if test $ac_cv_lib_dl_dlopen = yes; then
19318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19319else
19320 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19321echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19322if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19324else
19325 ac_check_lib_save_LIBS=$LIBS
19326LIBS="-lsvld $LIBS"
19327cat >conftest.$ac_ext <<_ACEOF
19328/* confdefs.h. */
19329_ACEOF
19330cat confdefs.h >>conftest.$ac_ext
19331cat >>conftest.$ac_ext <<_ACEOF
19332/* end confdefs.h. */
19333
19334/* Override any gcc2 internal prototype to avoid an error. */
19335#ifdef __cplusplus
19336extern "C"
19337#endif
19338/* We use char because int might match the return type of a gcc2
19339 builtin and then its argument prototype would still apply. */
19340char dlopen ();
19341int
19342main ()
19343{
19344dlopen ();
19345 ;
19346 return 0;
19347}
19348_ACEOF
19349rm -f conftest.$ac_objext conftest$ac_exeext
19350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19351 (eval $ac_link) 2>conftest.er1
19352 ac_status=$?
19353 grep -v '^ *+' conftest.er1 >conftest.err
19354 rm -f conftest.er1
19355 cat conftest.err >&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } &&
19358 { ac_try='test -z "$ac_c_werror_flag"
19359 || test ! -s conftest.err'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest$ac_exeext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 ac_cv_lib_svld_dlopen=yes
19372else
19373 echo "$as_me: failed program was:" >&5
19374sed 's/^/| /' conftest.$ac_ext >&5
19375
19376ac_cv_lib_svld_dlopen=no
19377fi
19378rm -f conftest.err conftest.$ac_objext \
19379 conftest$ac_exeext conftest.$ac_ext
19380LIBS=$ac_check_lib_save_LIBS
19381fi
19382echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19383echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19384if test $ac_cv_lib_svld_dlopen = yes; then
19385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19386else
19387 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19388echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19389if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19391else
19392 ac_check_lib_save_LIBS=$LIBS
19393LIBS="-ldld $LIBS"
19394cat >conftest.$ac_ext <<_ACEOF
19395/* confdefs.h. */
19396_ACEOF
19397cat confdefs.h >>conftest.$ac_ext
19398cat >>conftest.$ac_ext <<_ACEOF
19399/* end confdefs.h. */
19400
19401/* Override any gcc2 internal prototype to avoid an error. */
19402#ifdef __cplusplus
19403extern "C"
19404#endif
19405/* We use char because int might match the return type of a gcc2
19406 builtin and then its argument prototype would still apply. */
19407char dld_link ();
19408int
19409main ()
19410{
19411dld_link ();
19412 ;
19413 return 0;
19414}
19415_ACEOF
19416rm -f conftest.$ac_objext conftest$ac_exeext
19417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418 (eval $ac_link) 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_lib_dld_dld_link=yes
19439else
19440 echo "$as_me: failed program was:" >&5
19441sed 's/^/| /' conftest.$ac_ext >&5
19442
19443ac_cv_lib_dld_dld_link=no
19444fi
19445rm -f conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
19447LIBS=$ac_check_lib_save_LIBS
19448fi
19449echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19450echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19451if test $ac_cv_lib_dld_dld_link = yes; then
19452 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19453fi
19454
19455
19456fi
19457
19458
19459fi
19460
19461
19462fi
19463
19464
19465fi
19466
19467
19468fi
19469
19470 ;;
19471 esac
19472
19473 if test "x$lt_cv_dlopen" != xno; then
19474 enable_dlopen=yes
19475 else
19476 enable_dlopen=no
19477 fi
19478
19479 case $lt_cv_dlopen in
19480 dlopen)
19481 save_CPPFLAGS="$CPPFLAGS"
19482 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19483
19484 save_LDFLAGS="$LDFLAGS"
19485 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19486
19487 save_LIBS="$LIBS"
19488 LIBS="$lt_cv_dlopen_libs $LIBS"
19489
19490 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19491echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19492if test "${lt_cv_dlopen_self+set}" = set; then
19493 echo $ECHO_N "(cached) $ECHO_C" >&6
19494else
19495 if test "$cross_compiling" = yes; then :
19496 lt_cv_dlopen_self=cross
19497else
19498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19499 lt_status=$lt_dlunknown
19500 cat > conftest.$ac_ext <<EOF
19501#line 19501 "configure"
19502#include "confdefs.h"
19503
19504#if HAVE_DLFCN_H
19505#include <dlfcn.h>
19506#endif
19507
19508#include <stdio.h>
19509
19510#ifdef RTLD_GLOBAL
19511# define LT_DLGLOBAL RTLD_GLOBAL
19512#else
19513# ifdef DL_GLOBAL
19514# define LT_DLGLOBAL DL_GLOBAL
19515# else
19516# define LT_DLGLOBAL 0
19517# endif
19518#endif
19519
19520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19521 find out it does not work in some platform. */
19522#ifndef LT_DLLAZY_OR_NOW
19523# ifdef RTLD_LAZY
19524# define LT_DLLAZY_OR_NOW RTLD_LAZY
19525# else
19526# ifdef DL_LAZY
19527# define LT_DLLAZY_OR_NOW DL_LAZY
19528# else
19529# ifdef RTLD_NOW
19530# define LT_DLLAZY_OR_NOW RTLD_NOW
19531# else
19532# ifdef DL_NOW
19533# define LT_DLLAZY_OR_NOW DL_NOW
19534# else
19535# define LT_DLLAZY_OR_NOW 0
19536# endif
19537# endif
19538# endif
19539# endif
19540#endif
19541
19542#ifdef __cplusplus
19543extern "C" void exit (int);
19544#endif
19545
19546void fnord() { int i=42;}
19547int main ()
19548{
19549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19550 int status = $lt_dlunknown;
19551
19552 if (self)
19553 {
19554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19555 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19556 /* dlclose (self); */
19557 }
19558
19559 exit (status);
19560}
19561EOF
19562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19563 (eval $ac_link) 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19567 (./conftest; exit; ) 2>/dev/null
19568 lt_status=$?
19569 case x$lt_status in
19570 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19571 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19572 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19573 esac
19574 else :
19575 # compilation failed
19576 lt_cv_dlopen_self=no
19577 fi
19578fi
19579rm -fr conftest*
19580
19581
19582fi
19583echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19584echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19585
19586 if test "x$lt_cv_dlopen_self" = xyes; then
19587 LDFLAGS="$LDFLAGS $link_static_flag"
19588 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19589echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19590if test "${lt_cv_dlopen_self_static+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19592else
19593 if test "$cross_compiling" = yes; then :
19594 lt_cv_dlopen_self_static=cross
19595else
19596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19597 lt_status=$lt_dlunknown
19598 cat > conftest.$ac_ext <<EOF
19599#line 19599 "configure"
19600#include "confdefs.h"
19601
19602#if HAVE_DLFCN_H
19603#include <dlfcn.h>
19604#endif
19605
19606#include <stdio.h>
19607
19608#ifdef RTLD_GLOBAL
19609# define LT_DLGLOBAL RTLD_GLOBAL
19610#else
19611# ifdef DL_GLOBAL
19612# define LT_DLGLOBAL DL_GLOBAL
19613# else
19614# define LT_DLGLOBAL 0
19615# endif
19616#endif
19617
19618/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19619 find out it does not work in some platform. */
19620#ifndef LT_DLLAZY_OR_NOW
19621# ifdef RTLD_LAZY
19622# define LT_DLLAZY_OR_NOW RTLD_LAZY
19623# else
19624# ifdef DL_LAZY
19625# define LT_DLLAZY_OR_NOW DL_LAZY
19626# else
19627# ifdef RTLD_NOW
19628# define LT_DLLAZY_OR_NOW RTLD_NOW
19629# else
19630# ifdef DL_NOW
19631# define LT_DLLAZY_OR_NOW DL_NOW
19632# else
19633# define LT_DLLAZY_OR_NOW 0
19634# endif
19635# endif
19636# endif
19637# endif
19638#endif
19639
19640#ifdef __cplusplus
19641extern "C" void exit (int);
19642#endif
19643
19644void fnord() { int i=42;}
19645int main ()
19646{
19647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19648 int status = $lt_dlunknown;
19649
19650 if (self)
19651 {
19652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19654 /* dlclose (self); */
19655 }
19656
19657 exit (status);
19658}
19659EOF
19660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19661 (eval $ac_link) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19665 (./conftest; exit; ) 2>/dev/null
19666 lt_status=$?
19667 case x$lt_status in
19668 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19669 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19670 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19671 esac
19672 else :
19673 # compilation failed
19674 lt_cv_dlopen_self_static=no
19675 fi
19676fi
19677rm -fr conftest*
19678
19679
19680fi
19681echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19682echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19683 fi
19684
19685 CPPFLAGS="$save_CPPFLAGS"
19686 LDFLAGS="$save_LDFLAGS"
19687 LIBS="$save_LIBS"
19688 ;;
19689 esac
19690
19691 case $lt_cv_dlopen_self in
19692 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19693 *) enable_dlopen_self=unknown ;;
19694 esac
19695
19696 case $lt_cv_dlopen_self_static in
19697 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19698 *) enable_dlopen_self_static=unknown ;;
19699 esac
19700fi
19701
19702
19703# The else clause should only fire when bootstrapping the
19704# libtool distribution, otherwise you forgot to ship ltmain.sh
19705# with your package, and you will get complaints that there are
19706# no rules to generate ltmain.sh.
19707if test -f "$ltmain"; then
19708 # See if we are running on zsh, and set the options which allow our commands through
19709 # without removal of \ escapes.
19710 if test -n "${ZSH_VERSION+set}" ; then
19711 setopt NO_GLOB_SUBST
19712 fi
19713 # Now quote all the things that may contain metacharacters while being
19714 # careful not to overquote the AC_SUBSTed values. We take copies of the
19715 # variables and quote the copies for generation of the libtool script.
19716 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19717 SED SHELL STRIP \
19718 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19719 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19720 deplibs_check_method reload_flag reload_cmds need_locks \
19721 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19722 lt_cv_sys_global_symbol_to_c_name_address \
19723 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19724 old_postinstall_cmds old_postuninstall_cmds \
19725 compiler_GCJ \
19726 CC_GCJ \
19727 LD_GCJ \
19728 lt_prog_compiler_wl_GCJ \
19729 lt_prog_compiler_pic_GCJ \
19730 lt_prog_compiler_static_GCJ \
19731 lt_prog_compiler_no_builtin_flag_GCJ \
19732 export_dynamic_flag_spec_GCJ \
19733 thread_safe_flag_spec_GCJ \
19734 whole_archive_flag_spec_GCJ \
19735 enable_shared_with_static_runtimes_GCJ \
19736 old_archive_cmds_GCJ \
19737 old_archive_from_new_cmds_GCJ \
19738 predep_objects_GCJ \
19739 postdep_objects_GCJ \
19740 predeps_GCJ \
19741 postdeps_GCJ \
19742 compiler_lib_search_path_GCJ \
19743 archive_cmds_GCJ \
19744 archive_expsym_cmds_GCJ \
19745 postinstall_cmds_GCJ \
19746 postuninstall_cmds_GCJ \
19747 old_archive_from_expsyms_cmds_GCJ \
19748 allow_undefined_flag_GCJ \
19749 no_undefined_flag_GCJ \
19750 export_symbols_cmds_GCJ \
19751 hardcode_libdir_flag_spec_GCJ \
19752 hardcode_libdir_flag_spec_ld_GCJ \
19753 hardcode_libdir_separator_GCJ \
19754 hardcode_automatic_GCJ \
19755 module_cmds_GCJ \
19756 module_expsym_cmds_GCJ \
19757 lt_cv_prog_compiler_c_o_GCJ \
19758 exclude_expsyms_GCJ \
19759 include_expsyms_GCJ; do
19760
19761 case $var in
19762 old_archive_cmds_GCJ | \
19763 old_archive_from_new_cmds_GCJ | \
19764 archive_cmds_GCJ | \
19765 archive_expsym_cmds_GCJ | \
19766 module_cmds_GCJ | \
19767 module_expsym_cmds_GCJ | \
19768 old_archive_from_expsyms_cmds_GCJ | \
19769 export_symbols_cmds_GCJ | \
19770 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19771 postinstall_cmds | postuninstall_cmds | \
19772 old_postinstall_cmds | old_postuninstall_cmds | \
19773 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19774 # Double-quote double-evaled strings.
19775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19776 ;;
19777 *)
19778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19779 ;;
19780 esac
19781 done
19782
19783 case $lt_echo in
19784 *'\$0 --fallback-echo"')
19785 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19786 ;;
19787 esac
19788
19789cfgfile="$ofile"
19790
19791 cat <<__EOF__ >> "$cfgfile"
19792# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19793
19794# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19795
19796# Shell to use when invoking shell scripts.
19797SHELL=$lt_SHELL
19798
19799# Whether or not to build shared libraries.
19800build_libtool_libs=$enable_shared
19801
19802# Whether or not to build static libraries.
19803build_old_libs=$enable_static
19804
19805# Whether or not to add -lc for building shared libraries.
19806build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19807
19808# Whether or not to disallow shared libs when runtime libs are static
19809allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19810
19811# Whether or not to optimize for fast installation.
19812fast_install=$enable_fast_install
19813
19814# The host system.
19815host_alias=$host_alias
19816host=$host
19817
19818# An echo program that does not interpret backslashes.
19819echo=$lt_echo
19820
19821# The archiver.
19822AR=$lt_AR
19823AR_FLAGS=$lt_AR_FLAGS
19824
19825# A C compiler.
19826LTCC=$lt_LTCC
19827
19828# A language-specific compiler.
19829CC=$lt_compiler_GCJ
19830
19831# Is the compiler the GNU C compiler?
19832with_gcc=$GCC_GCJ
19833
19834# An ERE matcher.
19835EGREP=$lt_EGREP
19836
19837# The linker used to build libraries.
19838LD=$lt_LD_GCJ
19839
19840# Whether we need hard or soft links.
19841LN_S=$lt_LN_S
19842
19843# A BSD-compatible nm program.
19844NM=$lt_NM
19845
19846# A symbol stripping program
19847STRIP=$lt_STRIP
19848
19849# Used to examine libraries when file_magic_cmd begins "file"
19850MAGIC_CMD=$MAGIC_CMD
19851
19852# Used on cygwin: DLL creation program.
19853DLLTOOL="$DLLTOOL"
19854
19855# Used on cygwin: object dumper.
19856OBJDUMP="$OBJDUMP"
19857
19858# Used on cygwin: assembler.
19859AS="$AS"
19860
19861# The name of the directory that contains temporary libtool files.
19862objdir=$objdir
19863
19864# How to create reloadable object files.
19865reload_flag=$lt_reload_flag
19866reload_cmds=$lt_reload_cmds
19867
19868# How to pass a linker flag through the compiler.
19869wl=$lt_lt_prog_compiler_wl_GCJ
19870
19871# Object file suffix (normally "o").
19872objext="$ac_objext"
19873
19874# Old archive suffix (normally "a").
19875libext="$libext"
19876
19877# Shared library suffix (normally ".so").
19878shrext_cmds='$shrext_cmds'
19879
19880# Executable file suffix (normally "").
19881exeext="$exeext"
19882
19883# Additional compiler flags for building library objects.
19884pic_flag=$lt_lt_prog_compiler_pic_GCJ
19885pic_mode=$pic_mode
19886
19887# What is the maximum length of a command?
19888max_cmd_len=$lt_cv_sys_max_cmd_len
19889
19890# Does compiler simultaneously support -c and -o options?
19891compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19892
19893# Must we lock files when doing compilation ?
19894need_locks=$lt_need_locks
19895
19896# Do we need the lib prefix for modules?
19897need_lib_prefix=$need_lib_prefix
19898
19899# Do we need a version for libraries?
19900need_version=$need_version
19901
19902# Whether dlopen is supported.
19903dlopen_support=$enable_dlopen
19904
19905# Whether dlopen of programs is supported.
19906dlopen_self=$enable_dlopen_self
19907
19908# Whether dlopen of statically linked programs is supported.
19909dlopen_self_static=$enable_dlopen_self_static
19910
19911# Compiler flag to prevent dynamic linking.
19912link_static_flag=$lt_lt_prog_compiler_static_GCJ
19913
19914# Compiler flag to turn off builtin functions.
19915no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19916
19917# Compiler flag to allow reflexive dlopens.
19918export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19919
19920# Compiler flag to generate shared objects directly from archives.
19921whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19922
19923# Compiler flag to generate thread-safe objects.
19924thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19925
19926# Library versioning type.
19927version_type=$version_type
19928
19929# Format of library name prefix.
19930libname_spec=$lt_libname_spec
19931
19932# List of archive names. First name is the real one, the rest are links.
19933# The last name is the one that the linker finds with -lNAME.
19934library_names_spec=$lt_library_names_spec
19935
19936# The coded name of the library, if different from the real name.
19937soname_spec=$lt_soname_spec
19938
19939# Commands used to build and install an old-style archive.
19940RANLIB=$lt_RANLIB
19941old_archive_cmds=$lt_old_archive_cmds_GCJ
19942old_postinstall_cmds=$lt_old_postinstall_cmds
19943old_postuninstall_cmds=$lt_old_postuninstall_cmds
19944
19945# Create an old-style archive from a shared archive.
19946old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19947
19948# Create a temporary old-style archive to link instead of a shared archive.
19949old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19950
19951# Commands used to build and install a shared archive.
19952archive_cmds=$lt_archive_cmds_GCJ
19953archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19954postinstall_cmds=$lt_postinstall_cmds
19955postuninstall_cmds=$lt_postuninstall_cmds
19956
19957# Commands used to build a loadable module (assumed same as above if empty)
19958module_cmds=$lt_module_cmds_GCJ
19959module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19960
19961# Commands to strip libraries.
19962old_striplib=$lt_old_striplib
19963striplib=$lt_striplib
19964
19965# Dependencies to place before the objects being linked to create a
19966# shared library.
19967predep_objects=$lt_predep_objects_GCJ
19968
19969# Dependencies to place after the objects being linked to create a
19970# shared library.
19971postdep_objects=$lt_postdep_objects_GCJ
19972
19973# Dependencies to place before the objects being linked to create a
19974# shared library.
19975predeps=$lt_predeps_GCJ
19976
19977# Dependencies to place after the objects being linked to create a
19978# shared library.
19979postdeps=$lt_postdeps_GCJ
19980
19981# The library search path used internally by the compiler when linking
19982# a shared library.
19983compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19984
19985# Method to check whether dependent libraries are shared objects.
19986deplibs_check_method=$lt_deplibs_check_method
19987
19988# Command to use when deplibs_check_method == file_magic.
19989file_magic_cmd=$lt_file_magic_cmd
19990
19991# Flag that allows shared libraries with undefined symbols to be built.
19992allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19993
19994# Flag that forces no undefined symbols.
19995no_undefined_flag=$lt_no_undefined_flag_GCJ
19996
19997# Commands used to finish a libtool library installation in a directory.
19998finish_cmds=$lt_finish_cmds
19999
20000# Same as above, but a single script fragment to be evaled but not shown.
20001finish_eval=$lt_finish_eval
20002
20003# Take the output of nm and produce a listing of raw symbols and C names.
20004global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20005
20006# Transform the output of nm in a proper C declaration
20007global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20008
20009# Transform the output of nm in a C name address pair
20010global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20011
20012# This is the shared library runtime path variable.
20013runpath_var=$runpath_var
20014
20015# This is the shared library path variable.
20016shlibpath_var=$shlibpath_var
20017
20018# Is shlibpath searched before the hard-coded library search path?
20019shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20020
20021# How to hardcode a shared library path into an executable.
20022hardcode_action=$hardcode_action_GCJ
20023
20024# Whether we should hardcode library paths into libraries.
20025hardcode_into_libs=$hardcode_into_libs
20026
20027# Flag to hardcode \$libdir into a binary during linking.
20028# This must work even if \$libdir does not exist.
20029hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20030
20031# If ld is used when linking, flag to hardcode \$libdir into
20032# a binary during linking. This must work even if \$libdir does
20033# not exist.
20034hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20035
20036# Whether we need a single -rpath flag with a separated argument.
20037hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20038
20039# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20040# resulting binary.
20041hardcode_direct=$hardcode_direct_GCJ
20042
20043# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20044# resulting binary.
20045hardcode_minus_L=$hardcode_minus_L_GCJ
20046
20047# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20048# the resulting binary.
20049hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20050
20051# Set to yes if building a shared library automatically hardcodes DIR into the library
20052# and all subsequent libraries and executables linked against it.
20053hardcode_automatic=$hardcode_automatic_GCJ
20054
20055# Variables whose values should be saved in libtool wrapper scripts and
20056# restored at relink time.
20057variables_saved_for_relink="$variables_saved_for_relink"
20058
20059# Whether libtool must link a program against all its dependency libraries.
20060link_all_deplibs=$link_all_deplibs_GCJ
20061
20062# Compile-time system search path for libraries
20063sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20064
20065# Run-time system search path for libraries
20066sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20067
20068# Fix the shell variable \$srcfile for the compiler.
20069fix_srcfile_path="$fix_srcfile_path_GCJ"
20070
20071# Set to yes if exported symbols are required.
20072always_export_symbols=$always_export_symbols_GCJ
20073
20074# The commands to list exported symbols.
20075export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20076
20077# The commands to extract the exported symbol list from a shared archive.
20078extract_expsyms_cmds=$lt_extract_expsyms_cmds
20079
20080# Symbols that should not be listed in the preloaded symbols.
20081exclude_expsyms=$lt_exclude_expsyms_GCJ
20082
20083# Symbols that must always be exported.
20084include_expsyms=$lt_include_expsyms_GCJ
20085
20086# ### END LIBTOOL TAG CONFIG: $tagname
20087
20088__EOF__
20089
20090
20091else
20092 # If there is no Makefile yet, we rely on a make rule to execute
20093 # `config.status --recheck' to rerun these tests and create the
20094 # libtool script then.
20095 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20096 if test -f "$ltmain_in"; then
20097 test -f Makefile && make "$ltmain"
20098 fi
20099fi
20100
20101
20102ac_ext=c
20103ac_cpp='$CPP $CPPFLAGS'
20104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20106ac_compiler_gnu=$ac_cv_c_compiler_gnu
20107
20108CC="$lt_save_CC"
20109
20110 else
20111 tagname=""
20112 fi
20113 ;;
20114
20115 RC)
20116 ac_ext=c
20117ac_cpp='$CPP $CPPFLAGS'
20118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20120ac_compiler_gnu=$ac_cv_c_compiler_gnu
20121
20122
20123# Source file extension for RC test sources.
20124ac_ext=rc
20125
20126# Object file extension for compiled RC test sources.
20127objext=o
20128objext_RC=$objext
20129
20130# Code to be used in simple compile tests
20131lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20132
20133# Code to be used in simple link tests
20134lt_simple_link_test_code="$lt_simple_compile_test_code"
20135
20136# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20137
20138# If no C compiler was specified, use CC.
20139LTCC=${LTCC-"$CC"}
20140
20141# Allow CC to be a program name with arguments.
20142compiler=$CC
20143
20144
20145# Allow CC to be a program name with arguments.
20146lt_save_CC="$CC"
20147CC=${RC-"windres"}
20148compiler=$CC
20149compiler_RC=$CC
20150lt_cv_prog_compiler_c_o_RC=yes
20151
20152# The else clause should only fire when bootstrapping the
20153# libtool distribution, otherwise you forgot to ship ltmain.sh
20154# with your package, and you will get complaints that there are
20155# no rules to generate ltmain.sh.
20156if test -f "$ltmain"; then
20157 # See if we are running on zsh, and set the options which allow our commands through
20158 # without removal of \ escapes.
20159 if test -n "${ZSH_VERSION+set}" ; then
20160 setopt NO_GLOB_SUBST
20161 fi
20162 # Now quote all the things that may contain metacharacters while being
20163 # careful not to overquote the AC_SUBSTed values. We take copies of the
20164 # variables and quote the copies for generation of the libtool script.
20165 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20166 SED SHELL STRIP \
20167 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20168 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20169 deplibs_check_method reload_flag reload_cmds need_locks \
20170 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20171 lt_cv_sys_global_symbol_to_c_name_address \
20172 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20173 old_postinstall_cmds old_postuninstall_cmds \
20174 compiler_RC \
20175 CC_RC \
20176 LD_RC \
20177 lt_prog_compiler_wl_RC \
20178 lt_prog_compiler_pic_RC \
20179 lt_prog_compiler_static_RC \
20180 lt_prog_compiler_no_builtin_flag_RC \
20181 export_dynamic_flag_spec_RC \
20182 thread_safe_flag_spec_RC \
20183 whole_archive_flag_spec_RC \
20184 enable_shared_with_static_runtimes_RC \
20185 old_archive_cmds_RC \
20186 old_archive_from_new_cmds_RC \
20187 predep_objects_RC \
20188 postdep_objects_RC \
20189 predeps_RC \
20190 postdeps_RC \
20191 compiler_lib_search_path_RC \
20192 archive_cmds_RC \
20193 archive_expsym_cmds_RC \
20194 postinstall_cmds_RC \
20195 postuninstall_cmds_RC \
20196 old_archive_from_expsyms_cmds_RC \
20197 allow_undefined_flag_RC \
20198 no_undefined_flag_RC \
20199 export_symbols_cmds_RC \
20200 hardcode_libdir_flag_spec_RC \
20201 hardcode_libdir_flag_spec_ld_RC \
20202 hardcode_libdir_separator_RC \
20203 hardcode_automatic_RC \
20204 module_cmds_RC \
20205 module_expsym_cmds_RC \
20206 lt_cv_prog_compiler_c_o_RC \
20207 exclude_expsyms_RC \
20208 include_expsyms_RC; do
20209
20210 case $var in
20211 old_archive_cmds_RC | \
20212 old_archive_from_new_cmds_RC | \
20213 archive_cmds_RC | \
20214 archive_expsym_cmds_RC | \
20215 module_cmds_RC | \
20216 module_expsym_cmds_RC | \
20217 old_archive_from_expsyms_cmds_RC | \
20218 export_symbols_cmds_RC | \
20219 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20220 postinstall_cmds | postuninstall_cmds | \
20221 old_postinstall_cmds | old_postuninstall_cmds | \
20222 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20223 # Double-quote double-evaled strings.
20224 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20225 ;;
20226 *)
20227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20228 ;;
20229 esac
20230 done
20231
20232 case $lt_echo in
20233 *'\$0 --fallback-echo"')
20234 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20235 ;;
20236 esac
20237
20238cfgfile="$ofile"
20239
20240 cat <<__EOF__ >> "$cfgfile"
20241# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20242
20243# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20244
20245# Shell to use when invoking shell scripts.
20246SHELL=$lt_SHELL
20247
20248# Whether or not to build shared libraries.
20249build_libtool_libs=$enable_shared
20250
20251# Whether or not to build static libraries.
20252build_old_libs=$enable_static
20253
20254# Whether or not to add -lc for building shared libraries.
20255build_libtool_need_lc=$archive_cmds_need_lc_RC
20256
20257# Whether or not to disallow shared libs when runtime libs are static
20258allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20259
20260# Whether or not to optimize for fast installation.
20261fast_install=$enable_fast_install
20262
20263# The host system.
20264host_alias=$host_alias
20265host=$host
20266
20267# An echo program that does not interpret backslashes.
20268echo=$lt_echo
20269
20270# The archiver.
20271AR=$lt_AR
20272AR_FLAGS=$lt_AR_FLAGS
20273
20274# A C compiler.
20275LTCC=$lt_LTCC
20276
20277# A language-specific compiler.
20278CC=$lt_compiler_RC
20279
20280# Is the compiler the GNU C compiler?
20281with_gcc=$GCC_RC
20282
20283# An ERE matcher.
20284EGREP=$lt_EGREP
20285
20286# The linker used to build libraries.
20287LD=$lt_LD_RC
20288
20289# Whether we need hard or soft links.
20290LN_S=$lt_LN_S
20291
20292# A BSD-compatible nm program.
20293NM=$lt_NM
20294
20295# A symbol stripping program
20296STRIP=$lt_STRIP
20297
20298# Used to examine libraries when file_magic_cmd begins "file"
20299MAGIC_CMD=$MAGIC_CMD
20300
20301# Used on cygwin: DLL creation program.
20302DLLTOOL="$DLLTOOL"
20303
20304# Used on cygwin: object dumper.
20305OBJDUMP="$OBJDUMP"
20306
20307# Used on cygwin: assembler.
20308AS="$AS"
20309
20310# The name of the directory that contains temporary libtool files.
20311objdir=$objdir
20312
20313# How to create reloadable object files.
20314reload_flag=$lt_reload_flag
20315reload_cmds=$lt_reload_cmds
20316
20317# How to pass a linker flag through the compiler.
20318wl=$lt_lt_prog_compiler_wl_RC
20319
20320# Object file suffix (normally "o").
20321objext="$ac_objext"
20322
20323# Old archive suffix (normally "a").
20324libext="$libext"
20325
20326# Shared library suffix (normally ".so").
20327shrext_cmds='$shrext_cmds'
20328
20329# Executable file suffix (normally "").
20330exeext="$exeext"
20331
20332# Additional compiler flags for building library objects.
20333pic_flag=$lt_lt_prog_compiler_pic_RC
20334pic_mode=$pic_mode
20335
20336# What is the maximum length of a command?
20337max_cmd_len=$lt_cv_sys_max_cmd_len
20338
20339# Does compiler simultaneously support -c and -o options?
20340compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20341
20342# Must we lock files when doing compilation ?
20343need_locks=$lt_need_locks
20344
20345# Do we need the lib prefix for modules?
20346need_lib_prefix=$need_lib_prefix
20347
20348# Do we need a version for libraries?
20349need_version=$need_version
20350
20351# Whether dlopen is supported.
20352dlopen_support=$enable_dlopen
20353
20354# Whether dlopen of programs is supported.
20355dlopen_self=$enable_dlopen_self
20356
20357# Whether dlopen of statically linked programs is supported.
20358dlopen_self_static=$enable_dlopen_self_static
20359
20360# Compiler flag to prevent dynamic linking.
20361link_static_flag=$lt_lt_prog_compiler_static_RC
20362
20363# Compiler flag to turn off builtin functions.
20364no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20365
20366# Compiler flag to allow reflexive dlopens.
20367export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20368
20369# Compiler flag to generate shared objects directly from archives.
20370whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20371
20372# Compiler flag to generate thread-safe objects.
20373thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20374
20375# Library versioning type.
20376version_type=$version_type
20377
20378# Format of library name prefix.
20379libname_spec=$lt_libname_spec
20380
20381# List of archive names. First name is the real one, the rest are links.
20382# The last name is the one that the linker finds with -lNAME.
20383library_names_spec=$lt_library_names_spec
20384
20385# The coded name of the library, if different from the real name.
20386soname_spec=$lt_soname_spec
20387
20388# Commands used to build and install an old-style archive.
20389RANLIB=$lt_RANLIB
20390old_archive_cmds=$lt_old_archive_cmds_RC
20391old_postinstall_cmds=$lt_old_postinstall_cmds
20392old_postuninstall_cmds=$lt_old_postuninstall_cmds
20393
20394# Create an old-style archive from a shared archive.
20395old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20396
20397# Create a temporary old-style archive to link instead of a shared archive.
20398old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20399
20400# Commands used to build and install a shared archive.
20401archive_cmds=$lt_archive_cmds_RC
20402archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20403postinstall_cmds=$lt_postinstall_cmds
20404postuninstall_cmds=$lt_postuninstall_cmds
20405
20406# Commands used to build a loadable module (assumed same as above if empty)
20407module_cmds=$lt_module_cmds_RC
20408module_expsym_cmds=$lt_module_expsym_cmds_RC
20409
20410# Commands to strip libraries.
20411old_striplib=$lt_old_striplib
20412striplib=$lt_striplib
20413
20414# Dependencies to place before the objects being linked to create a
20415# shared library.
20416predep_objects=$lt_predep_objects_RC
20417
20418# Dependencies to place after the objects being linked to create a
20419# shared library.
20420postdep_objects=$lt_postdep_objects_RC
20421
20422# Dependencies to place before the objects being linked to create a
20423# shared library.
20424predeps=$lt_predeps_RC
20425
20426# Dependencies to place after the objects being linked to create a
20427# shared library.
20428postdeps=$lt_postdeps_RC
20429
20430# The library search path used internally by the compiler when linking
20431# a shared library.
20432compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20433
20434# Method to check whether dependent libraries are shared objects.
20435deplibs_check_method=$lt_deplibs_check_method
20436
20437# Command to use when deplibs_check_method == file_magic.
20438file_magic_cmd=$lt_file_magic_cmd
20439
20440# Flag that allows shared libraries with undefined symbols to be built.
20441allow_undefined_flag=$lt_allow_undefined_flag_RC
20442
20443# Flag that forces no undefined symbols.
20444no_undefined_flag=$lt_no_undefined_flag_RC
20445
20446# Commands used to finish a libtool library installation in a directory.
20447finish_cmds=$lt_finish_cmds
20448
20449# Same as above, but a single script fragment to be evaled but not shown.
20450finish_eval=$lt_finish_eval
20451
20452# Take the output of nm and produce a listing of raw symbols and C names.
20453global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20454
20455# Transform the output of nm in a proper C declaration
20456global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20457
20458# Transform the output of nm in a C name address pair
20459global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20460
20461# This is the shared library runtime path variable.
20462runpath_var=$runpath_var
20463
20464# This is the shared library path variable.
20465shlibpath_var=$shlibpath_var
20466
20467# Is shlibpath searched before the hard-coded library search path?
20468shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20469
20470# How to hardcode a shared library path into an executable.
20471hardcode_action=$hardcode_action_RC
20472
20473# Whether we should hardcode library paths into libraries.
20474hardcode_into_libs=$hardcode_into_libs
20475
20476# Flag to hardcode \$libdir into a binary during linking.
20477# This must work even if \$libdir does not exist.
20478hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20479
20480# If ld is used when linking, flag to hardcode \$libdir into
20481# a binary during linking. This must work even if \$libdir does
20482# not exist.
20483hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20484
20485# Whether we need a single -rpath flag with a separated argument.
20486hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20487
20488# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20489# resulting binary.
20490hardcode_direct=$hardcode_direct_RC
20491
20492# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20493# resulting binary.
20494hardcode_minus_L=$hardcode_minus_L_RC
20495
20496# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20497# the resulting binary.
20498hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20499
20500# Set to yes if building a shared library automatically hardcodes DIR into the library
20501# and all subsequent libraries and executables linked against it.
20502hardcode_automatic=$hardcode_automatic_RC
20503
20504# Variables whose values should be saved in libtool wrapper scripts and
20505# restored at relink time.
20506variables_saved_for_relink="$variables_saved_for_relink"
20507
20508# Whether libtool must link a program against all its dependency libraries.
20509link_all_deplibs=$link_all_deplibs_RC
20510
20511# Compile-time system search path for libraries
20512sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20513
20514# Run-time system search path for libraries
20515sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20516
20517# Fix the shell variable \$srcfile for the compiler.
20518fix_srcfile_path="$fix_srcfile_path_RC"
20519
20520# Set to yes if exported symbols are required.
20521always_export_symbols=$always_export_symbols_RC
20522
20523# The commands to list exported symbols.
20524export_symbols_cmds=$lt_export_symbols_cmds_RC
20525
20526# The commands to extract the exported symbol list from a shared archive.
20527extract_expsyms_cmds=$lt_extract_expsyms_cmds
20528
20529# Symbols that should not be listed in the preloaded symbols.
20530exclude_expsyms=$lt_exclude_expsyms_RC
20531
20532# Symbols that must always be exported.
20533include_expsyms=$lt_include_expsyms_RC
20534
20535# ### END LIBTOOL TAG CONFIG: $tagname
20536
20537__EOF__
20538
20539
20540else
20541 # If there is no Makefile yet, we rely on a make rule to execute
20542 # `config.status --recheck' to rerun these tests and create the
20543 # libtool script then.
20544 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20545 if test -f "$ltmain_in"; then
20546 test -f Makefile && make "$ltmain"
20547 fi
20548fi
20549
20550
20551ac_ext=c
20552ac_cpp='$CPP $CPPFLAGS'
20553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555ac_compiler_gnu=$ac_cv_c_compiler_gnu
20556
20557CC="$lt_save_CC"
20558
20559 ;;
20560
20561 *)
20562 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20563echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20564 { (exit 1); exit 1; }; }
20565 ;;
20566 esac
20567
20568 # Append the new tag name to the list of available tags.
20569 if test -n "$tagname" ; then
20570 available_tags="$available_tags $tagname"
20571 fi
20572 fi
20573 done
20574 IFS="$lt_save_ifs"
20575
20576 # Now substitute the updated list of available tags.
20577 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20578 mv "${ofile}T" "$ofile"
20579 chmod +x "$ofile"
20580 else
20581 rm -f "${ofile}T"
20582 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20583echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20584 { (exit 1); exit 1; }; }
20585 fi
20586fi
20587
20588
20589
20590# This can be used to rebuild libtool when needed
20591LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20592
20593# Always use our own libtool.
20594LIBTOOL='$(SHELL) $(top_builddir)/mklib'
20595
20596# Prevent multiple expansion
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618# Extract the first word of "dot", so it can be a program name with args.
20619set dummy dot; ac_word=$2
20620echo "$as_me:$LINENO: checking for $ac_word" >&5
20621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20622if test "${ac_cv_path_DOT+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20624else
20625 case $DOT in
20626 [\\/]* | ?:[\\/]*)
20627 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20628 ;;
20629 *)
20630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20631for as_dir in $PATH
20632do
20633 IFS=$as_save_IFS
20634 test -z "$as_dir" && as_dir=.
20635 for ac_exec_ext in '' $ac_executable_extensions; do
20636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20637 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20639 break 2
20640 fi
20641done
20642done
20643
20644 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
20645 ;;
20646esac
20647fi
20648DOT=$ac_cv_path_DOT
20649
20650if test -n "$DOT"; then
20651 echo "$as_me:$LINENO: result: $DOT" >&5
20652echo "${ECHO_T}$DOT" >&6
20653else
20654 echo "$as_me:$LINENO: result: no" >&5
20655echo "${ECHO_T}no" >&6
20656fi
20657
20658# Extract the first word of "etags", so it can be a program name with args.
20659set dummy etags; ac_word=$2
20660echo "$as_me:$LINENO: checking for $ac_word" >&5
20661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20662if test "${ac_cv_path_ETAGS+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20664else
20665 case $ETAGS in
20666 [\\/]* | ?:[\\/]*)
20667 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20668 ;;
20669 *)
20670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20671for as_dir in $PATH
20672do
20673 IFS=$as_save_IFS
20674 test -z "$as_dir" && as_dir=.
20675 for ac_exec_ext in '' $ac_executable_extensions; do
20676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20677 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20679 break 2
20680 fi
20681done
20682done
20683
20684 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
20685 ;;
20686esac
20687fi
20688ETAGS=$ac_cv_path_ETAGS
20689
20690if test -n "$ETAGS"; then
20691 echo "$as_me:$LINENO: result: $ETAGS" >&5
20692echo "${ECHO_T}$ETAGS" >&6
20693else
20694 echo "$as_me:$LINENO: result: no" >&5
20695echo "${ECHO_T}no" >&6
20696fi
20697
20698# Extract the first word of "python", so it can be a program name with args.
20699set dummy python; ac_word=$2
20700echo "$as_me:$LINENO: checking for $ac_word" >&5
20701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20702if test "${ac_cv_path_PYTHON+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20704else
20705 case $PYTHON in
20706 [\\/]* | ?:[\\/]*)
20707 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20708 ;;
20709 *)
20710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20711for as_dir in $PATH
20712do
20713 IFS=$as_save_IFS
20714 test -z "$as_dir" && as_dir=.
20715 for ac_exec_ext in '' $ac_executable_extensions; do
20716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20717 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20719 break 2
20720 fi
20721done
20722done
20723
20724 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
20725 ;;
20726esac
20727fi
20728PYTHON=$ac_cv_path_PYTHON
20729
20730if test -n "$PYTHON"; then
20731 echo "$as_me:$LINENO: result: $PYTHON" >&5
20732echo "${ECHO_T}$PYTHON" >&6
20733else
20734 echo "$as_me:$LINENO: result: no" >&5
20735echo "${ECHO_T}no" >&6
20736fi
20737
20738# Extract the first word of "qmtest", so it can be a program name with args.
20739set dummy qmtest; ac_word=$2
20740echo "$as_me:$LINENO: checking for $ac_word" >&5
20741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20742if test "${ac_cv_path_QMTEST+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744else
20745 case $QMTEST in
20746 [\\/]* | ?:[\\/]*)
20747 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20748 ;;
20749 *)
20750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20751for as_dir in $PATH
20752do
20753 IFS=$as_save_IFS
20754 test -z "$as_dir" && as_dir=.
20755 for ac_exec_ext in '' $ac_executable_extensions; do
20756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20757 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20759 break 2
20760 fi
20761done
20762done
20763
20764 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
20765 ;;
20766esac
20767fi
20768QMTEST=$ac_cv_path_QMTEST
20769
20770if test -n "$QMTEST"; then
20771 echo "$as_me:$LINENO: result: $QMTEST" >&5
20772echo "${ECHO_T}$QMTEST" >&6
20773else
20774 echo "$as_me:$LINENO: result: no" >&5
20775echo "${ECHO_T}no" >&6
20776fi
20777
20778
20779
20780if test "$GCC" != "yes"
20781then
20782 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
20783echo "$as_me: error: gcc required but not found" >&2;}
20784 { (exit 1); exit 1; }; }
20785fi
20786
20787if test "$GXX" != "yes"
20788then
20789 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
20790echo "$as_me: error: g++ required but not found" >&2;}
20791 { (exit 1); exit 1; }; }
20792fi
20793
20794gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
20795if test "$gccmajor" -lt "3"
20796then
20797 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
20798echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
20799 { (exit 1); exit 1; }; }
20800fi
20801
20802 echo "$as_me:$LINENO: checking for GNU make" >&5
20803echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
20804if test "${_cv_gnu_make_command+set}" = set; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
20806else
20807 _cv_gnu_make_command='' ;
20808 for a in "$MAKE" make gmake gnumake ; do
20809 if test -z "$a" ; then continue ; fi ;
20810 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
20811 _cv_gnu_make_command=$a ;
20812 break;
20813 fi
20814 done ;
20815
20816fi
20817echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
20818echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
20819 if test "x$_cv_gnu_make_command" != "x" ; then
20820 ifGNUmake='' ;
20821 else
20822 ifGNUmake='#' ;
20823 echo "$as_me:$LINENO: result: \"Not found\"" >&5
20824echo "${ECHO_T}\"Not found\"" >&6;
20825 fi
20826
20827
20828if test -z "$_cv_gnu_make_command"
20829then
20830 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
20831echo "$as_me: error: GNU Make required but not found" >&2;}
20832 { (exit 1); exit 1; }; }
20833fi
20834
20835echo "$as_me:$LINENO: checking for llvm-gcc" >&5
20836echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
20837LLVM_GCC_CHECK=no
20838if test -d "$LLVMGCCDIR"
20839then
20840 if test -x "$LLVMGCCDIR/bin/gcc"
20841 then
20842 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
20843 fi
20844fi
20845llvmgccwarn=no
20846echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
20847echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
20848if test "$LLVM_GCC_CHECK" = "no"
20849then
20850 llvmgccwarn=yes
20851fi
20852
20853echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20854echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
20855LLVM_GCC_SANE=no
20856if test -x "$LLVM_GCC_CHECK"
20857then
20858 cp /dev/null conftest.c
20859 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
20860 if test $? -eq 0
20861 then
20862 LLVM_GCC_SANE=yes
20863 fi
20864 rm conftest.c
20865 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
20866 LLVMCC1=$llvmcc1path
20867
20868 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
20869 LLVMCC1PLUS=$llvmcc1pluspath
20870
20871fi
20872echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
20873echo "${ECHO_T}$LLVM_GCC_SANE" >&6
20874if test "$LLVM_GCC_SANE" = "no"
20875then
20876 llvmgccwarn=yes
20877fi
20878
20879etags_version=`$ETAGS --version 2>&1`
20880case "$etags_version" in
20881 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
20882 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
20883 *) ETAGSFLAGS="" ;;
20884esac
20885ETAGSFLAGS=$ETAGSFLAGS
20886
20887
20888if test "$PYTHON" = "false"
20889then
20890 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
20891echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
20892fi
20893if test "$QMTEST" = "false"
20894then
20895 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
20896echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
20897fi
20898
20899pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
20900pymajor=`echo $pyversion | cut -d. -f1`
20901pyminor=`echo $pyversion | cut -d. -f2`
20902
20903if test "$pymajor" -ge "2"
20904then
20905 if test "$pymajor" -eq "2"
20906 then
20907 if test "$pyminor" -lt "2"
20908 then
20909 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20910echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20911 fi
20912 fi
20913else
20914 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
20915echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
20916fi
20917
20918
20919
20920echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
20921echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
20922if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
20923 echo $ECHO_N "(cached) $ECHO_C" >&6
20924else
20925 ac_check_lib_save_LIBS=$LIBS
20926LIBS="-lelf $LIBS"
20927cat >conftest.$ac_ext <<_ACEOF
20928/* confdefs.h. */
20929_ACEOF
20930cat confdefs.h >>conftest.$ac_ext
20931cat >>conftest.$ac_ext <<_ACEOF
20932/* end confdefs.h. */
20933
20934/* Override any gcc2 internal prototype to avoid an error. */
20935#ifdef __cplusplus
20936extern "C"
20937#endif
20938/* We use char because int might match the return type of a gcc2
20939 builtin and then its argument prototype would still apply. */
20940char elf_begin ();
20941int
20942main ()
20943{
20944elf_begin ();
20945 ;
20946 return 0;
20947}
20948_ACEOF
20949rm -f conftest.$ac_objext conftest$ac_exeext
20950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20951 (eval $ac_link) 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
20958 { ac_try='test -z "$ac_c_werror_flag"
20959 || test ! -s conftest.err'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20962 ac_status=$?
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest$ac_exeext'
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20968 ac_status=$?
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }; then
20971 ac_cv_lib_elf_elf_begin=yes
20972else
20973 echo "$as_me: failed program was:" >&5
20974sed 's/^/| /' conftest.$ac_ext >&5
20975
20976ac_cv_lib_elf_elf_begin=no
20977fi
20978rm -f conftest.err conftest.$ac_objext \
20979 conftest$ac_exeext conftest.$ac_ext
20980LIBS=$ac_check_lib_save_LIBS
20981fi
20982echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
20983echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
20984if test $ac_cv_lib_elf_elf_begin = yes; then
20985 cat >>confdefs.h <<_ACEOF
20986#define HAVE_LIBELF 1
20987_ACEOF
20988
20989 LIBS="-lelf $LIBS"
20990
20991fi
20992
20993
20994echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
20995echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
20996if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20998else
20999 ac_check_lib_save_LIBS=$LIBS
21000LIBS="-lbz2 $LIBS"
21001cat >conftest.$ac_ext <<_ACEOF
21002/* confdefs.h. */
21003_ACEOF
21004cat confdefs.h >>conftest.$ac_ext
21005cat >>conftest.$ac_ext <<_ACEOF
21006/* end confdefs.h. */
21007
21008/* Override any gcc2 internal prototype to avoid an error. */
21009#ifdef __cplusplus
21010extern "C"
21011#endif
21012/* We use char because int might match the return type of a gcc2
21013 builtin and then its argument prototype would still apply. */
21014char BZ2_bzCompressInit ();
21015int
21016main ()
21017{
21018BZ2_bzCompressInit ();
21019 ;
21020 return 0;
21021}
21022_ACEOF
21023rm -f conftest.$ac_objext conftest$ac_exeext
21024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025 (eval $ac_link) 2>conftest.er1
21026 ac_status=$?
21027 grep -v '^ *+' conftest.er1 >conftest.err
21028 rm -f conftest.er1
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
21032 { ac_try='test -z "$ac_c_werror_flag"
21033 || test ! -s conftest.err'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest$ac_exeext'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
21046else
21047 echo "$as_me: failed program was:" >&5
21048sed 's/^/| /' conftest.$ac_ext >&5
21049
21050ac_cv_lib_bz2_BZ2_bzCompressInit=no
21051fi
21052rm -f conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
21054LIBS=$ac_check_lib_save_LIBS
21055fi
21056echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
21057echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
21058if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
21059 bzip2_found=1
21060else
21061 bzip2_found=0
21062fi
21063
21064echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
21065echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
21066if test "${ac_cv_lib_z_gzopen+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21068else
21069 ac_check_lib_save_LIBS=$LIBS
21070LIBS="-lz $LIBS"
21071cat >conftest.$ac_ext <<_ACEOF
21072/* confdefs.h. */
21073_ACEOF
21074cat confdefs.h >>conftest.$ac_ext
21075cat >>conftest.$ac_ext <<_ACEOF
21076/* end confdefs.h. */
21077
21078/* Override any gcc2 internal prototype to avoid an error. */
21079#ifdef __cplusplus
21080extern "C"
21081#endif
21082/* We use char because int might match the return type of a gcc2
21083 builtin and then its argument prototype would still apply. */
21084char gzopen ();
21085int
21086main ()
21087{
21088gzopen ();
21089 ;
21090 return 0;
21091}
21092_ACEOF
21093rm -f conftest.$ac_objext conftest$ac_exeext
21094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21095 (eval $ac_link) 2>conftest.er1
21096 ac_status=$?
21097 grep -v '^ *+' conftest.er1 >conftest.err
21098 rm -f conftest.er1
21099 cat conftest.err >&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } &&
21102 { ac_try='test -z "$ac_c_werror_flag"
21103 || test ! -s conftest.err'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21106 ac_status=$?
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; } &&
21109 { ac_try='test -s conftest$ac_exeext'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 ac_cv_lib_z_gzopen=yes
21116else
21117 echo "$as_me: failed program was:" >&5
21118sed 's/^/| /' conftest.$ac_ext >&5
21119
21120ac_cv_lib_z_gzopen=no
21121fi
21122rm -f conftest.err conftest.$ac_objext \
21123 conftest$ac_exeext conftest.$ac_ext
21124LIBS=$ac_check_lib_save_LIBS
21125fi
21126echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
21127echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
21128if test $ac_cv_lib_z_gzopen = yes; then
21129 zlib_found=1
21130else
21131 zlib_found=0
21132fi
21133
21134
21135echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21136echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
21137if test "${ac_cv_search_dlopen+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21139else
21140 ac_func_search_save_LIBS=$LIBS
21141ac_cv_search_dlopen=no
21142cat >conftest.$ac_ext <<_ACEOF
21143/* confdefs.h. */
21144_ACEOF
21145cat confdefs.h >>conftest.$ac_ext
21146cat >>conftest.$ac_ext <<_ACEOF
21147/* end confdefs.h. */
21148
21149/* Override any gcc2 internal prototype to avoid an error. */
21150#ifdef __cplusplus
21151extern "C"
21152#endif
21153/* We use char because int might match the return type of a gcc2
21154 builtin and then its argument prototype would still apply. */
21155char dlopen ();
21156int
21157main ()
21158{
21159dlopen ();
21160 ;
21161 return 0;
21162}
21163_ACEOF
21164rm -f conftest.$ac_objext conftest$ac_exeext
21165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21166 (eval $ac_link) 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
21173 { ac_try='test -z "$ac_c_werror_flag"
21174 || test ! -s conftest.err'
21175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); }; } &&
21180 { ac_try='test -s conftest$ac_exeext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 ac_cv_search_dlopen="none required"
21187else
21188 echo "$as_me: failed program was:" >&5
21189sed 's/^/| /' conftest.$ac_ext >&5
21190
21191fi
21192rm -f conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
21194if test "$ac_cv_search_dlopen" = no; then
21195 for ac_lib in dl; do
21196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21197 cat >conftest.$ac_ext <<_ACEOF
21198/* confdefs.h. */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */
21203
21204/* Override any gcc2 internal prototype to avoid an error. */
21205#ifdef __cplusplus
21206extern "C"
21207#endif
21208/* We use char because int might match the return type of a gcc2
21209 builtin and then its argument prototype would still apply. */
21210char dlopen ();
21211int
21212main ()
21213{
21214dlopen ();
21215 ;
21216 return 0;
21217}
21218_ACEOF
21219rm -f conftest.$ac_objext conftest$ac_exeext
21220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21221 (eval $ac_link) 2>conftest.er1
21222 ac_status=$?
21223 grep -v '^ *+' conftest.er1 >conftest.err
21224 rm -f conftest.er1
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } &&
21228 { ac_try='test -z "$ac_c_werror_flag"
21229 || test ! -s conftest.err'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; } &&
21235 { ac_try='test -s conftest$ac_exeext'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21238 ac_status=$?
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 ac_cv_search_dlopen="-l$ac_lib"
21242break
21243else
21244 echo "$as_me: failed program was:" >&5
21245sed 's/^/| /' conftest.$ac_ext >&5
21246
21247fi
21248rm -f conftest.err conftest.$ac_objext \
21249 conftest$ac_exeext conftest.$ac_ext
21250 done
21251fi
21252LIBS=$ac_func_search_save_LIBS
21253fi
21254echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21255echo "${ECHO_T}$ac_cv_search_dlopen" >&6
21256if test "$ac_cv_search_dlopen" != no; then
21257 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
21258
21259cat >>confdefs.h <<\_ACEOF
21260#define HAVE_DLOPEN 1
21261_ACEOF
21262
21263else
21264 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
21265echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
21266fi
21267
21268
21269echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
21270echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
21271if test "${ac_cv_search_mallinfo+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21273else
21274 ac_func_search_save_LIBS=$LIBS
21275ac_cv_search_mallinfo=no
21276cat >conftest.$ac_ext <<_ACEOF
21277/* confdefs.h. */
21278_ACEOF
21279cat confdefs.h >>conftest.$ac_ext
21280cat >>conftest.$ac_ext <<_ACEOF
21281/* end confdefs.h. */
21282
21283/* Override any gcc2 internal prototype to avoid an error. */
21284#ifdef __cplusplus
21285extern "C"
21286#endif
21287/* We use char because int might match the return type of a gcc2
21288 builtin and then its argument prototype would still apply. */
21289char mallinfo ();
21290int
21291main ()
21292{
21293mallinfo ();
21294 ;
21295 return 0;
21296}
21297_ACEOF
21298rm -f conftest.$ac_objext conftest$ac_exeext
21299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21300 (eval $ac_link) 2>conftest.er1
21301 ac_status=$?
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
21307 { ac_try='test -z "$ac_c_werror_flag"
21308 || test ! -s conftest.err'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; } &&
21314 { ac_try='test -s conftest$ac_exeext'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21317 ac_status=$?
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; }; then
21320 ac_cv_search_mallinfo="none required"
21321else
21322 echo "$as_me: failed program was:" >&5
21323sed 's/^/| /' conftest.$ac_ext >&5
21324
21325fi
21326rm -f conftest.err conftest.$ac_objext \
21327 conftest$ac_exeext conftest.$ac_ext
21328if test "$ac_cv_search_mallinfo" = no; then
21329 for ac_lib in malloc; do
21330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21331 cat >conftest.$ac_ext <<_ACEOF
21332/* confdefs.h. */
21333_ACEOF
21334cat confdefs.h >>conftest.$ac_ext
21335cat >>conftest.$ac_ext <<_ACEOF
21336/* end confdefs.h. */
21337
21338/* Override any gcc2 internal prototype to avoid an error. */
21339#ifdef __cplusplus
21340extern "C"
21341#endif
21342/* We use char because int might match the return type of a gcc2
21343 builtin and then its argument prototype would still apply. */
21344char mallinfo ();
21345int
21346main ()
21347{
21348mallinfo ();
21349 ;
21350 return 0;
21351}
21352_ACEOF
21353rm -f conftest.$ac_objext conftest$ac_exeext
21354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21355 (eval $ac_link) 2>conftest.er1
21356 ac_status=$?
21357 grep -v '^ *+' conftest.er1 >conftest.err
21358 rm -f conftest.er1
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } &&
21362 { ac_try='test -z "$ac_c_werror_flag"
21363 || test ! -s conftest.err'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; } &&
21369 { ac_try='test -s conftest$ac_exeext'
21370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21371 (eval $ac_try) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; }; then
21375 ac_cv_search_mallinfo="-l$ac_lib"
21376break
21377else
21378 echo "$as_me: failed program was:" >&5
21379sed 's/^/| /' conftest.$ac_ext >&5
21380
21381fi
21382rm -f conftest.err conftest.$ac_objext \
21383 conftest$ac_exeext conftest.$ac_ext
21384 done
21385fi
21386LIBS=$ac_func_search_save_LIBS
21387fi
21388echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21389echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21390if test "$ac_cv_search_mallinfo" != no; then
21391 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
21392
21393cat >>confdefs.h <<\_ACEOF
21394#define HAVE_MALLINFO 1
21395_ACEOF
21396
21397fi
21398
21399
21400echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21401echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21402if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21404else
21405 ac_func_search_save_LIBS=$LIBS
21406ac_cv_search_pthread_mutex_lock=no
21407cat >conftest.$ac_ext <<_ACEOF
21408/* confdefs.h. */
21409_ACEOF
21410cat confdefs.h >>conftest.$ac_ext
21411cat >>conftest.$ac_ext <<_ACEOF
21412/* end confdefs.h. */
21413
21414/* Override any gcc2 internal prototype to avoid an error. */
21415#ifdef __cplusplus
21416extern "C"
21417#endif
21418/* We use char because int might match the return type of a gcc2
21419 builtin and then its argument prototype would still apply. */
21420char pthread_mutex_lock ();
21421int
21422main ()
21423{
21424pthread_mutex_lock ();
21425 ;
21426 return 0;
21427}
21428_ACEOF
21429rm -f conftest.$ac_objext conftest$ac_exeext
21430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21431 (eval $ac_link) 2>conftest.er1
21432 ac_status=$?
21433 grep -v '^ *+' conftest.er1 >conftest.err
21434 rm -f conftest.er1
21435 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } &&
21438 { ac_try='test -z "$ac_c_werror_flag"
21439 || test ! -s conftest.err'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21442 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; } &&
21445 { ac_try='test -s conftest$ac_exeext'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21448 ac_status=$?
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 ac_cv_search_pthread_mutex_lock="none required"
21452else
21453 echo "$as_me: failed program was:" >&5
21454sed 's/^/| /' conftest.$ac_ext >&5
21455
21456fi
21457rm -f conftest.err conftest.$ac_objext \
21458 conftest$ac_exeext conftest.$ac_ext
21459if test "$ac_cv_search_pthread_mutex_lock" = no; then
21460 for ac_lib in pthread; do
21461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21462 cat >conftest.$ac_ext <<_ACEOF
21463/* confdefs.h. */
21464_ACEOF
21465cat confdefs.h >>conftest.$ac_ext
21466cat >>conftest.$ac_ext <<_ACEOF
21467/* end confdefs.h. */
21468
21469/* Override any gcc2 internal prototype to avoid an error. */
21470#ifdef __cplusplus
21471extern "C"
21472#endif
21473/* We use char because int might match the return type of a gcc2
21474 builtin and then its argument prototype would still apply. */
21475char pthread_mutex_lock ();
21476int
21477main ()
21478{
21479pthread_mutex_lock ();
21480 ;
21481 return 0;
21482}
21483_ACEOF
21484rm -f conftest.$ac_objext conftest$ac_exeext
21485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21486 (eval $ac_link) 2>conftest.er1
21487 ac_status=$?
21488 grep -v '^ *+' conftest.er1 >conftest.err
21489 rm -f conftest.er1
21490 cat conftest.err >&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } &&
21493 { ac_try='test -z "$ac_c_werror_flag"
21494 || test ! -s conftest.err'
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; } &&
21500 { ac_try='test -s conftest$ac_exeext'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
21507break
21508else
21509 echo "$as_me: failed program was:" >&5
21510sed 's/^/| /' conftest.$ac_ext >&5
21511
21512fi
21513rm -f conftest.err conftest.$ac_objext \
21514 conftest$ac_exeext conftest.$ac_ext
21515 done
21516fi
21517LIBS=$ac_func_search_save_LIBS
21518fi
21519echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21520echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21521if test "$ac_cv_search_pthread_mutex_lock" != no; then
21522 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
21523
21524cat >>confdefs.h <<\_ACEOF
21525#define HAVE_PTHREAD_MUTEX_LOCK 1
21526_ACEOF
21527
21528fi
21529
21530
21531
21532
21533echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21534echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21535if test "${ac_cv_header_stdc+set}" = set; then
21536 echo $ECHO_N "(cached) $ECHO_C" >&6
21537else
21538 cat >conftest.$ac_ext <<_ACEOF
21539/* confdefs.h. */
21540_ACEOF
21541cat confdefs.h >>conftest.$ac_ext
21542cat >>conftest.$ac_ext <<_ACEOF
21543/* end confdefs.h. */
21544#include <stdlib.h>
21545#include <stdarg.h>
21546#include <string.h>
21547#include <float.h>
21548
21549int
21550main ()
21551{
21552
21553 ;
21554 return 0;
21555}
21556_ACEOF
21557rm -f conftest.$ac_objext
21558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21559 (eval $ac_compile) 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest.$ac_objext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_header_stdc=yes
21580else
21581 echo "$as_me: failed program was:" >&5
21582sed 's/^/| /' conftest.$ac_ext >&5
21583
21584ac_cv_header_stdc=no
21585fi
21586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21587
21588if test $ac_cv_header_stdc = yes; then
21589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21590 cat >conftest.$ac_ext <<_ACEOF
21591/* confdefs.h. */
21592_ACEOF
21593cat confdefs.h >>conftest.$ac_ext
21594cat >>conftest.$ac_ext <<_ACEOF
21595/* end confdefs.h. */
21596#include <string.h>
21597
21598_ACEOF
21599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21600 $EGREP "memchr" >/dev/null 2>&1; then
21601 :
21602else
21603 ac_cv_header_stdc=no
21604fi
21605rm -f conftest*
21606
21607fi
21608
21609if test $ac_cv_header_stdc = yes; then
21610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21611 cat >conftest.$ac_ext <<_ACEOF
21612/* confdefs.h. */
21613_ACEOF
21614cat confdefs.h >>conftest.$ac_ext
21615cat >>conftest.$ac_ext <<_ACEOF
21616/* end confdefs.h. */
21617#include <stdlib.h>
21618
21619_ACEOF
21620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21621 $EGREP "free" >/dev/null 2>&1; then
21622 :
21623else
21624 ac_cv_header_stdc=no
21625fi
21626rm -f conftest*
21627
21628fi
21629
21630if test $ac_cv_header_stdc = yes; then
21631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21632 if test "$cross_compiling" = yes; then
21633 :
21634else
21635 cat >conftest.$ac_ext <<_ACEOF
21636/* confdefs.h. */
21637_ACEOF
21638cat confdefs.h >>conftest.$ac_ext
21639cat >>conftest.$ac_ext <<_ACEOF
21640/* end confdefs.h. */
21641#include <ctype.h>
21642#if ((' ' & 0x0FF) == 0x020)
21643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21645#else
21646# define ISLOWER(c) \
21647 (('a' <= (c) && (c) <= 'i') \
21648 || ('j' <= (c) && (c) <= 'r') \
21649 || ('s' <= (c) && (c) <= 'z'))
21650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21651#endif
21652
21653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21654int
21655main ()
21656{
21657 int i;
21658 for (i = 0; i < 256; i++)
21659 if (XOR (islower (i), ISLOWER (i))
21660 || toupper (i) != TOUPPER (i))
21661 exit(2);
21662 exit (0);
21663}
21664_ACEOF
21665rm -f conftest$ac_exeext
21666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21667 (eval $ac_link) 2>&5
21668 ac_status=$?
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21673 ac_status=$?
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21676 :
21677else
21678 echo "$as_me: program exited with status $ac_status" >&5
21679echo "$as_me: failed program was:" >&5
21680sed 's/^/| /' conftest.$ac_ext >&5
21681
21682( exit $ac_status )
21683ac_cv_header_stdc=no
21684fi
21685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21686fi
21687fi
21688fi
21689echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21690echo "${ECHO_T}$ac_cv_header_stdc" >&6
21691if test $ac_cv_header_stdc = yes; then
21692
21693cat >>confdefs.h <<\_ACEOF
21694#define STDC_HEADERS 1
21695_ACEOF
21696
21697fi
21698
21699echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21700echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21701if test "${ac_cv_header_sys_wait_h+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21703else
21704 cat >conftest.$ac_ext <<_ACEOF
21705/* confdefs.h. */
21706_ACEOF
21707cat confdefs.h >>conftest.$ac_ext
21708cat >>conftest.$ac_ext <<_ACEOF
21709/* end confdefs.h. */
21710#include <sys/types.h>
21711#include <sys/wait.h>
21712#ifndef WEXITSTATUS
21713# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21714#endif
21715#ifndef WIFEXITED
21716# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21717#endif
21718
21719int
21720main ()
21721{
21722 int s;
21723 wait (&s);
21724 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21725 ;
21726 return 0;
21727}
21728_ACEOF
21729rm -f conftest.$ac_objext
21730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21732 ac_status=$?
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try='test -z "$ac_c_werror_flag"
21739 || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21742 ac_status=$?
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest.$ac_objext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_cv_header_sys_wait_h=yes
21752else
21753 echo "$as_me: failed program was:" >&5
21754sed 's/^/| /' conftest.$ac_ext >&5
21755
21756ac_cv_header_sys_wait_h=no
21757fi
21758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21759fi
21760echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21761echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21762if test $ac_cv_header_sys_wait_h = yes; then
21763
21764cat >>confdefs.h <<\_ACEOF
21765#define HAVE_SYS_WAIT_H 1
21766_ACEOF
21767
21768fi
21769
21770echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21771echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21772if test "${ac_cv_header_time+set}" = set; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21774else
21775 cat >conftest.$ac_ext <<_ACEOF
21776/* confdefs.h. */
21777_ACEOF
21778cat confdefs.h >>conftest.$ac_ext
21779cat >>conftest.$ac_ext <<_ACEOF
21780/* end confdefs.h. */
21781#include <sys/types.h>
21782#include <sys/time.h>
21783#include <time.h>
21784
21785int
21786main ()
21787{
21788if ((struct tm *) 0)
21789return 0;
21790 ;
21791 return 0;
21792}
21793_ACEOF
21794rm -f conftest.$ac_objext
21795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21796 (eval $ac_compile) 2>conftest.er1
21797 ac_status=$?
21798 grep -v '^ *+' conftest.er1 >conftest.err
21799 rm -f conftest.er1
21800 cat conftest.err >&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } &&
21803 { ac_try='test -z "$ac_c_werror_flag"
21804 || test ! -s conftest.err'
21805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806 (eval $ac_try) 2>&5
21807 ac_status=$?
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); }; } &&
21810 { ac_try='test -s conftest.$ac_objext'
21811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 (eval $ac_try) 2>&5
21813 ac_status=$?
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; }; then
21816 ac_cv_header_time=yes
21817else
21818 echo "$as_me: failed program was:" >&5
21819sed 's/^/| /' conftest.$ac_ext >&5
21820
21821ac_cv_header_time=no
21822fi
21823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21824fi
21825echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21826echo "${ECHO_T}$ac_cv_header_time" >&6
21827if test $ac_cv_header_time = yes; then
21828
21829cat >>confdefs.h <<\_ACEOF
21830#define TIME_WITH_SYS_TIME 1
21831_ACEOF
21832
21833fi
21834
21835echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21836echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21837if test "${ac_cv_header_mmap_anon+set}" = set; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21839else
21840 ac_ext=c
21841ac_cpp='$CPP $CPPFLAGS'
21842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21844ac_compiler_gnu=$ac_cv_c_compiler_gnu
21845
21846 cat >conftest.$ac_ext <<_ACEOF
21847/* confdefs.h. */
21848_ACEOF
21849cat confdefs.h >>conftest.$ac_ext
21850cat >>conftest.$ac_ext <<_ACEOF
21851/* end confdefs.h. */
21852#include <sys/mman.h>
21853#include <unistd.h>
21854#include <fcntl.h>
21855int
21856main ()
21857{
21858mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21859 ;
21860 return 0;
21861}
21862_ACEOF
21863rm -f conftest.$ac_objext
21864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21865 (eval $ac_compile) 2>conftest.er1
21866 ac_status=$?
21867 grep -v '^ *+' conftest.er1 >conftest.err
21868 rm -f conftest.er1
21869 cat conftest.err >&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } &&
21872 { ac_try='test -z "$ac_c_werror_flag"
21873 || test ! -s conftest.err'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; } &&
21879 { ac_try='test -s conftest.$ac_objext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 ac_cv_header_mmap_anon=yes
21886else
21887 echo "$as_me: failed program was:" >&5
21888sed 's/^/| /' conftest.$ac_ext >&5
21889
21890ac_cv_header_mmap_anon=no
21891fi
21892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21893 ac_ext=c
21894ac_cpp='$CPP $CPPFLAGS'
21895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21897ac_compiler_gnu=$ac_cv_c_compiler_gnu
21898
21899
21900fi
21901echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21902echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21903if test "$ac_cv_header_mmap_anon" = yes; then
21904
21905cat >>confdefs.h <<\_ACEOF
21906#define HAVE_MMAP_ANONYMOUS
21907_ACEOF
21908
21909fi
21910
21911
21912
21913
21914
21915
21916
21917
21918for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h
21919do
21920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21921if eval "test \"\${$as_ac_Header+set}\" = set"; then
21922 echo "$as_me:$LINENO: checking for $ac_header" >&5
21923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21924if eval "test \"\${$as_ac_Header+set}\" = set"; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926fi
21927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21929else
21930 # Is the header compilable?
21931echo "$as_me:$LINENO: checking $ac_header usability" >&5
21932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21933cat >conftest.$ac_ext <<_ACEOF
21934/* confdefs.h. */
21935_ACEOF
21936cat confdefs.h >>conftest.$ac_ext
21937cat >>conftest.$ac_ext <<_ACEOF
21938/* end confdefs.h. */
21939$ac_includes_default
21940#include <$ac_header>
21941_ACEOF
21942rm -f conftest.$ac_objext
21943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21944 (eval $ac_compile) 2>conftest.er1
21945 ac_status=$?
21946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } &&
21951 { ac_try='test -z "$ac_c_werror_flag"
21952 || test ! -s conftest.err'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21955 ac_status=$?
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; } &&
21958 { ac_try='test -s conftest.$ac_objext'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21961 ac_status=$?
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 ac_header_compiler=yes
21965else
21966 echo "$as_me: failed program was:" >&5
21967sed 's/^/| /' conftest.$ac_ext >&5
21968
21969ac_header_compiler=no
21970fi
21971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21972echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21973echo "${ECHO_T}$ac_header_compiler" >&6
21974
21975# Is the header present?
21976echo "$as_me:$LINENO: checking $ac_header presence" >&5
21977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21978cat >conftest.$ac_ext <<_ACEOF
21979/* confdefs.h. */
21980_ACEOF
21981cat confdefs.h >>conftest.$ac_ext
21982cat >>conftest.$ac_ext <<_ACEOF
21983/* end confdefs.h. */
21984#include <$ac_header>
21985_ACEOF
21986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } >/dev/null; then
21994 if test -s conftest.err; then
21995 ac_cpp_err=$ac_c_preproc_warn_flag
21996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21997 else
21998 ac_cpp_err=
21999 fi
22000else
22001 ac_cpp_err=yes
22002fi
22003if test -z "$ac_cpp_err"; then
22004 ac_header_preproc=yes
22005else
22006 echo "$as_me: failed program was:" >&5
22007sed 's/^/| /' conftest.$ac_ext >&5
22008
22009 ac_header_preproc=no
22010fi
22011rm -f conftest.err conftest.$ac_ext
22012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22013echo "${ECHO_T}$ac_header_preproc" >&6
22014
22015# So? What about this header?
22016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22017 yes:no: )
22018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22022 ac_header_preproc=yes
22023 ;;
22024 no:yes:* )
22025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22037 (
22038 cat <<\_ASBOX
22039## ----------------------------------- ##
22040## Report this to llvmbugs@cs.uiuc.edu ##
22041## ----------------------------------- ##
22042_ASBOX
22043 ) |
22044 sed "s/^/$as_me: WARNING: /" >&2
22045 ;;
22046esac
22047echo "$as_me:$LINENO: checking for $ac_header" >&5
22048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22049if eval "test \"\${$as_ac_Header+set}\" = set"; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22051else
22052 eval "$as_ac_Header=\$ac_header_preproc"
22053fi
22054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22056
22057fi
22058if test `eval echo '${'$as_ac_Header'}'` = yes; then
22059 cat >>confdefs.h <<_ACEOF
22060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22061_ACEOF
22062
22063fi
22064
22065done
22066
22067
22068
22069
22070
22071
22072for ac_header in sys/resource.h dlfcn.h link.h execinfo.h windows.h
22073do
22074as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22075if eval "test \"\${$as_ac_Header+set}\" = set"; then
22076 echo "$as_me:$LINENO: checking for $ac_header" >&5
22077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22078if eval "test \"\${$as_ac_Header+set}\" = set"; then
22079 echo $ECHO_N "(cached) $ECHO_C" >&6
22080fi
22081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22083else
22084 # Is the header compilable?
22085echo "$as_me:$LINENO: checking $ac_header usability" >&5
22086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22087cat >conftest.$ac_ext <<_ACEOF
22088/* confdefs.h. */
22089_ACEOF
22090cat confdefs.h >>conftest.$ac_ext
22091cat >>conftest.$ac_ext <<_ACEOF
22092/* end confdefs.h. */
22093$ac_includes_default
22094#include <$ac_header>
22095_ACEOF
22096rm -f conftest.$ac_objext
22097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22098 (eval $ac_compile) 2>conftest.er1
22099 ac_status=$?
22100 grep -v '^ *+' conftest.er1 >conftest.err
22101 rm -f conftest.er1
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try='test -z "$ac_c_werror_flag"
22106 || test ! -s conftest.err'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest.$ac_objext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ac_header_compiler=yes
22119else
22120 echo "$as_me: failed program was:" >&5
22121sed 's/^/| /' conftest.$ac_ext >&5
22122
22123ac_header_compiler=no
22124fi
22125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22126echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22127echo "${ECHO_T}$ac_header_compiler" >&6
22128
22129# Is the header present?
22130echo "$as_me:$LINENO: checking $ac_header presence" >&5
22131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22132cat >conftest.$ac_ext <<_ACEOF
22133/* confdefs.h. */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h. */
22138#include <$ac_header>
22139_ACEOF
22140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22142 ac_status=$?
22143 grep -v '^ *+' conftest.er1 >conftest.err
22144 rm -f conftest.er1
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } >/dev/null; then
22148 if test -s conftest.err; then
22149 ac_cpp_err=$ac_c_preproc_warn_flag
22150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22151 else
22152 ac_cpp_err=
22153 fi
22154else
22155 ac_cpp_err=yes
22156fi
22157if test -z "$ac_cpp_err"; then
22158 ac_header_preproc=yes
22159else
22160 echo "$as_me: failed program was:" >&5
22161sed 's/^/| /' conftest.$ac_ext >&5
22162
22163 ac_header_preproc=no
22164fi
22165rm -f conftest.err conftest.$ac_ext
22166echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22167echo "${ECHO_T}$ac_header_preproc" >&6
22168
22169# So? What about this header?
22170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22171 yes:no: )
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22176 ac_header_preproc=yes
22177 ;;
22178 no:yes:* )
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22182echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22186echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22191 (
22192 cat <<\_ASBOX
22193## ----------------------------------- ##
22194## Report this to llvmbugs@cs.uiuc.edu ##
22195## ----------------------------------- ##
22196_ASBOX
22197 ) |
22198 sed "s/^/$as_me: WARNING: /" >&2
22199 ;;
22200esac
22201echo "$as_me:$LINENO: checking for $ac_header" >&5
22202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22203if eval "test \"\${$as_ac_Header+set}\" = set"; then
22204 echo $ECHO_N "(cached) $ECHO_C" >&6
22205else
22206 eval "$as_ac_Header=\$ac_header_preproc"
22207fi
22208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22210
22211fi
22212if test `eval echo '${'$as_ac_Header'}'` = yes; then
22213 cat >>confdefs.h <<_ACEOF
22214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22215_ACEOF
22216
22217fi
22218
22219done
22220
22221
22222if test "${ac_cv_header_sys_types_h+set}" = set; then
22223 echo "$as_me:$LINENO: checking for sys/types.h" >&5
22224echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22225if test "${ac_cv_header_sys_types_h+set}" = set; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22227fi
22228echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22229echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22230else
22231 # Is the header compilable?
22232echo "$as_me:$LINENO: checking sys/types.h usability" >&5
22233echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
22234cat >conftest.$ac_ext <<_ACEOF
22235/* confdefs.h. */
22236_ACEOF
22237cat confdefs.h >>conftest.$ac_ext
22238cat >>conftest.$ac_ext <<_ACEOF
22239/* end confdefs.h. */
22240$ac_includes_default
22241#include <sys/types.h>
22242_ACEOF
22243rm -f conftest.$ac_objext
22244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22245 (eval $ac_compile) 2>conftest.er1
22246 ac_status=$?
22247 grep -v '^ *+' conftest.er1 >conftest.err
22248 rm -f conftest.er1
22249 cat conftest.err >&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } &&
22252 { ac_try='test -z "$ac_c_werror_flag"
22253 || test ! -s conftest.err'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22256 ac_status=$?
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; } &&
22259 { ac_try='test -s conftest.$ac_objext'
22260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261 (eval $ac_try) 2>&5
22262 ac_status=$?
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; }; then
22265 ac_header_compiler=yes
22266else
22267 echo "$as_me: failed program was:" >&5
22268sed 's/^/| /' conftest.$ac_ext >&5
22269
22270ac_header_compiler=no
22271fi
22272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22273echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22274echo "${ECHO_T}$ac_header_compiler" >&6
22275
22276# Is the header present?
22277echo "$as_me:$LINENO: checking sys/types.h presence" >&5
22278echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
22279cat >conftest.$ac_ext <<_ACEOF
22280/* confdefs.h. */
22281_ACEOF
22282cat confdefs.h >>conftest.$ac_ext
22283cat >>conftest.$ac_ext <<_ACEOF
22284/* end confdefs.h. */
22285#include <sys/types.h>
22286_ACEOF
22287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22289 ac_status=$?
22290 grep -v '^ *+' conftest.er1 >conftest.err
22291 rm -f conftest.er1
22292 cat conftest.err >&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } >/dev/null; then
22295 if test -s conftest.err; then
22296 ac_cpp_err=$ac_c_preproc_warn_flag
22297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22298 else
22299 ac_cpp_err=
22300 fi
22301else
22302 ac_cpp_err=yes
22303fi
22304if test -z "$ac_cpp_err"; then
22305 ac_header_preproc=yes
22306else
22307 echo "$as_me: failed program was:" >&5
22308sed 's/^/| /' conftest.$ac_ext >&5
22309
22310 ac_header_preproc=no
22311fi
22312rm -f conftest.err conftest.$ac_ext
22313echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22314echo "${ECHO_T}$ac_header_preproc" >&6
22315
22316# So? What about this header?
22317case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22318 yes:no: )
22319 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
22320echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22321 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
22322echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
22323 ac_header_preproc=yes
22324 ;;
22325 no:yes:* )
22326 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
22327echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
22328 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
22329echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
22330 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
22331echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
22332 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
22333echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
22334 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
22335echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
22337echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
22338 (
22339 cat <<\_ASBOX
22340## ----------------------------------- ##
22341## Report this to llvmbugs@cs.uiuc.edu ##
22342## ----------------------------------- ##
22343_ASBOX
22344 ) |
22345 sed "s/^/$as_me: WARNING: /" >&2
22346 ;;
22347esac
22348echo "$as_me:$LINENO: checking for sys/types.h" >&5
22349echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
22350if test "${ac_cv_header_sys_types_h+set}" = set; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22352else
22353 ac_cv_header_sys_types_h=$ac_header_preproc
22354fi
22355echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
22356echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
22357
22358fi
22359
22360
22361if test "${ac_cv_header_inttypes_h+set}" = set; then
22362 echo "$as_me:$LINENO: checking for inttypes.h" >&5
22363echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22364if test "${ac_cv_header_inttypes_h+set}" = set; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
22366fi
22367echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22368echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22369else
22370 # Is the header compilable?
22371echo "$as_me:$LINENO: checking inttypes.h usability" >&5
22372echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
22373cat >conftest.$ac_ext <<_ACEOF
22374/* confdefs.h. */
22375_ACEOF
22376cat confdefs.h >>conftest.$ac_ext
22377cat >>conftest.$ac_ext <<_ACEOF
22378/* end confdefs.h. */
22379$ac_includes_default
22380#include <inttypes.h>
22381_ACEOF
22382rm -f conftest.$ac_objext
22383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384 (eval $ac_compile) 2>conftest.er1
22385 ac_status=$?
22386 grep -v '^ *+' conftest.er1 >conftest.err
22387 rm -f conftest.er1
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
22391 { ac_try='test -z "$ac_c_werror_flag"
22392 || test ! -s conftest.err'
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; } &&
22398 { ac_try='test -s conftest.$ac_objext'
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; }; then
22404 ac_header_compiler=yes
22405else
22406 echo "$as_me: failed program was:" >&5
22407sed 's/^/| /' conftest.$ac_ext >&5
22408
22409ac_header_compiler=no
22410fi
22411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22412echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22413echo "${ECHO_T}$ac_header_compiler" >&6
22414
22415# Is the header present?
22416echo "$as_me:$LINENO: checking inttypes.h presence" >&5
22417echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
22418cat >conftest.$ac_ext <<_ACEOF
22419/* confdefs.h. */
22420_ACEOF
22421cat confdefs.h >>conftest.$ac_ext
22422cat >>conftest.$ac_ext <<_ACEOF
22423/* end confdefs.h. */
22424#include <inttypes.h>
22425_ACEOF
22426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22428 ac_status=$?
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } >/dev/null; then
22434 if test -s conftest.err; then
22435 ac_cpp_err=$ac_c_preproc_warn_flag
22436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22437 else
22438 ac_cpp_err=
22439 fi
22440else
22441 ac_cpp_err=yes
22442fi
22443if test -z "$ac_cpp_err"; then
22444 ac_header_preproc=yes
22445else
22446 echo "$as_me: failed program was:" >&5
22447sed 's/^/| /' conftest.$ac_ext >&5
22448
22449 ac_header_preproc=no
22450fi
22451rm -f conftest.err conftest.$ac_ext
22452echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22453echo "${ECHO_T}$ac_header_preproc" >&6
22454
22455# So? What about this header?
22456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22457 yes:no: )
22458 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
22459echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22460 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
22461echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
22462 ac_header_preproc=yes
22463 ;;
22464 no:yes:* )
22465 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
22466echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
22467 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
22468echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
22469 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
22470echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
22471 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
22472echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
22473 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
22474echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
22475 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
22476echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
22477 (
22478 cat <<\_ASBOX
22479## ----------------------------------- ##
22480## Report this to llvmbugs@cs.uiuc.edu ##
22481## ----------------------------------- ##
22482_ASBOX
22483 ) |
22484 sed "s/^/$as_me: WARNING: /" >&2
22485 ;;
22486esac
22487echo "$as_me:$LINENO: checking for inttypes.h" >&5
22488echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22489if test "${ac_cv_header_inttypes_h+set}" = set; then
22490 echo $ECHO_N "(cached) $ECHO_C" >&6
22491else
22492 ac_cv_header_inttypes_h=$ac_header_preproc
22493fi
22494echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
22495echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
22496
22497fi
22498
22499
22500if test "${ac_cv_header_stdint_h+set}" = set; then
22501 echo "$as_me:$LINENO: checking for stdint.h" >&5
22502echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22503if test "${ac_cv_header_stdint_h+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
22505fi
22506echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22507echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22508else
22509 # Is the header compilable?
22510echo "$as_me:$LINENO: checking stdint.h usability" >&5
22511echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
22512cat >conftest.$ac_ext <<_ACEOF
22513/* confdefs.h. */
22514_ACEOF
22515cat confdefs.h >>conftest.$ac_ext
22516cat >>conftest.$ac_ext <<_ACEOF
22517/* end confdefs.h. */
22518$ac_includes_default
22519#include <stdint.h>
22520_ACEOF
22521rm -f conftest.$ac_objext
22522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22523 (eval $ac_compile) 2>conftest.er1
22524 ac_status=$?
22525 grep -v '^ *+' conftest.er1 >conftest.err
22526 rm -f conftest.er1
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } &&
22530 { ac_try='test -z "$ac_c_werror_flag"
22531 || test ! -s conftest.err'
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; } &&
22537 { ac_try='test -s conftest.$ac_objext'
22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539 (eval $ac_try) 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }; then
22543 ac_header_compiler=yes
22544else
22545 echo "$as_me: failed program was:" >&5
22546sed 's/^/| /' conftest.$ac_ext >&5
22547
22548ac_header_compiler=no
22549fi
22550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22552echo "${ECHO_T}$ac_header_compiler" >&6
22553
22554# Is the header present?
22555echo "$as_me:$LINENO: checking stdint.h presence" >&5
22556echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
22557cat >conftest.$ac_ext <<_ACEOF
22558/* confdefs.h. */
22559_ACEOF
22560cat confdefs.h >>conftest.$ac_ext
22561cat >>conftest.$ac_ext <<_ACEOF
22562/* end confdefs.h. */
22563#include <stdint.h>
22564_ACEOF
22565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22567 ac_status=$?
22568 grep -v '^ *+' conftest.er1 >conftest.err
22569 rm -f conftest.er1
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } >/dev/null; then
22573 if test -s conftest.err; then
22574 ac_cpp_err=$ac_c_preproc_warn_flag
22575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22576 else
22577 ac_cpp_err=
22578 fi
22579else
22580 ac_cpp_err=yes
22581fi
22582if test -z "$ac_cpp_err"; then
22583 ac_header_preproc=yes
22584else
22585 echo "$as_me: failed program was:" >&5
22586sed 's/^/| /' conftest.$ac_ext >&5
22587
22588 ac_header_preproc=no
22589fi
22590rm -f conftest.err conftest.$ac_ext
22591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22592echo "${ECHO_T}$ac_header_preproc" >&6
22593
22594# So? What about this header?
22595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22596 yes:no: )
22597 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
22598echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22599 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
22600echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
22601 ac_header_preproc=yes
22602 ;;
22603 no:yes:* )
22604 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
22605echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
22606 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
22607echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
22608 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
22609echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
22610 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
22611echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
22612 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
22613echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
22614 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
22615echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
22616 (
22617 cat <<\_ASBOX
22618## ----------------------------------- ##
22619## Report this to llvmbugs@cs.uiuc.edu ##
22620## ----------------------------------- ##
22621_ASBOX
22622 ) |
22623 sed "s/^/$as_me: WARNING: /" >&2
22624 ;;
22625esac
22626echo "$as_me:$LINENO: checking for stdint.h" >&5
22627echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
22628if test "${ac_cv_header_stdint_h+set}" = set; then
22629 echo $ECHO_N "(cached) $ECHO_C" >&6
22630else
22631 ac_cv_header_stdint_h=$ac_header_preproc
22632fi
22633echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
22634echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
22635
22636fi
22637
22638
22639
22640
22641for ac_header in bzlib.h
22642do
22643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22644if eval "test \"\${$as_ac_Header+set}\" = set"; then
22645 echo "$as_me:$LINENO: checking for $ac_header" >&5
22646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22647if eval "test \"\${$as_ac_Header+set}\" = set"; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22649fi
22650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22652else
22653 # Is the header compilable?
22654echo "$as_me:$LINENO: checking $ac_header usability" >&5
22655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22656cat >conftest.$ac_ext <<_ACEOF
22657/* confdefs.h. */
22658_ACEOF
22659cat confdefs.h >>conftest.$ac_ext
22660cat >>conftest.$ac_ext <<_ACEOF
22661/* end confdefs.h. */
22662$ac_includes_default
22663#include <$ac_header>
22664_ACEOF
22665rm -f conftest.$ac_objext
22666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667 (eval $ac_compile) 2>conftest.er1
22668 ac_status=$?
22669 grep -v '^ *+' conftest.er1 >conftest.err
22670 rm -f conftest.er1
22671 cat conftest.err >&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } &&
22674 { ac_try='test -z "$ac_c_werror_flag"
22675 || test ! -s conftest.err'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22678 ac_status=$?
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; } &&
22681 { ac_try='test -s conftest.$ac_objext'
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22687 ac_header_compiler=yes
22688else
22689 echo "$as_me: failed program was:" >&5
22690sed 's/^/| /' conftest.$ac_ext >&5
22691
22692ac_header_compiler=no
22693fi
22694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22696echo "${ECHO_T}$ac_header_compiler" >&6
22697
22698# Is the header present?
22699echo "$as_me:$LINENO: checking $ac_header presence" >&5
22700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22701cat >conftest.$ac_ext <<_ACEOF
22702/* confdefs.h. */
22703_ACEOF
22704cat confdefs.h >>conftest.$ac_ext
22705cat >>conftest.$ac_ext <<_ACEOF
22706/* end confdefs.h. */
22707#include <$ac_header>
22708_ACEOF
22709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22711 ac_status=$?
22712 grep -v '^ *+' conftest.er1 >conftest.err
22713 rm -f conftest.er1
22714 cat conftest.err >&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } >/dev/null; then
22717 if test -s conftest.err; then
22718 ac_cpp_err=$ac_c_preproc_warn_flag
22719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22720 else
22721 ac_cpp_err=
22722 fi
22723else
22724 ac_cpp_err=yes
22725fi
22726if test -z "$ac_cpp_err"; then
22727 ac_header_preproc=yes
22728else
22729 echo "$as_me: failed program was:" >&5
22730sed 's/^/| /' conftest.$ac_ext >&5
22731
22732 ac_header_preproc=no
22733fi
22734rm -f conftest.err conftest.$ac_ext
22735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22736echo "${ECHO_T}$ac_header_preproc" >&6
22737
22738# So? What about this header?
22739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22740 yes:no: )
22741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22745 ac_header_preproc=yes
22746 ;;
22747 no:yes:* )
22748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22760 (
22761 cat <<\_ASBOX
22762## ----------------------------------- ##
22763## Report this to llvmbugs@cs.uiuc.edu ##
22764## ----------------------------------- ##
22765_ASBOX
22766 ) |
22767 sed "s/^/$as_me: WARNING: /" >&2
22768 ;;
22769esac
22770echo "$as_me:$LINENO: checking for $ac_header" >&5
22771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22772if eval "test \"\${$as_ac_Header+set}\" = set"; then
22773 echo $ECHO_N "(cached) $ECHO_C" >&6
22774else
22775 eval "$as_ac_Header=\$ac_header_preproc"
22776fi
22777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22779
22780fi
22781if test `eval echo '${'$as_ac_Header'}'` = yes; then
22782 cat >>confdefs.h <<_ACEOF
22783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22784_ACEOF
22785 bzlib_h_found=1
22786else
22787 bzlib_h_found=0
22788fi
22789
22790done
22791
22792
22793for ac_header in zlib.h
22794do
22795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22796if eval "test \"\${$as_ac_Header+set}\" = set"; then
22797 echo "$as_me:$LINENO: checking for $ac_header" >&5
22798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22799if eval "test \"\${$as_ac_Header+set}\" = set"; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22801fi
22802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22804else
22805 # Is the header compilable?
22806echo "$as_me:$LINENO: checking $ac_header usability" >&5
22807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22808cat >conftest.$ac_ext <<_ACEOF
22809/* confdefs.h. */
22810_ACEOF
22811cat confdefs.h >>conftest.$ac_ext
22812cat >>conftest.$ac_ext <<_ACEOF
22813/* end confdefs.h. */
22814$ac_includes_default
22815#include <$ac_header>
22816_ACEOF
22817rm -f conftest.$ac_objext
22818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22819 (eval $ac_compile) 2>conftest.er1
22820 ac_status=$?
22821 grep -v '^ *+' conftest.er1 >conftest.err
22822 rm -f conftest.er1
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } &&
22826 { ac_try='test -z "$ac_c_werror_flag"
22827 || test ! -s conftest.err'
22828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22829 (eval $ac_try) 2>&5
22830 ac_status=$?
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); }; } &&
22833 { ac_try='test -s conftest.$ac_objext'
22834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22835 (eval $ac_try) 2>&5
22836 ac_status=$?
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); }; }; then
22839 ac_header_compiler=yes
22840else
22841 echo "$as_me: failed program was:" >&5
22842sed 's/^/| /' conftest.$ac_ext >&5
22843
22844ac_header_compiler=no
22845fi
22846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22848echo "${ECHO_T}$ac_header_compiler" >&6
22849
22850# Is the header present?
22851echo "$as_me:$LINENO: checking $ac_header presence" >&5
22852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22853cat >conftest.$ac_ext <<_ACEOF
22854/* confdefs.h. */
22855_ACEOF
22856cat confdefs.h >>conftest.$ac_ext
22857cat >>conftest.$ac_ext <<_ACEOF
22858/* end confdefs.h. */
22859#include <$ac_header>
22860_ACEOF
22861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22863 ac_status=$?
22864 grep -v '^ *+' conftest.er1 >conftest.err
22865 rm -f conftest.er1
22866 cat conftest.err >&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } >/dev/null; then
22869 if test -s conftest.err; then
22870 ac_cpp_err=$ac_c_preproc_warn_flag
22871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22872 else
22873 ac_cpp_err=
22874 fi
22875else
22876 ac_cpp_err=yes
22877fi
22878if test -z "$ac_cpp_err"; then
22879 ac_header_preproc=yes
22880else
22881 echo "$as_me: failed program was:" >&5
22882sed 's/^/| /' conftest.$ac_ext >&5
22883
22884 ac_header_preproc=no
22885fi
22886rm -f conftest.err conftest.$ac_ext
22887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22888echo "${ECHO_T}$ac_header_preproc" >&6
22889
22890# So? What about this header?
22891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22892 yes:no: )
22893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22897 ac_header_preproc=yes
22898 ;;
22899 no:yes:* )
22900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22912 (
22913 cat <<\_ASBOX
22914## ----------------------------------- ##
22915## Report this to llvmbugs@cs.uiuc.edu ##
22916## ----------------------------------- ##
22917_ASBOX
22918 ) |
22919 sed "s/^/$as_me: WARNING: /" >&2
22920 ;;
22921esac
22922echo "$as_me:$LINENO: checking for $ac_header" >&5
22923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22924if eval "test \"\${$as_ac_Header+set}\" = set"; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22926else
22927 eval "$as_ac_Header=\$ac_header_preproc"
22928fi
22929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22931
22932fi
22933if test `eval echo '${'$as_ac_Header'}'` = yes; then
22934 cat >>confdefs.h <<_ACEOF
22935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22936_ACEOF
22937 zlib_h_found=1
22938else
22939 zlib_h_found=0
22940fi
22941
22942done
22943
22944
22945
22946echo "$as_me:$LINENO: checking for pid_t" >&5
22947echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22948if test "${ac_cv_type_pid_t+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22950else
22951 cat >conftest.$ac_ext <<_ACEOF
22952/* confdefs.h. */
22953_ACEOF
22954cat confdefs.h >>conftest.$ac_ext
22955cat >>conftest.$ac_ext <<_ACEOF
22956/* end confdefs.h. */
22957$ac_includes_default
22958int
22959main ()
22960{
22961if ((pid_t *) 0)
22962 return 0;
22963if (sizeof (pid_t))
22964 return 0;
22965 ;
22966 return 0;
22967}
22968_ACEOF
22969rm -f conftest.$ac_objext
22970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22971 (eval $ac_compile) 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } &&
22978 { ac_try='test -z "$ac_c_werror_flag"
22979 || test ! -s conftest.err'
22980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981 (eval $ac_try) 2>&5
22982 ac_status=$?
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); }; } &&
22985 { ac_try='test -s conftest.$ac_objext'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22988 ac_status=$?
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; }; then
22991 ac_cv_type_pid_t=yes
22992else
22993 echo "$as_me: failed program was:" >&5
22994sed 's/^/| /' conftest.$ac_ext >&5
22995
22996ac_cv_type_pid_t=no
22997fi
22998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22999fi
23000echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23001echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23002if test $ac_cv_type_pid_t = yes; then
23003 :
23004else
23005
23006cat >>confdefs.h <<_ACEOF
23007#define pid_t int
23008_ACEOF
23009
23010fi
23011
23012echo "$as_me:$LINENO: checking for size_t" >&5
23013echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23014if test "${ac_cv_type_size_t+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23016else
23017 cat >conftest.$ac_ext <<_ACEOF
23018/* confdefs.h. */
23019_ACEOF
23020cat confdefs.h >>conftest.$ac_ext
23021cat >>conftest.$ac_ext <<_ACEOF
23022/* end confdefs.h. */
23023$ac_includes_default
23024int
23025main ()
23026{
23027if ((size_t *) 0)
23028 return 0;
23029if (sizeof (size_t))
23030 return 0;
23031 ;
23032 return 0;
23033}
23034_ACEOF
23035rm -f conftest.$ac_objext
23036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23037 (eval $ac_compile) 2>conftest.er1
23038 ac_status=$?
23039 grep -v '^ *+' conftest.er1 >conftest.err
23040 rm -f conftest.er1
23041 cat conftest.err >&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); } &&
23044 { ac_try='test -z "$ac_c_werror_flag"
23045 || test ! -s conftest.err'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23048 ac_status=$?
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; } &&
23051 { ac_try='test -s conftest.$ac_objext'
23052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053 (eval $ac_try) 2>&5
23054 ac_status=$?
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); }; }; then
23057 ac_cv_type_size_t=yes
23058else
23059 echo "$as_me: failed program was:" >&5
23060sed 's/^/| /' conftest.$ac_ext >&5
23061
23062ac_cv_type_size_t=no
23063fi
23064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23065fi
23066echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23067echo "${ECHO_T}$ac_cv_type_size_t" >&6
23068if test $ac_cv_type_size_t = yes; then
23069 :
23070else
23071
23072cat >>confdefs.h <<_ACEOF
23073#define size_t unsigned
23074_ACEOF
23075
23076fi
23077
23078echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23079echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23080if test "${ac_cv_type_signal+set}" = set; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23082else
23083 cat >conftest.$ac_ext <<_ACEOF
23084/* confdefs.h. */
23085_ACEOF
23086cat confdefs.h >>conftest.$ac_ext
23087cat >>conftest.$ac_ext <<_ACEOF
23088/* end confdefs.h. */
23089#include <sys/types.h>
23090#include <signal.h>
23091#ifdef signal
23092# undef signal
23093#endif
23094#ifdef __cplusplus
23095extern "C" void (*signal (int, void (*)(int)))(int);
23096#else
23097void (*signal ()) ();
23098#endif
23099
23100int
23101main ()
23102{
23103int i;
23104 ;
23105 return 0;
23106}
23107_ACEOF
23108rm -f conftest.$ac_objext
23109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23110 (eval $ac_compile) 2>conftest.er1
23111 ac_status=$?
23112 grep -v '^ *+' conftest.er1 >conftest.err
23113 rm -f conftest.er1
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } &&
23117 { ac_try='test -z "$ac_c_werror_flag"
23118 || test ! -s conftest.err'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23121 ac_status=$?
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; } &&
23124 { ac_try='test -s conftest.$ac_objext'
23125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126 (eval $ac_try) 2>&5
23127 ac_status=$?
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); }; }; then
23130 ac_cv_type_signal=void
23131else
23132 echo "$as_me: failed program was:" >&5
23133sed 's/^/| /' conftest.$ac_ext >&5
23134
23135ac_cv_type_signal=int
23136fi
23137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23138fi
23139echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23140echo "${ECHO_T}$ac_cv_type_signal" >&6
23141
23142cat >>confdefs.h <<_ACEOF
23143#define RETSIGTYPE $ac_cv_type_signal
23144_ACEOF
23145
23146
23147echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23148echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23149if test "${ac_cv_struct_tm+set}" = set; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23151else
23152 cat >conftest.$ac_ext <<_ACEOF
23153/* confdefs.h. */
23154_ACEOF
23155cat confdefs.h >>conftest.$ac_ext
23156cat >>conftest.$ac_ext <<_ACEOF
23157/* end confdefs.h. */
23158#include <sys/types.h>
23159#include <time.h>
23160
23161int
23162main ()
23163{
23164struct tm *tp; tp->tm_sec;
23165 ;
23166 return 0;
23167}
23168_ACEOF
23169rm -f conftest.$ac_objext
23170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23171 (eval $ac_compile) 2>conftest.er1
23172 ac_status=$?
23173 grep -v '^ *+' conftest.er1 >conftest.err
23174 rm -f conftest.er1
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } &&
23178 { ac_try='test -z "$ac_c_werror_flag"
23179 || test ! -s conftest.err'
23180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181 (eval $ac_try) 2>&5
23182 ac_status=$?
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); }; } &&
23185 { ac_try='test -s conftest.$ac_objext'
23186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187 (eval $ac_try) 2>&5
23188 ac_status=$?
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); }; }; then
23191 ac_cv_struct_tm=time.h
23192else
23193 echo "$as_me: failed program was:" >&5
23194sed 's/^/| /' conftest.$ac_ext >&5
23195
23196ac_cv_struct_tm=sys/time.h
23197fi
23198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23199fi
23200echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23201echo "${ECHO_T}$ac_cv_struct_tm" >&6
23202if test $ac_cv_struct_tm = sys/time.h; then
23203
23204cat >>confdefs.h <<\_ACEOF
23205#define TM_IN_SYS_TIME 1
23206_ACEOF
23207
23208fi
23209
23210echo "$as_me:$LINENO: checking for int64_t" >&5
23211echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
23212if test "${ac_cv_type_int64_t+set}" = set; then
23213 echo $ECHO_N "(cached) $ECHO_C" >&6
23214else
23215 cat >conftest.$ac_ext <<_ACEOF
23216/* confdefs.h. */
23217_ACEOF
23218cat confdefs.h >>conftest.$ac_ext
23219cat >>conftest.$ac_ext <<_ACEOF
23220/* end confdefs.h. */
23221$ac_includes_default
23222int
23223main ()
23224{
23225if ((int64_t *) 0)
23226 return 0;
23227if (sizeof (int64_t))
23228 return 0;
23229 ;
23230 return 0;
23231}
23232_ACEOF
23233rm -f conftest.$ac_objext
23234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23235 (eval $ac_compile) 2>conftest.er1
23236 ac_status=$?
23237 grep -v '^ *+' conftest.er1 >conftest.err
23238 rm -f conftest.er1
23239 cat conftest.err >&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } &&
23242 { ac_try='test -z "$ac_c_werror_flag"
23243 || test ! -s conftest.err'
23244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; } &&
23249 { ac_try='test -s conftest.$ac_objext'
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23252 ac_status=$?
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; }; then
23255 ac_cv_type_int64_t=yes
23256else
23257 echo "$as_me: failed program was:" >&5
23258sed 's/^/| /' conftest.$ac_ext >&5
23259
23260ac_cv_type_int64_t=no
23261fi
23262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23263fi
23264echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
23265echo "${ECHO_T}$ac_cv_type_int64_t" >&6
23266if test $ac_cv_type_int64_t = yes; then
23267
23268cat >>confdefs.h <<_ACEOF
23269#define HAVE_INT64_T 1
23270_ACEOF
23271
23272
23273else
23274 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
23275echo "$as_me: error: Type int64_t required but not found" >&2;}
23276 { (exit 1); exit 1; }; }
23277fi
23278
23279echo "$as_me:$LINENO: checking for uint64_t" >&5
23280echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
23281if test "${ac_cv_type_uint64_t+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23283else
23284 cat >conftest.$ac_ext <<_ACEOF
23285/* confdefs.h. */
23286_ACEOF
23287cat confdefs.h >>conftest.$ac_ext
23288cat >>conftest.$ac_ext <<_ACEOF
23289/* end confdefs.h. */
23290$ac_includes_default
23291int
23292main ()
23293{
23294if ((uint64_t *) 0)
23295 return 0;
23296if (sizeof (uint64_t))
23297 return 0;
23298 ;
23299 return 0;
23300}
23301_ACEOF
23302rm -f conftest.$ac_objext
23303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23304 (eval $ac_compile) 2>conftest.er1
23305 ac_status=$?
23306 grep -v '^ *+' conftest.er1 >conftest.err
23307 rm -f conftest.er1
23308 cat conftest.err >&5
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); } &&
23311 { ac_try='test -z "$ac_c_werror_flag"
23312 || test ! -s conftest.err'
23313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314 (eval $ac_try) 2>&5
23315 ac_status=$?
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); }; } &&
23318 { ac_try='test -s conftest.$ac_objext'
23319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320 (eval $ac_try) 2>&5
23321 ac_status=$?
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); }; }; then
23324 ac_cv_type_uint64_t=yes
23325else
23326 echo "$as_me: failed program was:" >&5
23327sed 's/^/| /' conftest.$ac_ext >&5
23328
23329ac_cv_type_uint64_t=no
23330fi
23331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23332fi
23333echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
23334echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
23335if test $ac_cv_type_uint64_t = yes; then
23336
23337cat >>confdefs.h <<_ACEOF
23338#define HAVE_UINT64_T 1
23339_ACEOF
23340
23341
23342else
23343 echo "$as_me:$LINENO: checking for u_int64_t" >&5
23344echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
23345if test "${ac_cv_type_u_int64_t+set}" = set; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23347else
23348 cat >conftest.$ac_ext <<_ACEOF
23349/* confdefs.h. */
23350_ACEOF
23351cat confdefs.h >>conftest.$ac_ext
23352cat >>conftest.$ac_ext <<_ACEOF
23353/* end confdefs.h. */
23354$ac_includes_default
23355int
23356main ()
23357{
23358if ((u_int64_t *) 0)
23359 return 0;
23360if (sizeof (u_int64_t))
23361 return 0;
23362 ;
23363 return 0;
23364}
23365_ACEOF
23366rm -f conftest.$ac_objext
23367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23368 (eval $ac_compile) 2>conftest.er1
23369 ac_status=$?
23370 grep -v '^ *+' conftest.er1 >conftest.err
23371 rm -f conftest.er1
23372 cat conftest.err >&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } &&
23375 { ac_try='test -z "$ac_c_werror_flag"
23376 || test ! -s conftest.err'
23377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23379 ac_status=$?
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; } &&
23382 { ac_try='test -s conftest.$ac_objext'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23385 ac_status=$?
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; }; then
23388 ac_cv_type_u_int64_t=yes
23389else
23390 echo "$as_me: failed program was:" >&5
23391sed 's/^/| /' conftest.$ac_ext >&5
23392
23393ac_cv_type_u_int64_t=no
23394fi
23395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23396fi
23397echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
23398echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
23399if test $ac_cv_type_u_int64_t = yes; then
23400
23401cat >>confdefs.h <<_ACEOF
23402#define HAVE_U_INT64_T 1
23403_ACEOF
23404
23405
23406else
23407 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
23408echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
23409 { (exit 1); exit 1; }; }
23410fi
23411
23412fi
23413
23414
23415
23416 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
23417echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
23418 ac_ext=c
23419ac_cpp='$CPP $CPPFLAGS'
23420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23422ac_compiler_gnu=$ac_cv_c_compiler_gnu
23423
23424 if test "$cross_compiling" = yes; then
23425 ac_c_printf_a=no
23426else
23427 cat >conftest.$ac_ext <<_ACEOF
23428
23429 /* confdefs.h. */
23430_ACEOF
23431cat confdefs.h >>conftest.$ac_ext
23432cat >>conftest.$ac_ext <<_ACEOF
23433/* end confdefs.h. */
23434
23435#include <stdio.h>
23436#include <stdlib.h>
23437
23438int
23439main ()
23440{
23441
23442volatile double A, B;
23443char Buffer[100];
23444A = 1;
23445A /= 10.0;
23446sprintf(Buffer, "%a", A);
23447B = atof(Buffer);
23448if (A != B)
23449 return (1);
23450if (A != 0x1.999999999999ap-4)
23451 return (1);
23452return (0);
23453 ;
23454 return 0;
23455}
23456_ACEOF
23457rm -f conftest$ac_exeext
23458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23459 (eval $ac_link) 2>&5
23460 ac_status=$?
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; }; then
23468 ac_c_printf_a=yes
23469else
23470 echo "$as_me: program exited with status $ac_status" >&5
23471echo "$as_me: failed program was:" >&5
23472sed 's/^/| /' conftest.$ac_ext >&5
23473
23474( exit $ac_status )
23475ac_c_printf_a=no
23476fi
23477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23478fi
23479 ac_ext=c
23480ac_cpp='$CPP $CPPFLAGS'
23481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23483ac_compiler_gnu=$ac_cv_c_compiler_gnu
23484
23485 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
23486echo "${ECHO_T}$ac_c_printf_a" >&6
23487 if test "$ac_c_printf_a" = "yes"; then
23488
23489cat >>confdefs.h <<\_ACEOF
23490#define HAVE_PRINTF_A 1
23491_ACEOF
23492
23493 fi
23494
23495
23496echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
23497echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
23498if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
23499 echo $ECHO_N "(cached) $ECHO_C" >&6
23500else
23501 ac_ext=cc
23502ac_cpp='$CXXCPP $CPPFLAGS'
23503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23506
23507 cat >conftest.$ac_ext <<_ACEOF
23508/* confdefs.h. */
23509_ACEOF
23510cat confdefs.h >>conftest.$ac_ext
23511cat >>conftest.$ac_ext <<_ACEOF
23512/* end confdefs.h. */
23513#include <math.h>
23514 int foo(float f) {return isnan(f);}
23515_ACEOF
23516rm -f conftest.$ac_objext
23517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23518 (eval $ac_compile) 2>conftest.er1
23519 ac_status=$?
23520 grep -v '^ *+' conftest.er1 >conftest.err
23521 rm -f conftest.er1
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } &&
23525 { ac_try='test -z "$ac_cxx_werror_flag"
23526 || test ! -s conftest.err'
23527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528 (eval $ac_try) 2>&5
23529 ac_status=$?
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; } &&
23532 { ac_try='test -s conftest.$ac_objext'
23533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23534 (eval $ac_try) 2>&5
23535 ac_status=$?
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); }; }; then
23538 ac_cv_func_isnan_in_math_h=yes
23539else
23540 echo "$as_me: failed program was:" >&5
23541sed 's/^/| /' conftest.$ac_ext >&5
23542
23543ac_cv_func_isnan_in_math_h=no
23544fi
23545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23546 ac_ext=c
23547ac_cpp='$CPP $CPPFLAGS'
23548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23550ac_compiler_gnu=$ac_cv_c_compiler_gnu
23551
23552fi
23553echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
23554echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
23555 if test "$ac_cv_func_isnan_in_math_h" = "yes"
23556 then
23557
23558cat >>confdefs.h <<\_ACEOF
23559#define HAVE_ISNAN_IN_MATH_H 1
23560_ACEOF
23561
23562 fi
23563echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
23564echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
23565if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23567else
23568 ac_ext=cc
23569ac_cpp='$CXXCPP $CPPFLAGS'
23570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23573
23574 cat >conftest.$ac_ext <<_ACEOF
23575/* confdefs.h. */
23576_ACEOF
23577cat confdefs.h >>conftest.$ac_ext
23578cat >>conftest.$ac_ext <<_ACEOF
23579/* end confdefs.h. */
23580#include <cmath>
23581 int foo(float f) {return isnan(f);}
23582_ACEOF
23583rm -f conftest.$ac_objext
23584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23585 (eval $ac_compile) 2>conftest.er1
23586 ac_status=$?
23587 grep -v '^ *+' conftest.er1 >conftest.err
23588 rm -f conftest.er1
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } &&
23592 { ac_try='test -z "$ac_cxx_werror_flag"
23593 || test ! -s conftest.err'
23594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595 (eval $ac_try) 2>&5
23596 ac_status=$?
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; } &&
23599 { ac_try='test -s conftest.$ac_objext'
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23602 ac_status=$?
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
23605 ac_cv_func_isnan_in_cmath=yes
23606else
23607 echo "$as_me: failed program was:" >&5
23608sed 's/^/| /' conftest.$ac_ext >&5
23609
23610ac_cv_func_isnan_in_cmath=no
23611fi
23612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23613 ac_ext=c
23614ac_cpp='$CPP $CPPFLAGS'
23615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23617ac_compiler_gnu=$ac_cv_c_compiler_gnu
23618
23619fi
23620echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
23621echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
23622 if test "$ac_cv_func_isnan_in_cmath" = "yes"
23623 then
23624
23625cat >>confdefs.h <<\_ACEOF
23626#define HAVE_ISNAN_IN_CMATH 1
23627_ACEOF
23628
23629 fi
23630echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
23631echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
23632if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
23633 echo $ECHO_N "(cached) $ECHO_C" >&6
23634else
23635 ac_ext=cc
23636ac_cpp='$CXXCPP $CPPFLAGS'
23637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23640
23641 cat >conftest.$ac_ext <<_ACEOF
23642/* confdefs.h. */
23643_ACEOF
23644cat confdefs.h >>conftest.$ac_ext
23645cat >>conftest.$ac_ext <<_ACEOF
23646/* end confdefs.h. */
23647#include <cmath>
23648 using std::isnan; int foo(float f) {return isnan(f);}
23649_ACEOF
23650rm -f conftest.$ac_objext
23651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23652 (eval $ac_compile) 2>conftest.er1
23653 ac_status=$?
23654 grep -v '^ *+' conftest.er1 >conftest.err
23655 rm -f conftest.er1
23656 cat conftest.err >&5
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } &&
23659 { ac_try='test -z "$ac_cxx_werror_flag"
23660 || test ! -s conftest.err'
23661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662 (eval $ac_try) 2>&5
23663 ac_status=$?
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); }; } &&
23666 { ac_try='test -s conftest.$ac_objext'
23667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668 (eval $ac_try) 2>&5
23669 ac_status=$?
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); }; }; then
23672 ac_cv_func_std_isnan_in_cmath=yes
23673else
23674 echo "$as_me: failed program was:" >&5
23675sed 's/^/| /' conftest.$ac_ext >&5
23676
23677ac_cv_func_std_isnan_in_cmath=no
23678fi
23679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23680 ac_ext=c
23681ac_cpp='$CPP $CPPFLAGS'
23682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23684ac_compiler_gnu=$ac_cv_c_compiler_gnu
23685
23686fi
23687echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
23688echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
23689 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
23690 then
23691
23692cat >>confdefs.h <<\_ACEOF
23693#define HAVE_STD_ISNAN_IN_CMATH 1
23694_ACEOF
23695
23696 fi
23697
23698
23699echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
23700echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
23701if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23703else
23704 ac_ext=cc
23705ac_cpp='$CXXCPP $CPPFLAGS'
23706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23709
23710 cat >conftest.$ac_ext <<_ACEOF
23711/* confdefs.h. */
23712_ACEOF
23713cat confdefs.h >>conftest.$ac_ext
23714cat >>conftest.$ac_ext <<_ACEOF
23715/* end confdefs.h. */
23716#include <math.h>
23717 int foo(float f) {return isinf(f);}
23718_ACEOF
23719rm -f conftest.$ac_objext
23720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23721 (eval $ac_compile) 2>conftest.er1
23722 ac_status=$?
23723 grep -v '^ *+' conftest.er1 >conftest.err
23724 rm -f conftest.er1
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } &&
23728 { ac_try='test -z "$ac_cxx_werror_flag"
23729 || test ! -s conftest.err'
23730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731 (eval $ac_try) 2>&5
23732 ac_status=$?
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); }; } &&
23735 { ac_try='test -s conftest.$ac_objext'
23736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737 (eval $ac_try) 2>&5
23738 ac_status=$?
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); }; }; then
23741 ac_cv_func_isinf_in_math_h=yes
23742else
23743 echo "$as_me: failed program was:" >&5
23744sed 's/^/| /' conftest.$ac_ext >&5
23745
23746ac_cv_func_isinf_in_math_h=no
23747fi
23748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23749 ac_ext=c
23750ac_cpp='$CPP $CPPFLAGS'
23751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23753ac_compiler_gnu=$ac_cv_c_compiler_gnu
23754
23755fi
23756echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
23757echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
23758 if test "$ac_cv_func_isinf_in_math_h" = "yes"
23759 then
23760
23761cat >>confdefs.h <<\_ACEOF
23762#define HAVE_ISINF_IN_MATH_H 1
23763_ACEOF
23764
23765 fi
23766echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
23767echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
23768if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
23769 echo $ECHO_N "(cached) $ECHO_C" >&6
23770else
23771 ac_ext=cc
23772ac_cpp='$CXXCPP $CPPFLAGS'
23773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23776
23777 cat >conftest.$ac_ext <<_ACEOF
23778/* confdefs.h. */
23779_ACEOF
23780cat confdefs.h >>conftest.$ac_ext
23781cat >>conftest.$ac_ext <<_ACEOF
23782/* end confdefs.h. */
23783#include <cmath>
23784 int foo(float f) {return isinf(f);}
23785_ACEOF
23786rm -f conftest.$ac_objext
23787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23788 (eval $ac_compile) 2>conftest.er1
23789 ac_status=$?
23790 grep -v '^ *+' conftest.er1 >conftest.err
23791 rm -f conftest.er1
23792 cat conftest.err >&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } &&
23795 { ac_try='test -z "$ac_cxx_werror_flag"
23796 || test ! -s conftest.err'
23797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798 (eval $ac_try) 2>&5
23799 ac_status=$?
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); }; } &&
23802 { ac_try='test -s conftest.$ac_objext'
23803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23804 (eval $ac_try) 2>&5
23805 ac_status=$?
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); }; }; then
23808 ac_cv_func_isinf_in_cmath=yes
23809else
23810 echo "$as_me: failed program was:" >&5
23811sed 's/^/| /' conftest.$ac_ext >&5
23812
23813ac_cv_func_isinf_in_cmath=no
23814fi
23815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23816 ac_ext=c
23817ac_cpp='$CPP $CPPFLAGS'
23818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23820ac_compiler_gnu=$ac_cv_c_compiler_gnu
23821
23822fi
23823echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
23824echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
23825 if test "$ac_cv_func_isinf_in_cmath" = "yes"
23826 then
23827
23828cat >>confdefs.h <<\_ACEOF
23829#define HAVE_ISINF_IN_CMATH 1
23830_ACEOF
23831
23832 fi
23833echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
23834echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
23835if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
23836 echo $ECHO_N "(cached) $ECHO_C" >&6
23837else
23838 ac_ext=cc
23839ac_cpp='$CXXCPP $CPPFLAGS'
23840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23843
23844 cat >conftest.$ac_ext <<_ACEOF
23845/* confdefs.h. */
23846_ACEOF
23847cat confdefs.h >>conftest.$ac_ext
23848cat >>conftest.$ac_ext <<_ACEOF
23849/* end confdefs.h. */
23850#include <cmath>
23851 using std::isinf; int foo(float f) {return isinf(f);}
23852_ACEOF
23853rm -f conftest.$ac_objext
23854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23855 (eval $ac_compile) 2>conftest.er1
23856 ac_status=$?
23857 grep -v '^ *+' conftest.er1 >conftest.err
23858 rm -f conftest.er1
23859 cat conftest.err >&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } &&
23862 { ac_try='test -z "$ac_cxx_werror_flag"
23863 || test ! -s conftest.err'
23864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865 (eval $ac_try) 2>&5
23866 ac_status=$?
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); }; } &&
23869 { ac_try='test -s conftest.$ac_objext'
23870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871 (eval $ac_try) 2>&5
23872 ac_status=$?
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; }; then
23875 ac_cv_func_std_isinf_in_cmath=yes
23876else
23877 echo "$as_me: failed program was:" >&5
23878sed 's/^/| /' conftest.$ac_ext >&5
23879
23880ac_cv_func_std_isinf_in_cmath=no
23881fi
23882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23883 ac_ext=c
23884ac_cpp='$CPP $CPPFLAGS'
23885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23887ac_compiler_gnu=$ac_cv_c_compiler_gnu
23888
23889fi
23890echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
23891echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
23892 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
23893 then
23894
23895cat >>confdefs.h <<\_ACEOF
23896#define HAVE_STD_ISINF_IN_CMATH 1
23897_ACEOF
23898
23899 fi
23900echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
23901echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
23902if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23904else
23905 ac_ext=cc
23906ac_cpp='$CXXCPP $CPPFLAGS'
23907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23910
23911 cat >conftest.$ac_ext <<_ACEOF
23912/* confdefs.h. */
23913_ACEOF
23914cat confdefs.h >>conftest.$ac_ext
23915cat >>conftest.$ac_ext <<_ACEOF
23916/* end confdefs.h. */
23917#include <ieeefp.h>
23918 int foo(float f) {return finite(f);}
23919_ACEOF
23920rm -f conftest.$ac_objext
23921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23922 (eval $ac_compile) 2>conftest.er1
23923 ac_status=$?
23924 grep -v '^ *+' conftest.er1 >conftest.err
23925 rm -f conftest.er1
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } &&
23929 { ac_try='test -z "$ac_cxx_werror_flag"
23930 || test ! -s conftest.err'
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; } &&
23936 { ac_try='test -s conftest.$ac_objext'
23937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938 (eval $ac_try) 2>&5
23939 ac_status=$?
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); }; }; then
23942 ac_cv_func_finite_in_ieeefp_h=yes
23943else
23944 echo "$as_me: failed program was:" >&5
23945sed 's/^/| /' conftest.$ac_ext >&5
23946
23947ac_cv_func_finite_in_ieeefp_h=no
23948fi
23949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23950 ac_ext=c
23951ac_cpp='$CPP $CPPFLAGS'
23952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23954ac_compiler_gnu=$ac_cv_c_compiler_gnu
23955
23956fi
23957echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
23958echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
23959 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
23960 then
23961
23962cat >>confdefs.h <<\_ACEOF
23963#define HAVE_FINITE_IN_IEEEFP_H 1
23964_ACEOF
23965
23966 fi
23967
23968# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23969# for constant arguments. Useless!
23970echo "$as_me:$LINENO: checking for working alloca.h" >&5
23971echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23972if test "${ac_cv_working_alloca_h+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23974else
23975 cat >conftest.$ac_ext <<_ACEOF
23976/* confdefs.h. */
23977_ACEOF
23978cat confdefs.h >>conftest.$ac_ext
23979cat >>conftest.$ac_ext <<_ACEOF
23980/* end confdefs.h. */
23981#include <alloca.h>
23982int
23983main ()
23984{
23985char *p = (char *) alloca (2 * sizeof (int));
23986 ;
23987 return 0;
23988}
23989_ACEOF
23990rm -f conftest.$ac_objext conftest$ac_exeext
23991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23992 (eval $ac_link) 2>conftest.er1
23993 ac_status=$?
23994 grep -v '^ *+' conftest.er1 >conftest.err
23995 rm -f conftest.er1
23996 cat conftest.err >&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } &&
23999 { ac_try='test -z "$ac_c_werror_flag"
24000 || test ! -s conftest.err'
24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002 (eval $ac_try) 2>&5
24003 ac_status=$?
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); }; } &&
24006 { ac_try='test -s conftest$ac_exeext'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 ac_cv_working_alloca_h=yes
24013else
24014 echo "$as_me: failed program was:" >&5
24015sed 's/^/| /' conftest.$ac_ext >&5
24016
24017ac_cv_working_alloca_h=no
24018fi
24019rm -f conftest.err conftest.$ac_objext \
24020 conftest$ac_exeext conftest.$ac_ext
24021fi
24022echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24023echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
24024if test $ac_cv_working_alloca_h = yes; then
24025
24026cat >>confdefs.h <<\_ACEOF
24027#define HAVE_ALLOCA_H 1
24028_ACEOF
24029
24030fi
24031
24032echo "$as_me:$LINENO: checking for alloca" >&5
24033echo $ECHO_N "checking for alloca... $ECHO_C" >&6
24034if test "${ac_cv_func_alloca_works+set}" = set; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24036else
24037 cat >conftest.$ac_ext <<_ACEOF
24038/* confdefs.h. */
24039_ACEOF
24040cat confdefs.h >>conftest.$ac_ext
24041cat >>conftest.$ac_ext <<_ACEOF
24042/* end confdefs.h. */
24043#ifdef __GNUC__
24044# define alloca __builtin_alloca
24045#else
24046# ifdef _MSC_VER
24047# include <malloc.h>
24048# define alloca _alloca
24049# else
24050# if HAVE_ALLOCA_H
24051# include <alloca.h>
24052# else
24053# ifdef _AIX
24054 #pragma alloca
24055# else
24056# ifndef alloca /* predefined by HP cc +Olibcalls */
24057char *alloca ();
24058# endif
24059# endif
24060# endif
24061# endif
24062#endif
24063
24064int
24065main ()
24066{
24067char *p = (char *) alloca (1);
24068 ;
24069 return 0;
24070}
24071_ACEOF
24072rm -f conftest.$ac_objext conftest$ac_exeext
24073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24074 (eval $ac_link) 2>conftest.er1
24075 ac_status=$?
24076 grep -v '^ *+' conftest.er1 >conftest.err
24077 rm -f conftest.er1
24078 cat conftest.err >&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } &&
24081 { ac_try='test -z "$ac_c_werror_flag"
24082 || test ! -s conftest.err'
24083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24084 (eval $ac_try) 2>&5
24085 ac_status=$?
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); }; } &&
24088 { ac_try='test -s conftest$ac_exeext'
24089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090 (eval $ac_try) 2>&5
24091 ac_status=$?
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); }; }; then
24094 ac_cv_func_alloca_works=yes
24095else
24096 echo "$as_me: failed program was:" >&5
24097sed 's/^/| /' conftest.$ac_ext >&5
24098
24099ac_cv_func_alloca_works=no
24100fi
24101rm -f conftest.err conftest.$ac_objext \
24102 conftest$ac_exeext conftest.$ac_ext
24103fi
24104echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24105echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
24106
24107if test $ac_cv_func_alloca_works = yes; then
24108
24109cat >>confdefs.h <<\_ACEOF
24110#define HAVE_ALLOCA 1
24111_ACEOF
24112
24113else
24114 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24115# that cause trouble. Some versions do not even contain alloca or
24116# contain a buggy version. If you still want to use their alloca,
24117# use ar to extract alloca.o from them instead of compiling alloca.c.
24118
24119ALLOCA=alloca.$ac_objext
24120
24121cat >>confdefs.h <<\_ACEOF
24122#define C_ALLOCA 1
24123_ACEOF
24124
24125
24126echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24127echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
24128if test "${ac_cv_os_cray+set}" = set; then
24129 echo $ECHO_N "(cached) $ECHO_C" >&6
24130else
24131 cat >conftest.$ac_ext <<_ACEOF
24132/* confdefs.h. */
24133_ACEOF
24134cat confdefs.h >>conftest.$ac_ext
24135cat >>conftest.$ac_ext <<_ACEOF
24136/* end confdefs.h. */
24137#if defined(CRAY) && ! defined(CRAY2)
24138webecray
24139#else
24140wenotbecray
24141#endif
24142
24143_ACEOF
24144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24145 $EGREP "webecray" >/dev/null 2>&1; then
24146 ac_cv_os_cray=yes
24147else
24148 ac_cv_os_cray=no
24149fi
24150rm -f conftest*
24151
24152fi
24153echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24154echo "${ECHO_T}$ac_cv_os_cray" >&6
24155if test $ac_cv_os_cray = yes; then
24156 for ac_func in _getb67 GETB67 getb67; do
24157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24158echo "$as_me:$LINENO: checking for $ac_func" >&5
24159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24160if eval "test \"\${$as_ac_var+set}\" = set"; then
24161 echo $ECHO_N "(cached) $ECHO_C" >&6
24162else
24163 cat >conftest.$ac_ext <<_ACEOF
24164/* confdefs.h. */
24165_ACEOF
24166cat confdefs.h >>conftest.$ac_ext
24167cat >>conftest.$ac_ext <<_ACEOF
24168/* end confdefs.h. */
24169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24171#define $ac_func innocuous_$ac_func
24172
24173/* System header to define __stub macros and hopefully few prototypes,
24174 which can conflict with char $ac_func (); below.
24175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24176 <limits.h> exists even on freestanding compilers. */
24177
24178#ifdef __STDC__
24179# include <limits.h>
24180#else
24181# include <assert.h>
24182#endif
24183
24184#undef $ac_func
24185
24186/* Override any gcc2 internal prototype to avoid an error. */
24187#ifdef __cplusplus
24188extern "C"
24189{
24190#endif
24191/* We use char because int might match the return type of a gcc2
24192 builtin and then its argument prototype would still apply. */
24193char $ac_func ();
24194/* The GNU C library defines this for functions which it implements
24195 to always fail with ENOSYS. Some functions are actually named
24196 something starting with __ and the normal name is an alias. */
24197#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24198choke me
24199#else
24200char (*f) () = $ac_func;
24201#endif
24202#ifdef __cplusplus
24203}
24204#endif
24205
24206int
24207main ()
24208{
24209return f != $ac_func;
24210 ;
24211 return 0;
24212}
24213_ACEOF
24214rm -f conftest.$ac_objext conftest$ac_exeext
24215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24216 (eval $ac_link) 2>conftest.er1
24217 ac_status=$?
24218 grep -v '^ *+' conftest.er1 >conftest.err
24219 rm -f conftest.er1
24220 cat conftest.err >&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); } &&
24223 { ac_try='test -z "$ac_c_werror_flag"
24224 || test ! -s conftest.err'
24225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24226 (eval $ac_try) 2>&5
24227 ac_status=$?
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); }; } &&
24230 { ac_try='test -s conftest$ac_exeext'
24231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24232 (eval $ac_try) 2>&5
24233 ac_status=$?
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); }; }; then
24236 eval "$as_ac_var=yes"
24237else
24238 echo "$as_me: failed program was:" >&5
24239sed 's/^/| /' conftest.$ac_ext >&5
24240
24241eval "$as_ac_var=no"
24242fi
24243rm -f conftest.err conftest.$ac_objext \
24244 conftest$ac_exeext conftest.$ac_ext
24245fi
24246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24247echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24248if test `eval echo '${'$as_ac_var'}'` = yes; then
24249
24250cat >>confdefs.h <<_ACEOF
24251#define CRAY_STACKSEG_END $ac_func
24252_ACEOF
24253
24254 break
24255fi
24256
24257 done
24258fi
24259
24260echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24261echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
24262if test "${ac_cv_c_stack_direction+set}" = set; then
24263 echo $ECHO_N "(cached) $ECHO_C" >&6
24264else
24265 if test "$cross_compiling" = yes; then
24266 ac_cv_c_stack_direction=0
24267else
24268 cat >conftest.$ac_ext <<_ACEOF
24269/* confdefs.h. */
24270_ACEOF
24271cat confdefs.h >>conftest.$ac_ext
24272cat >>conftest.$ac_ext <<_ACEOF
24273/* end confdefs.h. */
24274int
24275find_stack_direction ()
24276{
24277 static char *addr = 0;
24278 auto char dummy;
24279 if (addr == 0)
24280 {
24281 addr = &dummy;
24282 return find_stack_direction ();
24283 }
24284 else
24285 return (&dummy > addr) ? 1 : -1;
24286}
24287
24288int
24289main ()
24290{
24291 exit (find_stack_direction () < 0);
24292}
24293_ACEOF
24294rm -f conftest$ac_exeext
24295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24296 (eval $ac_link) 2>&5
24297 ac_status=$?
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; }; then
24305 ac_cv_c_stack_direction=1
24306else
24307 echo "$as_me: program exited with status $ac_status" >&5
24308echo "$as_me: failed program was:" >&5
24309sed 's/^/| /' conftest.$ac_ext >&5
24310
24311( exit $ac_status )
24312ac_cv_c_stack_direction=-1
24313fi
24314rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24315fi
24316fi
24317echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24318echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
24319
24320cat >>confdefs.h <<_ACEOF
24321#define STACK_DIRECTION $ac_cv_c_stack_direction
24322_ACEOF
24323
24324
24325fi
24326
24327
24328
24329for ac_header in stdlib.h unistd.h
24330do
24331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24332if eval "test \"\${$as_ac_Header+set}\" = set"; then
24333 echo "$as_me:$LINENO: checking for $ac_header" >&5
24334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24335if eval "test \"\${$as_ac_Header+set}\" = set"; then
24336 echo $ECHO_N "(cached) $ECHO_C" >&6
24337fi
24338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24340else
24341 # Is the header compilable?
24342echo "$as_me:$LINENO: checking $ac_header usability" >&5
24343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24344cat >conftest.$ac_ext <<_ACEOF
24345/* confdefs.h. */
24346_ACEOF
24347cat confdefs.h >>conftest.$ac_ext
24348cat >>conftest.$ac_ext <<_ACEOF
24349/* end confdefs.h. */
24350$ac_includes_default
24351#include <$ac_header>
24352_ACEOF
24353rm -f conftest.$ac_objext
24354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24355 (eval $ac_compile) 2>conftest.er1
24356 ac_status=$?
24357 grep -v '^ *+' conftest.er1 >conftest.err
24358 rm -f conftest.er1
24359 cat conftest.err >&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } &&
24362 { ac_try='test -z "$ac_c_werror_flag"
24363 || test ! -s conftest.err'
24364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365 (eval $ac_try) 2>&5
24366 ac_status=$?
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; } &&
24369 { ac_try='test -s conftest.$ac_objext'
24370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371 (eval $ac_try) 2>&5
24372 ac_status=$?
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); }; }; then
24375 ac_header_compiler=yes
24376else
24377 echo "$as_me: failed program was:" >&5
24378sed 's/^/| /' conftest.$ac_ext >&5
24379
24380ac_header_compiler=no
24381fi
24382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24383echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24384echo "${ECHO_T}$ac_header_compiler" >&6
24385
24386# Is the header present?
24387echo "$as_me:$LINENO: checking $ac_header presence" >&5
24388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24389cat >conftest.$ac_ext <<_ACEOF
24390/* confdefs.h. */
24391_ACEOF
24392cat confdefs.h >>conftest.$ac_ext
24393cat >>conftest.$ac_ext <<_ACEOF
24394/* end confdefs.h. */
24395#include <$ac_header>
24396_ACEOF
24397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24399 ac_status=$?
24400 grep -v '^ *+' conftest.er1 >conftest.err
24401 rm -f conftest.er1
24402 cat conftest.err >&5
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); } >/dev/null; then
24405 if test -s conftest.err; then
24406 ac_cpp_err=$ac_c_preproc_warn_flag
24407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24408 else
24409 ac_cpp_err=
24410 fi
24411else
24412 ac_cpp_err=yes
24413fi
24414if test -z "$ac_cpp_err"; then
24415 ac_header_preproc=yes
24416else
24417 echo "$as_me: failed program was:" >&5
24418sed 's/^/| /' conftest.$ac_ext >&5
24419
24420 ac_header_preproc=no
24421fi
24422rm -f conftest.err conftest.$ac_ext
24423echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24424echo "${ECHO_T}$ac_header_preproc" >&6
24425
24426# So? What about this header?
24427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24428 yes:no: )
24429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24430echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24432echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24433 ac_header_preproc=yes
24434 ;;
24435 no:yes:* )
24436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24437echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24439echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24441echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24443echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24445echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24447echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24448 (
24449 cat <<\_ASBOX
24450## ----------------------------------- ##
24451## Report this to llvmbugs@cs.uiuc.edu ##
24452## ----------------------------------- ##
24453_ASBOX
24454 ) |
24455 sed "s/^/$as_me: WARNING: /" >&2
24456 ;;
24457esac
24458echo "$as_me:$LINENO: checking for $ac_header" >&5
24459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24460if eval "test \"\${$as_ac_Header+set}\" = set"; then
24461 echo $ECHO_N "(cached) $ECHO_C" >&6
24462else
24463 eval "$as_ac_Header=\$ac_header_preproc"
24464fi
24465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24467
24468fi
24469if test `eval echo '${'$as_ac_Header'}'` = yes; then
24470 cat >>confdefs.h <<_ACEOF
24471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24472_ACEOF
24473
24474fi
24475
24476done
24477
24478
24479for ac_func in getpagesize
24480do
24481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24482echo "$as_me:$LINENO: checking for $ac_func" >&5
24483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24484if eval "test \"\${$as_ac_var+set}\" = set"; then
24485 echo $ECHO_N "(cached) $ECHO_C" >&6
24486else
24487 cat >conftest.$ac_ext <<_ACEOF
24488/* confdefs.h. */
24489_ACEOF
24490cat confdefs.h >>conftest.$ac_ext
24491cat >>conftest.$ac_ext <<_ACEOF
24492/* end confdefs.h. */
24493/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24495#define $ac_func innocuous_$ac_func
24496
24497/* System header to define __stub macros and hopefully few prototypes,
24498 which can conflict with char $ac_func (); below.
24499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24500 <limits.h> exists even on freestanding compilers. */
24501
24502#ifdef __STDC__
24503# include <limits.h>
24504#else
24505# include <assert.h>
24506#endif
24507
24508#undef $ac_func
24509
24510/* Override any gcc2 internal prototype to avoid an error. */
24511#ifdef __cplusplus
24512extern "C"
24513{
24514#endif
24515/* We use char because int might match the return type of a gcc2
24516 builtin and then its argument prototype would still apply. */
24517char $ac_func ();
24518/* The GNU C library defines this for functions which it implements
24519 to always fail with ENOSYS. Some functions are actually named
24520 something starting with __ and the normal name is an alias. */
24521#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24522choke me
24523#else
24524char (*f) () = $ac_func;
24525#endif
24526#ifdef __cplusplus
24527}
24528#endif
24529
24530int
24531main ()
24532{
24533return f != $ac_func;
24534 ;
24535 return 0;
24536}
24537_ACEOF
24538rm -f conftest.$ac_objext conftest$ac_exeext
24539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24540 (eval $ac_link) 2>conftest.er1
24541 ac_status=$?
24542 grep -v '^ *+' conftest.er1 >conftest.err
24543 rm -f conftest.er1
24544 cat conftest.err >&5
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); } &&
24547 { ac_try='test -z "$ac_c_werror_flag"
24548 || test ! -s conftest.err'
24549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24550 (eval $ac_try) 2>&5
24551 ac_status=$?
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); }; } &&
24554 { ac_try='test -s conftest$ac_exeext'
24555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556 (eval $ac_try) 2>&5
24557 ac_status=$?
24558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); }; }; then
24560 eval "$as_ac_var=yes"
24561else
24562 echo "$as_me: failed program was:" >&5
24563sed 's/^/| /' conftest.$ac_ext >&5
24564
24565eval "$as_ac_var=no"
24566fi
24567rm -f conftest.err conftest.$ac_objext \
24568 conftest$ac_exeext conftest.$ac_ext
24569fi
24570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24571echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24572if test `eval echo '${'$as_ac_var'}'` = yes; then
24573 cat >>confdefs.h <<_ACEOF
24574#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24575_ACEOF
24576
24577fi
24578done
24579
24580echo "$as_me:$LINENO: checking for working mmap" >&5
24581echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
24582if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24584else
24585 if test "$cross_compiling" = yes; then
24586 ac_cv_func_mmap_fixed_mapped=no
24587else
24588 cat >conftest.$ac_ext <<_ACEOF
24589/* confdefs.h. */
24590_ACEOF
24591cat confdefs.h >>conftest.$ac_ext
24592cat >>conftest.$ac_ext <<_ACEOF
24593/* end confdefs.h. */
24594$ac_includes_default
24595/* malloc might have been renamed as rpl_malloc. */
24596#undef malloc
24597
24598/* Thanks to Mike Haertel and Jim Avera for this test.
24599 Here is a matrix of mmap possibilities:
24600 mmap private not fixed
24601 mmap private fixed at somewhere currently unmapped
24602 mmap private fixed at somewhere already mapped
24603 mmap shared not fixed
24604 mmap shared fixed at somewhere currently unmapped
24605 mmap shared fixed at somewhere already mapped
24606 For private mappings, we should verify that changes cannot be read()
24607 back from the file, nor mmap's back from the file at a different
24608 address. (There have been systems where private was not correctly
24609 implemented like the infamous i386 svr4.0, and systems where the
24610 VM page cache was not coherent with the file system buffer cache
24611 like early versions of FreeBSD and possibly contemporary NetBSD.)
24612 For shared mappings, we should conversely verify that changes get
24613 propagated back to all the places they're supposed to be.
24614
24615 Grep wants private fixed already mapped.
24616 The main things grep needs to know about mmap are:
24617 * does it exist and is it safe to write into the mmap'd area
24618 * how to use it (BSD variants) */
24619
24620#include <fcntl.h>
24621#include <sys/mman.h>
24622
24623#if !STDC_HEADERS && !HAVE_STDLIB_H
24624char *malloc ();
24625#endif
24626
24627/* This mess was copied from the GNU getpagesize.h. */
24628#if !HAVE_GETPAGESIZE
24629/* Assume that all systems that can run configure have sys/param.h. */
24630# if !HAVE_SYS_PARAM_H
24631# define HAVE_SYS_PARAM_H 1
24632# endif
24633
24634# ifdef _SC_PAGESIZE
24635# define getpagesize() sysconf(_SC_PAGESIZE)
24636# else /* no _SC_PAGESIZE */
24637# if HAVE_SYS_PARAM_H
24638# include <sys/param.h>
24639# ifdef EXEC_PAGESIZE
24640# define getpagesize() EXEC_PAGESIZE
24641# else /* no EXEC_PAGESIZE */
24642# ifdef NBPG
24643# define getpagesize() NBPG * CLSIZE
24644# ifndef CLSIZE
24645# define CLSIZE 1
24646# endif /* no CLSIZE */
24647# else /* no NBPG */
24648# ifdef NBPC
24649# define getpagesize() NBPC
24650# else /* no NBPC */
24651# ifdef PAGESIZE
24652# define getpagesize() PAGESIZE
24653# endif /* PAGESIZE */
24654# endif /* no NBPC */
24655# endif /* no NBPG */
24656# endif /* no EXEC_PAGESIZE */
24657# else /* no HAVE_SYS_PARAM_H */
24658# define getpagesize() 8192 /* punt totally */
24659# endif /* no HAVE_SYS_PARAM_H */
24660# endif /* no _SC_PAGESIZE */
24661
24662#endif /* no HAVE_GETPAGESIZE */
24663
24664int
24665main ()
24666{
24667 char *data, *data2, *data3;
24668 int i, pagesize;
24669 int fd;
24670
24671 pagesize = getpagesize ();
24672
24673 /* First, make a file with some known garbage in it. */
24674 data = (char *) malloc (pagesize);
24675 if (!data)
24676 exit (1);
24677 for (i = 0; i < pagesize; ++i)
24678 *(data + i) = rand ();
24679 umask (0);
24680 fd = creat ("conftest.mmap", 0600);
24681 if (fd < 0)
24682 exit (1);
24683 if (write (fd, data, pagesize) != pagesize)
24684 exit (1);
24685 close (fd);
24686
24687 /* Next, try to mmap the file at a fixed address which already has
24688 something else allocated at it. If we can, also make sure that
24689 we see the same garbage. */
24690 fd = open ("conftest.mmap", O_RDWR);
24691 if (fd < 0)
24692 exit (1);
24693 data2 = (char *) malloc (2 * pagesize);
24694 if (!data2)
24695 exit (1);
24696 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
24697 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24698 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24699 exit (1);
24700 for (i = 0; i < pagesize; ++i)
24701 if (*(data + i) != *(data2 + i))
24702 exit (1);
24703
24704 /* Finally, make sure that changes to the mapped area do not
24705 percolate back to the file as seen by read(). (This is a bug on
24706 some variants of i386 svr4.0.) */
24707 for (i = 0; i < pagesize; ++i)
24708 *(data2 + i) = *(data2 + i) + 1;
24709 data3 = (char *) malloc (pagesize);
24710 if (!data3)
24711 exit (1);
24712 if (read (fd, data3, pagesize) != pagesize)
24713 exit (1);
24714 for (i = 0; i < pagesize; ++i)
24715 if (*(data + i) != *(data3 + i))
24716 exit (1);
24717 close (fd);
24718 exit (0);
24719}
24720_ACEOF
24721rm -f conftest$ac_exeext
24722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24723 (eval $ac_link) 2>&5
24724 ac_status=$?
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); }; }; then
24732 ac_cv_func_mmap_fixed_mapped=yes
24733else
24734 echo "$as_me: program exited with status $ac_status" >&5
24735echo "$as_me: failed program was:" >&5
24736sed 's/^/| /' conftest.$ac_ext >&5
24737
24738( exit $ac_status )
24739ac_cv_func_mmap_fixed_mapped=no
24740fi
24741rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24742fi
24743fi
24744echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24745echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
24746if test $ac_cv_func_mmap_fixed_mapped = yes; then
24747
24748cat >>confdefs.h <<\_ACEOF
24749#define HAVE_MMAP 1
24750_ACEOF
24751
24752fi
24753rm -f conftest.mmap
24754
24755if test "$ac_cv_func_mmap_fixed_mapped" = "no"
24756then
24757 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
24758echo "$as_me: WARNING: mmap() required but not found" >&2;}
24759fi
24760echo "$as_me:$LINENO: checking for mmap of files" >&5
24761echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
24762if test "${ac_cv_func_mmap_file+set}" = set; then
24763 echo $ECHO_N "(cached) $ECHO_C" >&6
24764else
24765 ac_ext=c
24766ac_cpp='$CPP $CPPFLAGS'
24767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24769ac_compiler_gnu=$ac_cv_c_compiler_gnu
24770
24771 if test "$cross_compiling" = yes; then
24772 ac_cv_func_mmap_file=no
24773else
24774 cat >conftest.$ac_ext <<_ACEOF
24775
24776 /* confdefs.h. */
24777_ACEOF
24778cat confdefs.h >>conftest.$ac_ext
24779cat >>conftest.$ac_ext <<_ACEOF
24780/* end confdefs.h. */
24781
24782#include <sys/types.h>
24783#include <sys/mman.h>
24784#include <fcntl.h>
24785
24786int
24787main ()
24788{
24789
24790 int fd;
24791 fd = creat ("foo",0777);
24792 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
24793 unlink ("foo");
24794 return (fd != (int) MAP_FAILED);
24795 ;
24796 return 0;
24797}
24798_ACEOF
24799rm -f conftest$ac_exeext
24800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24801 (eval $ac_link) 2>&5
24802 ac_status=$?
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806 (eval $ac_try) 2>&5
24807 ac_status=$?
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; }; then
24810 ac_cv_func_mmap_file=yes
24811else
24812 echo "$as_me: program exited with status $ac_status" >&5
24813echo "$as_me: failed program was:" >&5
24814sed 's/^/| /' conftest.$ac_ext >&5
24815
24816( exit $ac_status )
24817ac_cv_func_mmap_file=no
24818fi
24819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24820fi
24821 ac_ext=c
24822ac_cpp='$CPP $CPPFLAGS'
24823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24825ac_compiler_gnu=$ac_cv_c_compiler_gnu
24826
24827
24828fi
24829echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
24830echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
24831if test "$ac_cv_func_mmap_file" = yes; then
24832
24833cat >>confdefs.h <<\_ACEOF
24834#define HAVE_MMAP_FILE
24835_ACEOF
24836
24837 MMAP_FILE=yes
24838
24839fi
24840
24841if test "$ac_cv_func_mmap_file" = "no"
24842then
24843 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
24844echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
24845fi
24846
24847
24848
24849
24850
24851
24852
24853for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty
24854do
24855as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24856echo "$as_me:$LINENO: checking for $ac_func" >&5
24857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24858if eval "test \"\${$as_ac_var+set}\" = set"; then
24859 echo $ECHO_N "(cached) $ECHO_C" >&6
24860else
24861 cat >conftest.$ac_ext <<_ACEOF
24862/* confdefs.h. */
24863_ACEOF
24864cat confdefs.h >>conftest.$ac_ext
24865cat >>conftest.$ac_ext <<_ACEOF
24866/* end confdefs.h. */
24867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24869#define $ac_func innocuous_$ac_func
24870
24871/* System header to define __stub macros and hopefully few prototypes,
24872 which can conflict with char $ac_func (); below.
24873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24874 <limits.h> exists even on freestanding compilers. */
24875
24876#ifdef __STDC__
24877# include <limits.h>
24878#else
24879# include <assert.h>
24880#endif
24881
24882#undef $ac_func
24883
24884/* Override any gcc2 internal prototype to avoid an error. */
24885#ifdef __cplusplus
24886extern "C"
24887{
24888#endif
24889/* We use char because int might match the return type of a gcc2
24890 builtin and then its argument prototype would still apply. */
24891char $ac_func ();
24892/* The GNU C library defines this for functions which it implements
24893 to always fail with ENOSYS. Some functions are actually named
24894 something starting with __ and the normal name is an alias. */
24895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24896choke me
24897#else
24898char (*f) () = $ac_func;
24899#endif
24900#ifdef __cplusplus
24901}
24902#endif
24903
24904int
24905main ()
24906{
24907return f != $ac_func;
24908 ;
24909 return 0;
24910}
24911_ACEOF
24912rm -f conftest.$ac_objext conftest$ac_exeext
24913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24914 (eval $ac_link) 2>conftest.er1
24915 ac_status=$?
24916 grep -v '^ *+' conftest.er1 >conftest.err
24917 rm -f conftest.er1
24918 cat conftest.err >&5
24919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); } &&
24921 { ac_try='test -z "$ac_c_werror_flag"
24922 || test ! -s conftest.err'
24923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924 (eval $ac_try) 2>&5
24925 ac_status=$?
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; } &&
24928 { ac_try='test -s conftest$ac_exeext'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24931 ac_status=$?
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; }; then
24934 eval "$as_ac_var=yes"
24935else
24936 echo "$as_me: failed program was:" >&5
24937sed 's/^/| /' conftest.$ac_ext >&5
24938
24939eval "$as_ac_var=no"
24940fi
24941rm -f conftest.err conftest.$ac_objext \
24942 conftest$ac_exeext conftest.$ac_ext
24943fi
24944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24945echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24946if test `eval echo '${'$as_ac_var'}'` = yes; then
24947 cat >>confdefs.h <<_ACEOF
24948#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24949_ACEOF
24950
24951fi
24952done
24953
24954
24955
24956for ac_func in mkstemp getrusage
24957do
24958as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24959echo "$as_me:$LINENO: checking for $ac_func" >&5
24960echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24961if eval "test \"\${$as_ac_var+set}\" = set"; then
24962 echo $ECHO_N "(cached) $ECHO_C" >&6
24963else
24964 cat >conftest.$ac_ext <<_ACEOF
24965/* confdefs.h. */
24966_ACEOF
24967cat confdefs.h >>conftest.$ac_ext
24968cat >>conftest.$ac_ext <<_ACEOF
24969/* end confdefs.h. */
24970/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24972#define $ac_func innocuous_$ac_func
24973
24974/* System header to define __stub macros and hopefully few prototypes,
24975 which can conflict with char $ac_func (); below.
24976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24977 <limits.h> exists even on freestanding compilers. */
24978
24979#ifdef __STDC__
24980# include <limits.h>
24981#else
24982# include <assert.h>
24983#endif
24984
24985#undef $ac_func
24986
24987/* Override any gcc2 internal prototype to avoid an error. */
24988#ifdef __cplusplus
24989extern "C"
24990{
24991#endif
24992/* We use char because int might match the return type of a gcc2
24993 builtin and then its argument prototype would still apply. */
24994char $ac_func ();
24995/* The GNU C library defines this for functions which it implements
24996 to always fail with ENOSYS. Some functions are actually named
24997 something starting with __ and the normal name is an alias. */
24998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24999choke me
25000#else
25001char (*f) () = $ac_func;
25002#endif
25003#ifdef __cplusplus
25004}
25005#endif
25006
25007int
25008main ()
25009{
25010return f != $ac_func;
25011 ;
25012 return 0;
25013}
25014_ACEOF
25015rm -f conftest.$ac_objext conftest$ac_exeext
25016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25017 (eval $ac_link) 2>conftest.er1
25018 ac_status=$?
25019 grep -v '^ *+' conftest.er1 >conftest.err
25020 rm -f conftest.er1
25021 cat conftest.err >&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); } &&
25024 { ac_try='test -z "$ac_c_werror_flag"
25025 || test ! -s conftest.err'
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; } &&
25031 { ac_try='test -s conftest$ac_exeext'
25032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033 (eval $ac_try) 2>&5
25034 ac_status=$?
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; }; then
25037 eval "$as_ac_var=yes"
25038else
25039 echo "$as_me: failed program was:" >&5
25040sed 's/^/| /' conftest.$ac_ext >&5
25041
25042eval "$as_ac_var=no"
25043fi
25044rm -f conftest.err conftest.$ac_objext \
25045 conftest$ac_exeext conftest.$ac_ext
25046fi
25047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25048echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25049if test `eval echo '${'$as_ac_var'}'` = yes; then
25050 cat >>confdefs.h <<_ACEOF
25051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25052_ACEOF
25053
25054fi
25055done
25056
25057echo "$as_me:$LINENO: checking for mprotect" >&5
25058echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25059if test "${ac_cv_func_mprotect+set}" = set; then
25060 echo $ECHO_N "(cached) $ECHO_C" >&6
25061else
25062 cat >conftest.$ac_ext <<_ACEOF
25063/* confdefs.h. */
25064_ACEOF
25065cat confdefs.h >>conftest.$ac_ext
25066cat >>conftest.$ac_ext <<_ACEOF
25067/* end confdefs.h. */
25068/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25070#define mprotect innocuous_mprotect
25071
25072/* System header to define __stub macros and hopefully few prototypes,
25073 which can conflict with char mprotect (); below.
25074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25075 <limits.h> exists even on freestanding compilers. */
25076
25077#ifdef __STDC__
25078# include <limits.h>
25079#else
25080# include <assert.h>
25081#endif
25082
25083#undef mprotect
25084
25085/* Override any gcc2 internal prototype to avoid an error. */
25086#ifdef __cplusplus
25087extern "C"
25088{
25089#endif
25090/* We use char because int might match the return type of a gcc2
25091 builtin and then its argument prototype would still apply. */
25092char mprotect ();
25093/* The GNU C library defines this for functions which it implements
25094 to always fail with ENOSYS. Some functions are actually named
25095 something starting with __ and the normal name is an alias. */
25096#if defined (__stub_mprotect) || defined (__stub___mprotect)
25097choke me
25098#else
25099char (*f) () = mprotect;
25100#endif
25101#ifdef __cplusplus
25102}
25103#endif
25104
25105int
25106main ()
25107{
25108return f != mprotect;
25109 ;
25110 return 0;
25111}
25112_ACEOF
25113rm -f conftest.$ac_objext conftest$ac_exeext
25114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25115 (eval $ac_link) 2>conftest.er1
25116 ac_status=$?
25117 grep -v '^ *+' conftest.er1 >conftest.err
25118 rm -f conftest.er1
25119 cat conftest.err >&5
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); } &&
25122 { ac_try='test -z "$ac_c_werror_flag"
25123 || test ! -s conftest.err'
25124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125 (eval $ac_try) 2>&5
25126 ac_status=$?
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; } &&
25129 { ac_try='test -s conftest$ac_exeext'
25130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25131 (eval $ac_try) 2>&5
25132 ac_status=$?
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); }; }; then
25135 ac_cv_func_mprotect=yes
25136else
25137 echo "$as_me: failed program was:" >&5
25138sed 's/^/| /' conftest.$ac_ext >&5
25139
25140ac_cv_func_mprotect=no
25141fi
25142rm -f conftest.err conftest.$ac_objext \
25143 conftest$ac_exeext conftest.$ac_ext
25144fi
25145echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25146echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25147if test $ac_cv_func_mprotect = yes; then
25148 :
25149else
25150 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25151echo "$as_me: error: Function mprotect() required but not found" >&2;}
25152 { (exit 1); exit 1; }; }
25153fi
25154
25155
25156echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
25157echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
25158if test "${ac_cv_cxx_namespaces+set}" = set; then
25159 echo $ECHO_N "(cached) $ECHO_C" >&6
25160else
25161 ac_ext=cc
25162ac_cpp='$CXXCPP $CPPFLAGS'
25163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25166
25167 cat >conftest.$ac_ext <<_ACEOF
25168/* confdefs.h. */
25169_ACEOF
25170cat confdefs.h >>conftest.$ac_ext
25171cat >>conftest.$ac_ext <<_ACEOF
25172/* end confdefs.h. */
25173namespace Outer { namespace Inner { int i = 0; }}
25174int
25175main ()
25176{
25177using namespace Outer::Inner; return i;
25178 ;
25179 return 0;
25180}
25181_ACEOF
25182rm -f conftest.$ac_objext
25183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25184 (eval $ac_compile) 2>conftest.er1
25185 ac_status=$?
25186 grep -v '^ *+' conftest.er1 >conftest.err
25187 rm -f conftest.er1
25188 cat conftest.err >&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } &&
25191 { ac_try='test -z "$ac_cxx_werror_flag"
25192 || test ! -s conftest.err'
25193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194 (eval $ac_try) 2>&5
25195 ac_status=$?
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; } &&
25198 { ac_try='test -s conftest.$ac_objext'
25199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200 (eval $ac_try) 2>&5
25201 ac_status=$?
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }; }; then
25204 ac_cv_cxx_namespaces=yes
25205else
25206 echo "$as_me: failed program was:" >&5
25207sed 's/^/| /' conftest.$ac_ext >&5
25208
25209ac_cv_cxx_namespaces=no
25210fi
25211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25212 ac_ext=c
25213ac_cpp='$CPP $CPPFLAGS'
25214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25216ac_compiler_gnu=$ac_cv_c_compiler_gnu
25217
25218
25219fi
25220echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
25221echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
25222if test "$ac_cv_cxx_namespaces" = yes; then
25223
25224cat >>confdefs.h <<\_ACEOF
25225#define HAVE_NAMESPACES
25226_ACEOF
25227
25228fi
25229
25230echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
25231echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
25232if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
25233 echo $ECHO_N "(cached) $ECHO_C" >&6
25234else
25235
25236 ac_ext=cc
25237ac_cpp='$CXXCPP $CPPFLAGS'
25238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25241
25242 cat >conftest.$ac_ext <<_ACEOF
25243/* confdefs.h. */
25244_ACEOF
25245cat confdefs.h >>conftest.$ac_ext
25246cat >>conftest.$ac_ext <<_ACEOF
25247/* end confdefs.h. */
25248#include <ext/hash_map>
25249#ifdef HAVE_NAMESPACES
25250using namespace std;
25251#endif
25252int
25253main ()
25254{
25255hash_map<int, int> t;
25256 ;
25257 return 0;
25258}
25259_ACEOF
25260rm -f conftest.$ac_objext
25261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25262 (eval $ac_compile) 2>conftest.er1
25263 ac_status=$?
25264 grep -v '^ *+' conftest.er1 >conftest.err
25265 rm -f conftest.er1
25266 cat conftest.err >&5
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); } &&
25269 { ac_try='test -z "$ac_cxx_werror_flag"
25270 || test ! -s conftest.err'
25271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25272 (eval $ac_try) 2>&5
25273 ac_status=$?
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); }; } &&
25276 { ac_try='test -s conftest.$ac_objext'
25277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25278 (eval $ac_try) 2>&5
25279 ac_status=$?
25280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281 (exit $ac_status); }; }; then
25282 ac_cv_cxx_have_std_ext_hash_map=yes
25283else
25284 echo "$as_me: failed program was:" >&5
25285sed 's/^/| /' conftest.$ac_ext >&5
25286
25287ac_cv_cxx_have_std_ext_hash_map=no
25288fi
25289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25290 ac_ext=c
25291ac_cpp='$CPP $CPPFLAGS'
25292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25294ac_compiler_gnu=$ac_cv_c_compiler_gnu
25295
25296fi
25297echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
25298echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
25299 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
25300 then
25301
25302cat >>confdefs.h <<\_ACEOF
25303#define HAVE_STD_EXT_HASH_MAP 1
25304_ACEOF
25305
25306 else
25307
25308cat >>confdefs.h <<\_ACEOF
25309#define HAVE_STD_EXT_HASH_MAP 0
25310_ACEOF
25311
25312 fi
25313
25314 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
25315echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
25316if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
25317 echo $ECHO_N "(cached) $ECHO_C" >&6
25318else
25319
25320 ac_ext=cc
25321ac_cpp='$CXXCPP $CPPFLAGS'
25322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25325
25326 cat >conftest.$ac_ext <<_ACEOF
25327/* confdefs.h. */
25328_ACEOF
25329cat confdefs.h >>conftest.$ac_ext
25330cat >>conftest.$ac_ext <<_ACEOF
25331/* end confdefs.h. */
25332#include <ext/hash_map>
25333#ifdef HAVE_NAMESPACES
25334using namespace __gnu_cxx;
25335#endif
25336int
25337main ()
25338{
25339hash_map<int,int> t;
25340 ;
25341 return 0;
25342}
25343_ACEOF
25344rm -f conftest.$ac_objext
25345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25346 (eval $ac_compile) 2>conftest.er1
25347 ac_status=$?
25348 grep -v '^ *+' conftest.er1 >conftest.err
25349 rm -f conftest.er1
25350 cat conftest.err >&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } &&
25353 { ac_try='test -z "$ac_cxx_werror_flag"
25354 || test ! -s conftest.err'
25355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356 (eval $ac_try) 2>&5
25357 ac_status=$?
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } &&
25360 { ac_try='test -s conftest.$ac_objext'
25361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25363 ac_status=$?
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; }; then
25366 ac_cv_cxx_have_gnu_ext_hash_map=yes
25367else
25368 echo "$as_me: failed program was:" >&5
25369sed 's/^/| /' conftest.$ac_ext >&5
25370
25371ac_cv_cxx_have_gnu_ext_hash_map=no
25372fi
25373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25374 ac_ext=c
25375ac_cpp='$CPP $CPPFLAGS'
25376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25378ac_compiler_gnu=$ac_cv_c_compiler_gnu
25379
25380fi
25381echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
25382echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
25383 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
25384 then
25385
25386cat >>confdefs.h <<\_ACEOF
25387#define HAVE_GNU_EXT_HASH_MAP 1
25388_ACEOF
25389
25390 else
25391
25392cat >>confdefs.h <<\_ACEOF
25393#define HAVE_GNU_EXT_HASH_MAP 0
25394_ACEOF
25395
25396 fi
25397
25398 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
25399echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
25400if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25402else
25403
25404 ac_ext=cc
25405ac_cpp='$CXXCPP $CPPFLAGS'
25406ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25407ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25408ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25409
25410 cat >conftest.$ac_ext <<_ACEOF
25411/* confdefs.h. */
25412_ACEOF
25413cat confdefs.h >>conftest.$ac_ext
25414cat >>conftest.$ac_ext <<_ACEOF
25415/* end confdefs.h. */
25416#include <hash_map>
25417int
25418main ()
25419{
25420hash_map<int,int> t;
25421 ;
25422 return 0;
25423}
25424_ACEOF
25425rm -f conftest.$ac_objext
25426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25427 (eval $ac_compile) 2>conftest.er1
25428 ac_status=$?
25429 grep -v '^ *+' conftest.er1 >conftest.err
25430 rm -f conftest.er1
25431 cat conftest.err >&5
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } &&
25434 { ac_try='test -z "$ac_cxx_werror_flag"
25435 || test ! -s conftest.err'
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; } &&
25441 { ac_try='test -s conftest.$ac_objext'
25442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443 (eval $ac_try) 2>&5
25444 ac_status=$?
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); }; }; then
25447 ac_cv_cxx_have_global_hash_map=yes
25448else
25449 echo "$as_me: failed program was:" >&5
25450sed 's/^/| /' conftest.$ac_ext >&5
25451
25452ac_cv_cxx_have_global_hash_map=no
25453fi
25454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25455 ac_ext=c
25456ac_cpp='$CPP $CPPFLAGS'
25457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25459ac_compiler_gnu=$ac_cv_c_compiler_gnu
25460
25461fi
25462echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
25463echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
25464 if test "$ac_cv_cxx_have_global_hash_map" = yes
25465 then
25466
25467cat >>confdefs.h <<\_ACEOF
25468#define HAVE_GLOBAL_HASH_MAP 1
25469_ACEOF
25470
25471 else
25472
25473cat >>confdefs.h <<\_ACEOF
25474#define HAVE_GLOBAL_HASH_MAP 0
25475_ACEOF
25476
25477 fi
25478
25479echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
25480echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
25481if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
25482 echo $ECHO_N "(cached) $ECHO_C" >&6
25483else
25484
25485 ac_ext=cc
25486ac_cpp='$CXXCPP $CPPFLAGS'
25487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25490
25491 cat >conftest.$ac_ext <<_ACEOF
25492/* confdefs.h. */
25493_ACEOF
25494cat confdefs.h >>conftest.$ac_ext
25495cat >>conftest.$ac_ext <<_ACEOF
25496/* end confdefs.h. */
25497#include <ext/hash_set>
25498#ifdef HAVE_NAMESPACES
25499using namespace std;
25500#endif
25501int
25502main ()
25503{
25504hash_set<int> t;
25505 ;
25506 return 0;
25507}
25508_ACEOF
25509rm -f conftest.$ac_objext
25510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25511 (eval $ac_compile) 2>conftest.er1
25512 ac_status=$?
25513 grep -v '^ *+' conftest.er1 >conftest.err
25514 rm -f conftest.er1
25515 cat conftest.err >&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } &&
25518 { ac_try='test -z "$ac_cxx_werror_flag"
25519 || test ! -s conftest.err'
25520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521 (eval $ac_try) 2>&5
25522 ac_status=$?
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; } &&
25525 { ac_try='test -s conftest.$ac_objext'
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; }; then
25531 ac_cv_cxx_have_std_ext_hash_set=yes
25532else
25533 echo "$as_me: failed program was:" >&5
25534sed 's/^/| /' conftest.$ac_ext >&5
25535
25536ac_cv_cxx_have_std_ext_hash_set=no
25537fi
25538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25539 ac_ext=c
25540ac_cpp='$CPP $CPPFLAGS'
25541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25543ac_compiler_gnu=$ac_cv_c_compiler_gnu
25544
25545fi
25546echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
25547echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
25548 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
25549 then
25550
25551cat >>confdefs.h <<\_ACEOF
25552#define HAVE_STD_EXT_HASH_SET 1
25553_ACEOF
25554
25555 else
25556
25557cat >>confdefs.h <<\_ACEOF
25558#define HAVE_STD_EXT_HASH_SET 0
25559_ACEOF
25560
25561 fi
25562
25563 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
25564echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
25565if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
25566 echo $ECHO_N "(cached) $ECHO_C" >&6
25567else
25568
25569 ac_ext=cc
25570ac_cpp='$CXXCPP $CPPFLAGS'
25571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25574
25575 cat >conftest.$ac_ext <<_ACEOF
25576/* confdefs.h. */
25577_ACEOF
25578cat confdefs.h >>conftest.$ac_ext
25579cat >>conftest.$ac_ext <<_ACEOF
25580/* end confdefs.h. */
25581#include <ext/hash_set>
25582#ifdef HAVE_NAMESPACES
25583using namespace __gnu_cxx;
25584#endif
25585int
25586main ()
25587{
25588hash_set<int> t;
25589 ;
25590 return 0;
25591}
25592_ACEOF
25593rm -f conftest.$ac_objext
25594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25595 (eval $ac_compile) 2>conftest.er1
25596 ac_status=$?
25597 grep -v '^ *+' conftest.er1 >conftest.err
25598 rm -f conftest.er1
25599 cat conftest.err >&5
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); } &&
25602 { ac_try='test -z "$ac_cxx_werror_flag"
25603 || test ! -s conftest.err'
25604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25605 (eval $ac_try) 2>&5
25606 ac_status=$?
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); }; } &&
25609 { ac_try='test -s conftest.$ac_objext'
25610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611 (eval $ac_try) 2>&5
25612 ac_status=$?
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); }; }; then
25615 ac_cv_cxx_have_gnu_ext_hash_set=yes
25616else
25617 echo "$as_me: failed program was:" >&5
25618sed 's/^/| /' conftest.$ac_ext >&5
25619
25620ac_cv_cxx_have_gnu_ext_hash_set=no
25621fi
25622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25623 ac_ext=c
25624ac_cpp='$CPP $CPPFLAGS'
25625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25627ac_compiler_gnu=$ac_cv_c_compiler_gnu
25628
25629fi
25630echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
25631echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
25632 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
25633 then
25634
25635cat >>confdefs.h <<\_ACEOF
25636#define HAVE_GNU_EXT_HASH_SET 1
25637_ACEOF
25638
25639 else
25640
25641cat >>confdefs.h <<\_ACEOF
25642#define HAVE_GNU_EXT_HASH_SET 0
25643_ACEOF
25644
25645 fi
25646
25647 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
25648echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
25649if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
25650 echo $ECHO_N "(cached) $ECHO_C" >&6
25651else
25652
25653 ac_ext=cc
25654ac_cpp='$CXXCPP $CPPFLAGS'
25655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25658
25659 cat >conftest.$ac_ext <<_ACEOF
25660/* confdefs.h. */
25661_ACEOF
25662cat confdefs.h >>conftest.$ac_ext
25663cat >>conftest.$ac_ext <<_ACEOF
25664/* end confdefs.h. */
25665#include <hash_set>
25666int
25667main ()
25668{
25669hash_set<int> t; return 0;
25670 ;
25671 return 0;
25672}
25673_ACEOF
25674rm -f conftest.$ac_objext
25675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25676 (eval $ac_compile) 2>conftest.er1
25677 ac_status=$?
25678 grep -v '^ *+' conftest.er1 >conftest.err
25679 rm -f conftest.er1
25680 cat conftest.err >&5
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); } &&
25683 { ac_try='test -z "$ac_cxx_werror_flag"
25684 || test ! -s conftest.err'
25685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; } &&
25690 { ac_try='test -s conftest.$ac_objext'
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 ac_cv_cxx_have_global_hash_set=yes
25697else
25698 echo "$as_me: failed program was:" >&5
25699sed 's/^/| /' conftest.$ac_ext >&5
25700
25701ac_cv_cxx_have_global_hash_set=no
25702fi
25703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25704 ac_ext=c
25705ac_cpp='$CPP $CPPFLAGS'
25706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25708ac_compiler_gnu=$ac_cv_c_compiler_gnu
25709
25710fi
25711echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
25712echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
25713 if test "$ac_cv_cxx_have_global_hash_set" = yes
25714 then
25715
25716cat >>confdefs.h <<\_ACEOF
25717#define HAVE_GLOBAL_HASH_SET 1
25718_ACEOF
25719
25720 else
25721
25722cat >>confdefs.h <<\_ACEOF
25723#define HAVE_GLOBAL_HASH_SET 0
25724_ACEOF
25725
25726 fi
25727
25728echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
25729echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
25730if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
25731 echo $ECHO_N "(cached) $ECHO_C" >&6
25732else
25733
25734 ac_ext=cc
25735ac_cpp='$CXXCPP $CPPFLAGS'
25736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25739
25740 cat >conftest.$ac_ext <<_ACEOF
25741/* confdefs.h. */
25742_ACEOF
25743cat confdefs.h >>conftest.$ac_ext
25744cat >>conftest.$ac_ext <<_ACEOF
25745/* end confdefs.h. */
25746#include <iterator>
25747#ifdef HAVE_NAMESPACES
25748using namespace std;
25749#endif
25750int
25751main ()
25752{
25753iterator<int,int,int> t; return 0;
25754 ;
25755 return 0;
25756}
25757_ACEOF
25758rm -f conftest.$ac_objext
25759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25760 (eval $ac_compile) 2>conftest.er1
25761 ac_status=$?
25762 grep -v '^ *+' conftest.er1 >conftest.err
25763 rm -f conftest.er1
25764 cat conftest.err >&5
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } &&
25767 { ac_try='test -z "$ac_cxx_werror_flag"
25768 || test ! -s conftest.err'
25769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770 (eval $ac_try) 2>&5
25771 ac_status=$?
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); }; } &&
25774 { ac_try='test -s conftest.$ac_objext'
25775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25776 (eval $ac_try) 2>&5
25777 ac_status=$?
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); }; }; then
25780 ac_cv_cxx_have_std_iterator=yes
25781else
25782 echo "$as_me: failed program was:" >&5
25783sed 's/^/| /' conftest.$ac_ext >&5
25784
25785ac_cv_cxx_have_std_iterator=no
25786fi
25787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25788 ac_ext=c
25789ac_cpp='$CPP $CPPFLAGS'
25790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25792ac_compiler_gnu=$ac_cv_c_compiler_gnu
25793
25794
25795fi
25796echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
25797echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
25798if test "$ac_cv_cxx_have_std_iterator" = yes
25799then
25800
25801cat >>confdefs.h <<\_ACEOF
25802#define HAVE_STD_ITERATOR 1
25803_ACEOF
25804
25805else
25806
25807cat >>confdefs.h <<\_ACEOF
25808#define HAVE_STD_ITERATOR 0
25809_ACEOF
25810
25811fi
25812
25813echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
25814echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
25815if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
25816 echo $ECHO_N "(cached) $ECHO_C" >&6
25817else
25818
25819 ac_ext=cc
25820ac_cpp='$CXXCPP $CPPFLAGS'
25821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25824
25825 cat >conftest.$ac_ext <<_ACEOF
25826/* confdefs.h. */
25827_ACEOF
25828cat confdefs.h >>conftest.$ac_ext
25829cat >>conftest.$ac_ext <<_ACEOF
25830/* end confdefs.h. */
25831#include <iterator>
25832#ifdef HAVE_NAMESPACES
25833using namespace std;
25834#endif
25835int
25836main ()
25837{
25838bidirectional_iterator<int,int> t; return 0;
25839 ;
25840 return 0;
25841}
25842_ACEOF
25843rm -f conftest.$ac_objext
25844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845 (eval $ac_compile) 2>conftest.er1
25846 ac_status=$?
25847 grep -v '^ *+' conftest.er1 >conftest.err
25848 rm -f conftest.er1
25849 cat conftest.err >&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } &&
25852 { ac_try='test -z "$ac_cxx_werror_flag"
25853 || test ! -s conftest.err'
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; } &&
25859 { ac_try='test -s conftest.$ac_objext'
25860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25862 ac_status=$?
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; }; then
25865 ac_cv_cxx_have_bi_iterator=yes
25866else
25867 echo "$as_me: failed program was:" >&5
25868sed 's/^/| /' conftest.$ac_ext >&5
25869
25870ac_cv_cxx_have_bi_iterator=no
25871fi
25872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25873 ac_ext=c
25874ac_cpp='$CPP $CPPFLAGS'
25875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25877ac_compiler_gnu=$ac_cv_c_compiler_gnu
25878
25879
25880fi
25881echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
25882echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
25883if test "$ac_cv_cxx_have_bi_iterator" = yes
25884then
25885
25886cat >>confdefs.h <<\_ACEOF
25887#define HAVE_BI_ITERATOR 1
25888_ACEOF
25889
25890else
25891
25892cat >>confdefs.h <<\_ACEOF
25893#define HAVE_BI_ITERATOR 0
25894_ACEOF
25895
25896fi
25897
25898echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
25899echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
25900if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
25901 echo $ECHO_N "(cached) $ECHO_C" >&6
25902else
25903
25904 ac_ext=cc
25905ac_cpp='$CXXCPP $CPPFLAGS'
25906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25909
25910 cat >conftest.$ac_ext <<_ACEOF
25911/* confdefs.h. */
25912_ACEOF
25913cat confdefs.h >>conftest.$ac_ext
25914cat >>conftest.$ac_ext <<_ACEOF
25915/* end confdefs.h. */
25916#include <iterator>
25917#ifdef HAVE_NAMESPACES
25918using namespace std;
25919#endif
25920int
25921main ()
25922{
25923forward_iterator<int,int> t; return 0;
25924 ;
25925 return 0;
25926}
25927_ACEOF
25928rm -f conftest.$ac_objext
25929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25930 (eval $ac_compile) 2>conftest.er1
25931 ac_status=$?
25932 grep -v '^ *+' conftest.er1 >conftest.err
25933 rm -f conftest.er1
25934 cat conftest.err >&5
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); } &&
25937 { ac_try='test -z "$ac_cxx_werror_flag"
25938 || test ! -s conftest.err'
25939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; } &&
25944 { ac_try='test -s conftest.$ac_objext'
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; }; then
25950 ac_cv_cxx_have_fwd_iterator=yes
25951else
25952 echo "$as_me: failed program was:" >&5
25953sed 's/^/| /' conftest.$ac_ext >&5
25954
25955ac_cv_cxx_have_fwd_iterator=no
25956fi
25957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25958 ac_ext=c
25959ac_cpp='$CPP $CPPFLAGS'
25960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25962ac_compiler_gnu=$ac_cv_c_compiler_gnu
25963
25964
25965fi
25966echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
25967echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
25968if test "$ac_cv_cxx_have_fwd_iterator" = yes
25969then
25970
25971cat >>confdefs.h <<\_ACEOF
25972#define HAVE_FWD_ITERATOR 1
25973_ACEOF
25974
25975else
25976
25977cat >>confdefs.h <<\_ACEOF
25978#define HAVE_FWD_ITERATOR 0
25979_ACEOF
25980
25981fi
25982
25983
25984
25985 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
25986echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
25987 ac_ext=c
25988ac_cpp='$CPP $CPPFLAGS'
25989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25991ac_compiler_gnu=$ac_cv_c_compiler_gnu
25992
25993 oldcflags="$CFLAGS"
25994 CFLAGS="$CFLAGS -Wl,-R."
25995 cat >conftest.$ac_ext <<_ACEOF
25996/* confdefs.h. */
25997_ACEOF
25998cat confdefs.h >>conftest.$ac_ext
25999cat >>conftest.$ac_ext <<_ACEOF
26000/* end confdefs.h. */
26001
26002int
26003main ()
26004{
26005int main() { return 0; }
26006 ;
26007 return 0;
26008}
26009_ACEOF
26010rm -f conftest.$ac_objext conftest$ac_exeext
26011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26012 (eval $ac_link) 2>conftest.er1
26013 ac_status=$?
26014 grep -v '^ *+' conftest.er1 >conftest.err
26015 rm -f conftest.er1
26016 cat conftest.err >&5
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } &&
26019 { ac_try='test -z "$ac_c_werror_flag"
26020 || test ! -s conftest.err'
26021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022 (eval $ac_try) 2>&5
26023 ac_status=$?
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; } &&
26026 { ac_try='test -s conftest$ac_exeext'
26027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028 (eval $ac_try) 2>&5
26029 ac_status=$?
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); }; }; then
26032 ac_cv_link_use_r=yes
26033else
26034 echo "$as_me: failed program was:" >&5
26035sed 's/^/| /' conftest.$ac_ext >&5
26036
26037ac_cv_link_use_r=no
26038fi
26039rm -f conftest.err conftest.$ac_objext \
26040 conftest$ac_exeext conftest.$ac_ext
26041 CFLAGS="$oldcflags"
26042 ac_ext=c
26043ac_cpp='$CPP $CPPFLAGS'
26044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26046ac_compiler_gnu=$ac_cv_c_compiler_gnu
26047
26048 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
26049echo "${ECHO_T}$ac_cv_link_use_r" >&6
26050 if test "$ac_cv_link_use_r" = yes
26051 then
26052
26053cat >>confdefs.h <<\_ACEOF
26054#define HAVE_LINK_R 1
26055_ACEOF
26056
26057 fi
26058
26059
26060
26061if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
26062
26063cat >>confdefs.h <<\_ACEOF
26064#define HAVE_ZLIB 1
26065_ACEOF
26066
26067 HAVE_ZLIB=1
26068
26069else
26070 HAVE_ZLIB=0
26071
26072fi
26073if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
26074
26075cat >>confdefs.h <<\_ACEOF
26076#define HAVE_BZIP2 1
26077_ACEOF
26078
26079 HAVE_BZIP2=1
26080
26081else
26082 HAVE_BZIP2=0
26083
26084fi
26085
26086echo "$as_me:$LINENO: checking for shared library suffix" >&5
26087echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
26088eval "SHLIBEXT=$shrext_cmds"
26089echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
26090echo "${ECHO_T}$SHLIBEXT" >&6
26091
26092SHLIBEXT=$SHLIBEXT
26093
26094
26095cat >>confdefs.h <<_ACEOF
26096#define SHLIBEXT "$SHLIBEXT"
26097_ACEOF
26098
26099
26100# Translate the various configuration directories and other basic
26101# information into substitutions that will end up in config.h.in so
26102# that these configured values can be hard-wired into a program.
26103eval LLVM_PREFIX="${prefix}";
26104eval LLVM_BINDIR="${prefix}/bin";
26105eval LLVM_LIBDIR="${prefix}/lib";
26106eval LLVM_DATADIR="${prefix}/data";
26107eval LLVM_DOCSDIR="${prefix}/docs";
26108eval LLVM_ETCDIR="${prefix}/etc";
26109eval LLVM_INCLUDEDIR="${prefix}/include";
26110eval LLVM_INFODIR="${prefix}/info";
26111eval LLVM_MANDIR="${prefix}/man";
26112LLVM_CONFIGTIME=`date`
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126cat >>confdefs.h <<_ACEOF
26127#define LLVM_PREFIX "$LLVM_PREFIX"
26128_ACEOF
26129
26130
26131cat >>confdefs.h <<_ACEOF
26132#define LLVM_BINDIR "$LLVM_BINDIR"
26133_ACEOF
26134
26135
26136cat >>confdefs.h <<_ACEOF
26137#define LLVM_LIBDIR "$LLVM_LIBDIR"
26138_ACEOF
26139
26140
26141cat >>confdefs.h <<_ACEOF
26142#define LLVM_DATADIR "$LLVM_DATADIR"
26143_ACEOF
26144
26145
26146cat >>confdefs.h <<_ACEOF
26147#define LLVM_DATADIR "$LLVM_DOCSDIR"
26148_ACEOF
26149
26150
26151cat >>confdefs.h <<_ACEOF
26152#define LLVM_ETCDIR "$LLVM_ETCDIR"
26153_ACEOF
26154
26155
26156cat >>confdefs.h <<_ACEOF
26157#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
26158_ACEOF
26159
26160
26161cat >>confdefs.h <<_ACEOF
26162#define LLVM_INFODIR "$LLVM_INFODIR"
26163_ACEOF
26164
26165
26166cat >>confdefs.h <<_ACEOF
26167#define LLVM_MANDIR "$LLVM_MANDIR"
26168_ACEOF
26169
26170
26171cat >>confdefs.h <<_ACEOF
26172#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
26173_ACEOF
26174
26175
26176
26177 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
26178
26179 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
26180
26181 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
26182
26183 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
26184
26185 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
26186
26187 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
26188
26189
26190 ac_config_files="$ac_config_files Makefile"
26191
26192 ac_config_files="$ac_config_files Makefile.rules"
26193
26194 ac_config_files="$ac_config_files lib/Makefile"
26195
26196 ac_config_files="$ac_config_files lib/Analysis/IPA/Makefile"
26197
26198 ac_config_files="$ac_config_files lib/Analysis/Makefile"
26199
26200 ac_config_files="$ac_config_files lib/Analysis/DataStructure/Makefile"
26201
26202 ac_config_files="$ac_config_files lib/AsmParser/Makefile"
26203
26204 ac_config_files="$ac_config_files lib/System/Makefile"
26205
26206 ac_config_files="$ac_config_files lib/Bytecode/Reader/Makefile"
26207
26208 ac_config_files="$ac_config_files lib/Bytecode/Makefile"
26209
26210 ac_config_files="$ac_config_files lib/Bytecode/Writer/Makefile"
26211
26212 ac_config_files="$ac_config_files lib/Bytecode/Archive/Makefile"
26213
26214 ac_config_files="$ac_config_files lib/CodeGen/Makefile"
26215
26216 ac_config_files="$ac_config_files lib/CodeGen/ModuloScheduling/Makefile"
26217
26218 ac_config_files="$ac_config_files lib/CodeGen/SelectionDAG/Makefile"
26219
26220 ac_config_files="$ac_config_files lib/Debugger/Makefile"
26221
26222 ac_config_files="$ac_config_files lib/ExecutionEngine/Interpreter/Makefile"
26223
26224 ac_config_files="$ac_config_files lib/ExecutionEngine/Makefile"
26225
26226 ac_config_files="$ac_config_files lib/ExecutionEngine/JIT/Makefile"
26227
26228 ac_config_files="$ac_config_files lib/Support/Makefile"
26229
26230 ac_config_files="$ac_config_files lib/Target/CBackend/Makefile"
26231
26232 ac_config_files="$ac_config_files lib/Target/Makefile"
26233
26234 ac_config_files="$ac_config_files lib/Target/Skeleton/Makefile"
26235
26236 ac_config_files="$ac_config_files lib/Target/PowerPC/Makefile"
26237
26238 ac_config_files="$ac_config_files lib/Target/SparcV9/Makefile"
26239
26240 ac_config_files="$ac_config_files lib/Target/SparcV9/InstrSched/Makefile"
26241
26242 ac_config_files="$ac_config_files lib/Target/SparcV9/LiveVar/Makefile"
26243
26244 ac_config_files="$ac_config_files lib/Target/SparcV9/RegAlloc/Makefile"
26245
26246 ac_config_files="$ac_config_files lib/Target/X86/Makefile"
26247
26248 ac_config_files="$ac_config_files lib/Transforms/Hello/Makefile"
26249
26250 ac_config_files="$ac_config_files lib/Transforms/Makefile"
26251
26252 ac_config_files="$ac_config_files lib/Transforms/IPO/Makefile"
26253
26254 ac_config_files="$ac_config_files lib/Transforms/Instrumentation/ProfilePaths/Makefile"
26255
26256 ac_config_files="$ac_config_files lib/Transforms/Instrumentation/Makefile"
26257
26258 ac_config_files="$ac_config_files lib/Transforms/Scalar/Makefile"
26259
26260 ac_config_files="$ac_config_files lib/Transforms/Utils/Makefile"
26261
26262 ac_config_files="$ac_config_files lib/VMCore/Makefile"
26263
26264 ac_config_files="$ac_config_files utils/Makefile"
26265
26266 ac_config_files="$ac_config_files utils/Burg/Makefile"
26267
26268 ac_config_files="$ac_config_files utils/fpcmp/Makefile"
26269
26270 ac_config_files="$ac_config_files utils/TableGen/Makefile"
26271
26272 ac_config_files="$ac_config_files tools/Makefile"
26273
26274 ac_config_files="$ac_config_files tools/analyze/Makefile"
26275
26276 ac_config_files="$ac_config_files tools/llvmc/Makefile"
26277
26278 ac_config_files="$ac_config_files tools/bugpoint/Makefile"
26279
26280 ac_config_files="$ac_config_files tools/extract/Makefile"
26281
26282 ac_config_files="$ac_config_files tools/gccas/Makefile"
26283
26284 ac_config_files="$ac_config_files tools/gccld/Makefile"
26285
26286 ac_config_files="$ac_config_files tools/llvm-bcanalyzer/Makefile"
26287
26288 ac_config_files="$ac_config_files tools/llc/Makefile"
26289
26290 ac_config_files="$ac_config_files tools/llee/Makefile"
26291
26292 ac_config_files="$ac_config_files tools/lli/Makefile"
26293
26294 ac_config_files="$ac_config_files tools/llvm-ar/Makefile"
26295
26296 ac_config_files="$ac_config_files tools/llvm-as/Makefile"
26297
26298 ac_config_files="$ac_config_files tools/llvm-db/Makefile"
26299
26300 ac_config_files="$ac_config_files tools/llvm-dis/Makefile"
26301
26302 ac_config_files="$ac_config_files tools/llvm-link/Makefile"
26303
26304 ac_config_files="$ac_config_files tools/llvm-nm/Makefile"
26305
26306 ac_config_files="$ac_config_files tools/llvm-prof/Makefile"
26307
26308 ac_config_files="$ac_config_files tools/opt/Makefile"
26309
26310 ac_config_files="$ac_config_files tools/llvm-ld/Makefile"
26311
26312 ac_config_files="$ac_config_files tools/llvm-stub/Makefile"
26313
26314
26315 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_platform_type"
26316
26317
26318for i in `ls ${srcdir}/projects`
26319do
26320 if test -d ${srcdir}/projects/${i} ; then
26321 case ${i} in
26322 "CVS") ;;
26323 "sample")
26324
26325subdirs="$subdirs projects/sample"
26326 ;;
26327 "Stacker")
26328
26329subdirs="$subdirs projects/Stacker"
26330 ;;
26331 "llvm-test")
26332
26333subdirs="$subdirs projects/llvm-test"
26334 ;;
26335 "llvm-reopt")
26336
26337subdirs="$subdirs projects/llvm-reopt"
26338;;
26339 "llvm-gcc")
26340
26341subdirs="$subdirs projects/llvm-gcc"
26342 ;;
26343 "Java")
26344
26345subdirs="$subdirs projects/Java"
26346 ;;
26347 "llvm-tv")
26348
26349subdirs="$subdirs projects/llvm-tv"
26350 ;;
26351 "llvm-fefw")
26352
26353subdirs="$subdirs projects/llvm-fefw"
26354 ;;
26355 *)
26356 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
26357echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
26358 ;;
26359 esac
26360 fi
26361done
26362cat >confcache <<\_ACEOF
26363# This file is a shell script that caches the results of configure
26364# tests run on this system so they can be shared between configure
26365# scripts and configure runs, see configure's option --config-cache.
26366# It is not useful on other systems. If it contains results you don't
26367# want to keep, you may remove or edit it.
26368#
26369# config.status only pays attention to the cache file if you give it
26370# the --recheck option to rerun configure.
26371#
26372# `ac_cv_env_foo' variables (set or unset) will be overridden when
26373# loading this file, other *unset* `ac_cv_foo' will be assigned the
26374# following values.
26375
26376_ACEOF
26377
26378# The following way of writing the cache mishandles newlines in values,
26379# but we know of no workaround that is simple, portable, and efficient.
26380# So, don't put newlines in cache variables' values.
26381# Ultrix sh set writes to stderr and can't be redirected directly,
26382# and sets the high bit in the cache file unless we assign to the vars.
26383{
26384 (set) 2>&1 |
26385 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26386 *ac_space=\ *)
26387 # `set' does not quote correctly, so add quotes (double-quote
26388 # substitution turns \\\\ into \\, and sed turns \\ into \).
26389 sed -n \
26390 "s/'/'\\\\''/g;
26391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26392 ;;
26393 *)
26394 # `set' quotes correctly as required by POSIX, so do not add quotes.
26395 sed -n \
26396 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26397 ;;
26398 esac;
26399} |
26400 sed '
26401 t clear
26402 : clear
26403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26404 t end
26405 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26406 : end' >>confcache
26407if diff $cache_file confcache >/dev/null 2>&1; then :; else
26408 if test -w $cache_file; then
26409 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26410 cat confcache >$cache_file
26411 else
26412 echo "not updating unwritable cache $cache_file"
26413 fi
26414fi
26415rm -f confcache
26416
26417test "x$prefix" = xNONE && prefix=$ac_default_prefix
26418# Let make expand exec_prefix.
26419test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26420
26421# VPATH may cause trouble with some makes, so we remove $(srcdir),
26422# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26423# trailing colons and then remove the whole line if VPATH becomes empty
26424# (actually we leave an empty line to preserve line numbers).
26425if test "x$srcdir" = x.; then
26426 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26427s/:*\$(srcdir):*/:/;
26428s/:*\${srcdir}:*/:/;
26429s/:*@srcdir@:*/:/;
26430s/^\([^=]*=[ ]*\):*/\1/;
26431s/:*$//;
26432s/^[^=]*=[ ]*$//;
26433}'
26434fi
26435
26436DEFS=-DHAVE_CONFIG_H
26437
26438ac_libobjs=
26439ac_ltlibobjs=
26440for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26441 # 1. Remove the extension, and $U if already installed.
26442 ac_i=`echo "$ac_i" |
26443 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26444 # 2. Add them.
26445 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26446 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26447done
26448LIBOBJS=$ac_libobjs
26449
26450LTLIBOBJS=$ac_ltlibobjs
26451
26452
26453if test -z "${ENABLE_OPTIMIZED_TRUE}" && test -z "${ENABLE_OPTIMIZED_FALSE}"; then
26454 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_OPTIMIZED\" was never defined.
26455Usually this means the macro was only invoked conditionally." >&5
26456echo "$as_me: error: conditional \"ENABLE_OPTIMIZED\" was never defined.
26457Usually this means the macro was only invoked conditionally." >&2;}
26458 { (exit 1); exit 1; }; }
26459fi
26460if test -z "${ENABLE_PROFILED_TRUE}" && test -z "${ENABLE_PROFILED_FALSE}"; then
26461 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PROFILED\" was never defined.
26462Usually this means the macro was only invoked conditionally." >&5
26463echo "$as_me: error: conditional \"ENABLE_PROFILED\" was never defined.
26464Usually this means the macro was only invoked conditionally." >&2;}
26465 { (exit 1); exit 1; }; }
26466fi
26467if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
26468 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
26469Usually this means the macro was only invoked conditionally." >&5
26470echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
26471Usually this means the macro was only invoked conditionally." >&2;}
26472 { (exit 1); exit 1; }; }
26473fi
26474if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
26475 { { echo "$as_me:$LINENO: error: conditional \"ARCH_SPARC\" was never defined.
26476Usually this means the macro was only invoked conditionally." >&5
26477echo "$as_me: error: conditional \"ARCH_SPARC\" was never defined.
26478Usually this means the macro was only invoked conditionally." >&2;}
26479 { (exit 1); exit 1; }; }
26480fi
26481if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
26482 { { echo "$as_me:$LINENO: error: conditional \"ARCH_PPC\" was never defined.
26483Usually this means the macro was only invoked conditionally." >&5
26484echo "$as_me: error: conditional \"ARCH_PPC\" was never defined.
26485Usually this means the macro was only invoked conditionally." >&2;}
26486 { (exit 1); exit 1; }; }
26487fi
26488if test -z "${ARCH_UNKNOWN_TRUE}" && test -z "${ARCH_UNKNOWN_FALSE}"; then
26489 { { echo "$as_me:$LINENO: error: conditional \"ARCH_UNKNOWN\" was never defined.
26490Usually this means the macro was only invoked conditionally." >&5
26491echo "$as_me: error: conditional \"ARCH_UNKNOWN\" was never defined.
26492Usually this means the macro was only invoked conditionally." >&2;}
26493 { (exit 1); exit 1; }; }
26494fi
26495if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26496 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26497Usually this means the macro was only invoked conditionally." >&5
26498echo "$as_me: error: conditional \"AMDEP\" was never defined.
26499Usually this means the macro was only invoked conditionally." >&2;}
26500 { (exit 1); exit 1; }; }
26501fi
26502if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26503 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26504Usually this means the macro was only invoked conditionally." >&5
26505echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26506Usually this means the macro was only invoked conditionally." >&2;}
26507 { (exit 1); exit 1; }; }
26508fi
26509if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26510 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26511Usually this means the macro was only invoked conditionally." >&5
26512echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26513Usually this means the macro was only invoked conditionally." >&2;}
26514 { (exit 1); exit 1; }; }
26515fi
26516if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26517 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26518Usually this means the macro was only invoked conditionally." >&5
26519echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26520Usually this means the macro was only invoked conditionally." >&2;}
26521 { (exit 1); exit 1; }; }
26522fi
26523
26524: ${CONFIG_STATUS=./config.status}
26525ac_clean_files_save=$ac_clean_files
26526ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26527{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26528echo "$as_me: creating $CONFIG_STATUS" >&6;}
26529cat >$CONFIG_STATUS <<_ACEOF
26530#! $SHELL
26531# Generated by $as_me.
26532# Run this file to recreate the current configuration.
26533# Compiler output produced by configure, useful for debugging
26534# configure, is in config.log if it exists.
26535
26536debug=false
26537ac_cs_recheck=false
26538ac_cs_silent=false
26539SHELL=\${CONFIG_SHELL-$SHELL}
26540_ACEOF
26541
26542cat >>$CONFIG_STATUS <<\_ACEOF
26543## --------------------- ##
26544## M4sh Initialization. ##
26545## --------------------- ##
26546
26547# Be Bourne compatible
26548if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26549 emulate sh
26550 NULLCMD=:
26551 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26552 # is contrary to our usage. Disable this feature.
26553 alias -g '${1+"$@"}'='"$@"'
26554elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26555 set -o posix
26556fi
26557DUALCASE=1; export DUALCASE # for MKS sh
26558
26559# Support unset when possible.
26560if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26561 as_unset=unset
26562else
26563 as_unset=false
26564fi
26565
26566
26567# Work around bugs in pre-3.0 UWIN ksh.
26568$as_unset ENV MAIL MAILPATH
26569PS1='$ '
26570PS2='> '
26571PS4='+ '
26572
26573# NLS nuisances.
26574for as_var in \
26575 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26576 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26577 LC_TELEPHONE LC_TIME
26578do
26579 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26580 eval $as_var=C; export $as_var
26581 else
26582 $as_unset $as_var
26583 fi
26584done
26585
26586# Required to use basename.
26587if expr a : '\(a\)' >/dev/null 2>&1; then
26588 as_expr=expr
26589else
26590 as_expr=false
26591fi
26592
26593if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26594 as_basename=basename
26595else
26596 as_basename=false
26597fi
26598
26599
26600# Name of the executable.
26601as_me=`$as_basename "$0" ||
26602$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26603 X"$0" : 'X\(//\)$' \| \
26604 X"$0" : 'X\(/\)$' \| \
26605 . : '\(.\)' 2>/dev/null ||
26606echo X/"$0" |
26607 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26608 /^X\/\(\/\/\)$/{ s//\1/; q; }
26609 /^X\/\(\/\).*/{ s//\1/; q; }
26610 s/.*/./; q'`
26611
26612
26613# PATH needs CR, and LINENO needs CR and PATH.
26614# Avoid depending upon Character Ranges.
26615as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26616as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26617as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26618as_cr_digits='0123456789'
26619as_cr_alnum=$as_cr_Letters$as_cr_digits
26620
26621# The user is always right.
26622if test "${PATH_SEPARATOR+set}" != set; then
26623 echo "#! /bin/sh" >conf$$.sh
26624 echo "exit 0" >>conf$$.sh
26625 chmod +x conf$$.sh
26626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26627 PATH_SEPARATOR=';'
26628 else
26629 PATH_SEPARATOR=:
26630 fi
26631 rm -f conf$$.sh
26632fi
26633
26634
26635 as_lineno_1=$LINENO
26636 as_lineno_2=$LINENO
26637 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26638 test "x$as_lineno_1" != "x$as_lineno_2" &&
26639 test "x$as_lineno_3" = "x$as_lineno_2" || {
26640 # Find who we are. Look in the path if we contain no path at all
26641 # relative or not.
26642 case $0 in
26643 *[\\/]* ) as_myself=$0 ;;
26644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26645for as_dir in $PATH
26646do
26647 IFS=$as_save_IFS
26648 test -z "$as_dir" && as_dir=.
26649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26650done
26651
26652 ;;
26653 esac
26654 # We did not find ourselves, most probably we were run as `sh COMMAND'
26655 # in which case we are not to be found in the path.
26656 if test "x$as_myself" = x; then
26657 as_myself=$0
26658 fi
26659 if test ! -f "$as_myself"; then
26660 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26661echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26662 { (exit 1); exit 1; }; }
26663 fi
26664 case $CONFIG_SHELL in
26665 '')
26666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26667for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26668do
26669 IFS=$as_save_IFS
26670 test -z "$as_dir" && as_dir=.
26671 for as_base in sh bash ksh sh5; do
26672 case $as_dir in
26673 /*)
26674 if ("$as_dir/$as_base" -c '
26675 as_lineno_1=$LINENO
26676 as_lineno_2=$LINENO
26677 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26678 test "x$as_lineno_1" != "x$as_lineno_2" &&
26679 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26680 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26681 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26682 CONFIG_SHELL=$as_dir/$as_base
26683 export CONFIG_SHELL
26684 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26685 fi;;
26686 esac
26687 done
26688done
26689;;
26690 esac
26691
26692 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26693 # uniformly replaced by the line number. The first 'sed' inserts a
26694 # line-number line before each line; the second 'sed' does the real
26695 # work. The second script uses 'N' to pair each line-number line
26696 # with the numbered line, and appends trailing '-' during
26697 # substitution so that $LINENO is not a special case at line end.
26698 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26699 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26700 sed '=' <$as_myself |
26701 sed '
26702 N
26703 s,$,-,
26704 : loop
26705 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26706 t loop
26707 s,-$,,
26708 s,^['$as_cr_digits']*\n,,
26709 ' >$as_me.lineno &&
26710 chmod +x $as_me.lineno ||
26711 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26712echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26713 { (exit 1); exit 1; }; }
26714
26715 # Don't try to exec as it changes $[0], causing all sort of problems
26716 # (the dirname of $[0] is not the place where we might find the
26717 # original and so on. Autoconf is especially sensible to this).
26718 . ./$as_me.lineno
26719 # Exit status is that of the last command.
26720 exit
26721}
26722
26723
26724case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26725 *c*,-n*) ECHO_N= ECHO_C='
26726' ECHO_T=' ' ;;
26727 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26728 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26729esac
26730
26731if expr a : '\(a\)' >/dev/null 2>&1; then
26732 as_expr=expr
26733else
26734 as_expr=false
26735fi
26736
26737rm -f conf$$ conf$$.exe conf$$.file
26738echo >conf$$.file
26739if ln -s conf$$.file conf$$ 2>/dev/null; then
26740 # We could just check for DJGPP; but this test a) works b) is more generic
26741 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26742 if test -f conf$$.exe; then
26743 # Don't use ln at all; we don't have any links
26744 as_ln_s='cp -p'
26745 else
26746 as_ln_s='ln -s'
26747 fi
26748elif ln conf$$.file conf$$ 2>/dev/null; then
26749 as_ln_s=ln
26750else
26751 as_ln_s='cp -p'
26752fi
26753rm -f conf$$ conf$$.exe conf$$.file
26754
26755if mkdir -p . 2>/dev/null; then
26756 as_mkdir_p=:
26757else
26758 test -d ./-p && rmdir ./-p
26759 as_mkdir_p=false
26760fi
26761
26762as_executable_p="test -f"
26763
26764# Sed expression to map a string onto a valid CPP name.
26765as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26766
26767# Sed expression to map a string onto a valid variable name.
26768as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26769
26770
26771# IFS
26772# We need space, tab and new line, in precisely that order.
26773as_nl='
26774'
26775IFS=" $as_nl"
26776
26777# CDPATH.
26778$as_unset CDPATH
26779
26780exec 6>&1
26781
26782# Open the log real soon, to keep \$[0] and so on meaningful, and to
26783# report actual input values of CONFIG_FILES etc. instead of their
26784# values after options handling. Logging --version etc. is OK.
26785exec 5>>config.log
26786{
26787 echo
26788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26789## Running $as_me. ##
26790_ASBOX
26791} >&5
26792cat >&5 <<_CSEOF
26793
26794This file was extended by LLVM $as_me 1.4, which was
26795generated by GNU Autoconf 2.59. Invocation command line was
26796
26797 CONFIG_FILES = $CONFIG_FILES
26798 CONFIG_HEADERS = $CONFIG_HEADERS
26799 CONFIG_LINKS = $CONFIG_LINKS
26800 CONFIG_COMMANDS = $CONFIG_COMMANDS
26801 $ $0 $@
26802
26803_CSEOF
26804echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26805echo >&5
26806_ACEOF
26807
26808# Files that config.status was made for.
26809if test -n "$ac_config_files"; then
26810 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26811fi
26812
26813if test -n "$ac_config_headers"; then
26814 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26815fi
26816
26817if test -n "$ac_config_links"; then
26818 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26819fi
26820
26821if test -n "$ac_config_commands"; then
26822 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26823fi
26824
26825cat >>$CONFIG_STATUS <<\_ACEOF
26826
26827ac_cs_usage="\
26828\`$as_me' instantiates files from templates according to the
26829current configuration.
26830
26831Usage: $0 [OPTIONS] [FILE]...
26832
26833 -h, --help print this help, then exit
26834 -V, --version print version number, then exit
26835 -q, --quiet do not print progress messages
26836 -d, --debug don't remove temporary files
26837 --recheck update $as_me by reconfiguring in the same conditions
26838 --file=FILE[:TEMPLATE]
26839 instantiate the configuration file FILE
26840 --header=FILE[:TEMPLATE]
26841 instantiate the configuration header FILE
26842
26843Configuration files:
26844$config_files
26845
26846Configuration headers:
26847$config_headers
26848
26849Configuration links:
26850$config_links
26851
26852Configuration commands:
26853$config_commands
26854
26855Report bugs to <bug-autoconf@gnu.org>."
26856_ACEOF
26857
26858cat >>$CONFIG_STATUS <<_ACEOF
26859ac_cs_version="\\
26860LLVM config.status 1.4
26861configured by $0, generated by GNU Autoconf 2.59,
26862 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26863
26864Copyright (C) 2003 Free Software Foundation, Inc.
26865This config.status script is free software; the Free Software Foundation
26866gives unlimited permission to copy, distribute and modify it."
26867srcdir=$srcdir
26868INSTALL="$INSTALL"
26869_ACEOF
26870
26871cat >>$CONFIG_STATUS <<\_ACEOF
26872# If no file are specified by the user, then we need to provide default
26873# value. By we need to know if files were specified by the user.
26874ac_need_defaults=:
26875while test $# != 0
26876do
26877 case $1 in
26878 --*=*)
26879 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26880 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26881 ac_shift=:
26882 ;;
26883 -*)
26884 ac_option=$1
26885 ac_optarg=$2
26886 ac_shift=shift
26887 ;;
26888 *) # This is not an option, so the user has probably given explicit
26889 # arguments.
26890 ac_option=$1
26891 ac_need_defaults=false;;
26892 esac
26893
26894 case $ac_option in
26895 # Handling of the options.
26896_ACEOF
26897cat >>$CONFIG_STATUS <<\_ACEOF
26898 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26899 ac_cs_recheck=: ;;
26900 --version | --vers* | -V )
26901 echo "$ac_cs_version"; exit 0 ;;
26902 --he | --h)
26903 # Conflict between --help and --header
26904 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26905Try \`$0 --help' for more information." >&5
26906echo "$as_me: error: ambiguous option: $1
26907Try \`$0 --help' for more information." >&2;}
26908 { (exit 1); exit 1; }; };;
26909 --help | --hel | -h )
26910 echo "$ac_cs_usage"; exit 0 ;;
26911 --debug | --d* | -d )
26912 debug=: ;;
26913 --file | --fil | --fi | --f )
26914 $ac_shift
26915 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26916 ac_need_defaults=false;;
26917 --header | --heade | --head | --hea )
26918 $ac_shift
26919 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26920 ac_need_defaults=false;;
26921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26922 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26923 ac_cs_silent=: ;;
26924
26925 # This is an error.
26926 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26927Try \`$0 --help' for more information." >&5
26928echo "$as_me: error: unrecognized option: $1
26929Try \`$0 --help' for more information." >&2;}
26930 { (exit 1); exit 1; }; } ;;
26931
26932 *) ac_config_targets="$ac_config_targets $1" ;;
26933
26934 esac
26935 shift
26936done
26937
26938ac_configure_extra_args=
26939
26940if $ac_cs_silent; then
26941 exec 6>/dev/null
26942 ac_configure_extra_args="$ac_configure_extra_args --silent"
26943fi
26944
26945_ACEOF
26946cat >>$CONFIG_STATUS <<_ACEOF
26947if \$ac_cs_recheck; then
26948 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26949 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26950fi
26951
26952_ACEOF
26953
26954cat >>$CONFIG_STATUS <<_ACEOF
26955#
26956# INIT-COMMANDS section.
26957#
26958
26959AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26960
26961_ACEOF
26962
26963
26964
26965cat >>$CONFIG_STATUS <<\_ACEOF
26966for ac_config_target in $ac_config_targets
26967do
26968 case "$ac_config_target" in
26969 # Handling of arguments.
26970 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26971 "Makefile.rules" ) CONFIG_FILES="$CONFIG_FILES Makefile.rules" ;;
26972 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26973 "lib/Analysis/IPA/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/IPA/Makefile" ;;
26974 "lib/Analysis/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/Makefile" ;;
26975 "lib/Analysis/DataStructure/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Analysis/DataStructure/Makefile" ;;
26976 "lib/AsmParser/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/AsmParser/Makefile" ;;
26977 "lib/System/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/System/Makefile" ;;
26978 "lib/Bytecode/Reader/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Reader/Makefile" ;;
26979 "lib/Bytecode/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Makefile" ;;
26980 "lib/Bytecode/Writer/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Writer/Makefile" ;;
26981 "lib/Bytecode/Archive/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Bytecode/Archive/Makefile" ;;
26982 "lib/CodeGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/Makefile" ;;
26983 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/ModuloScheduling/Makefile" ;;
26984 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/CodeGen/SelectionDAG/Makefile" ;;
26985 "lib/Debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Debugger/Makefile" ;;
26986 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Interpreter/Makefile" ;;
26987 "lib/ExecutionEngine/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/Makefile" ;;
26988 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/ExecutionEngine/JIT/Makefile" ;;
26989 "lib/Support/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Support/Makefile" ;;
26990 "lib/Target/CBackend/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/CBackend/Makefile" ;;
26991 "lib/Target/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Makefile" ;;
26992 "lib/Target/Skeleton/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/Skeleton/Makefile" ;;
26993 "lib/Target/PowerPC/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/PowerPC/Makefile" ;;
26994 "lib/Target/SparcV9/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/Makefile" ;;
26995 "lib/Target/SparcV9/InstrSched/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/InstrSched/Makefile" ;;
26996 "lib/Target/SparcV9/LiveVar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/LiveVar/Makefile" ;;
26997 "lib/Target/SparcV9/RegAlloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/SparcV9/RegAlloc/Makefile" ;;
26998 "lib/Target/X86/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Target/X86/Makefile" ;;
26999 "lib/Transforms/Hello/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Hello/Makefile" ;;
27000 "lib/Transforms/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Makefile" ;;
27001 "lib/Transforms/IPO/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/IPO/Makefile" ;;
27002 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
27003 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Instrumentation/Makefile" ;;
27004 "lib/Transforms/Scalar/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Scalar/Makefile" ;;
27005 "lib/Transforms/Utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Transforms/Utils/Makefile" ;;
27006 "lib/VMCore/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/VMCore/Makefile" ;;
27007 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27008 "utils/Burg/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Burg/Makefile" ;;
27009 "utils/fpcmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/fpcmp/Makefile" ;;
27010 "utils/TableGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/TableGen/Makefile" ;;
27011 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27012 "tools/analyze/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/analyze/Makefile" ;;
27013 "tools/llvmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/Makefile" ;;
27014 "tools/bugpoint/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/bugpoint/Makefile" ;;
27015 "tools/extract/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/extract/Makefile" ;;
27016 "tools/gccas/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccas/Makefile" ;;
27017 "tools/gccld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gccld/Makefile" ;;
27018 "tools/llvm-bcanalyzer/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-bcanalyzer/Makefile" ;;
27019 "tools/llc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llc/Makefile" ;;
27020 "tools/llee/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llee/Makefile" ;;
27021 "tools/lli/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/lli/Makefile" ;;
27022 "tools/llvm-ar/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ar/Makefile" ;;
27023 "tools/llvm-as/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-as/Makefile" ;;
27024 "tools/llvm-db/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-db/Makefile" ;;
27025 "tools/llvm-dis/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-dis/Makefile" ;;
27026 "tools/llvm-link/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-link/Makefile" ;;
27027 "tools/llvm-nm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-nm/Makefile" ;;
27028 "tools/llvm-prof/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-prof/Makefile" ;;
27029 "tools/opt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/opt/Makefile" ;;
27030 "tools/llvm-ld/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-ld/Makefile" ;;
27031 "tools/llvm-stub/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-stub/Makefile" ;;
27032 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_platform_type" ;;
27033 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27034 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
27035 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
27036 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
27037 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
27038 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
27039 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
27040 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27041echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27042 { (exit 1); exit 1; }; };;
27043 esac
27044done
27045
27046# If the user did not use the arguments to specify the items to instantiate,
27047# then the envvar interface is used. Set only those that are not.
27048# We use the long form for the default assignment because of an extremely
27049# bizarre bug on SunOS 4.1.3.
27050if $ac_need_defaults; then
27051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27053 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27054 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27055fi
27056
27057# Have a temporary directory for convenience. Make it in the build tree
27058# simply because there is no reason to put it here, and in addition,
27059# creating and moving files from /tmp can sometimes cause problems.
27060# Create a temporary directory, and hook for its removal unless debugging.
27061$debug ||
27062{
27063 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27064 trap '{ (exit 1); exit 1; }' 1 2 13 15
27065}
27066
27067# Create a (secure) tmp directory for tmp files.
27068
27069{
27070 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27071 test -n "$tmp" && test -d "$tmp"
27072} ||
27073{
27074 tmp=./confstat$$-$RANDOM
27075 (umask 077 && mkdir $tmp)
27076} ||
27077{
27078 echo "$me: cannot create a temporary directory in ." >&2
27079 { (exit 1); exit 1; }
27080}
27081
27082_ACEOF
27083
27084cat >>$CONFIG_STATUS <<_ACEOF
27085
27086#
27087# CONFIG_FILES section.
27088#
27089
27090# No need to generate the scripts if there are no CONFIG_FILES.
27091# This happens for instance when ./config.status config.h
27092if test -n "\$CONFIG_FILES"; then
27093 # Protect against being on the right side of a sed subst in config.status.
27094 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27095 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27096s,@SHELL@,$SHELL,;t t
27097s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27098s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27099s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27100s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27101s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27102s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27103s,@exec_prefix@,$exec_prefix,;t t
27104s,@prefix@,$prefix,;t t
27105s,@program_transform_name@,$program_transform_name,;t t
27106s,@bindir@,$bindir,;t t
27107s,@sbindir@,$sbindir,;t t
27108s,@libexecdir@,$libexecdir,;t t
27109s,@datadir@,$datadir,;t t
27110s,@sysconfdir@,$sysconfdir,;t t
27111s,@sharedstatedir@,$sharedstatedir,;t t
27112s,@localstatedir@,$localstatedir,;t t
27113s,@libdir@,$libdir,;t t
27114s,@includedir@,$includedir,;t t
27115s,@oldincludedir@,$oldincludedir,;t t
27116s,@infodir@,$infodir,;t t
27117s,@mandir@,$mandir,;t t
27118s,@build_alias@,$build_alias,;t t
27119s,@host_alias@,$host_alias,;t t
27120s,@target_alias@,$target_alias,;t t
27121s,@DEFS@,$DEFS,;t t
27122s,@ECHO_C@,$ECHO_C,;t t
27123s,@ECHO_N@,$ECHO_N,;t t
27124s,@ECHO_T@,$ECHO_T,;t t
27125s,@LIBS@,$LIBS,;t t
27126s,@build@,$build,;t t
27127s,@build_cpu@,$build_cpu,;t t
27128s,@build_vendor@,$build_vendor,;t t
27129s,@build_os@,$build_os,;t t
27130s,@host@,$host,;t t
27131s,@host_cpu@,$host_cpu,;t t
27132s,@host_vendor@,$host_vendor,;t t
27133s,@host_os@,$host_os,;t t
27134s,@target@,$target,;t t
27135s,@target_cpu@,$target_cpu,;t t
27136s,@target_vendor@,$target_vendor,;t t
27137s,@target_os@,$target_os,;t t
27138s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27139s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27140s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27141s,@CYGPATH_W@,$CYGPATH_W,;t t
27142s,@PACKAGE@,$PACKAGE,;t t
27143s,@VERSION@,$VERSION,;t t
27144s,@ACLOCAL@,$ACLOCAL,;t t
27145s,@AUTOCONF@,$AUTOCONF,;t t
27146s,@AUTOMAKE@,$AUTOMAKE,;t t
27147s,@AUTOHEADER@,$AUTOHEADER,;t t
27148s,@MAKEINFO@,$MAKEINFO,;t t
27149s,@install_sh@,$install_sh,;t t
27150s,@STRIP@,$STRIP,;t t
27151s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27152s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27153s,@mkdir_p@,$mkdir_p,;t t
27154s,@AWK@,$AWK,;t t
27155s,@SET_MAKE@,$SET_MAKE,;t t
27156s,@am__leading_dot@,$am__leading_dot,;t t
27157s,@AMTAR@,$AMTAR,;t t
27158s,@am__tar@,$am__tar,;t t
27159s,@am__untar@,$am__untar,;t t
27160s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
27161s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
27162s,@ENABLE_OPTIMIZED_TRUE@,$ENABLE_OPTIMIZED_TRUE,;t t
27163s,@ENABLE_OPTIMIZED_FALSE@,$ENABLE_OPTIMIZED_FALSE,;t t
27164s,@ENABLE_PROFILED@,$ENABLE_PROFILED,;t t
27165s,@ENABLE_PROFILED_TRUE@,$ENABLE_PROFILED_TRUE,;t t
27166s,@ENABLE_PROFILED_FALSE@,$ENABLE_PROFILED_FALSE,;t t
27167s,@JIT@,$JIT,;t t
27168s,@OS@,$OS,;t t
27169s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
27170s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
27171s,@ARCH_SPARC_TRUE@,$ARCH_SPARC_TRUE,;t t
27172s,@ARCH_SPARC_FALSE@,$ARCH_SPARC_FALSE,;t t
27173s,@ARCH_PPC_TRUE@,$ARCH_PPC_TRUE,;t t
27174s,@ARCH_PPC_FALSE@,$ARCH_PPC_FALSE,;t t
27175s,@ARCH_UNKNOWN_TRUE@,$ARCH_UNKNOWN_TRUE,;t t
27176s,@ARCH_UNKNOWN_FALSE@,$ARCH_UNKNOWN_FALSE,;t t
27177s,@ARCH@,$ARCH,;t t
27178s,@ENDIAN@,$ENDIAN,;t t
27179s,@CC@,$CC,;t t
27180s,@CFLAGS@,$CFLAGS,;t t
27181s,@LDFLAGS@,$LDFLAGS,;t t
27182s,@CPPFLAGS@,$CPPFLAGS,;t t
27183s,@ac_ct_CC@,$ac_ct_CC,;t t
27184s,@EXEEXT@,$EXEEXT,;t t
27185s,@OBJEXT@,$OBJEXT,;t t
27186s,@DEPDIR@,$DEPDIR,;t t
27187s,@am__include@,$am__include,;t t
27188s,@am__quote@,$am__quote,;t t
27189s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27190s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27191s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27192s,@CCDEPMODE@,$CCDEPMODE,;t t
27193s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27194s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27195s,@CXX@,$CXX,;t t
27196s,@CXXFLAGS@,$CXXFLAGS,;t t
27197s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27198s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27199s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27200s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27201s,@CPP@,$CPP,;t t
27202s,@LEX@,$LEX,;t t
27203s,@LEXLIB@,$LEXLIB,;t t
27204s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
27205s,@FLEX@,$FLEX,;t t
27206s,@YACC@,$YACC,;t t
27207s,@BISON@,$BISON,;t t
27208s,@EGREP@,$EGREP,;t t
27209s,@LN_S@,$LN_S,;t t
27210s,@ECHO@,$ECHO,;t t
27211s,@AR@,$AR,;t t
27212s,@ac_ct_AR@,$ac_ct_AR,;t t
27213s,@RANLIB@,$RANLIB,;t t
27214s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27215s,@CXXCPP@,$CXXCPP,;t t
27216s,@F77@,$F77,;t t
27217s,@FFLAGS@,$FFLAGS,;t t
27218s,@ac_ct_F77@,$ac_ct_F77,;t t
27219s,@LIBTOOL@,$LIBTOOL,;t t
27220s,@DOT@,$DOT,;t t
27221s,@ETAGS@,$ETAGS,;t t
27222s,@PYTHON@,$PYTHON,;t t
27223s,@QMTEST@,$QMTEST,;t t
27224s,@ifGNUmake@,$ifGNUmake,;t t
27225s,@LLVMCC1@,$LLVMCC1,;t t
27226s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
27227s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
27228s,@ALLOCA@,$ALLOCA,;t t
27229s,@MMAP_FILE@,$MMAP_FILE,;t t
27230s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
27231s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
27232s,@SHLIBEXT@,$SHLIBEXT,;t t
27233s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
27234s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
27235s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
27236s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
27237s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
27238s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
27239s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
27240s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
27241s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
27242s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
27243s,@subdirs@,$subdirs,;t t
27244s,@LIBOBJS@,$LIBOBJS,;t t
27245s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27246CEOF
27247
27248_ACEOF
27249
27250 cat >>$CONFIG_STATUS <<\_ACEOF
27251 # Split the substitutions into bite-sized pieces for seds with
27252 # small command number limits, like on Digital OSF/1 and HP-UX.
27253 ac_max_sed_lines=48
27254 ac_sed_frag=1 # Number of current file.
27255 ac_beg=1 # First line for current file.
27256 ac_end=$ac_max_sed_lines # Line after last line for current file.
27257 ac_more_lines=:
27258 ac_sed_cmds=
27259 while $ac_more_lines; do
27260 if test $ac_beg -gt 1; then
27261 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27262 else
27263 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27264 fi
27265 if test ! -s $tmp/subs.frag; then
27266 ac_more_lines=false
27267 else
27268 # The purpose of the label and of the branching condition is to
27269 # speed up the sed processing (if there are no `@' at all, there
27270 # is no need to browse any of the substitutions).
27271 # These are the two extra sed commands mentioned above.
27272 (echo ':t
27273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27274 if test -z "$ac_sed_cmds"; then
27275 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27276 else
27277 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27278 fi
27279 ac_sed_frag=`expr $ac_sed_frag + 1`
27280 ac_beg=$ac_end
27281 ac_end=`expr $ac_end + $ac_max_sed_lines`
27282 fi
27283 done
27284 if test -z "$ac_sed_cmds"; then
27285 ac_sed_cmds=cat
27286 fi
27287fi # test -n "$CONFIG_FILES"
27288
27289_ACEOF
27290cat >>$CONFIG_STATUS <<\_ACEOF
27291for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27293 case $ac_file in
27294 - | *:- | *:-:* ) # input from stdin
27295 cat >$tmp/stdin
27296 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27297 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27298 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27300 * ) ac_file_in=$ac_file.in ;;
27301 esac
27302
27303 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27304 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27305$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27306 X"$ac_file" : 'X\(//\)[^/]' \| \
27307 X"$ac_file" : 'X\(//\)$' \| \
27308 X"$ac_file" : 'X\(/\)' \| \
27309 . : '\(.\)' 2>/dev/null ||
27310echo X"$ac_file" |
27311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27313 /^X\(\/\/\)$/{ s//\1/; q; }
27314 /^X\(\/\).*/{ s//\1/; q; }
27315 s/.*/./; q'`
27316 { if $as_mkdir_p; then
27317 mkdir -p "$ac_dir"
27318 else
27319 as_dir="$ac_dir"
27320 as_dirs=
27321 while test ! -d "$as_dir"; do
27322 as_dirs="$as_dir $as_dirs"
27323 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27324$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27325 X"$as_dir" : 'X\(//\)[^/]' \| \
27326 X"$as_dir" : 'X\(//\)$' \| \
27327 X"$as_dir" : 'X\(/\)' \| \
27328 . : '\(.\)' 2>/dev/null ||
27329echo X"$as_dir" |
27330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27332 /^X\(\/\/\)$/{ s//\1/; q; }
27333 /^X\(\/\).*/{ s//\1/; q; }
27334 s/.*/./; q'`
27335 done
27336 test ! -n "$as_dirs" || mkdir $as_dirs
27337 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27338echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27339 { (exit 1); exit 1; }; }; }
27340
27341 ac_builddir=.
27342
27343if test "$ac_dir" != .; then
27344 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27345 # A "../" for each directory in $ac_dir_suffix.
27346 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27347else
27348 ac_dir_suffix= ac_top_builddir=
27349fi
27350
27351case $srcdir in
27352 .) # No --srcdir option. We are building in place.
27353 ac_srcdir=.
27354 if test -z "$ac_top_builddir"; then
27355 ac_top_srcdir=.
27356 else
27357 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27358 fi ;;
27359 [\\/]* | ?:[\\/]* ) # Absolute path.
27360 ac_srcdir=$srcdir$ac_dir_suffix;
27361 ac_top_srcdir=$srcdir ;;
27362 *) # Relative path.
27363 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27364 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27365esac
27366
27367# Do not use `cd foo && pwd` to compute absolute paths, because
27368# the directories may not exist.
27369case `pwd` in
27370.) ac_abs_builddir="$ac_dir";;
27371*)
27372 case "$ac_dir" in
27373 .) ac_abs_builddir=`pwd`;;
27374 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27375 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27376 esac;;
27377esac
27378case $ac_abs_builddir in
27379.) ac_abs_top_builddir=${ac_top_builddir}.;;
27380*)
27381 case ${ac_top_builddir}. in
27382 .) ac_abs_top_builddir=$ac_abs_builddir;;
27383 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27384 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27385 esac;;
27386esac
27387case $ac_abs_builddir in
27388.) ac_abs_srcdir=$ac_srcdir;;
27389*)
27390 case $ac_srcdir in
27391 .) ac_abs_srcdir=$ac_abs_builddir;;
27392 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27393 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27394 esac;;
27395esac
27396case $ac_abs_builddir in
27397.) ac_abs_top_srcdir=$ac_top_srcdir;;
27398*)
27399 case $ac_top_srcdir in
27400 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27401 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27402 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27403 esac;;
27404esac
27405
27406
27407 case $INSTALL in
27408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27409 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27410 esac
27411
27412 if test x"$ac_file" != x-; then
27413 { echo "$as_me:$LINENO: creating $ac_file" >&5
27414echo "$as_me: creating $ac_file" >&6;}
27415 rm -f "$ac_file"
27416 fi
27417 # Let's still pretend it is `configure' which instantiates (i.e., don't
27418 # use $as_me), people would be surprised to read:
27419 # /* config.h. Generated by config.status. */
27420 if test x"$ac_file" = x-; then
27421 configure_input=
27422 else
27423 configure_input="$ac_file. "
27424 fi
27425 configure_input=$configure_input"Generated from `echo $ac_file_in |
27426 sed 's,.*/,,'` by configure."
27427
27428 # First look for the input files in the build tree, otherwise in the
27429 # src tree.
27430 ac_file_inputs=`IFS=:
27431 for f in $ac_file_in; do
27432 case $f in
27433 -) echo $tmp/stdin ;;
27434 [\\/$]*)
27435 # Absolute (can't be DOS-style, as IFS=:)
27436 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27437echo "$as_me: error: cannot find input file: $f" >&2;}
27438 { (exit 1); exit 1; }; }
27439 echo "$f";;
27440 *) # Relative
27441 if test -f "$f"; then
27442 # Build tree
27443 echo "$f"
27444 elif test -f "$srcdir/$f"; then
27445 # Source tree
27446 echo "$srcdir/$f"
27447 else
27448 # /dev/null tree
27449 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27450echo "$as_me: error: cannot find input file: $f" >&2;}
27451 { (exit 1); exit 1; }; }
27452 fi;;
27453 esac
27454 done` || { (exit 1); exit 1; }
27455_ACEOF
27456cat >>$CONFIG_STATUS <<_ACEOF
27457 sed "$ac_vpsub
27458$extrasub
27459_ACEOF
27460cat >>$CONFIG_STATUS <<\_ACEOF
27461:t
27462/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27463s,@configure_input@,$configure_input,;t t
27464s,@srcdir@,$ac_srcdir,;t t
27465s,@abs_srcdir@,$ac_abs_srcdir,;t t
27466s,@top_srcdir@,$ac_top_srcdir,;t t
27467s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27468s,@builddir@,$ac_builddir,;t t
27469s,@abs_builddir@,$ac_abs_builddir,;t t
27470s,@top_builddir@,$ac_top_builddir,;t t
27471s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27472s,@INSTALL@,$ac_INSTALL,;t t
27473" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27474 rm -f $tmp/stdin
27475 if test x"$ac_file" != x-; then
27476 mv $tmp/out $ac_file
27477 else
27478 cat $tmp/out
27479 rm -f $tmp/out
27480 fi
27481
27482done
27483_ACEOF
27484cat >>$CONFIG_STATUS <<\_ACEOF
27485
27486#
27487# CONFIG_HEADER section.
27488#
27489
27490# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27491# NAME is the cpp macro being defined and VALUE is the value it is being given.
27492#
27493# ac_d sets the value in "#define NAME VALUE" lines.
27494ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27495ac_dB='[ ].*$,\1#\2'
27496ac_dC=' '
27497ac_dD=',;t'
27498# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27499ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27500ac_uB='$,\1#\2define\3'
27501ac_uC=' '
27502ac_uD=',;t'
27503
27504for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27505 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27506 case $ac_file in
27507 - | *:- | *:-:* ) # input from stdin
27508 cat >$tmp/stdin
27509 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27510 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27511 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27512 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27513 * ) ac_file_in=$ac_file.in ;;
27514 esac
27515
27516 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27517echo "$as_me: creating $ac_file" >&6;}
27518
27519 # First look for the input files in the build tree, otherwise in the
27520 # src tree.
27521 ac_file_inputs=`IFS=:
27522 for f in $ac_file_in; do
27523 case $f in
27524 -) echo $tmp/stdin ;;
27525 [\\/$]*)
27526 # Absolute (can't be DOS-style, as IFS=:)
27527 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27528echo "$as_me: error: cannot find input file: $f" >&2;}
27529 { (exit 1); exit 1; }; }
27530 # Do quote $f, to prevent DOS paths from being IFS'd.
27531 echo "$f";;
27532 *) # Relative
27533 if test -f "$f"; then
27534 # Build tree
27535 echo "$f"
27536 elif test -f "$srcdir/$f"; then
27537 # Source tree
27538 echo "$srcdir/$f"
27539 else
27540 # /dev/null tree
27541 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27542echo "$as_me: error: cannot find input file: $f" >&2;}
27543 { (exit 1); exit 1; }; }
27544 fi;;
27545 esac
27546 done` || { (exit 1); exit 1; }
27547 # Remove the trailing spaces.
27548 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27549
27550_ACEOF
27551
27552# Transform confdefs.h into two sed scripts, `conftest.defines' and
27553# `conftest.undefs', that substitutes the proper values into
27554# config.h.in to produce config.h. The first handles `#define'
27555# templates, and the second `#undef' templates.
27556# And first: Protect against being on the right side of a sed subst in
27557# config.status. Protect against being in an unquoted here document
27558# in config.status.
27559rm -f conftest.defines conftest.undefs
27560# Using a here document instead of a string reduces the quoting nightmare.
27561# Putting comments in sed scripts is not portable.
27562#
27563# `end' is used to avoid that the second main sed command (meant for
27564# 0-ary CPP macros) applies to n-ary macro definitions.
27565# See the Autoconf documentation for `clear'.
27566cat >confdef2sed.sed <<\_ACEOF
27567s/[\\&,]/\\&/g
27568s,[\\$`],\\&,g
27569t clear
27570: clear
27571s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27572t end
27573s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27574: end
27575_ACEOF
27576# If some macros were called several times there might be several times
27577# the same #defines, which is useless. Nevertheless, we may not want to
27578# sort them, since we want the *last* AC-DEFINE to be honored.
27579uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27580sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27581rm -f confdef2sed.sed
27582
27583# This sed command replaces #undef with comments. This is necessary, for
27584# example, in the case of _POSIX_SOURCE, which is predefined and required
27585# on some systems where configure will not decide to define it.
27586cat >>conftest.undefs <<\_ACEOF
27587s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27588_ACEOF
27589
27590# Break up conftest.defines because some shells have a limit on the size
27591# of here documents, and old seds have small limits too (100 cmds).
27592echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27593echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27594echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27595echo ' :' >>$CONFIG_STATUS
27596rm -f conftest.tail
27597while grep . conftest.defines >/dev/null
27598do
27599 # Write a limited-size here document to $tmp/defines.sed.
27600 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27601 # Speed up: don't consider the non `#define' lines.
27602 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27603 # Work around the forget-to-reset-the-flag bug.
27604 echo 't clr' >>$CONFIG_STATUS
27605 echo ': clr' >>$CONFIG_STATUS
27606 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27607 echo 'CEOF
27608 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27609 rm -f $tmp/in
27610 mv $tmp/out $tmp/in
27611' >>$CONFIG_STATUS
27612 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27613 rm -f conftest.defines
27614 mv conftest.tail conftest.defines
27615done
27616rm -f conftest.defines
27617echo ' fi # grep' >>$CONFIG_STATUS
27618echo >>$CONFIG_STATUS
27619
27620# Break up conftest.undefs because some shells have a limit on the size
27621# of here documents, and old seds have small limits too (100 cmds).
27622echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27623rm -f conftest.tail
27624while grep . conftest.undefs >/dev/null
27625do
27626 # Write a limited-size here document to $tmp/undefs.sed.
27627 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27628 # Speed up: don't consider the non `#undef'
27629 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27630 # Work around the forget-to-reset-the-flag bug.
27631 echo 't clr' >>$CONFIG_STATUS
27632 echo ': clr' >>$CONFIG_STATUS
27633 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27634 echo 'CEOF
27635 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27636 rm -f $tmp/in
27637 mv $tmp/out $tmp/in
27638' >>$CONFIG_STATUS
27639 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27640 rm -f conftest.undefs
27641 mv conftest.tail conftest.undefs
27642done
27643rm -f conftest.undefs
27644
27645cat >>$CONFIG_STATUS <<\_ACEOF
27646 # Let's still pretend it is `configure' which instantiates (i.e., don't
27647 # use $as_me), people would be surprised to read:
27648 # /* config.h. Generated by config.status. */
27649 if test x"$ac_file" = x-; then
27650 echo "/* Generated by configure. */" >$tmp/config.h
27651 else
27652 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27653 fi
27654 cat $tmp/in >>$tmp/config.h
27655 rm -f $tmp/in
27656 if test x"$ac_file" != x-; then
27657 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27658 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27659echo "$as_me: $ac_file is unchanged" >&6;}
27660 else
27661 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27662$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27663 X"$ac_file" : 'X\(//\)[^/]' \| \
27664 X"$ac_file" : 'X\(//\)$' \| \
27665 X"$ac_file" : 'X\(/\)' \| \
27666 . : '\(.\)' 2>/dev/null ||
27667echo X"$ac_file" |
27668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27670 /^X\(\/\/\)$/{ s//\1/; q; }
27671 /^X\(\/\).*/{ s//\1/; q; }
27672 s/.*/./; q'`
27673 { if $as_mkdir_p; then
27674 mkdir -p "$ac_dir"
27675 else
27676 as_dir="$ac_dir"
27677 as_dirs=
27678 while test ! -d "$as_dir"; do
27679 as_dirs="$as_dir $as_dirs"
27680 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27681$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27682 X"$as_dir" : 'X\(//\)[^/]' \| \
27683 X"$as_dir" : 'X\(//\)$' \| \
27684 X"$as_dir" : 'X\(/\)' \| \
27685 . : '\(.\)' 2>/dev/null ||
27686echo X"$as_dir" |
27687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27689 /^X\(\/\/\)$/{ s//\1/; q; }
27690 /^X\(\/\).*/{ s//\1/; q; }
27691 s/.*/./; q'`
27692 done
27693 test ! -n "$as_dirs" || mkdir $as_dirs
27694 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27695echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27696 { (exit 1); exit 1; }; }; }
27697
27698 rm -f $ac_file
27699 mv $tmp/config.h $ac_file
27700 fi
27701 else
27702 cat $tmp/config.h
27703 rm -f $tmp/config.h
27704 fi
27705# Compute $ac_file's index in $config_headers.
27706_am_stamp_count=1
27707for _am_header in $config_headers :; do
27708 case $_am_header in
27709 $ac_file | $ac_file:* )
27710 break ;;
27711 * )
27712 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27713 esac
27714done
27715echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27716$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27717 X$ac_file : 'X\(//\)[^/]' \| \
27718 X$ac_file : 'X\(//\)$' \| \
27719 X$ac_file : 'X\(/\)' \| \
27720 . : '\(.\)' 2>/dev/null ||
27721echo X$ac_file |
27722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27724 /^X\(\/\/\)$/{ s//\1/; q; }
27725 /^X\(\/\).*/{ s//\1/; q; }
27726 s/.*/./; q'`/stamp-h$_am_stamp_count
27727done
27728_ACEOF
27729cat >>$CONFIG_STATUS <<\_ACEOF
27730
27731#
27732# CONFIG_LINKS section.
27733#
27734
27735for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27736 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27737 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27738
27739 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27740echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27741
27742 if test ! -r $srcdir/$ac_source; then
27743 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27744echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27745 { (exit 1); exit 1; }; }
27746 fi
27747 rm -f $ac_dest
27748
27749 # Make relative symlinks.
27750 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27751$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27752 X"$ac_dest" : 'X\(//\)[^/]' \| \
27753 X"$ac_dest" : 'X\(//\)$' \| \
27754 X"$ac_dest" : 'X\(/\)' \| \
27755 . : '\(.\)' 2>/dev/null ||
27756echo X"$ac_dest" |
27757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27759 /^X\(\/\/\)$/{ s//\1/; q; }
27760 /^X\(\/\).*/{ s//\1/; q; }
27761 s/.*/./; q'`
27762 { if $as_mkdir_p; then
27763 mkdir -p "$ac_dest_dir"
27764 else
27765 as_dir="$ac_dest_dir"
27766 as_dirs=
27767 while test ! -d "$as_dir"; do
27768 as_dirs="$as_dir $as_dirs"
27769 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27771 X"$as_dir" : 'X\(//\)[^/]' \| \
27772 X"$as_dir" : 'X\(//\)$' \| \
27773 X"$as_dir" : 'X\(/\)' \| \
27774 . : '\(.\)' 2>/dev/null ||
27775echo X"$as_dir" |
27776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27778 /^X\(\/\/\)$/{ s//\1/; q; }
27779 /^X\(\/\).*/{ s//\1/; q; }
27780 s/.*/./; q'`
27781 done
27782 test ! -n "$as_dirs" || mkdir $as_dirs
27783 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27784echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27785 { (exit 1); exit 1; }; }; }
27786
27787 ac_builddir=.
27788
27789if test "$ac_dest_dir" != .; then
27790 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27791 # A "../" for each directory in $ac_dir_suffix.
27792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27793else
27794 ac_dir_suffix= ac_top_builddir=
27795fi
27796
27797case $srcdir in
27798 .) # No --srcdir option. We are building in place.
27799 ac_srcdir=.
27800 if test -z "$ac_top_builddir"; then
27801 ac_top_srcdir=.
27802 else
27803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27804 fi ;;
27805 [\\/]* | ?:[\\/]* ) # Absolute path.
27806 ac_srcdir=$srcdir$ac_dir_suffix;
27807 ac_top_srcdir=$srcdir ;;
27808 *) # Relative path.
27809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27811esac
27812
27813# Do not use `cd foo && pwd` to compute absolute paths, because
27814# the directories may not exist.
27815case `pwd` in
27816.) ac_abs_builddir="$ac_dest_dir";;
27817*)
27818 case "$ac_dest_dir" in
27819 .) ac_abs_builddir=`pwd`;;
27820 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27821 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27822 esac;;
27823esac
27824case $ac_abs_builddir in
27825.) ac_abs_top_builddir=${ac_top_builddir}.;;
27826*)
27827 case ${ac_top_builddir}. in
27828 .) ac_abs_top_builddir=$ac_abs_builddir;;
27829 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27830 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27831 esac;;
27832esac
27833case $ac_abs_builddir in
27834.) ac_abs_srcdir=$ac_srcdir;;
27835*)
27836 case $ac_srcdir in
27837 .) ac_abs_srcdir=$ac_abs_builddir;;
27838 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27839 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27840 esac;;
27841esac
27842case $ac_abs_builddir in
27843.) ac_abs_top_srcdir=$ac_top_srcdir;;
27844*)
27845 case $ac_top_srcdir in
27846 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27847 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27848 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27849 esac;;
27850esac
27851
27852
27853 case $srcdir in
27854 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27855 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27856 esac
27857
27858 # Try a symlink, then a hard link, then a copy.
27859 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27860 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27861 cp -p $srcdir/$ac_source $ac_dest ||
27862 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27863echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27864 { (exit 1); exit 1; }; }
27865done
27866_ACEOF
27867cat >>$CONFIG_STATUS <<\_ACEOF
27868
27869#
27870# CONFIG_COMMANDS section.
27871#
27872for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27873 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27874 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27875 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27876$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27877 X"$ac_dest" : 'X\(//\)[^/]' \| \
27878 X"$ac_dest" : 'X\(//\)$' \| \
27879 X"$ac_dest" : 'X\(/\)' \| \
27880 . : '\(.\)' 2>/dev/null ||
27881echo X"$ac_dest" |
27882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27884 /^X\(\/\/\)$/{ s//\1/; q; }
27885 /^X\(\/\).*/{ s//\1/; q; }
27886 s/.*/./; q'`
27887 { if $as_mkdir_p; then
27888 mkdir -p "$ac_dir"
27889 else
27890 as_dir="$ac_dir"
27891 as_dirs=
27892 while test ! -d "$as_dir"; do
27893 as_dirs="$as_dir $as_dirs"
27894 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27895$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27896 X"$as_dir" : 'X\(//\)[^/]' \| \
27897 X"$as_dir" : 'X\(//\)$' \| \
27898 X"$as_dir" : 'X\(/\)' \| \
27899 . : '\(.\)' 2>/dev/null ||
27900echo X"$as_dir" |
27901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27903 /^X\(\/\/\)$/{ s//\1/; q; }
27904 /^X\(\/\).*/{ s//\1/; q; }
27905 s/.*/./; q'`
27906 done
27907 test ! -n "$as_dirs" || mkdir $as_dirs
27908 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27909echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27910 { (exit 1); exit 1; }; }; }
27911
27912 ac_builddir=.
27913
27914if test "$ac_dir" != .; then
27915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27916 # A "../" for each directory in $ac_dir_suffix.
27917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27918else
27919 ac_dir_suffix= ac_top_builddir=
27920fi
27921
27922case $srcdir in
27923 .) # No --srcdir option. We are building in place.
27924 ac_srcdir=.
27925 if test -z "$ac_top_builddir"; then
27926 ac_top_srcdir=.
27927 else
27928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27929 fi ;;
27930 [\\/]* | ?:[\\/]* ) # Absolute path.
27931 ac_srcdir=$srcdir$ac_dir_suffix;
27932 ac_top_srcdir=$srcdir ;;
27933 *) # Relative path.
27934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27936esac
27937
27938# Do not use `cd foo && pwd` to compute absolute paths, because
27939# the directories may not exist.
27940case `pwd` in
27941.) ac_abs_builddir="$ac_dir";;
27942*)
27943 case "$ac_dir" in
27944 .) ac_abs_builddir=`pwd`;;
27945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27947 esac;;
27948esac
27949case $ac_abs_builddir in
27950.) ac_abs_top_builddir=${ac_top_builddir}.;;
27951*)
27952 case ${ac_top_builddir}. in
27953 .) ac_abs_top_builddir=$ac_abs_builddir;;
27954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27956 esac;;
27957esac
27958case $ac_abs_builddir in
27959.) ac_abs_srcdir=$ac_srcdir;;
27960*)
27961 case $ac_srcdir in
27962 .) ac_abs_srcdir=$ac_abs_builddir;;
27963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27965 esac;;
27966esac
27967case $ac_abs_builddir in
27968.) ac_abs_top_srcdir=$ac_top_srcdir;;
27969*)
27970 case $ac_top_srcdir in
27971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27974 esac;;
27975esac
27976
27977
27978 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27979echo "$as_me: executing $ac_dest commands" >&6;}
27980 case $ac_dest in
27981 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27982 # Strip MF so we end up with the name of the file.
27983 mf=`echo "$mf" | sed -e 's/:.*$//'`
27984 # Check whether this is an Automake generated Makefile or not.
27985 # We used to match only the files named `Makefile.in', but
27986 # some people rename them; so instead we look at the file content.
27987 # Grep'ing the first line is not enough: some people post-process
27988 # each Makefile.in and add a new line on top of each file to say so.
27989 # So let's grep whole file.
27990 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27991 dirpart=`(dirname "$mf") 2>/dev/null ||
27992$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27993 X"$mf" : 'X\(//\)[^/]' \| \
27994 X"$mf" : 'X\(//\)$' \| \
27995 X"$mf" : 'X\(/\)' \| \
27996 . : '\(.\)' 2>/dev/null ||
27997echo X"$mf" |
27998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28000 /^X\(\/\/\)$/{ s//\1/; q; }
28001 /^X\(\/\).*/{ s//\1/; q; }
28002 s/.*/./; q'`
28003 else
28004 continue
28005 fi
28006 # Extract the definition of DEPDIR, am__include, and am__quote
28007 # from the Makefile without running `make'.
28008 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28009 test -z "$DEPDIR" && continue
28010 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28011 test -z "am__include" && continue
28012 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28013 # When using ansi2knr, U may be empty or an underscore; expand it
28014 U=`sed -n 's/^U = //p' < "$mf"`
28015 # Find all dependency output files, they are included files with
28016 # $(DEPDIR) in their names. We invoke sed twice because it is the
28017 # simplest approach to changing $(DEPDIR) to its actual value in the
28018 # expansion.
28019 for file in `sed -n "
28020 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28021 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28022 # Make sure the directory exists.
28023 test -f "$dirpart/$file" && continue
28024 fdir=`(dirname "$file") 2>/dev/null ||
28025$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28026 X"$file" : 'X\(//\)[^/]' \| \
28027 X"$file" : 'X\(//\)$' \| \
28028 X"$file" : 'X\(/\)' \| \
28029 . : '\(.\)' 2>/dev/null ||
28030echo X"$file" |
28031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28033 /^X\(\/\/\)$/{ s//\1/; q; }
28034 /^X\(\/\).*/{ s//\1/; q; }
28035 s/.*/./; q'`
28036 { if $as_mkdir_p; then
28037 mkdir -p $dirpart/$fdir
28038 else
28039 as_dir=$dirpart/$fdir
28040 as_dirs=
28041 while test ! -d "$as_dir"; do
28042 as_dirs="$as_dir $as_dirs"
28043 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28045 X"$as_dir" : 'X\(//\)[^/]' \| \
28046 X"$as_dir" : 'X\(//\)$' \| \
28047 X"$as_dir" : 'X\(/\)' \| \
28048 . : '\(.\)' 2>/dev/null ||
28049echo X"$as_dir" |
28050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28052 /^X\(\/\/\)$/{ s//\1/; q; }
28053 /^X\(\/\).*/{ s//\1/; q; }
28054 s/.*/./; q'`
28055 done
28056 test ! -n "$as_dirs" || mkdir $as_dirs
28057 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28058echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28059 { (exit 1); exit 1; }; }; }
28060
28061 # echo "creating $dirpart/$file"
28062 echo '# dummy' > "$dirpart/$file"
28063 done
28064done
28065 ;;
28066 esac
28067done
28068_ACEOF
28069
28070cat >>$CONFIG_STATUS <<\_ACEOF
28071
28072{ (exit 0); exit 0; }
28073_ACEOF
28074chmod +x $CONFIG_STATUS
28075ac_clean_files=$ac_clean_files_save
28076
28077
28078# configure is writing to config.log, and then calls config.status.
28079# config.status does its own redirection, appending to config.log.
28080# Unfortunately, on DOS this fails, as config.log is still kept open
28081# by configure, so config.status won't be able to write to it; its
28082# output is simply discarded. So we exec the FD to /dev/null,
28083# effectively closing config.log, so it can be properly (re)opened and
28084# appended to by config.status. When coming back to configure, we
28085# need to make the FD available again.
28086if test "$no_create" != yes; then
28087 ac_cs_success=:
28088 ac_config_status_args=
28089 test "$silent" = yes &&
28090 ac_config_status_args="$ac_config_status_args --quiet"
28091 exec 5>/dev/null
28092 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28093 exec 5>>config.log
28094 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28095 # would make configure fail if this is the last instruction.
28096 $ac_cs_success || { (exit 1); exit 1; }
28097fi
28098
28099#
28100# CONFIG_SUBDIRS section.
28101#
28102if test "$no_recursion" != yes; then
28103
28104 # Remove --cache-file and --srcdir arguments so they do not pile up.
28105 ac_sub_configure_args=
28106 ac_prev=
28107 for ac_arg in $ac_configure_args; do
28108 if test -n "$ac_prev"; then
28109 ac_prev=
28110 continue
28111 fi
28112 case $ac_arg in
28113 -cache-file | --cache-file | --cache-fil | --cache-fi \
28114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28115 ac_prev=cache_file ;;
28116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28118 | --c=*)
28119 ;;
28120 --config-cache | -C)
28121 ;;
28122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28123 ac_prev=srcdir ;;
28124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28125 ;;
28126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28127 ac_prev=prefix ;;
28128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28129 ;;
28130 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
28131 esac
28132 done
28133
28134 # Always prepend --prefix to ensure using the same prefix
28135 # in subdir configurations.
28136 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
28137
28138 ac_popdir=`pwd`
28139 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28140
28141 # Do not complain, so a configure script can configure whichever
28142 # parts of a large source tree are present.
28143 test -d $srcdir/$ac_dir || continue
28144
28145 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
28146echo "$as_me: configuring in $ac_dir" >&6;}
28147 { if $as_mkdir_p; then
28148 mkdir -p "$ac_dir"
28149 else
28150 as_dir="$ac_dir"
28151 as_dirs=
28152 while test ! -d "$as_dir"; do
28153 as_dirs="$as_dir $as_dirs"
28154 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28155$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28156 X"$as_dir" : 'X\(//\)[^/]' \| \
28157 X"$as_dir" : 'X\(//\)$' \| \
28158 X"$as_dir" : 'X\(/\)' \| \
28159 . : '\(.\)' 2>/dev/null ||
28160echo X"$as_dir" |
28161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28163 /^X\(\/\/\)$/{ s//\1/; q; }
28164 /^X\(\/\).*/{ s//\1/; q; }
28165 s/.*/./; q'`
28166 done
28167 test ! -n "$as_dirs" || mkdir $as_dirs
28168 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28169echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28170 { (exit 1); exit 1; }; }; }
28171
28172 ac_builddir=.
28173
28174if test "$ac_dir" != .; then
28175 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28176 # A "../" for each directory in $ac_dir_suffix.
28177 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28178else
28179 ac_dir_suffix= ac_top_builddir=
28180fi
28181
28182case $srcdir in
28183 .) # No --srcdir option. We are building in place.
28184 ac_srcdir=.
28185 if test -z "$ac_top_builddir"; then
28186 ac_top_srcdir=.
28187 else
28188 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28189 fi ;;
28190 [\\/]* | ?:[\\/]* ) # Absolute path.
28191 ac_srcdir=$srcdir$ac_dir_suffix;
28192 ac_top_srcdir=$srcdir ;;
28193 *) # Relative path.
28194 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28195 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28196esac
28197
28198# Do not use `cd foo && pwd` to compute absolute paths, because
28199# the directories may not exist.
28200case `pwd` in
28201.) ac_abs_builddir="$ac_dir";;
28202*)
28203 case "$ac_dir" in
28204 .) ac_abs_builddir=`pwd`;;
28205 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28206 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28207 esac;;
28208esac
28209case $ac_abs_builddir in
28210.) ac_abs_top_builddir=${ac_top_builddir}.;;
28211*)
28212 case ${ac_top_builddir}. in
28213 .) ac_abs_top_builddir=$ac_abs_builddir;;
28214 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28215 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28216 esac;;
28217esac
28218case $ac_abs_builddir in
28219.) ac_abs_srcdir=$ac_srcdir;;
28220*)
28221 case $ac_srcdir in
28222 .) ac_abs_srcdir=$ac_abs_builddir;;
28223 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28224 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28225 esac;;
28226esac
28227case $ac_abs_builddir in
28228.) ac_abs_top_srcdir=$ac_top_srcdir;;
28229*)
28230 case $ac_top_srcdir in
28231 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28232 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28233 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28234 esac;;
28235esac
28236
28237
28238 cd $ac_dir
28239
28240 # Check for guested configure; otherwise get Cygnus style configure.
28241 if test -f $ac_srcdir/configure.gnu; then
28242 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
28243 elif test -f $ac_srcdir/configure; then
28244 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
28245 elif test -f $ac_srcdir/configure.in; then
28246 ac_sub_configure=$ac_configure
28247 else
28248 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28249echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28250 ac_sub_configure=
28251 fi
28252
28253 # The recursion is here.
28254 if test -n "$ac_sub_configure"; then
28255 # Make the cache file name correct relative to the subdirectory.
28256 case $cache_file in
28257 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28258 *) # Relative path.
28259 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
28260 esac
28261
28262 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28263echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28264 # The eval makes quoting arguments work.
28265 eval $ac_sub_configure $ac_sub_configure_args \
28266 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
28267 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28268echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28269 { (exit 1); exit 1; }; }
28270 fi
28271
28272 cd $ac_popdir
28273 done
28274fi
28275
28276
28277
28278if test $bzip2_found -ne 1 ; then
28279 if test $zlib_found -ne 1 ; then
28280 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
28281echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
28282 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
28283echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
28284 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and re-run configure." >&5
28285echo "$as_me: WARNING: *** To correct, install the libraries and re-run configure." >&2;}
28286 fi
28287fi
28288
28289if test $llvmgccwarn = yes
28290then
28291 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
28292echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
28293 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
28294echo "$as_me: WARNING: ***** appear to be working." >&2;}
28295 { echo "$as_me:$LINENO: WARNING: ***** " >&5
28296echo "$as_me: WARNING: ***** " >&2;}
28297 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
28298echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
28299 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
28300echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
28301 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
28302echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
28303fi