blob: 47c45e86b3ed87c1b32002afc7503e520790b3ae [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencerabec8f92004-10-27 23:03:44 +00003# Generated by GNU Autoconf 2.59 for llvm 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000010## --------------------- ##
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
Reid Spencer2706f8c2004-09-19 23:53:36 +000024DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000025
26# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000028 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
Reid Spencer2706f8c2004-09-19 23:53:36 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000047 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
Reid Spencer2706f8c2004-09-19 23:53:36 +0000223 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000231
232# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000234
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
John Criswell7a73b802003-06-30 21:59:07 +0000245
John Criswell7a73b802003-06-30 21:59:07 +0000246
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 :
John Criswell47fdd832003-07-14 16:52:07 +0000264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000265 # 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
John Criswell47fdd832003-07-14 16:52:07 +0000276$*
John Criswell7a73b802003-06-30 21:59:07 +0000277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000284
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
John Criswell47fdd832003-07-14 16:52:07 +0000310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000311 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000312 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000313 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
John Criswell47fdd832003-07-14 16:52:07 +0000321 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000322
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
John Criswell47fdd832003-07-14 16:52:07 +0000395
Reid Spencer2706f8c2004-09-19 23:53:36 +0000396tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000399
John Criswell7a73b802003-06-30 21:59:07 +0000400# 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
John Criswell0c38eaf2003-09-10 15:17:25 +0000411ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000412cross_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.
Reid Spencerabec8f92004-10-27 23:03:44 +0000424PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000425PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000426PACKAGE_VERSION='1.4'
Reid Spencerabec8f92004-10-27 23:03:44 +0000427PACKAGE_STRING='llvm 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
Reid Spencer2706f8c2004-09-19 23:53:36 +0000430ac_unique_file=""Makefile.config.in""
Reid Spencer4d68ba22004-09-07 16:35:45 +0000431ac_subdirs_all="$ac_subdirs_all projects/sample"
432ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Reid Spencer641f7ef2004-09-20 22:14:56 +0000436ac_subdirs_all="$ac_subdirs_all projects/Java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000437ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
John Criswelle96aa1c2004-10-28 13:35:00 +0000439ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000440# Factoring default headers for most tests.
441ac_includes_default="\
442#include <stdio.h>
443#if HAVE_SYS_TYPES_H
444# include <sys/types.h>
445#endif
446#if HAVE_SYS_STAT_H
447# include <sys/stat.h>
448#endif
449#if STDC_HEADERS
450# include <stdlib.h>
451# include <stddef.h>
452#else
453# if HAVE_STDLIB_H
454# include <stdlib.h>
455# endif
456#endif
457#if HAVE_STRING_H
458# if !STDC_HEADERS && HAVE_MEMORY_H
459# include <memory.h>
460# endif
461# include <string.h>
462#endif
463#if HAVE_STRINGS_H
464# include <strings.h>
465#endif
466#if HAVE_INTTYPES_H
467# include <inttypes.h>
468#else
469# if HAVE_STDINT_H
470# include <stdint.h>
471# endif
472#endif
473#if HAVE_UNISTD_H
474# include <unistd.h>
475#endif"
476
Reid Spencerad354c92004-10-25 08:18:47 +0000477ac_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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TAR DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_ZLIB HAVE_BZIP2 ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000478ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000479
480# Initialize some variables set by options.
481ac_init_help=
482ac_init_version=false
483# The variables have the same names as the options, with
484# dashes changed to underlines.
485cache_file=/dev/null
486exec_prefix=NONE
487no_create=
488no_recursion=
489prefix=NONE
490program_prefix=NONE
491program_suffix=NONE
492program_transform_name=s,x,x,
493silent=
494site=
495srcdir=
496verbose=
497x_includes=NONE
498x_libraries=NONE
499
500# Installation directory options.
501# These are left unexpanded so users can "make install exec_prefix=/foo"
502# and all the variables that are supposed to be based on exec_prefix
503# by default will actually change.
504# Use braces instead of parens because sh, perl, etc. also accept them.
505bindir='${exec_prefix}/bin'
506sbindir='${exec_prefix}/sbin'
507libexecdir='${exec_prefix}/libexec'
508datadir='${prefix}/share'
509sysconfdir='${prefix}/etc'
510sharedstatedir='${prefix}/com'
511localstatedir='${prefix}/var'
512libdir='${exec_prefix}/lib'
513includedir='${prefix}/include'
514oldincludedir='/usr/include'
515infodir='${prefix}/info'
516mandir='${prefix}/man'
517
518ac_prev=
519for ac_option
520do
521 # If the previous option needs an argument, assign it.
522 if test -n "$ac_prev"; then
523 eval "$ac_prev=\$ac_option"
524 ac_prev=
525 continue
526 fi
527
528 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529
530 # Accept the important Cygnus configure options, so we can diagnose typos.
531
532 case $ac_option in
533
534 -bindir | --bindir | --bindi | --bind | --bin | --bi)
535 ac_prev=bindir ;;
536 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
537 bindir=$ac_optarg ;;
538
539 -build | --build | --buil | --bui | --bu)
540 ac_prev=build_alias ;;
541 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
542 build_alias=$ac_optarg ;;
543
544 -cache-file | --cache-file | --cache-fil | --cache-fi \
545 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
546 ac_prev=cache_file ;;
547 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
548 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
549 cache_file=$ac_optarg ;;
550
551 --config-cache | -C)
552 cache_file=config.cache ;;
553
554 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555 ac_prev=datadir ;;
556 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557 | --da=*)
558 datadir=$ac_optarg ;;
559
560 -disable-* | --disable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 eval "enable_$ac_feature=no" ;;
568
569 -enable-* | --enable-*)
570 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
571 # Reject names that are not valid shell variable names.
572 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574 { (exit 1); exit 1; }; }
575 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576 case $ac_option in
577 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
578 *) ac_optarg=yes ;;
579 esac
580 eval "enable_$ac_feature='$ac_optarg'" ;;
581
582 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
583 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
584 | --exec | --exe | --ex)
585 ac_prev=exec_prefix ;;
586 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
587 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
588 | --exec=* | --exe=* | --ex=*)
589 exec_prefix=$ac_optarg ;;
590
591 -gas | --gas | --ga | --g)
592 # Obsolete; use --with-gas.
593 with_gas=yes ;;
594
595 -help | --help | --hel | --he | -h)
596 ac_init_help=long ;;
597 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
598 ac_init_help=recursive ;;
599 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
600 ac_init_help=short ;;
601
602 -host | --host | --hos | --ho)
603 ac_prev=host_alias ;;
604 -host=* | --host=* | --hos=* | --ho=*)
605 host_alias=$ac_optarg ;;
606
607 -includedir | --includedir | --includedi | --included | --include \
608 | --includ | --inclu | --incl | --inc)
609 ac_prev=includedir ;;
610 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
611 | --includ=* | --inclu=* | --incl=* | --inc=*)
612 includedir=$ac_optarg ;;
613
614 -infodir | --infodir | --infodi | --infod | --info | --inf)
615 ac_prev=infodir ;;
616 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
617 infodir=$ac_optarg ;;
618
619 -libdir | --libdir | --libdi | --libd)
620 ac_prev=libdir ;;
621 -libdir=* | --libdir=* | --libdi=* | --libd=*)
622 libdir=$ac_optarg ;;
623
624 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
625 | --libexe | --libex | --libe)
626 ac_prev=libexecdir ;;
627 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
628 | --libexe=* | --libex=* | --libe=*)
629 libexecdir=$ac_optarg ;;
630
631 -localstatedir | --localstatedir | --localstatedi | --localstated \
632 | --localstate | --localstat | --localsta | --localst \
633 | --locals | --local | --loca | --loc | --lo)
634 ac_prev=localstatedir ;;
635 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
636 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
637 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
638 localstatedir=$ac_optarg ;;
639
640 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641 ac_prev=mandir ;;
642 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
643 mandir=$ac_optarg ;;
644
645 -nfp | --nfp | --nf)
646 # Obsolete; use --without-fp.
647 with_fp=no ;;
648
649 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
650 | --no-cr | --no-c | -n)
651 no_create=yes ;;
652
653 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
655 no_recursion=yes ;;
656
657 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
658 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
659 | --oldin | --oldi | --old | --ol | --o)
660 ac_prev=oldincludedir ;;
661 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
662 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
663 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
664 oldincludedir=$ac_optarg ;;
665
666 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667 ac_prev=prefix ;;
668 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
669 prefix=$ac_optarg ;;
670
671 -program-prefix | --program-prefix | --program-prefi | --program-pref \
672 | --program-pre | --program-pr | --program-p)
673 ac_prev=program_prefix ;;
674 -program-prefix=* | --program-prefix=* | --program-prefi=* \
675 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
676 program_prefix=$ac_optarg ;;
677
678 -program-suffix | --program-suffix | --program-suffi | --program-suff \
679 | --program-suf | --program-su | --program-s)
680 ac_prev=program_suffix ;;
681 -program-suffix=* | --program-suffix=* | --program-suffi=* \
682 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
683 program_suffix=$ac_optarg ;;
684
685 -program-transform-name | --program-transform-name \
686 | --program-transform-nam | --program-transform-na \
687 | --program-transform-n | --program-transform- \
688 | --program-transform | --program-transfor \
689 | --program-transfo | --program-transf \
690 | --program-trans | --program-tran \
691 | --progr-tra | --program-tr | --program-t)
692 ac_prev=program_transform_name ;;
693 -program-transform-name=* | --program-transform-name=* \
694 | --program-transform-nam=* | --program-transform-na=* \
695 | --program-transform-n=* | --program-transform-=* \
696 | --program-transform=* | --program-transfor=* \
697 | --program-transfo=* | --program-transf=* \
698 | --program-trans=* | --program-tran=* \
699 | --progr-tra=* | --program-tr=* | --program-t=*)
700 program_transform_name=$ac_optarg ;;
701
702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
703 | -silent | --silent | --silen | --sile | --sil)
704 silent=yes ;;
705
706 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707 ac_prev=sbindir ;;
708 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709 | --sbi=* | --sb=*)
710 sbindir=$ac_optarg ;;
711
712 -sharedstatedir | --sharedstatedir | --sharedstatedi \
713 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
714 | --sharedst | --shareds | --shared | --share | --shar \
715 | --sha | --sh)
716 ac_prev=sharedstatedir ;;
717 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
718 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
719 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720 | --sha=* | --sh=*)
721 sharedstatedir=$ac_optarg ;;
722
723 -site | --site | --sit)
724 ac_prev=site ;;
725 -site=* | --site=* | --sit=*)
726 site=$ac_optarg ;;
727
728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729 ac_prev=srcdir ;;
730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
731 srcdir=$ac_optarg ;;
732
733 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
734 | --syscon | --sysco | --sysc | --sys | --sy)
735 ac_prev=sysconfdir ;;
736 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
737 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
738 sysconfdir=$ac_optarg ;;
739
740 -target | --target | --targe | --targ | --tar | --ta | --t)
741 ac_prev=target_alias ;;
742 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
743 target_alias=$ac_optarg ;;
744
745 -v | -verbose | --verbose | --verbos | --verbo | --verb)
746 verbose=yes ;;
747
748 -version | --version | --versio | --versi | --vers | -V)
749 ac_init_version=: ;;
750
751 -with-* | --with-*)
752 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package| sed 's/-/_/g'`
758 case $ac_option in
759 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
760 *) ac_optarg=yes ;;
761 esac
762 eval "with_$ac_package='$ac_optarg'" ;;
763
764 -without-* | --without-*)
765 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768 { echo "$as_me: error: invalid package name: $ac_package" >&2
769 { (exit 1); exit 1; }; }
770 ac_package=`echo $ac_package | sed 's/-/_/g'`
771 eval "with_$ac_package=no" ;;
772
773 --x)
774 # Obsolete; use --with-x.
775 with_x=yes ;;
776
777 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
778 | --x-incl | --x-inc | --x-in | --x-i)
779 ac_prev=x_includes ;;
780 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
781 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
782 x_includes=$ac_optarg ;;
783
784 -x-libraries | --x-libraries | --x-librarie | --x-librari \
785 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
786 ac_prev=x_libraries ;;
787 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
788 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
789 x_libraries=$ac_optarg ;;
790
791 -*) { echo "$as_me: error: unrecognized option: $ac_option
792Try \`$0 --help' for more information." >&2
793 { (exit 1); exit 1; }; }
794 ;;
795
796 *=*)
797 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
800 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
801 { (exit 1); exit 1; }; }
802 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
803 eval "$ac_envvar='$ac_optarg'"
804 export $ac_envvar ;;
805
806 *)
807 # FIXME: should be removed in autoconf 3.0.
808 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
809 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
810 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
811 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812 ;;
813
814 esac
815done
816
817if test -n "$ac_prev"; then
818 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
819 { echo "$as_me: error: missing argument to $ac_option" >&2
820 { (exit 1); exit 1; }; }
821fi
822
823# Be sure to have absolute paths.
824for ac_var in exec_prefix prefix
825do
826 eval ac_val=$`echo $ac_var`
827 case $ac_val in
828 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
831 esac
832done
833
834# Be sure to have absolute paths.
835for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000836 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000837do
838 eval ac_val=$`echo $ac_var`
839 case $ac_val in
840 [\\/$]* | ?:[\\/]* ) ;;
841 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842 { (exit 1); exit 1; }; };;
843 esac
844done
845
846# There might be people who depend on the old broken behavior: `$host'
847# used to hold the argument of --host etc.
848# FIXME: To remove some day.
849build=$build_alias
850host=$host_alias
851target=$target_alias
852
853# FIXME: To remove some day.
854if test "x$host_alias" != x; then
855 if test "x$build_alias" = x; then
856 cross_compiling=maybe
857 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
858 If a cross compiler is detected then cross compile mode will be used." >&2
859 elif test "x$build_alias" != "x$host_alias"; then
860 cross_compiling=yes
861 fi
862fi
863
864ac_tool_prefix=
865test -n "$host_alias" && ac_tool_prefix=$host_alias-
866
867test "$silent" = yes && exec 6>/dev/null
868
869
870# Find the source files, if location was not specified.
871if test -z "$srcdir"; then
872 ac_srcdir_defaulted=yes
873 # Try the directory containing this script, then its parent.
874 ac_confdir=`(dirname "$0") 2>/dev/null ||
875$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000876 X"$0" : 'X\(//\)[^/]' \| \
877 X"$0" : 'X\(//\)$' \| \
878 X"$0" : 'X\(/\)' \| \
879 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000880echo X"$0" |
881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
883 /^X\(\/\/\)$/{ s//\1/; q; }
884 /^X\(\/\).*/{ s//\1/; q; }
885 s/.*/./; q'`
886 srcdir=$ac_confdir
887 if test ! -r $srcdir/$ac_unique_file; then
888 srcdir=..
889 fi
890else
891 ac_srcdir_defaulted=no
892fi
893if test ! -r $srcdir/$ac_unique_file; then
894 if test "$ac_srcdir_defaulted" = yes; then
895 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
896 { (exit 1); exit 1; }; }
897 else
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
899 { (exit 1); exit 1; }; }
900 fi
901fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000902(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
903 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
904 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000905srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
906ac_env_build_alias_set=${build_alias+set}
907ac_env_build_alias_value=$build_alias
908ac_cv_env_build_alias_set=${build_alias+set}
909ac_cv_env_build_alias_value=$build_alias
910ac_env_host_alias_set=${host_alias+set}
911ac_env_host_alias_value=$host_alias
912ac_cv_env_host_alias_set=${host_alias+set}
913ac_cv_env_host_alias_value=$host_alias
914ac_env_target_alias_set=${target_alias+set}
915ac_env_target_alias_value=$target_alias
916ac_cv_env_target_alias_set=${target_alias+set}
917ac_cv_env_target_alias_value=$target_alias
918ac_env_CXX_set=${CXX+set}
919ac_env_CXX_value=$CXX
920ac_cv_env_CXX_set=${CXX+set}
921ac_cv_env_CXX_value=$CXX
922ac_env_CXXFLAGS_set=${CXXFLAGS+set}
923ac_env_CXXFLAGS_value=$CXXFLAGS
924ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
925ac_cv_env_CXXFLAGS_value=$CXXFLAGS
926ac_env_LDFLAGS_set=${LDFLAGS+set}
927ac_env_LDFLAGS_value=$LDFLAGS
928ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
929ac_cv_env_LDFLAGS_value=$LDFLAGS
930ac_env_CPPFLAGS_set=${CPPFLAGS+set}
931ac_env_CPPFLAGS_value=$CPPFLAGS
932ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_cv_env_CPPFLAGS_value=$CPPFLAGS
934ac_env_CC_set=${CC+set}
935ac_env_CC_value=$CC
936ac_cv_env_CC_set=${CC+set}
937ac_cv_env_CC_value=$CC
938ac_env_CFLAGS_set=${CFLAGS+set}
939ac_env_CFLAGS_value=$CFLAGS
940ac_cv_env_CFLAGS_set=${CFLAGS+set}
941ac_cv_env_CFLAGS_value=$CFLAGS
942ac_env_CPP_set=${CPP+set}
943ac_env_CPP_value=$CPP
944ac_cv_env_CPP_set=${CPP+set}
945ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000946ac_env_CXXCPP_set=${CXXCPP+set}
947ac_env_CXXCPP_value=$CXXCPP
948ac_cv_env_CXXCPP_set=${CXXCPP+set}
949ac_cv_env_CXXCPP_value=$CXXCPP
950ac_env_F77_set=${F77+set}
951ac_env_F77_value=$F77
952ac_cv_env_F77_set=${F77+set}
953ac_cv_env_F77_value=$F77
954ac_env_FFLAGS_set=${FFLAGS+set}
955ac_env_FFLAGS_value=$FFLAGS
956ac_cv_env_FFLAGS_set=${FFLAGS+set}
957ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000958
959#
960# Report the --help message.
961#
962if test "$ac_init_help" = "long"; then
963 # Omit some internal or obsolete options to make the list less imposing.
964 # This message is too long to be a string in the A/UX 3.1 sh.
965 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000966\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000967
968Usage: $0 [OPTION]... [VAR=VALUE]...
969
970To assign environment variables (e.g., CC, CFLAGS...), specify them as
971VAR=VALUE. See below for descriptions of some of the useful variables.
972
973Defaults for the options are specified in brackets.
974
975Configuration:
976 -h, --help display this help and exit
977 --help=short display options specific to this package
978 --help=recursive display the short help of all the included packages
979 -V, --version display version information and exit
980 -q, --quiet, --silent do not print \`checking...' messages
981 --cache-file=FILE cache test results in FILE [disabled]
982 -C, --config-cache alias for \`--cache-file=config.cache'
983 -n, --no-create do not create output files
984 --srcdir=DIR find the sources in DIR [configure dir or \`..']
985
986_ACEOF
987
988 cat <<_ACEOF
989Installation directories:
990 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000991 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000992 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000994
995By default, \`make install' will install all the files in
996\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
997an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998for instance \`--prefix=\$HOME'.
999
1000For better control, use the options below.
1001
1002Fine tuning of the installation directories:
1003 --bindir=DIR user executables [EPREFIX/bin]
1004 --sbindir=DIR system admin executables [EPREFIX/sbin]
1005 --libexecdir=DIR program executables [EPREFIX/libexec]
1006 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1007 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1008 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1009 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1010 --libdir=DIR object code libraries [EPREFIX/lib]
1011 --includedir=DIR C header files [PREFIX/include]
1012 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1013 --infodir=DIR info documentation [PREFIX/info]
1014 --mandir=DIR man documentation [PREFIX/man]
1015_ACEOF
1016
1017 cat <<\_ACEOF
1018
1019System types:
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 --target=TARGET configure for building compilers for TARGET [HOST]
1023_ACEOF
1024fi
1025
1026if test -n "$ac_init_help"; then
1027 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001028 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001029 esac
1030 cat <<\_ACEOF
1031
1032Optional Features:
1033 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1034 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001041 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001042 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswellc78022e2003-07-29 19:11:58 +00001043 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001044
1045Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001048 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049 --with-pic try to use only PIC/non-PIC objects [default=use
1050 both]
1051 --with-tags[=TAGS]
1052 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001053 --with-llvmgccdir Location of LLVM GCC front-end
John Criswell7a73b802003-06-30 21:59:07 +00001054
1055Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <llvmbugs@cs.uiuc.edu>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112 case "$ac_dir" in
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130 case $ac_srcdir in
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 esac;;
1144esac
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 cd $ac_dir
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1149 echo
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1152 echo
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001155 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001156 echo
1157 $ac_configure --help
1158 else
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 fi
1161 cd $ac_popdir
1162 done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001168llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001169generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001170
Reid Spencer2706f8c2004-09-19 23:53:36 +00001171Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001172This configure script is free software; the Free Software Foundation
1173gives unlimited permission to copy, distribute and modify it.
1174_ACEOF
1175 exit 0
1176fi
1177exec 5>config.log
1178cat >&5 <<_ACEOF
1179This file contains any messages produced by compilers while
1180running configure, to aid debugging if configure makes a mistake.
1181
Reid Spencerabec8f92004-10-27 23:03:44 +00001182It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001183generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001184
1185 $ $0 $@
1186
1187_ACEOF
1188{
1189cat <<_ASUNAME
1190## --------- ##
1191## Platform. ##
1192## --------- ##
1193
1194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202
1203/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1210
1211_ASUNAME
1212
1213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214for as_dir in $PATH
1215do
1216 IFS=$as_save_IFS
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1219done
1220
1221} >&5
1222
1223cat >&5 <<_ACEOF
1224
1225
1226## ----------- ##
1227## Core tests. ##
1228## ----------- ##
1229
1230_ACEOF
1231
1232
1233# Keep a trace of the command line.
1234# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001235# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001236# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001237# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001238ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001239ac_configure_args0=
1240ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001241ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001242ac_must_keep_next=false
1243for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001244do
John Criswell0c38eaf2003-09-10 15:17:25 +00001245 for ac_arg
1246 do
1247 case $ac_arg in
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1251 continue ;;
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 esac
1255 case $ac_pass in
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 2)
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001260 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001261 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001262 case $ac_arg in
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269 esac
1270 ;;
1271 -* ) ac_must_keep_next=true ;;
1272 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001273 fi
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1276 ac_sep=" "
1277 ;;
1278 esac
1279 done
John Criswell7a73b802003-06-30 21:59:07 +00001280done
John Criswell0c38eaf2003-09-10 15:17:25 +00001281$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001283
1284# When interrupted or exit'd, cleanup temporary files, and complete
1285# config.log. We remove comments because anyway the quotes in there
1286# would cause problems or look ugly.
1287# WARNING: Be sure not to use single quotes in there, as some shells,
1288# such as our DU 5.0 friend, will then `close' the trap.
1289trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1291 {
1292 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001293
John Criswell7a73b802003-06-30 21:59:07 +00001294 cat <<\_ASBOX
1295## ---------------- ##
1296## Cache variables. ##
1297## ---------------- ##
1298_ASBOX
1299 echo
1300 # The following way of writing the cache mishandles newlines in values,
1301{
1302 (set) 2>&1 |
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304 *ac_space=\ *)
1305 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001308 ;;
1309 *)
1310 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001312 ;;
1313 esac;
1314}
1315 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001316
1317 cat <<\_ASBOX
1318## ----------------- ##
1319## Output variables. ##
1320## ----------------- ##
1321_ASBOX
1322 echo
1323 for ac_var in $ac_subst_vars
1324 do
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1327 done | sort
1328 echo
1329
1330 if test -n "$ac_subst_files"; then
1331 cat <<\_ASBOX
1332## ------------- ##
1333## Output files. ##
1334## ------------- ##
1335_ASBOX
1336 echo
1337 for ac_var in $ac_subst_files
1338 do
1339 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001340 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001341 done | sort
1342 echo
1343 fi
1344
John Criswell7a73b802003-06-30 21:59:07 +00001345 if test -s confdefs.h; then
1346 cat <<\_ASBOX
1347## ----------- ##
1348## confdefs.h. ##
1349## ----------- ##
1350_ASBOX
1351 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001352 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001353 echo
1354 fi
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1358 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001359 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361 exit $exit_status
1362 ' 0
1363for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365done
1366ac_signal=0
1367
1368# confdefs.h avoids OS command line length limits that DEFS can exceed.
1369rm -rf conftest* confdefs.h
1370# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371echo >confdefs.h
1372
1373# Predefined preprocessor variables.
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_NAME "$PACKAGE_NAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_VERSION "$PACKAGE_VERSION"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_STRING "$PACKAGE_STRING"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397_ACEOF
1398
1399
1400# Let the site file select an alternate cache file if it wants to.
1401# Prefer explicitly selected file to automatically selected ones.
1402if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405 else
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407 fi
1408fi
1409for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1414 . "$ac_site_file"
1415 fi
1416done
1417
1418if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423echo "$as_me: loading cache $cache_file" >&6;}
1424 case $cache_file in
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1427 esac
1428 fi
1429else
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431echo "$as_me: creating cache $cache_file" >&6;}
1432 >$cache_file
1433fi
1434
1435# Check that the precious variables saved in the cache have kept the same
1436# value.
1437ac_cache_corrupted=false
1438for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1445 set,)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,set)
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1453 ,);;
1454 *)
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001457echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001459echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001461echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001462 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001463 fi;;
1464 esac
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1467 case $ac_new_val in
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1471 esac
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 esac
1476 fi
1477done
1478if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1484fi
1485
1486ac_ext=c
1487ac_cpp='$CPP $CPPFLAGS'
1488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
John Criswell0c38eaf2003-09-10 15:17:25 +00001518
John Criswell7a73b802003-06-30 21:59:07 +00001519ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001520for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001521 if test -f $ac_dir/install-sh; then
1522 ac_aux_dir=$ac_dir
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 break
1525 elif test -f $ac_dir/install.sh; then
1526 ac_aux_dir=$ac_dir
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 break
1529 elif test -f $ac_dir/shtool; then
1530 ac_aux_dir=$ac_dir
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1532 break
1533 fi
1534done
1535if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001538 { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
John Criswell392aaa32003-07-22 19:18:09 +00001544
Reid Spencer2706f8c2004-09-19 23:53:36 +00001545
1546if test ${srcdir} != "." ; then
1547 if test -f ${srcdir}/include/llvm/Config/config.h ; then
John Criswell1b824322003-09-15 17:19:42 +00001548 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001549echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1550 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001551 fi
John Criswell93e1c722003-09-15 17:04:06 +00001552fi
1553
John Criswell33a911a2003-11-25 20:36:46 +00001554for i in `ls ${srcdir}/projects`
1555do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001556 if test -d ${srcdir}/projects/${i} ; then
1557 case ${i} in
1558 "CVS") ;;
1559 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001560
Reid Spencer4d68ba22004-09-07 16:35:45 +00001561subdirs="$subdirs projects/sample"
1562 ;;
1563 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001564
Reid Spencer4d68ba22004-09-07 16:35:45 +00001565subdirs="$subdirs projects/Stacker"
1566 ;;
1567 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001568
Reid Spencer4d68ba22004-09-07 16:35:45 +00001569subdirs="$subdirs projects/llvm-test"
1570 ;;
1571 "llvm-reopt")
1572
1573subdirs="$subdirs projects/llvm-reopt"
1574;;
1575 "llvm-gcc")
1576
1577subdirs="$subdirs projects/llvm-gcc"
1578 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001579 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001580
Reid Spencer641f7ef2004-09-20 22:14:56 +00001581subdirs="$subdirs projects/Java"
1582 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001583 "llvm-tv")
1584
1585subdirs="$subdirs projects/llvm-tv"
1586 ;;
1587 "llvm-fefw")
1588
1589subdirs="$subdirs projects/llvm-fefw"
1590 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001591 "poolalloc")
1592
1593subdirs="$subdirs projects/poolalloc"
1594 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001595 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001596 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1597echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001598 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001599 esac
John Criswell33a911a2003-11-25 20:36:46 +00001600 fi
1601done
John Criswell559a6c12003-09-30 16:31:48 +00001602
Reid Spencer551ccae2004-09-01 22:55:40 +00001603 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001604
John Criswelldc76e322004-07-23 15:40:57 +00001605
John Criswell40468462004-09-24 21:19:06 +00001606 ac_config_files="$ac_config_files Makefile.config"
John Criswell5fbb1f82004-09-24 13:28:51 +00001607
1608 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
John Criswelldc76e322004-07-23 15:40:57 +00001609
John Criswell9f011862004-09-24 18:28:00 +00001610 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1611
1612 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1613
John Criswell40468462004-09-24 21:19:06 +00001614 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
1615
1616 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
1617
John Criswelldc76e322004-07-23 15:40:57 +00001618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
Reid Spencer5f285392004-08-24 16:32:21 +00001625 ac_config_commands="$ac_config_commands examples/Makefile"
1626
1627
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswellf424d742003-10-07 21:13:47 +00001640 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1641
1642
1643 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001644
1645
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001647
1648
Misha Brukman591edc62004-10-14 18:59:42 +00001649 ac_config_commands="$ac_config_commands tools/Makefile.JIT"
1650
1651
Brian Gaekec45be042003-10-07 06:01:34 +00001652 ac_config_commands="$ac_config_commands utils/Makefile"
1653
1654
John Criswell0c38eaf2003-09-10 15:17:25 +00001655 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001656
1657
John Criswell392aaa32003-07-22 19:18:09 +00001658
John Criswell7a73b802003-06-30 21:59:07 +00001659# Find a good install program. We prefer a C program (faster),
1660# so one script is as good as another. But avoid the broken or
1661# incompatible versions:
1662# SysV /etc/install, /usr/sbin/install
1663# SunOS /usr/etc/install
1664# IRIX /sbin/install
1665# AIX /bin/install
1666# AmigaOS /C/install, which installs bootblocks on floppy discs
1667# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1668# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1669# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer2706f8c2004-09-19 23:53:36 +00001670# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001671# ./install, which can be erroneously created by make from ./install.sh.
1672echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1673echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1674if test -z "$INSTALL"; then
1675if test "${ac_cv_path_install+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679for as_dir in $PATH
1680do
1681 IFS=$as_save_IFS
1682 test -z "$as_dir" && as_dir=.
1683 # Account for people who put trailing slashes in PATH elements.
1684case $as_dir/ in
1685 ./ | .// | /cC/* | \
1686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001687 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001688 /usr/ucb/* ) ;;
1689 *)
1690 # OSF1 and SCO ODT 3.0 have their own names for install.
1691 # Don't use installbsd from OSF since it installs stuff as root
1692 # by default.
1693 for ac_prog in ginstall scoinst install; do
1694 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer2706f8c2004-09-19 23:53:36 +00001695 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1696 if test $ac_prog = install &&
1697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1698 # AIX install. It has an incompatible calling convention.
1699 :
1700 elif test $ac_prog = install &&
1701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1702 # program-specific install script used by HP pwplus--don't use.
1703 :
1704 else
1705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1706 break 3
1707 fi
1708 fi
John Criswell7a73b802003-06-30 21:59:07 +00001709 done
1710 done
1711 ;;
1712esac
1713done
1714
1715
1716fi
1717 if test "${ac_cv_path_install+set}" = set; then
1718 INSTALL=$ac_cv_path_install
1719 else
1720 # As a last resort, use the slow shell script. We don't cache a
1721 # path for INSTALL within a source directory, because that will
1722 # break other packages using the cache if that directory is
1723 # removed, or if the path is relative.
1724 INSTALL=$ac_install_sh
1725 fi
1726fi
1727echo "$as_me:$LINENO: result: $INSTALL" >&5
1728echo "${ECHO_T}$INSTALL" >&6
1729
1730# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1731# It thinks the first close brace ends the variable substitution.
1732test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1733
1734test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1735
1736test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1737
1738
1739# Make sure we can run config.sub.
1740$ac_config_sub sun4 >/dev/null 2>&1 ||
1741 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1742echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1743 { (exit 1); exit 1; }; }
1744
1745echo "$as_me:$LINENO: checking build system type" >&5
1746echo $ECHO_N "checking build system type... $ECHO_C" >&6
1747if test "${ac_cv_build+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1749else
1750 ac_cv_build_alias=$build_alias
1751test -z "$ac_cv_build_alias" &&
1752 ac_cv_build_alias=`$ac_config_guess`
1753test -z "$ac_cv_build_alias" &&
1754 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1755echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1756 { (exit 1); exit 1; }; }
1757ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1758 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1759echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1760 { (exit 1); exit 1; }; }
1761
1762fi
1763echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1764echo "${ECHO_T}$ac_cv_build" >&6
1765build=$ac_cv_build
1766build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769
1770
1771echo "$as_me:$LINENO: checking host system type" >&5
1772echo $ECHO_N "checking host system type... $ECHO_C" >&6
1773if test "${ac_cv_host+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 ac_cv_host_alias=$host_alias
1777test -z "$ac_cv_host_alias" &&
1778 ac_cv_host_alias=$ac_cv_build_alias
1779ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1781echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1782 { (exit 1); exit 1; }; }
1783
1784fi
1785echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1786echo "${ECHO_T}$ac_cv_host" >&6
1787host=$ac_cv_host
1788host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791
1792
1793echo "$as_me:$LINENO: checking target system type" >&5
1794echo $ECHO_N "checking target system type... $ECHO_C" >&6
1795if test "${ac_cv_target+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1797else
1798 ac_cv_target_alias=$target_alias
1799test "x$ac_cv_target_alias" = "x" &&
1800 ac_cv_target_alias=$ac_cv_host_alias
1801ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1802 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1803echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1804 { (exit 1); exit 1; }; }
1805
1806fi
1807echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1808echo "${ECHO_T}$ac_cv_target" >&6
1809target=$ac_cv_target
1810target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1811target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1812target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1813
1814
1815# The aliases save the names the user supplied, while $host etc.
1816# will get canonicalized.
1817test -n "$target_alias" &&
1818 test "$program_prefix$program_suffix$program_transform_name" = \
1819 NONENONEs,x,x, &&
1820 program_prefix=${target_alias}-
1821
Reid Spencer73fb5482004-08-31 14:20:36 +00001822
1823echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1824echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001825case $build in
Reid Spencer73fb5482004-08-31 14:20:36 +00001826 *-*-aix*)
1827 OS=AIX
1828
1829 platform_type="AIX"
1830 ;;
1831 *-*-cygwin*)
1832 OS=Cygwin
1833
1834 platform_type="Cygwin"
1835 ;;
1836 *-*-darwin*)
1837 OS=Darwin
1838
1839 platform_type="Darwin"
1840 ;;
1841 *-*-freebsd*)
1842 OS=Linux
1843
Reid Spencera11e4db2004-08-31 18:03:23 +00001844 platform_type="FreeBSD"
Reid Spencer73fb5482004-08-31 14:20:36 +00001845 ;;
1846 *-*-interix*)
1847 OS=SunOS
1848
Reid Spencera11e4db2004-08-31 18:03:23 +00001849 platform_type="Interix"
Reid Spencer73fb5482004-08-31 14:20:36 +00001850 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001851 *-*-linux*)
1852 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001853
Reid Spencerde8c47f2004-08-29 19:35:28 +00001854 platform_type="Linux"
1855 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1856 then
1857 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001858
Reid Spencerde8c47f2004-08-29 19:35:28 +00001859 fi
1860 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001861 *-*-solaris*)
1862 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001863
Reid Spencerde8c47f2004-08-29 19:35:28 +00001864 platform_type="SunOS"
1865 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1866 then
1867 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001868
Reid Spencerde8c47f2004-08-29 19:35:28 +00001869 fi
1870 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001871 *-*-win32*)
1872 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001873
Reid Spencerde8c47f2004-08-29 19:35:28 +00001874 platform_type="Win32"
1875 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00001876 *-*-mingw*)
1877 OS=Win32
1878
1879 platform_type="Win32"
1880 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001881 *)
1882 OS=Unknown
1883
1884 platform_type="Unknown"
1885 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001886esac
1887
Reid Spencer73fb5482004-08-31 14:20:36 +00001888if test "$platform_type" = "Unknown" ; then
Reid Spencer886e9512004-08-31 01:34:10 +00001889 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1890echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1891 { (exit 1); exit 1; }; }
1892fi
1893
Reid Spencerde8c47f2004-08-29 19:35:28 +00001894 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1895
1896
Reid Spencer73fb5482004-08-31 14:20:36 +00001897
1898echo "$as_me:$LINENO: checking target architecture" >&5
1899echo $ECHO_N "checking target architecture... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001900case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001901 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001902
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001903 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001904esac
1905
John Criswell76595452003-07-01 22:07:39 +00001906case $target in
Reid Spencer73fb5482004-08-31 14:20:36 +00001907 i*86-*)
1908 ARCH="x86"
1909 ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001910
Reid Spencer73fb5482004-08-31 14:20:36 +00001911 ;;
1912 sparc*-*)
1913 ARCH="Sparc"
1914 ARCH=Sparc
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001915
Reid Spencer73fb5482004-08-31 14:20:36 +00001916 ;;
1917 powerpc*-*)
1918 ARCH="PowerPC"
1919 ARCH=PowerPC
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001920
Reid Spencer73fb5482004-08-31 14:20:36 +00001921 ;;
1922 *)
1923 ARCH="Unknown"
1924 ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001925
Reid Spencer73fb5482004-08-31 14:20:36 +00001926 ;;
John Criswell76595452003-07-01 22:07:39 +00001927esac
1928
Reid Spencer73fb5482004-08-31 14:20:36 +00001929echo "$as_me:$LINENO: result: $ARCH" >&5
1930echo "${ECHO_T}$ARCH" >&6
1931
John Criswell7a73b802003-06-30 21:59:07 +00001932ac_ext=cc
1933ac_cpp='$CXXCPP $CPPFLAGS'
1934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1937if test -n "$ac_tool_prefix"; then
1938 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1939 do
1940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1942echo "$as_me:$LINENO: checking for $ac_word" >&5
1943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944if test "${ac_cv_prog_CXX+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947 if test -n "$CXX"; then
1948 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1949else
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 break 2
1960 fi
1961done
1962done
1963
1964fi
1965fi
1966CXX=$ac_cv_prog_CXX
1967if test -n "$CXX"; then
1968 echo "$as_me:$LINENO: result: $CXX" >&5
1969echo "${ECHO_T}$CXX" >&6
1970else
1971 echo "$as_me:$LINENO: result: no" >&5
1972echo "${ECHO_T}no" >&6
1973fi
1974
1975 test -n "$CXX" && break
1976 done
1977fi
1978if test -z "$CXX"; then
1979 ac_ct_CXX=$CXX
1980 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1981do
1982 # Extract the first word of "$ac_prog", so it can be a program name with args.
1983set dummy $ac_prog; ac_word=$2
1984echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989 if test -n "$ac_ct_CXX"; then
1990 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1991else
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_ac_ct_CXX="$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2002 fi
2003done
2004done
2005
2006fi
2007fi
2008ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2009if test -n "$ac_ct_CXX"; then
2010 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2011echo "${ECHO_T}$ac_ct_CXX" >&6
2012else
2013 echo "$as_me:$LINENO: result: no" >&5
2014echo "${ECHO_T}no" >&6
2015fi
2016
2017 test -n "$ac_ct_CXX" && break
2018done
2019test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2020
2021 CXX=$ac_ct_CXX
2022fi
2023
2024
2025# Provide some information about the compiler.
2026echo "$as_me:$LINENO:" \
2027 "checking for C++ compiler version" >&5
2028ac_compiler=`set X $ac_compile; echo $2`
2029{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2030 (eval $ac_compiler --version </dev/null >&5) 2>&5
2031 ac_status=$?
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }
2034{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2035 (eval $ac_compiler -v </dev/null >&5) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }
2039{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2040 (eval $ac_compiler -V </dev/null >&5) 2>&5
2041 ac_status=$?
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }
2044
2045cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002046/* confdefs.h. */
2047_ACEOF
2048cat confdefs.h >>conftest.$ac_ext
2049cat >>conftest.$ac_ext <<_ACEOF
2050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002051
John Criswell7a73b802003-06-30 21:59:07 +00002052int
2053main ()
2054{
2055
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002061ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002062# Try to create an executable without -o first, disregard a.out.
2063# It will help us diagnose broken compilers, and finding out an intuition
2064# of exeext.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002065echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2066echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002067ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2068if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2069 (eval $ac_link_default) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; then
2073 # Find the output, starting from the most likely. This scheme is
2074# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2075# resort.
2076
2077# Be careful to initialize this variable, since it used to be cached.
2078# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2079ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002080# b.out is created by i960 compilers.
2081for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2082do
2083 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002084 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002086 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002087 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002088 # This is the source file.
2089 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002090 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002091 # We found the default executable, but exeext='' is most
2092 # certainly right.
2093 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002094 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002095 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 # FIXME: I believe we export ac_cv_exeext for Libtool,
2097 # but it would be cool to find out if it's true. Does anybody
2098 # maintain Libtool? --akim.
2099 export ac_cv_exeext
2100 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002101 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002102 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002103 esac
2104done
2105else
2106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002107sed 's/^/| /' conftest.$ac_ext >&5
2108
2109{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2110See \`config.log' for more details." >&5
2111echo "$as_me: error: C++ compiler cannot create executables
2112See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002113 { (exit 77); exit 77; }; }
2114fi
2115
2116ac_exeext=$ac_cv_exeext
2117echo "$as_me:$LINENO: result: $ac_file" >&5
2118echo "${ECHO_T}$ac_file" >&6
2119
2120# Check the compiler produces executables we can run. If not, either
2121# the compiler is broken, or we cross compile.
2122echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2123echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2124# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2125# If not cross compiling, check that we can run a simple program.
2126if test "$cross_compiling" != yes; then
2127 if { ac_try='./$ac_file'
2128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 (eval $ac_try) 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }; }; then
2133 cross_compiling=no
2134 else
2135 if test "$cross_compiling" = maybe; then
2136 cross_compiling=yes
2137 else
2138 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002139If you meant to cross compile, use \`--host'.
2140See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002141echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002142If you meant to cross compile, use \`--host'.
2143See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002144 { (exit 1); exit 1; }; }
2145 fi
2146 fi
2147fi
2148echo "$as_me:$LINENO: result: yes" >&5
2149echo "${ECHO_T}yes" >&6
2150
John Criswell0c38eaf2003-09-10 15:17:25 +00002151rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002152ac_clean_files=$ac_clean_files_save
2153# Check the compiler produces executables we can run. If not, either
2154# the compiler is broken, or we cross compile.
2155echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2156echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2157echo "$as_me:$LINENO: result: $cross_compiling" >&5
2158echo "${ECHO_T}$cross_compiling" >&6
2159
2160echo "$as_me:$LINENO: checking for suffix of executables" >&5
2161echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2163 (eval $ac_link) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; then
2167 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2168# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2169# work properly (i.e., refer to `conftest.exe'), while it won't with
2170# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002171for ac_file in conftest.exe conftest conftest.*; do
2172 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002173 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002175 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002176 export ac_cv_exeext
2177 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002178 * ) break;;
2179 esac
2180done
2181else
John Criswell0c38eaf2003-09-10 15:17:25 +00002182 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2183See \`config.log' for more details." >&5
2184echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2185See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002186 { (exit 1); exit 1; }; }
2187fi
2188
2189rm -f conftest$ac_cv_exeext
2190echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2191echo "${ECHO_T}$ac_cv_exeext" >&6
2192
2193rm -f conftest.$ac_ext
2194EXEEXT=$ac_cv_exeext
2195ac_exeext=$EXEEXT
2196echo "$as_me:$LINENO: checking for suffix of object files" >&5
2197echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2198if test "${ac_cv_objext+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
2201 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002202/* confdefs.h. */
2203_ACEOF
2204cat confdefs.h >>conftest.$ac_ext
2205cat >>conftest.$ac_ext <<_ACEOF
2206/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002207
John Criswell7a73b802003-06-30 21:59:07 +00002208int
2209main ()
2210{
2211
2212 ;
2213 return 0;
2214}
2215_ACEOF
2216rm -f conftest.o conftest.obj
2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; then
2222 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2223 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2226 break;;
2227 esac
2228done
2229else
2230 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2234See \`config.log' for more details." >&5
2235echo "$as_me: error: cannot compute suffix of object files: cannot compile
2236See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002237 { (exit 1); exit 1; }; }
2238fi
2239
2240rm -f conftest.$ac_cv_objext conftest.$ac_ext
2241fi
2242echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243echo "${ECHO_T}$ac_cv_objext" >&6
2244OBJEXT=$ac_cv_objext
2245ac_objext=$OBJEXT
2246echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2247echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2248if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002252/* confdefs.h. */
2253_ACEOF
2254cat confdefs.h >>conftest.$ac_ext
2255cat >>conftest.$ac_ext <<_ACEOF
2256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002257
John Criswell7a73b802003-06-30 21:59:07 +00002258int
2259main ()
2260{
2261#ifndef __GNUC__
2262 choke me
2263#endif
2264
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269rm -f conftest.$ac_objext
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002271 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002272 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002273 grep -v '^ *+' conftest.er1 >conftest.err
2274 rm -f conftest.er1
2275 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002278 { ac_try='test -z "$ac_cxx_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 ac_compiler_gnu=yes
2292else
2293 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002294sed 's/^/| /' conftest.$ac_ext >&5
2295
John Criswell7a73b802003-06-30 21:59:07 +00002296ac_compiler_gnu=no
2297fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002299ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2300
2301fi
2302echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2303echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2304GXX=`test $ac_compiler_gnu = yes && echo yes`
2305ac_test_CXXFLAGS=${CXXFLAGS+set}
2306ac_save_CXXFLAGS=$CXXFLAGS
2307CXXFLAGS="-g"
2308echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2309echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2310if test "${ac_cv_prog_cxx_g+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002314/* confdefs.h. */
2315_ACEOF
2316cat confdefs.h >>conftest.$ac_ext
2317cat >>conftest.$ac_ext <<_ACEOF
2318/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002319
John Criswell7a73b802003-06-30 21:59:07 +00002320int
2321main ()
2322{
2323
2324 ;
2325 return 0;
2326}
2327_ACEOF
2328rm -f conftest.$ac_objext
2329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002330 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002331 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002332 grep -v '^ *+' conftest.er1 >conftest.err
2333 rm -f conftest.er1
2334 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002337 { ac_try='test -z "$ac_cxx_werror_flag"
2338 || test ! -s conftest.err'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 (eval $ac_try) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 ac_cv_prog_cxx_g=yes
2351else
2352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002353sed 's/^/| /' conftest.$ac_ext >&5
2354
John Criswell7a73b802003-06-30 21:59:07 +00002355ac_cv_prog_cxx_g=no
2356fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002358fi
2359echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2360echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2361if test "$ac_test_CXXFLAGS" = set; then
2362 CXXFLAGS=$ac_save_CXXFLAGS
2363elif test $ac_cv_prog_cxx_g = yes; then
2364 if test "$GXX" = yes; then
2365 CXXFLAGS="-g -O2"
2366 else
2367 CXXFLAGS="-g"
2368 fi
2369else
2370 if test "$GXX" = yes; then
2371 CXXFLAGS="-O2"
2372 else
2373 CXXFLAGS=
2374 fi
2375fi
2376for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002377 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002378 'extern "C" void std::exit (int) throw (); using std::exit;' \
2379 'extern "C" void std::exit (int); using std::exit;' \
2380 'extern "C" void exit (int) throw ();' \
2381 'extern "C" void exit (int);' \
2382 'void exit (int);'
2383do
2384 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002385/* confdefs.h. */
2386_ACEOF
2387cat confdefs.h >>conftest.$ac_ext
2388cat >>conftest.$ac_ext <<_ACEOF
2389/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002390$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002391#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002392int
2393main ()
2394{
2395exit (42);
2396 ;
2397 return 0;
2398}
2399_ACEOF
2400rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002402 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002409 { ac_try='test -z "$ac_cxx_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 :
2423else
2424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002425sed 's/^/| /' conftest.$ac_ext >&5
2426
John Criswell7a73b802003-06-30 21:59:07 +00002427continue
2428fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002430 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002431/* confdefs.h. */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
2435/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002436$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002437int
2438main ()
2439{
2440exit (42);
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002447 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002454 { ac_try='test -z "$ac_cxx_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 break
2468else
2469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002470sed 's/^/| /' conftest.$ac_ext >&5
2471
John Criswell7a73b802003-06-30 21:59:07 +00002472fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002474done
2475rm -f conftest*
2476if test -n "$ac_declaration"; then
2477 echo '#ifdef __cplusplus' >>confdefs.h
2478 echo $ac_declaration >>confdefs.h
2479 echo '#endif' >>confdefs.h
2480fi
2481
2482ac_ext=c
2483ac_cpp='$CPP $CPPFLAGS'
2484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487
2488ac_ext=c
2489ac_cpp='$CPP $CPPFLAGS'
2490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493if test -n "$ac_tool_prefix"; then
2494 for ac_prog in gcc
2495 do
2496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2497set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2498echo "$as_me:$LINENO: checking for $ac_word" >&5
2499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2500if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517done
2518done
2519
2520fi
2521fi
2522CC=$ac_cv_prog_CC
2523if test -n "$CC"; then
2524 echo "$as_me:$LINENO: result: $CC" >&5
2525echo "${ECHO_T}$CC" >&6
2526else
2527 echo "$as_me:$LINENO: result: no" >&5
2528echo "${ECHO_T}no" >&6
2529fi
2530
2531 test -n "$CC" && break
2532 done
2533fi
2534if test -z "$CC"; then
2535 ac_ct_CC=$CC
2536 for ac_prog in gcc
2537do
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539set dummy $ac_prog; ac_word=$2
2540echo "$as_me:$LINENO: checking for $ac_word" >&5
2541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545 if test -n "$ac_ct_CC"; then
2546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2547else
2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_ac_ct_CC="$ac_prog"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559done
2560done
2561
2562fi
2563fi
2564ac_ct_CC=$ac_cv_prog_ac_ct_CC
2565if test -n "$ac_ct_CC"; then
2566 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2567echo "${ECHO_T}$ac_ct_CC" >&6
2568else
2569 echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6
2571fi
2572
2573 test -n "$ac_ct_CC" && break
2574done
2575
2576 CC=$ac_ct_CC
2577fi
2578
2579
John Criswell0c38eaf2003-09-10 15:17:25 +00002580test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2581See \`config.log' for more details." >&5
2582echo "$as_me: error: no acceptable C compiler found in \$PATH
2583See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002584 { (exit 1); exit 1; }; }
2585
2586# Provide some information about the compiler.
2587echo "$as_me:$LINENO:" \
2588 "checking for C compiler version" >&5
2589ac_compiler=`set X $ac_compile; echo $2`
2590{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2591 (eval $ac_compiler --version </dev/null >&5) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2596 (eval $ac_compiler -v </dev/null >&5) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }
2600{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2601 (eval $ac_compiler -V </dev/null >&5) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
2605
2606echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2607echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2608if test "${ac_cv_c_compiler_gnu+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610else
2611 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002612/* confdefs.h. */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002617
John Criswell7a73b802003-06-30 21:59:07 +00002618int
2619main ()
2620{
2621#ifndef __GNUC__
2622 choke me
2623#endif
2624
2625 ;
2626 return 0;
2627}
2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002631 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002632 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002633 grep -v '^ *+' conftest.er1 >conftest.err
2634 rm -f conftest.er1
2635 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002638 { ac_try='test -z "$ac_c_werror_flag"
2639 || test ! -s conftest.err'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; } &&
2645 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2651 ac_compiler_gnu=yes
2652else
2653 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002654sed 's/^/| /' conftest.$ac_ext >&5
2655
John Criswell7a73b802003-06-30 21:59:07 +00002656ac_compiler_gnu=no
2657fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002659ac_cv_c_compiler_gnu=$ac_compiler_gnu
2660
2661fi
2662echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2664GCC=`test $ac_compiler_gnu = yes && echo yes`
2665ac_test_CFLAGS=${CFLAGS+set}
2666ac_save_CFLAGS=$CFLAGS
2667CFLAGS="-g"
2668echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2669echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2670if test "${ac_cv_prog_cc_g+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002674/* confdefs.h. */
2675_ACEOF
2676cat confdefs.h >>conftest.$ac_ext
2677cat >>conftest.$ac_ext <<_ACEOF
2678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002679
John Criswell7a73b802003-06-30 21:59:07 +00002680int
2681main ()
2682{
2683
2684 ;
2685 return 0;
2686}
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002690 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002691 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002692 grep -v '^ *+' conftest.er1 >conftest.err
2693 rm -f conftest.er1
2694 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002697 { ac_try='test -z "$ac_c_werror_flag"
2698 || test ! -s conftest.err'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 (eval $ac_try) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; } &&
2704 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 (eval $ac_try) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2710 ac_cv_prog_cc_g=yes
2711else
2712 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002713sed 's/^/| /' conftest.$ac_ext >&5
2714
John Criswell7a73b802003-06-30 21:59:07 +00002715ac_cv_prog_cc_g=no
2716fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002718fi
2719echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2720echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2721if test "$ac_test_CFLAGS" = set; then
2722 CFLAGS=$ac_save_CFLAGS
2723elif test $ac_cv_prog_cc_g = yes; then
2724 if test "$GCC" = yes; then
2725 CFLAGS="-g -O2"
2726 else
2727 CFLAGS="-g"
2728 fi
2729else
2730 if test "$GCC" = yes; then
2731 CFLAGS="-O2"
2732 else
2733 CFLAGS=
2734 fi
2735fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002736echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2737echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2738if test "${ac_cv_prog_cc_stdc+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741 ac_cv_prog_cc_stdc=no
2742ac_save_CC=$CC
2743cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
2749#include <stdarg.h>
2750#include <stdio.h>
2751#include <sys/types.h>
2752#include <sys/stat.h>
2753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2754struct buf { int x; };
2755FILE * (*rcsopen) (struct buf *, struct stat *, int);
2756static char *e (p, i)
2757 char **p;
2758 int i;
2759{
2760 return p[i];
2761}
2762static char *f (char * (*g) (char **, int), char **p, ...)
2763{
2764 char *s;
2765 va_list v;
2766 va_start (v,p);
2767 s = g (p, va_arg (v,int));
2768 va_end (v);
2769 return s;
2770}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002771
2772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2773 function prototypes and stuff, but not '\xHH' hex character constants.
2774 These don't provoke an error unfortunately, instead are silently treated
2775 as 'x'. The following induces an error, until -std1 is added to get
2776 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2777 array size at least. It's necessary to write '\x00'==0 to get something
2778 that's true only with -std1. */
2779int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2780
John Criswell0c38eaf2003-09-10 15:17:25 +00002781int test (int i, double x);
2782struct s1 {int (*f) (int a);};
2783struct s2 {int (*f) (double a);};
2784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2785int argc;
2786char **argv;
2787int
2788main ()
2789{
2790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2791 ;
2792 return 0;
2793}
2794_ACEOF
2795# Don't try gcc -ansi; that turns off useful extensions and
2796# breaks some systems' header files.
2797# AIX -qlanglvl=ansi
2798# Ultrix and OSF/1 -std1
2799# HP-UX 10.20 and later -Ae
2800# HP-UX older versions -Aa -D_HPUX_SOURCE
2801# SVR4 -Xc -D__EXTENSIONS__
2802for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2803do
2804 CC="$ac_save_CC $ac_arg"
2805 rm -f conftest.$ac_objext
2806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002807 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002809 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1
2811 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002814 { ac_try='test -z "$ac_c_werror_flag"
2815 || test ! -s conftest.err'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_stdc=$ac_arg
2828break
2829else
2830 echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002834rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002835done
2836rm -f conftest.$ac_ext conftest.$ac_objext
2837CC=$ac_save_CC
2838
2839fi
2840
2841case "x$ac_cv_prog_cc_stdc" in
2842 x|xno)
2843 echo "$as_me:$LINENO: result: none needed" >&5
2844echo "${ECHO_T}none needed" >&6 ;;
2845 *)
2846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2847echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2848 CC="$CC $ac_cv_prog_cc_stdc" ;;
2849esac
2850
John Criswell7a73b802003-06-30 21:59:07 +00002851# Some people use a C++ compiler to compile C. Since we use `exit',
2852# in C++ we need to declare it. In case someone uses the same compiler
2853# for both compiling C and C++ we need to have the C++ compiler decide
2854# the declaration of exit, since it's the most demanding environment.
2855cat >conftest.$ac_ext <<_ACEOF
2856#ifndef __cplusplus
2857 choke me
2858#endif
2859_ACEOF
2860rm -f conftest.$ac_objext
2861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002862 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002869 { ac_try='test -z "$ac_c_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002883 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002884 'extern "C" void std::exit (int) throw (); using std::exit;' \
2885 'extern "C" void std::exit (int); using std::exit;' \
2886 'extern "C" void exit (int) throw ();' \
2887 'extern "C" void exit (int);' \
2888 'void exit (int);'
2889do
2890 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002891/* confdefs.h. */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002896$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002897#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002898int
2899main ()
2900{
2901exit (42);
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext
2907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002908 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002909 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002910 grep -v '^ *+' conftest.er1 >conftest.err
2911 rm -f conftest.er1
2912 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002915 { ac_try='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 (eval $ac_try) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 :
2929else
2930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002931sed 's/^/| /' conftest.$ac_ext >&5
2932
John Criswell7a73b802003-06-30 21:59:07 +00002933continue
2934fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002936 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002937/* confdefs.h. */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002942$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002943int
2944main ()
2945{
2946exit (42);
2947 ;
2948 return 0;
2949}
2950_ACEOF
2951rm -f conftest.$ac_objext
2952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002953 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002954 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002960 { ac_try='test -z "$ac_c_werror_flag"
2961 || test ! -s conftest.err'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 (eval $ac_try) 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 (eval $ac_try) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2973 break
2974else
2975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002976sed 's/^/| /' conftest.$ac_ext >&5
2977
John Criswell7a73b802003-06-30 21:59:07 +00002978fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002980done
2981rm -f conftest*
2982if test -n "$ac_declaration"; then
2983 echo '#ifdef __cplusplus' >>confdefs.h
2984 echo $ac_declaration >>confdefs.h
2985 echo '#endif' >>confdefs.h
2986fi
2987
2988else
2989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002990sed 's/^/| /' conftest.$ac_ext >&5
2991
John Criswell7a73b802003-06-30 21:59:07 +00002992fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002994ac_ext=c
2995ac_cpp='$CPP $CPPFLAGS'
2996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999
Reid Spencer2706f8c2004-09-19 23:53:36 +00003000if test "$GCC" != "yes"
3001then
3002 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3003echo "$as_me: error: gcc required but not found" >&2;}
3004 { (exit 1); exit 1; }; }
3005fi
John Criswell7a73b802003-06-30 21:59:07 +00003006ac_ext=c
3007ac_cpp='$CPP $CPPFLAGS'
3008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3012echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3013# On Suns, sometimes $CPP names a directory.
3014if test -n "$CPP" && test -d "$CPP"; then
3015 CPP=
3016fi
3017if test -z "$CPP"; then
3018 if test "${ac_cv_prog_CPP+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021 # Double quotes because CPP needs to be expanded
3022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3023 do
3024 ac_preproc_ok=false
3025for ac_c_preproc_warn_flag in '' yes
3026do
3027 # Use a header file that comes with gcc, so configuring glibc
3028 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3030 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003031 # On the NeXT, cc -E runs the code through the compiler's parser,
3032 # not just through cpp. "Syntax error" is here to catch this case.
3033 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003034/* confdefs.h. */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h. */
3039#ifdef __STDC__
3040# include <limits.h>
3041#else
3042# include <assert.h>
3043#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003044 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003045_ACEOF
3046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003049 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003050 rm -f conftest.er1
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } >/dev/null; then
3054 if test -s conftest.err; then
3055 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003057 else
3058 ac_cpp_err=
3059 fi
3060else
3061 ac_cpp_err=yes
3062fi
3063if test -z "$ac_cpp_err"; then
3064 :
3065else
3066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003067sed 's/^/| /' conftest.$ac_ext >&5
3068
John Criswell7a73b802003-06-30 21:59:07 +00003069 # Broken: fails on valid input.
3070continue
3071fi
3072rm -f conftest.err conftest.$ac_ext
3073
3074 # OK, works on sane cases. Now check whether non-existent headers
3075 # can be detected and how.
3076 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003077/* confdefs.h. */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003082#include <ac_nonexistent.h>
3083_ACEOF
3084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003087 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003088 rm -f conftest.er1
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } >/dev/null; then
3092 if test -s conftest.err; then
3093 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003095 else
3096 ac_cpp_err=
3097 fi
3098else
3099 ac_cpp_err=yes
3100fi
3101if test -z "$ac_cpp_err"; then
3102 # Broken: success on invalid input.
3103continue
3104else
3105 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003106sed 's/^/| /' conftest.$ac_ext >&5
3107
John Criswell7a73b802003-06-30 21:59:07 +00003108 # Passes both tests.
3109ac_preproc_ok=:
3110break
3111fi
3112rm -f conftest.err conftest.$ac_ext
3113
3114done
3115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3116rm -f conftest.err conftest.$ac_ext
3117if $ac_preproc_ok; then
3118 break
3119fi
3120
3121 done
3122 ac_cv_prog_CPP=$CPP
3123
3124fi
3125 CPP=$ac_cv_prog_CPP
3126else
3127 ac_cv_prog_CPP=$CPP
3128fi
3129echo "$as_me:$LINENO: result: $CPP" >&5
3130echo "${ECHO_T}$CPP" >&6
3131ac_preproc_ok=false
3132for ac_c_preproc_warn_flag in '' yes
3133do
3134 # Use a header file that comes with gcc, so configuring glibc
3135 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3137 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003138 # On the NeXT, cc -E runs the code through the compiler's parser,
3139 # not just through cpp. "Syntax error" is here to catch this case.
3140 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
3146#ifdef __STDC__
3147# include <limits.h>
3148#else
3149# include <assert.h>
3150#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003151 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003152_ACEOF
3153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3155 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003156 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003157 rm -f conftest.er1
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } >/dev/null; then
3161 if test -s conftest.err; then
3162 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003164 else
3165 ac_cpp_err=
3166 fi
3167else
3168 ac_cpp_err=yes
3169fi
3170if test -z "$ac_cpp_err"; then
3171 :
3172else
3173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003174sed 's/^/| /' conftest.$ac_ext >&5
3175
John Criswell7a73b802003-06-30 21:59:07 +00003176 # Broken: fails on valid input.
3177continue
3178fi
3179rm -f conftest.err conftest.$ac_ext
3180
3181 # OK, works on sane cases. Now check whether non-existent headers
3182 # can be detected and how.
3183 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003184/* confdefs.h. */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003189#include <ac_nonexistent.h>
3190_ACEOF
3191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003194 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null; then
3199 if test -s conftest.err; then
3200 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003202 else
3203 ac_cpp_err=
3204 fi
3205else
3206 ac_cpp_err=yes
3207fi
3208if test -z "$ac_cpp_err"; then
3209 # Broken: success on invalid input.
3210continue
3211else
3212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003213sed 's/^/| /' conftest.$ac_ext >&5
3214
John Criswell7a73b802003-06-30 21:59:07 +00003215 # Passes both tests.
3216ac_preproc_ok=:
3217break
3218fi
3219rm -f conftest.err conftest.$ac_ext
3220
3221done
3222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223rm -f conftest.err conftest.$ac_ext
3224if $ac_preproc_ok; then
3225 :
3226else
John Criswell0c38eaf2003-09-10 15:17:25 +00003227 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3228See \`config.log' for more details." >&5
3229echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3230See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003231 { (exit 1); exit 1; }; }
3232fi
3233
3234ac_ext=c
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
John Criswell7a73b802003-06-30 21:59:07 +00003240if test "$GXX" != "yes"
3241then
3242 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3243echo "$as_me: error: g++ required but not found" >&2;}
3244 { (exit 1); exit 1; }; }
3245fi
3246
John Criswellde00db22003-08-25 16:49:54 +00003247gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3248if test "$gccmajor" -lt "3"
3249then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003250 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3251echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003252 { (exit 1); exit 1; }; }
3253fi
3254
John Criswell7a73b802003-06-30 21:59:07 +00003255 echo "$as_me:$LINENO: checking for GNU make" >&5
3256echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3257if test "${_cv_gnu_make_command+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260 _cv_gnu_make_command='' ;
3261 for a in "$MAKE" make gmake gnumake ; do
3262 if test -z "$a" ; then continue ; fi ;
3263 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3264 _cv_gnu_make_command=$a ;
3265 break;
3266 fi
3267 done ;
3268
3269fi
3270echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3271echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3272 if test "x$_cv_gnu_make_command" != "x" ; then
3273 ifGNUmake='' ;
3274 else
3275 ifGNUmake='#' ;
3276 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3277echo "${ECHO_T}\"Not found\"" >&6;
3278 fi
3279
3280
3281if test -z "$_cv_gnu_make_command"
3282then
3283 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3284echo "$as_me: error: GNU Make required but not found" >&2;}
3285 { (exit 1); exit 1; }; }
3286fi
3287
3288
3289echo "$as_me:$LINENO: checking " >&5
3290echo $ECHO_N "checking ... $ECHO_C" >&6
3291if test "${ac_cv_has_flex+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294 for ac_prog in flex lex
3295do
3296 # Extract the first word of "$ac_prog", so it can be a program name with args.
3297set dummy $ac_prog; ac_word=$2
3298echo "$as_me:$LINENO: checking for $ac_word" >&5
3299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300if test "${ac_cv_prog_LEX+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302else
3303 if test -n "$LEX"; then
3304 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3305else
3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307for as_dir in $PATH
3308do
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_LEX="$ac_prog"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3316 fi
3317done
3318done
3319
3320fi
3321fi
3322LEX=$ac_cv_prog_LEX
3323if test -n "$LEX"; then
3324 echo "$as_me:$LINENO: result: $LEX" >&5
3325echo "${ECHO_T}$LEX" >&6
3326else
3327 echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
3329fi
3330
3331 test -n "$LEX" && break
3332done
3333test -n "$LEX" || LEX=":"
3334
3335if test -z "$LEXLIB"
3336then
3337 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3338echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3339if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341else
3342 ac_check_lib_save_LIBS=$LIBS
3343LIBS="-lfl $LIBS"
3344cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003345/* confdefs.h. */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
3349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003350
3351/* Override any gcc2 internal prototype to avoid an error. */
3352#ifdef __cplusplus
3353extern "C"
3354#endif
3355/* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3357char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003358int
3359main ()
3360{
3361yywrap ();
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366rm -f conftest.$ac_objext conftest$ac_exeext
3367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003368 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003369 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003375 { 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_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003383 { (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 ac_cv_lib_fl_yywrap=yes
3389else
3390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003391sed 's/^/| /' conftest.$ac_ext >&5
3392
John Criswell7a73b802003-06-30 21:59:07 +00003393ac_cv_lib_fl_yywrap=no
3394fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003395rm -f conftest.err conftest.$ac_objext \
3396 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003397LIBS=$ac_check_lib_save_LIBS
3398fi
3399echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3400echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3401if test $ac_cv_lib_fl_yywrap = yes; then
3402 LEXLIB="-lfl"
3403else
3404 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3405echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3406if test "${ac_cv_lib_l_yywrap+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409 ac_check_lib_save_LIBS=$LIBS
3410LIBS="-ll $LIBS"
3411cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003412/* confdefs.h. */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003417
3418/* Override any gcc2 internal prototype to avoid an error. */
3419#ifdef __cplusplus
3420extern "C"
3421#endif
3422/* We use char because int might match the return type of a gcc2
3423 builtin and then its argument prototype would still apply. */
3424char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003425int
3426main ()
3427{
3428yywrap ();
3429 ;
3430 return 0;
3431}
3432_ACEOF
3433rm -f conftest.$ac_objext conftest$ac_exeext
3434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003435 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003436 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003442 { ac_try='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_cv_lib_l_yywrap=yes
3456else
3457 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003458sed 's/^/| /' conftest.$ac_ext >&5
3459
John Criswell7a73b802003-06-30 21:59:07 +00003460ac_cv_lib_l_yywrap=no
3461fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003462rm -f conftest.err conftest.$ac_objext \
3463 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003464LIBS=$ac_check_lib_save_LIBS
3465fi
3466echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3467echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3468if test $ac_cv_lib_l_yywrap = yes; then
3469 LEXLIB="-ll"
3470fi
3471
3472fi
3473
3474fi
3475
3476if test "x$LEX" != "x:"; then
3477 echo "$as_me:$LINENO: checking lex output file root" >&5
3478echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3479if test "${ac_cv_prog_lex_root+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482 # The minimal lex program is just a single line: %%. But some broken lexes
3483# (Solaris, I think it was) want two %% lines, so accommodate them.
3484cat >conftest.l <<_ACEOF
3485%%
3486%%
3487_ACEOF
3488{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3489 (eval $LEX conftest.l) 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }
3493if test -f lex.yy.c; then
3494 ac_cv_prog_lex_root=lex.yy
3495elif test -f lexyy.c; then
3496 ac_cv_prog_lex_root=lexyy
3497else
3498 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3499echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3500 { (exit 1); exit 1; }; }
3501fi
3502fi
3503echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3504echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3505rm -f conftest.l
3506LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3507
3508echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3509echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3510if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512else
3513 # POSIX says lex can declare yytext either as a pointer or an array; the
3514# default is implementation-dependent. Figure out which it is, since
3515# not all implementations provide the %pointer and %array declarations.
3516ac_cv_prog_lex_yytext_pointer=no
3517echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3518ac_save_LIBS=$LIBS
3519LIBS="$LIBS $LEXLIB"
3520cat >conftest.$ac_ext <<_ACEOF
3521`cat $LEX_OUTPUT_ROOT.c`
3522_ACEOF
3523rm -f conftest.$ac_objext conftest$ac_exeext
3524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003525 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003526 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_cv_prog_lex_yytext_pointer=yes
3546else
3547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003548sed 's/^/| /' conftest.$ac_ext >&5
3549
John Criswell7a73b802003-06-30 21:59:07 +00003550fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003551rm -f conftest.err conftest.$ac_objext \
3552 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003553LIBS=$ac_save_LIBS
3554rm -f "${LEX_OUTPUT_ROOT}.c"
3555
3556fi
3557echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3558echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3559if test $ac_cv_prog_lex_yytext_pointer = yes; then
3560
3561cat >>confdefs.h <<\_ACEOF
3562#define YYTEXT_POINTER 1
3563_ACEOF
3564
3565fi
3566
3567fi
3568
3569fi
3570echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3571echo "${ECHO_T}$ac_cv_has_flex" >&6
3572if test "$LEX" != "flex"; then
3573 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3574echo "$as_me: error: flex not found but required" >&2;}
3575 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00003576else
3577 FLEX=flex
3578
John Criswell7a73b802003-06-30 21:59:07 +00003579fi
3580
3581echo "$as_me:$LINENO: checking " >&5
3582echo $ECHO_N "checking ... $ECHO_C" >&6
3583if test "${ac_cv_has_bison+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586 for ac_prog in 'bison -y' byacc
3587do
3588 # Extract the first word of "$ac_prog", so it can be a program name with args.
3589set dummy $ac_prog; ac_word=$2
3590echo "$as_me:$LINENO: checking for $ac_word" >&5
3591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592if test "${ac_cv_prog_YACC+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595 if test -n "$YACC"; then
3596 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3597else
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_YACC="$ac_prog"
3606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609done
3610done
3611
3612fi
3613fi
3614YACC=$ac_cv_prog_YACC
3615if test -n "$YACC"; then
3616 echo "$as_me:$LINENO: result: $YACC" >&5
3617echo "${ECHO_T}$YACC" >&6
3618else
3619 echo "$as_me:$LINENO: result: no" >&5
3620echo "${ECHO_T}no" >&6
3621fi
3622
3623 test -n "$YACC" && break
3624done
3625test -n "$YACC" || YACC="yacc"
3626
3627
3628fi
3629echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3630echo "${ECHO_T}$ac_cv_has_bison" >&6
3631if test "$YACC" != "bison -y"; then
3632 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3633echo "$as_me: error: bison not found but required" >&2;}
3634 { (exit 1); exit 1; }; }
3635else
Brian Gaeke12810632004-01-13 06:52:10 +00003636 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003637
3638fi
3639
John Criswell7a73b802003-06-30 21:59:07 +00003640# Check whether --enable-shared or --disable-shared was given.
3641if test "${enable_shared+set}" = set; then
3642 enableval="$enable_shared"
3643 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003644 case $enableval in
3645 yes) enable_shared=yes ;;
3646 no) enable_shared=no ;;
3647 *)
3648 enable_shared=no
3649 # Look at the argument we got. We use all the common list separators.
3650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3651 for pkg in $enableval; do
3652 IFS="$lt_save_ifs"
3653 if test "X$pkg" = "X$p"; then
3654 enable_shared=yes
3655 fi
3656 done
3657 IFS="$lt_save_ifs"
3658 ;;
3659 esac
John Criswell7a73b802003-06-30 21:59:07 +00003660else
3661 enable_shared=yes
3662fi;
John Criswell47fdd832003-07-14 16:52:07 +00003663
John Criswell7a73b802003-06-30 21:59:07 +00003664# Check whether --enable-static or --disable-static was given.
3665if test "${enable_static+set}" = set; then
3666 enableval="$enable_static"
3667 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003668 case $enableval in
3669 yes) enable_static=yes ;;
3670 no) enable_static=no ;;
3671 *)
3672 enable_static=no
3673 # Look at the argument we got. We use all the common list separators.
3674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3675 for pkg in $enableval; do
3676 IFS="$lt_save_ifs"
3677 if test "X$pkg" = "X$p"; then
3678 enable_static=yes
3679 fi
3680 done
3681 IFS="$lt_save_ifs"
3682 ;;
3683 esac
John Criswell7a73b802003-06-30 21:59:07 +00003684else
3685 enable_static=yes
3686fi;
John Criswell47fdd832003-07-14 16:52:07 +00003687
John Criswell7a73b802003-06-30 21:59:07 +00003688# Check whether --enable-fast-install or --disable-fast-install was given.
3689if test "${enable_fast_install+set}" = set; then
3690 enableval="$enable_fast_install"
3691 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003692 case $enableval in
3693 yes) enable_fast_install=yes ;;
3694 no) enable_fast_install=no ;;
3695 *)
3696 enable_fast_install=no
3697 # Look at the argument we got. We use all the common list separators.
3698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3699 for pkg in $enableval; do
3700 IFS="$lt_save_ifs"
3701 if test "X$pkg" = "X$p"; then
3702 enable_fast_install=yes
3703 fi
3704 done
3705 IFS="$lt_save_ifs"
3706 ;;
3707 esac
John Criswell7a73b802003-06-30 21:59:07 +00003708else
3709 enable_fast_install=yes
3710fi;
John Criswell47fdd832003-07-14 16:52:07 +00003711
3712echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3713echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3714if test "${lt_cv_path_SED+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717 # Loop through the user's path and test for sed and gsed.
3718# Then use that list of sed's as ones to test for truncation.
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for lt_ac_prog in sed gsed; do
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3727 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3728 fi
3729 done
3730 done
3731done
3732lt_ac_max=0
3733lt_ac_count=0
3734# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3735# along with /bin/sed that truncates output.
3736for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3737 test ! -f $lt_ac_sed && break
3738 cat /dev/null > conftest.in
3739 lt_ac_count=0
3740 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3741 # Check for GNU sed and select it if it is found.
3742 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3743 lt_cv_path_SED=$lt_ac_sed
3744 break
3745 fi
3746 while true; do
3747 cat conftest.in conftest.in >conftest.tmp
3748 mv conftest.tmp conftest.in
3749 cp conftest.in conftest.nl
3750 echo >>conftest.nl
3751 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3752 cmp -s conftest.out conftest.nl || break
3753 # 10000 chars as input seems more than enough
3754 test $lt_ac_count -gt 10 && break
3755 lt_ac_count=`expr $lt_ac_count + 1`
3756 if test $lt_ac_count -gt $lt_ac_max; then
3757 lt_ac_max=$lt_ac_count
3758 lt_cv_path_SED=$lt_ac_sed
3759 fi
3760 done
3761done
John Criswell47fdd832003-07-14 16:52:07 +00003762
John Criswell7a73b802003-06-30 21:59:07 +00003763fi
3764
Reid Spencer2706f8c2004-09-19 23:53:36 +00003765SED=$lt_cv_path_SED
John Criswell47fdd832003-07-14 16:52:07 +00003766echo "$as_me:$LINENO: result: $SED" >&5
3767echo "${ECHO_T}$SED" >&6
3768
3769echo "$as_me:$LINENO: checking for egrep" >&5
3770echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3771if test "${ac_cv_prog_egrep+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
3774 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3775 then ac_cv_prog_egrep='grep -E'
3776 else ac_cv_prog_egrep='egrep'
3777 fi
3778fi
3779echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3780echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3781 EGREP=$ac_cv_prog_egrep
3782
3783
John Criswell7a73b802003-06-30 21:59:07 +00003784
3785# Check whether --with-gnu-ld or --without-gnu-ld was given.
3786if test "${with_gnu_ld+set}" = set; then
3787 withval="$with_gnu_ld"
3788 test "$withval" = no || with_gnu_ld=yes
3789else
3790 with_gnu_ld=no
3791fi;
3792ac_prog=ld
3793if test "$GCC" = yes; then
3794 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003795 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3796echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003797 case $host in
3798 *-*-mingw*)
3799 # gcc leaves a trailing carriage return which upsets mingw
3800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3801 *)
3802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3803 esac
3804 case $ac_prog in
3805 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003806 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003807 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00003808 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00003809 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003810 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003811 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003812 done
3813 test -z "$LD" && LD="$ac_prog"
3814 ;;
3815 "")
3816 # If it fails, then pretend we aren't using GCC.
3817 ac_prog=ld
3818 ;;
3819 *)
3820 # If it is relative, then search for the first ld in PATH.
3821 with_gnu_ld=unknown
3822 ;;
3823 esac
3824elif test "$with_gnu_ld" = yes; then
3825 echo "$as_me:$LINENO: checking for GNU ld" >&5
3826echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3827else
3828 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3829echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3830fi
3831if test "${lt_cv_path_LD+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003836 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003837 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003838 test -z "$ac_dir" && ac_dir=.
3839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3840 lt_cv_path_LD="$ac_dir/$ac_prog"
3841 # Check to see if the program is GNU ld. I'd rather use --version,
3842 # but apparently some GNU ld's only accept -v.
3843 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3845 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003846 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003847 ;;
3848 *)
John Criswell7a73b802003-06-30 21:59:07 +00003849 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003850 ;;
3851 esac
John Criswell7a73b802003-06-30 21:59:07 +00003852 fi
3853 done
John Criswell47fdd832003-07-14 16:52:07 +00003854 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003855else
3856 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3857fi
3858fi
3859
3860LD="$lt_cv_path_LD"
3861if test -n "$LD"; then
3862 echo "$as_me:$LINENO: result: $LD" >&5
3863echo "${ECHO_T}$LD" >&6
3864else
3865 echo "$as_me:$LINENO: result: no" >&5
3866echo "${ECHO_T}no" >&6
3867fi
3868test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3869echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3870 { (exit 1); exit 1; }; }
3871echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3872echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3873if test "${lt_cv_prog_gnu_ld+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00003877case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00003878*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003879 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003880 ;;
3881*)
John Criswell7a73b802003-06-30 21:59:07 +00003882 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003883 ;;
3884esac
John Criswell7a73b802003-06-30 21:59:07 +00003885fi
3886echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3887echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3888with_gnu_ld=$lt_cv_prog_gnu_ld
3889
3890
3891echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3892echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3893if test "${lt_cv_ld_reload_flag+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896 lt_cv_ld_reload_flag='-r'
3897fi
3898echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3899echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3900reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003901case $reload_flag in
3902"" | " "*) ;;
3903*) reload_flag=" $reload_flag" ;;
3904esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00003905reload_cmds='$LD$reload_flag -o $output$reload_objs'
3906case $host_os in
3907 darwin*)
3908 if test "$GCC" = yes; then
3909 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3910 else
3911 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3912 fi
3913 ;;
3914esac
John Criswell7a73b802003-06-30 21:59:07 +00003915
3916echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3917echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3918if test "${lt_cv_path_NM+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
3921 if test -n "$NM"; then
3922 # Let the user override the test.
3923 lt_cv_path_NM="$NM"
3924else
John Criswell47fdd832003-07-14 16:52:07 +00003925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003926 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003927 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003928 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003929 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3930 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003931 # Check to see if the nm accepts a BSD-compat flag.
3932 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3933 # nm: unknown option "B" ignored
3934 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003935 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3936 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003937 lt_cv_path_NM="$tmp_nm -B"
3938 break
John Criswell47fdd832003-07-14 16:52:07 +00003939 ;;
3940 *)
3941 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3942 */dev/null*)
3943 lt_cv_path_NM="$tmp_nm -p"
3944 break
3945 ;;
3946 *)
3947 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3948 continue # so that we can try to find one that supports BSD flags
3949 ;;
3950 esac
3951 esac
John Criswell7a73b802003-06-30 21:59:07 +00003952 fi
3953 done
John Criswell47fdd832003-07-14 16:52:07 +00003954 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003955 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3956fi
3957fi
John Criswell47fdd832003-07-14 16:52:07 +00003958echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3959echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003960NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003961
3962echo "$as_me:$LINENO: checking whether ln -s works" >&5
3963echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3964LN_S=$as_ln_s
3965if test "$LN_S" = "ln -s"; then
3966 echo "$as_me:$LINENO: result: yes" >&5
3967echo "${ECHO_T}yes" >&6
3968else
3969 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3970echo "${ECHO_T}no, using $LN_S" >&6
3971fi
3972
John Criswell47fdd832003-07-14 16:52:07 +00003973echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3974echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003975if test "${lt_cv_deplibs_check_method+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978 lt_cv_file_magic_cmd='$MAGIC_CMD'
3979lt_cv_file_magic_test_file=
3980lt_cv_deplibs_check_method='unknown'
3981# Need to set the preceding variable on all platforms that support
3982# interlibrary dependencies.
3983# 'none' -- dependencies not supported.
3984# `unknown' -- same as none, but documents that we really don't know.
3985# 'pass_all' -- all dependencies passed with no checks.
3986# 'test_compile' -- check by making test program.
3987# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003988# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003989# If you have `file' or equivalent on your system and you're not sure
3990# whether `pass_all' will *always* work, you probably want this one.
3991
3992case $host_os in
3993aix4* | aix5*)
3994 lt_cv_deplibs_check_method=pass_all
3995 ;;
3996
3997beos*)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000
Reid Spencer2706f8c2004-09-19 23:53:36 +00004001bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00004002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4003 lt_cv_file_magic_cmd='/usr/bin/file -L'
4004 lt_cv_file_magic_test_file=/shlib/libc.so
4005 ;;
4006
Reid Spencer2706f8c2004-09-19 23:53:36 +00004007cygwin*)
4008 # func_win32_libid is a shell function defined in ltmain.sh
John Criswell47fdd832003-07-14 16:52:07 +00004009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Reid Spencer2706f8c2004-09-19 23:53:36 +00004010 lt_cv_file_magic_cmd='func_win32_libid'
4011 ;;
4012
4013mingw* | pw32*)
4014 # Base MSYS/MinGW do not provide the 'file' command needed by
4015 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4016 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4017 lt_cv_file_magic_cmd='$OBJDUMP -f'
John Criswell7a73b802003-06-30 21:59:07 +00004018 ;;
4019
4020darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004021 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004022 ;;
4023
Reid Spencer2706f8c2004-09-19 23:53:36 +00004024freebsd* | kfreebsd*-gnu)
John Criswell7a73b802003-06-30 21:59:07 +00004025 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4026 case $host_cpu in
4027 i*86 )
4028 # Not sure whether the presence of OpenBSD here was a mistake.
4029 # Let's accept both of them until this is cleared up.
4030 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4031 lt_cv_file_magic_cmd=/usr/bin/file
4032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4033 ;;
4034 esac
4035 else
4036 lt_cv_deplibs_check_method=pass_all
4037 fi
4038 ;;
4039
4040gnu*)
4041 lt_cv_deplibs_check_method=pass_all
4042 ;;
4043
John Criswell47fdd832003-07-14 16:52:07 +00004044hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004045 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004046 case "$host_cpu" in
4047 ia64*)
4048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4049 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4050 ;;
4051 hppa*64*)
4052 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]'
4053 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4054 ;;
4055 *)
4056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4057 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4058 ;;
4059 esac
John Criswell7a73b802003-06-30 21:59:07 +00004060 ;;
4061
John Criswell47fdd832003-07-14 16:52:07 +00004062irix5* | irix6* | nonstopux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004063 case $LD in
4064 *-32|*"-32 ") libmagic=32-bit;;
4065 *-n32|*"-n32 ") libmagic=N32;;
4066 *-64|*"-64 ") libmagic=64-bit;;
4067 *) libmagic=never-match;;
John Criswell7a73b802003-06-30 21:59:07 +00004068 esac
John Criswell7a73b802003-06-30 21:59:07 +00004069 lt_cv_deplibs_check_method=pass_all
4070 ;;
4071
4072# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004073linux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004074 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004075 ;;
4076
4077netbsd*)
4078 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004080 else
John Criswell47fdd832003-07-14 16:52:07 +00004081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004082 fi
4083 ;;
4084
4085newos6*)
4086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4087 lt_cv_file_magic_cmd=/usr/bin/file
4088 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4089 ;;
4090
Reid Spencer2706f8c2004-09-19 23:53:36 +00004091nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00004092 lt_cv_deplibs_check_method=unknown
4093 ;;
4094
John Criswell7a73b802003-06-30 21:59:07 +00004095openbsd*)
John Criswell7a73b802003-06-30 21:59:07 +00004096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00004097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004098 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004100 fi
4101 ;;
4102
4103osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00004104 lt_cv_deplibs_check_method=pass_all
4105 ;;
4106
4107sco3.2v5*)
4108 lt_cv_deplibs_check_method=pass_all
4109 ;;
4110
4111solaris*)
4112 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004113 ;;
4114
John Criswell7a73b802003-06-30 21:59:07 +00004115sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4116 case $host_vendor in
4117 motorola)
4118 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]'
4119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4120 ;;
4121 ncr)
4122 lt_cv_deplibs_check_method=pass_all
4123 ;;
4124 sequent)
4125 lt_cv_file_magic_cmd='/bin/file'
4126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4127 ;;
4128 sni)
4129 lt_cv_file_magic_cmd='/bin/file'
4130 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4131 lt_cv_file_magic_test_file=/lib/libc.so
4132 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004133 siemens)
4134 lt_cv_deplibs_check_method=pass_all
4135 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004136 esac
4137 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004138
4139sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4140 lt_cv_deplibs_check_method=pass_all
4141 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004142esac
4143
4144fi
4145echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4146echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4147file_magic_cmd=$lt_cv_file_magic_cmd
4148deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004149test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004150
4151
4152
4153
John Criswell47fdd832003-07-14 16:52:07 +00004154# If no C compiler was specified, use CC.
4155LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004156
John Criswell47fdd832003-07-14 16:52:07 +00004157# Allow CC to be a program name with arguments.
4158compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004159
John Criswell47fdd832003-07-14 16:52:07 +00004160# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4161if test "${enable_libtool_lock+set}" = set; then
4162 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004163
John Criswell47fdd832003-07-14 16:52:07 +00004164fi;
4165test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004166
John Criswell47fdd832003-07-14 16:52:07 +00004167# Some flags need to be propagated to the compiler or linker for good
4168# libtool support.
4169case $host in
4170ia64-*-hpux*)
4171 # Find out which ABI we are using.
4172 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174 (eval $ac_compile) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004178 case `/usr/bin/file conftest.$ac_objext` in
4179 *ELF-32*)
4180 HPUX_IA64_MODE="32"
4181 ;;
4182 *ELF-64*)
4183 HPUX_IA64_MODE="64"
4184 ;;
4185 esac
4186 fi
4187 rm -rf conftest*
4188 ;;
4189*-*-irix6*)
4190 # Find out which ABI we are using.
John Criswelle96aa1c2004-10-28 13:35:00 +00004191 echo '#line 4191 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004196 (exit $ac_status); }; then
4197 if test "$lt_cv_prog_gnu_ld" = yes; then
4198 case `/usr/bin/file conftest.$ac_objext` in
4199 *32-bit*)
4200 LD="${LD-ld} -melf32bsmip"
4201 ;;
4202 *N32*)
4203 LD="${LD-ld} -melf32bmipn32"
4204 ;;
4205 *64-bit*)
4206 LD="${LD-ld} -melf64bmip"
4207 ;;
4208 esac
4209 else
4210 case `/usr/bin/file conftest.$ac_objext` in
4211 *32-bit*)
4212 LD="${LD-ld} -32"
4213 ;;
4214 *N32*)
4215 LD="${LD-ld} -n32"
4216 ;;
4217 *64-bit*)
4218 LD="${LD-ld} -64"
4219 ;;
4220 esac
4221 fi
4222 fi
4223 rm -rf conftest*
4224 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004225
John Criswell47fdd832003-07-14 16:52:07 +00004226x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4227 # Find out which ABI we are using.
4228 echo 'int i;' > conftest.$ac_ext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230 (eval $ac_compile) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; then
4234 case "`/usr/bin/file conftest.o`" in
4235 *32-bit*)
4236 case $host in
4237 x86_64-*linux*)
4238 LD="${LD-ld} -m elf_i386"
4239 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004240 ppc64-*linux*|powerpc64-*linux*)
John Criswell47fdd832003-07-14 16:52:07 +00004241 LD="${LD-ld} -m elf32ppclinux"
4242 ;;
4243 s390x-*linux*)
4244 LD="${LD-ld} -m elf_s390"
4245 ;;
4246 sparc64-*linux*)
4247 LD="${LD-ld} -m elf32_sparc"
4248 ;;
4249 esac
4250 ;;
4251 *64-bit*)
4252 case $host in
4253 x86_64-*linux*)
4254 LD="${LD-ld} -m elf_x86_64"
4255 ;;
4256 ppc*-*linux*|powerpc*-*linux*)
4257 LD="${LD-ld} -m elf64ppc"
4258 ;;
4259 s390*-*linux*)
4260 LD="${LD-ld} -m elf64_s390"
4261 ;;
4262 sparc*-*linux*)
4263 LD="${LD-ld} -m elf64_sparc"
4264 ;;
4265 esac
4266 ;;
4267 esac
4268 fi
4269 rm -rf conftest*
4270 ;;
4271
4272*-*-sco3.2v5*)
4273 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4274 SAVE_CFLAGS="$CFLAGS"
4275 CFLAGS="$CFLAGS -belf"
4276 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4277echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4278if test "${lt_cv_cc_needs_belf+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281 ac_ext=c
4282ac_cpp='$CPP $CPPFLAGS'
4283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286
4287 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004288/* confdefs.h. */
4289_ACEOF
4290cat confdefs.h >>conftest.$ac_ext
4291cat >>conftest.$ac_ext <<_ACEOF
4292/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004293
John Criswell47fdd832003-07-14 16:52:07 +00004294_ACEOF
4295rm -f conftest.$ac_objext conftest$ac_exeext
4296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004297 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004298 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004303 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004304 { ac_try='test -z "$ac_c_werror_flag"
4305 || test ! -s conftest.err'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004318else
John Criswell47fdd832003-07-14 16:52:07 +00004319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004320sed 's/^/| /' conftest.$ac_ext >&5
4321
John Criswell47fdd832003-07-14 16:52:07 +00004322lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004323fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004324rm -f conftest.err conftest.$ac_objext \
4325 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004326 ac_ext=c
4327ac_cpp='$CPP $CPPFLAGS'
4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
John Criswell7a73b802003-06-30 21:59:07 +00004332fi
John Criswell47fdd832003-07-14 16:52:07 +00004333echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4334echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4335 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4336 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4337 CFLAGS="$SAVE_CFLAGS"
4338 fi
4339 ;;
4340
4341esac
4342
4343need_locks="$enable_libtool_lock"
4344
John Criswell7a73b802003-06-30 21:59:07 +00004345
4346
4347echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4348echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4349if test "${ac_cv_header_stdc+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351else
4352 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004353/* confdefs.h. */
4354_ACEOF
4355cat confdefs.h >>conftest.$ac_ext
4356cat >>conftest.$ac_ext <<_ACEOF
4357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004358#include <stdlib.h>
4359#include <stdarg.h>
4360#include <string.h>
4361#include <float.h>
4362
John Criswell0c38eaf2003-09-10 15:17:25 +00004363int
4364main ()
4365{
4366
4367 ;
4368 return 0;
4369}
John Criswell7a73b802003-06-30 21:59:07 +00004370_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004371rm -f conftest.$ac_objext
4372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004373 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004374 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004379 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004380 { ac_try='test -z "$ac_c_werror_flag"
4381 || test ! -s conftest.err'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004393 ac_cv_header_stdc=yes
4394else
4395 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004396sed 's/^/| /' conftest.$ac_ext >&5
4397
4398ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004399fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004401
4402if test $ac_cv_header_stdc = yes; then
4403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4404 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004405/* confdefs.h. */
4406_ACEOF
4407cat confdefs.h >>conftest.$ac_ext
4408cat >>conftest.$ac_ext <<_ACEOF
4409/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004410#include <string.h>
4411
4412_ACEOF
4413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004414 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004415 :
4416else
4417 ac_cv_header_stdc=no
4418fi
4419rm -f conftest*
4420
4421fi
4422
4423if test $ac_cv_header_stdc = yes; then
4424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4425 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004426/* confdefs.h. */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004431#include <stdlib.h>
4432
4433_ACEOF
4434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004435 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004436 :
4437else
4438 ac_cv_header_stdc=no
4439fi
4440rm -f conftest*
4441
4442fi
4443
4444if test $ac_cv_header_stdc = yes; then
4445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4446 if test "$cross_compiling" = yes; then
4447 :
4448else
4449 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004450/* confdefs.h. */
4451_ACEOF
4452cat confdefs.h >>conftest.$ac_ext
4453cat >>conftest.$ac_ext <<_ACEOF
4454/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004455#include <ctype.h>
4456#if ((' ' & 0x0FF) == 0x020)
4457# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4458# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4459#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004460# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004461 (('a' <= (c) && (c) <= 'i') \
4462 || ('j' <= (c) && (c) <= 'r') \
4463 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004464# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4465#endif
4466
4467#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4468int
4469main ()
4470{
4471 int i;
4472 for (i = 0; i < 256; i++)
4473 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004474 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004475 exit(2);
4476 exit (0);
4477}
4478_ACEOF
4479rm -f conftest$ac_exeext
4480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4481 (eval $ac_link) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 :
4491else
4492 echo "$as_me: program exited with status $ac_status" >&5
4493echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004494sed 's/^/| /' conftest.$ac_ext >&5
4495
John Criswell7a73b802003-06-30 21:59:07 +00004496( exit $ac_status )
4497ac_cv_header_stdc=no
4498fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004499rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004500fi
4501fi
4502fi
4503echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4504echo "${ECHO_T}$ac_cv_header_stdc" >&6
4505if test $ac_cv_header_stdc = yes; then
4506
4507cat >>confdefs.h <<\_ACEOF
4508#define STDC_HEADERS 1
4509_ACEOF
4510
4511fi
4512
4513# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004524 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004525do
4526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4527echo "$as_me:$LINENO: checking for $ac_header" >&5
4528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4529if eval "test \"\${$as_ac_Header+set}\" = set"; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004533/* confdefs.h. */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004538$ac_includes_default
4539
4540#include <$ac_header>
4541_ACEOF
4542rm -f conftest.$ac_objext
4543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004544 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004545 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004551 { ac_try='test -z "$ac_c_werror_flag"
4552 || test ! -s conftest.err'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 eval "$as_ac_Header=yes"
4565else
4566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004567sed 's/^/| /' conftest.$ac_ext >&5
4568
John Criswell7a73b802003-06-30 21:59:07 +00004569eval "$as_ac_Header=no"
4570fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004572fi
4573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4575if test `eval echo '${'$as_ac_Header'}'` = yes; then
4576 cat >>confdefs.h <<_ACEOF
4577#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578_ACEOF
4579
4580fi
4581
4582done
4583
4584
4585
4586for ac_header in dlfcn.h
4587do
4588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00004589if eval "test \"\${$as_ac_Header+set}\" = set"; then
4590 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00004591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4592if eval "test \"\${$as_ac_Header+set}\" = set"; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004594fi
4595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004597else
Brian Gaeke0a621332004-09-08 20:38:05 +00004598 # Is the header compilable?
4599echo "$as_me:$LINENO: checking $ac_header usability" >&5
4600echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4601cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004602/* confdefs.h. */
4603_ACEOF
4604cat confdefs.h >>conftest.$ac_ext
4605cat >>conftest.$ac_ext <<_ACEOF
4606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004607$ac_includes_default
4608#include <$ac_header>
4609_ACEOF
4610rm -f conftest.$ac_objext
4611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004612 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004613 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004614 grep -v '^ *+' conftest.er1 >conftest.err
4615 rm -f conftest.er1
4616 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004619 { ac_try='test -z "$ac_c_werror_flag"
4620 || test ! -s conftest.err'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 (eval $ac_try) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; } &&
4626 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00004632 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00004633else
4634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004635sed 's/^/| /' conftest.$ac_ext >&5
4636
Brian Gaeke0a621332004-09-08 20:38:05 +00004637ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00004638fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00004640echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4641echo "${ECHO_T}$ac_header_compiler" >&6
4642
4643# Is the header present?
4644echo "$as_me:$LINENO: checking $ac_header presence" >&5
4645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4646cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004647/* confdefs.h. */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h. */
4652#include <$ac_header>
4653_ACEOF
4654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } >/dev/null; then
4662 if test -s conftest.err; then
4663 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00004665 else
4666 ac_cpp_err=
4667 fi
4668else
4669 ac_cpp_err=yes
4670fi
4671if test -z "$ac_cpp_err"; then
4672 ac_header_preproc=yes
4673else
4674 echo "$as_me: failed program was:" >&5
4675sed 's/^/| /' conftest.$ac_ext >&5
4676
4677 ac_header_preproc=no
4678fi
4679rm -f conftest.err conftest.$ac_ext
4680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4681echo "${ECHO_T}$ac_header_preproc" >&6
4682
4683# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4685 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00004686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4690 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00004691 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004692 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00004693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4696echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4700echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004705 (
4706 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00004707## ----------------------------------- ##
4708## Report this to llvmbugs@cs.uiuc.edu ##
4709## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00004710_ASBOX
4711 ) |
4712 sed "s/^/$as_me: WARNING: /" >&2
4713 ;;
4714esac
4715echo "$as_me:$LINENO: checking for $ac_header" >&5
4716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4717if eval "test \"\${$as_ac_Header+set}\" = set"; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004720 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004721fi
4722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004724
4725fi
John Criswell7a73b802003-06-30 21:59:07 +00004726if test `eval echo '${'$as_ac_Header'}'` = yes; then
4727 cat >>confdefs.h <<_ACEOF
4728#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4729_ACEOF
4730
4731fi
4732
4733done
4734
Reid Spencer2706f8c2004-09-19 23:53:36 +00004735
4736
4737if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4738 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4739 (test "X$CXX" != "Xg++"))) ; then
4740 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +00004741ac_cpp='$CXXCPP $CPPFLAGS'
4742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4745echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4746echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4747if test -z "$CXXCPP"; then
4748 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
John Criswell47fdd832003-07-14 16:52:07 +00004751 # Double quotes because CXXCPP needs to be expanded
4752 for CXXCPP in "$CXX -E" "/lib/cpp"
4753 do
4754 ac_preproc_ok=false
4755for ac_cxx_preproc_warn_flag in '' yes
4756do
4757 # Use a header file that comes with gcc, so configuring glibc
4758 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4760 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004761 # On the NeXT, cc -E runs the code through the compiler's parser,
4762 # not just through cpp. "Syntax error" is here to catch this case.
4763 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004764/* confdefs.h. */
4765_ACEOF
4766cat confdefs.h >>conftest.$ac_ext
4767cat >>conftest.$ac_ext <<_ACEOF
4768/* end confdefs.h. */
4769#ifdef __STDC__
4770# include <limits.h>
4771#else
4772# include <assert.h>
4773#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004774 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004775_ACEOF
4776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4778 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004779 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev/null; then
4784 if test -s conftest.err; then
4785 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004786 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004787 else
John Criswell47fdd832003-07-14 16:52:07 +00004788 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004789 fi
John Criswell47fdd832003-07-14 16:52:07 +00004790else
4791 ac_cpp_err=yes
4792fi
4793if test -z "$ac_cpp_err"; then
4794 :
4795else
4796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004797sed 's/^/| /' conftest.$ac_ext >&5
4798
John Criswell47fdd832003-07-14 16:52:07 +00004799 # Broken: fails on valid input.
4800continue
4801fi
4802rm -f conftest.err conftest.$ac_ext
4803
4804 # OK, works on sane cases. Now check whether non-existent headers
4805 # can be detected and how.
4806 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004807/* confdefs.h. */
4808_ACEOF
4809cat confdefs.h >>conftest.$ac_ext
4810cat >>conftest.$ac_ext <<_ACEOF
4811/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004812#include <ac_nonexistent.h>
4813_ACEOF
4814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4816 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004817 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004818 rm -f conftest.er1
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } >/dev/null; then
4822 if test -s conftest.err; then
4823 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004824 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004825 else
4826 ac_cpp_err=
4827 fi
4828else
4829 ac_cpp_err=yes
4830fi
4831if test -z "$ac_cpp_err"; then
4832 # Broken: success on invalid input.
4833continue
4834else
4835 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004836sed 's/^/| /' conftest.$ac_ext >&5
4837
John Criswell47fdd832003-07-14 16:52:07 +00004838 # Passes both tests.
4839ac_preproc_ok=:
4840break
4841fi
4842rm -f conftest.err conftest.$ac_ext
4843
4844done
4845# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4846rm -f conftest.err conftest.$ac_ext
4847if $ac_preproc_ok; then
4848 break
John Criswell7a73b802003-06-30 21:59:07 +00004849fi
4850
John Criswell47fdd832003-07-14 16:52:07 +00004851 done
4852 ac_cv_prog_CXXCPP=$CXXCPP
4853
4854fi
4855 CXXCPP=$ac_cv_prog_CXXCPP
4856else
4857 ac_cv_prog_CXXCPP=$CXXCPP
4858fi
4859echo "$as_me:$LINENO: result: $CXXCPP" >&5
4860echo "${ECHO_T}$CXXCPP" >&6
4861ac_preproc_ok=false
4862for ac_cxx_preproc_warn_flag in '' yes
4863do
4864 # Use a header file that comes with gcc, so configuring glibc
4865 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4867 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004868 # On the NeXT, cc -E runs the code through the compiler's parser,
4869 # not just through cpp. "Syntax error" is here to catch this case.
4870 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004871/* confdefs.h. */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h. */
4876#ifdef __STDC__
4877# include <limits.h>
4878#else
4879# include <assert.h>
4880#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004881 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004882_ACEOF
4883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4885 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004886 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null; then
4891 if test -s conftest.err; then
4892 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004894 else
4895 ac_cpp_err=
4896 fi
4897else
4898 ac_cpp_err=yes
4899fi
4900if test -z "$ac_cpp_err"; then
4901 :
4902else
4903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004904sed 's/^/| /' conftest.$ac_ext >&5
4905
John Criswell47fdd832003-07-14 16:52:07 +00004906 # Broken: fails on valid input.
4907continue
4908fi
4909rm -f conftest.err conftest.$ac_ext
4910
4911 # OK, works on sane cases. Now check whether non-existent headers
4912 # can be detected and how.
4913 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004914/* confdefs.h. */
4915_ACEOF
4916cat confdefs.h >>conftest.$ac_ext
4917cat >>conftest.$ac_ext <<_ACEOF
4918/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004919#include <ac_nonexistent.h>
4920_ACEOF
4921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4923 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004924 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } >/dev/null; then
4929 if test -s conftest.err; then
4930 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004931 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004932 else
4933 ac_cpp_err=
4934 fi
4935else
4936 ac_cpp_err=yes
4937fi
4938if test -z "$ac_cpp_err"; then
4939 # Broken: success on invalid input.
4940continue
4941else
4942 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004943sed 's/^/| /' conftest.$ac_ext >&5
4944
John Criswell47fdd832003-07-14 16:52:07 +00004945 # Passes both tests.
4946ac_preproc_ok=:
4947break
4948fi
4949rm -f conftest.err conftest.$ac_ext
4950
4951done
4952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4953rm -f conftest.err conftest.$ac_ext
4954if $ac_preproc_ok; then
4955 :
4956else
John Criswell0c38eaf2003-09-10 15:17:25 +00004957 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4958See \`config.log' for more details." >&5
4959echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4960See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004961 { (exit 1); exit 1; }; }
4962fi
4963
4964ac_ext=cc
4965ac_cpp='$CXXCPP $CPPFLAGS'
4966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4969
Reid Spencer2706f8c2004-09-19 23:53:36 +00004970fi
4971
John Criswell47fdd832003-07-14 16:52:07 +00004972
4973ac_ext=f
4974ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4975ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4977if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00004978 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +00004979 do
4980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4981set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4982echo "$as_me:$LINENO: checking for $ac_word" >&5
4983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984if test "${ac_cv_prog_F77+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987 if test -n "$F77"; then
4988 ac_cv_prog_F77="$F77" # Let the user override the test.
4989else
4990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5000 fi
5001done
5002done
5003
5004fi
5005fi
5006F77=$ac_cv_prog_F77
5007if test -n "$F77"; then
5008 echo "$as_me:$LINENO: result: $F77" >&5
5009echo "${ECHO_T}$F77" >&6
5010else
5011 echo "$as_me:$LINENO: result: no" >&5
5012echo "${ECHO_T}no" >&6
5013fi
5014
5015 test -n "$F77" && break
5016 done
5017fi
5018if test -z "$F77"; then
5019 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +00005020 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +00005021do
5022 # Extract the first word of "$ac_prog", so it can be a program name with args.
5023set dummy $ac_prog; ac_word=$2
5024echo "$as_me:$LINENO: checking for $ac_word" >&5
5025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5026if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028else
5029 if test -n "$ac_ct_F77"; then
5030 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5031else
5032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_ac_ct_F77="$ac_prog"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043done
5044done
5045
5046fi
5047fi
5048ac_ct_F77=$ac_cv_prog_ac_ct_F77
5049if test -n "$ac_ct_F77"; then
5050 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5051echo "${ECHO_T}$ac_ct_F77" >&6
5052else
5053 echo "$as_me:$LINENO: result: no" >&5
5054echo "${ECHO_T}no" >&6
5055fi
5056
5057 test -n "$ac_ct_F77" && break
5058done
5059
5060 F77=$ac_ct_F77
5061fi
5062
5063
5064# Provide some information about the compiler.
John Criswelle96aa1c2004-10-28 13:35:00 +00005065echo "$as_me:5065:" \
John Criswell47fdd832003-07-14 16:52:07 +00005066 "checking for Fortran 77 compiler version" >&5
5067ac_compiler=`set X $ac_compile; echo $2`
5068{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5069 (eval $ac_compiler --version </dev/null >&5) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }
5073{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5074 (eval $ac_compiler -v </dev/null >&5) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }
5078{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5079 (eval $ac_compiler -V </dev/null >&5) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +00005083rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005084
5085# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +00005086# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005087ac_save_ext=$ac_ext
5088ac_ext=F
5089echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5090echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5091if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 cat >conftest.$ac_ext <<_ACEOF
5095 program main
5096#ifndef __GNUC__
5097 choke me
5098#endif
5099
5100 end
5101_ACEOF
5102rm -f conftest.$ac_objext
5103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005104 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005105 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005111 { ac_try='test -z "$ac_f77_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 ac_compiler_gnu=yes
5125else
5126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005127sed 's/^/| /' conftest.$ac_ext >&5
5128
John Criswell47fdd832003-07-14 16:52:07 +00005129ac_compiler_gnu=no
5130fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005132ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5133
5134fi
5135echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5136echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5137ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005138ac_test_FFLAGS=${FFLAGS+set}
5139ac_save_FFLAGS=$FFLAGS
5140FFLAGS=
5141echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5142echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5143if test "${ac_cv_prog_f77_g+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146 FFLAGS=-g
5147cat >conftest.$ac_ext <<_ACEOF
5148 program main
5149
5150 end
5151_ACEOF
5152rm -f conftest.$ac_objext
5153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005154 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005156 grep -v '^ *+' conftest.er1 >conftest.err
5157 rm -f conftest.er1
5158 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005161 { ac_try='test -z "$ac_f77_werror_flag"
5162 || test ! -s conftest.err'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 (eval $ac_try) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; } &&
5168 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 (eval $ac_try) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 ac_cv_prog_f77_g=yes
5175else
5176 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005177sed 's/^/| /' conftest.$ac_ext >&5
5178
John Criswell47fdd832003-07-14 16:52:07 +00005179ac_cv_prog_f77_g=no
5180fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005182
5183fi
5184echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5185echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5186if test "$ac_test_FFLAGS" = set; then
5187 FFLAGS=$ac_save_FFLAGS
5188elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00005189 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005190 FFLAGS="-g -O2"
5191 else
5192 FFLAGS="-g"
5193 fi
5194else
Reid Spencer2706f8c2004-09-19 23:53:36 +00005195 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005196 FFLAGS="-O2"
5197 else
5198 FFLAGS=
5199 fi
5200fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005201
5202G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005203ac_ext=c
5204ac_cpp='$CPP $CPPFLAGS'
5205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208
5209
5210
5211# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5212
5213# find the maximum length of command line arguments
5214echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5215echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5216if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218else
5219 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +00005220 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +00005221
5222 case $build_os in
5223 msdosdjgpp*)
5224 # On DJGPP, this test can blow up pretty badly due to problems in libc
5225 # (any single argument exceeding 2000 bytes causes a buffer overrun
5226 # during glob expansion). Even if it were fixed, the result of this
5227 # check would be larger than it should be.
5228 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5229 ;;
5230
5231 gnu*)
5232 # Under GNU Hurd, this test is not required because there is
5233 # no limit to the length of command line arguments.
5234 # Libtool will interpret -1 as no limit whatsoever
5235 lt_cv_sys_max_cmd_len=-1;
5236 ;;
5237
5238 cygwin* | mingw*)
5239 # On Win9x/ME, this test blows up -- it succeeds, but takes
5240 # about 5 minutes as the teststring grows exponentially.
5241 # Worse, since 9x/ME are not pre-emptively multitasking,
5242 # you end up with a "frozen" computer, even though with patience
5243 # the test eventually succeeds (with a max line length of 256k).
5244 # Instead, let's just punt: use the minimum linelength reported by
5245 # all of the supported platforms: 8192 (on NT/2K/XP).
5246 lt_cv_sys_max_cmd_len=8192;
5247 ;;
5248
Reid Spencer2706f8c2004-09-19 23:53:36 +00005249 amigaos*)
5250 # On AmigaOS with pdksh, this test takes hours, literally.
5251 # So we just punt and use a minimum line length of 8192.
5252 lt_cv_sys_max_cmd_len=8192;
5253 ;;
5254
5255 netbsd* | freebsd* | openbsd* | darwin* )
5256 # This has been around since 386BSD, at least. Likely further.
5257 if test -x /sbin/sysctl; then
5258 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5259 elif test -x /usr/sbin/sysctl; then
5260 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5261 else
5262 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5263 fi
5264 # And add a safety zone
5265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5266 ;;
5267
John Criswell47fdd832003-07-14 16:52:07 +00005268 *)
5269 # If test is not a shell built-in, we'll probably end up computing a
5270 # maximum length that is only half of the actual maximum length, but
5271 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +00005272 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5273 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5274 = "XX$teststring") >/dev/null 2>&1 &&
5275 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +00005276 lt_cv_sys_max_cmd_len=$new_result &&
5277 test $i != 17 # 1/2 MB should be enough
5278 do
5279 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +00005280 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +00005281 done
Reid Spencer2706f8c2004-09-19 23:53:36 +00005282 teststring=
John Criswell47fdd832003-07-14 16:52:07 +00005283 # Add a significant safety factor because C++ compilers can tack on massive
5284 # amounts of additional arguments before passing them to the linker.
5285 # It appears as though 1/2 is a usable value.
5286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5287 ;;
5288 esac
5289
5290fi
5291
5292if test -n $lt_cv_sys_max_cmd_len ; then
5293 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5294echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5295else
5296 echo "$as_me:$LINENO: result: none" >&5
5297echo "${ECHO_T}none" >&6
5298fi
5299
5300
5301
5302
5303# Check for command to grab the raw symbol name followed by C symbol from nm.
5304echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5305echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5306if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309
5310# These are sane defaults that work on at least a few old systems.
5311# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5312
5313# Character class describing NM global symbol codes.
5314symcode='[BCDEGRST]'
5315
5316# Regexp to match symbols that can be accessed directly from C.
5317sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5318
5319# Transform the above into a raw symbol and a C symbol.
5320symxfrm='\1 \2\3 \3'
5321
5322# Transform an extracted symbol line into a proper C declaration
5323lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5324
5325# Transform an extracted symbol line into symbol name and symbol address
5326lt_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'"
5327
5328# Define system-specific variables.
5329case $host_os in
5330aix*)
5331 symcode='[BCDT]'
5332 ;;
5333cygwin* | mingw* | pw32*)
5334 symcode='[ABCDGISTW]'
5335 ;;
5336hpux*) # Its linker distinguishes data from code symbols
5337 if test "$host_cpu" = ia64; then
5338 symcode='[ABCDEGRST]'
5339 fi
5340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5341 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'"
5342 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00005343linux*)
5344 if test "$host_cpu" = ia64; then
5345 symcode='[ABCDGIRSTW]'
5346 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5347 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'"
5348 fi
5349 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005350irix* | nonstopux*)
5351 symcode='[BCDEGRST]'
5352 ;;
5353osf*)
5354 symcode='[BCDEGQRST]'
5355 ;;
5356solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005357 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +00005358 ;;
5359sysv4)
5360 symcode='[DFNSTU]'
5361 ;;
5362esac
5363
5364# Handle CRLF in mingw tool chain
5365opt_cr=
5366case $build_os in
5367mingw*)
5368 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5369 ;;
5370esac
5371
5372# If we're using GNU nm, then use its standard symbol codes.
5373case `$NM -V 2>&1` in
5374*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005375 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +00005376esac
5377
5378# Try without a prefix undercore, then with it.
5379for ac_symprfx in "" "_"; do
5380
5381 # Write the raw and C identifiers.
5382 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5383
5384 # Check to see that the pipe works correctly.
5385 pipe_works=no
5386
5387 rm -f conftest*
5388 cat > conftest.$ac_ext <<EOF
5389#ifdef __cplusplus
5390extern "C" {
5391#endif
5392char nm_test_var;
5393void nm_test_func(){}
5394#ifdef __cplusplus
5395}
5396#endif
5397int main(){nm_test_var='a';nm_test_func();return(0);}
5398EOF
5399
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401 (eval $ac_compile) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; then
5405 # Now try to grab the symbols.
5406 nlist=conftest.nm
5407 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5408 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && test -s "$nlist"; then
5412 # Try sorting and uniquifying the output.
5413 if sort "$nlist" | uniq > "$nlist"T; then
5414 mv -f "$nlist"T "$nlist"
5415 else
5416 rm -f "$nlist"T
5417 fi
5418
5419 # Make sure that we snagged all the symbols we need.
5420 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5421 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5422 cat <<EOF > conftest.$ac_ext
5423#ifdef __cplusplus
5424extern "C" {
5425#endif
5426
5427EOF
5428 # Now generate the symbol file.
5429 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5430
5431 cat <<EOF >> conftest.$ac_ext
5432#if defined (__STDC__) && __STDC__
5433# define lt_ptr_t void *
5434#else
5435# define lt_ptr_t char *
5436# define const
5437#endif
5438
5439/* The mapping between symbol names and symbols. */
5440const struct {
5441 const char *name;
5442 lt_ptr_t address;
5443}
5444lt_preloaded_symbols[] =
5445{
5446EOF
5447 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5448 cat <<\EOF >> conftest.$ac_ext
5449 {0, (lt_ptr_t) 0}
5450};
5451
5452#ifdef __cplusplus
5453}
5454#endif
5455EOF
5456 # Now try linking the two files.
5457 mv conftest.$ac_objext conftstm.$ac_objext
5458 lt_save_LIBS="$LIBS"
5459 lt_save_CFLAGS="$CFLAGS"
5460 LIBS="conftstm.$ac_objext"
5461 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5463 (eval $ac_link) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5467 pipe_works=yes
5468 fi
5469 LIBS="$lt_save_LIBS"
5470 CFLAGS="$lt_save_CFLAGS"
5471 else
5472 echo "cannot find nm_test_func in $nlist" >&5
5473 fi
5474 else
5475 echo "cannot find nm_test_var in $nlist" >&5
5476 fi
5477 else
5478 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5479 fi
5480 else
5481 echo "$progname: failed program was:" >&5
5482 cat conftest.$ac_ext >&5
5483 fi
5484 rm -f conftest* conftst*
5485
5486 # Do not use the global_symbol_pipe unless it works.
5487 if test "$pipe_works" = yes; then
5488 break
5489 else
5490 lt_cv_sys_global_symbol_pipe=
5491 fi
5492done
5493
5494fi
5495
5496if test -z "$lt_cv_sys_global_symbol_pipe"; then
5497 lt_cv_sys_global_symbol_to_cdecl=
5498fi
5499if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5500 echo "$as_me:$LINENO: result: failed" >&5
5501echo "${ECHO_T}failed" >&6
5502else
5503 echo "$as_me:$LINENO: result: ok" >&5
5504echo "${ECHO_T}ok" >&6
5505fi
5506
5507echo "$as_me:$LINENO: checking for objdir" >&5
5508echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5509if test "${lt_cv_objdir+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512 rm -f .libs 2>/dev/null
5513mkdir .libs 2>/dev/null
5514if test -d .libs; then
5515 lt_cv_objdir=.libs
5516else
5517 # MS-DOS does not allow filenames that begin with a dot.
5518 lt_cv_objdir=_libs
5519fi
5520rmdir .libs 2>/dev/null
5521fi
5522echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5523echo "${ECHO_T}$lt_cv_objdir" >&6
5524objdir=$lt_cv_objdir
5525
5526
5527
5528
5529
5530case $host_os in
5531aix3*)
5532 # AIX sometimes has problems with the GCC collect2 program. For some
5533 # reason, if we set the COLLECT_NAMES environment variable, the problems
5534 # vanish in a puff of smoke.
5535 if test "X${COLLECT_NAMES+set}" != Xset; then
5536 COLLECT_NAMES=
5537 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005538 fi
5539 ;;
5540esac
5541
John Criswell47fdd832003-07-14 16:52:07 +00005542# Sed substitution that helps us do robust quoting. It backslashifies
5543# metacharacters that are still active within double-quoted strings.
5544Xsed='sed -e s/^X//'
5545sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5546
5547# Same as above, but do not quote variable references.
5548double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5549
5550# Sed substitution to delay expansion of an escaped shell variable in a
5551# double_quote_subst'ed string.
5552delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5553
5554# Sed substitution to avoid accidental globbing in evaled expressions
5555no_glob_subst='s/\*/\\\*/g'
5556
5557# Constants:
5558rm="rm -f"
5559
5560# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +00005561default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005562can_build_shared=yes
5563
5564# All known linkers require a `.a' archive for static linking (except M$VC,
5565# which needs '.lib').
5566libext=a
5567ltmain="$ac_aux_dir/ltmain.sh"
5568ofile="$default_ofile"
5569with_gnu_ld="$lt_cv_prog_gnu_ld"
5570
5571if test -n "$ac_tool_prefix"; then
5572 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5573set dummy ${ac_tool_prefix}ar; ac_word=$2
5574echo "$as_me:$LINENO: checking for $ac_word" >&5
5575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5576if test "${ac_cv_prog_AR+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578else
5579 if test -n "$AR"; then
5580 ac_cv_prog_AR="$AR" # Let the user override the test.
5581else
5582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583for as_dir in $PATH
5584do
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589 ac_cv_prog_AR="${ac_tool_prefix}ar"
5590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5592 fi
5593done
5594done
5595
5596fi
5597fi
5598AR=$ac_cv_prog_AR
5599if test -n "$AR"; then
5600 echo "$as_me:$LINENO: result: $AR" >&5
5601echo "${ECHO_T}$AR" >&6
5602else
5603 echo "$as_me:$LINENO: result: no" >&5
5604echo "${ECHO_T}no" >&6
5605fi
5606
5607fi
5608if test -z "$ac_cv_prog_AR"; then
5609 ac_ct_AR=$AR
5610 # Extract the first word of "ar", so it can be a program name with args.
5611set dummy ar; ac_word=$2
5612echo "$as_me:$LINENO: checking for $ac_word" >&5
5613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5614if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616else
5617 if test -n "$ac_ct_AR"; then
5618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5619else
5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_ac_ct_AR="ar"
5628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631done
5632done
5633
5634 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5635fi
5636fi
5637ac_ct_AR=$ac_cv_prog_ac_ct_AR
5638if test -n "$ac_ct_AR"; then
5639 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5640echo "${ECHO_T}$ac_ct_AR" >&6
5641else
5642 echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
5644fi
5645
5646 AR=$ac_ct_AR
5647else
5648 AR="$ac_cv_prog_AR"
5649fi
5650
John Criswell7a73b802003-06-30 21:59:07 +00005651if test -n "$ac_tool_prefix"; then
5652 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5653set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5654echo "$as_me:$LINENO: checking for $ac_word" >&5
5655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656if test "${ac_cv_prog_RANLIB+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658else
5659 if test -n "$RANLIB"; then
5660 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5661else
5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663for as_dir in $PATH
5664do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5672 fi
5673done
5674done
5675
5676fi
5677fi
5678RANLIB=$ac_cv_prog_RANLIB
5679if test -n "$RANLIB"; then
5680 echo "$as_me:$LINENO: result: $RANLIB" >&5
5681echo "${ECHO_T}$RANLIB" >&6
5682else
5683 echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
5685fi
5686
5687fi
5688if test -z "$ac_cv_prog_RANLIB"; then
5689 ac_ct_RANLIB=$RANLIB
5690 # Extract the first word of "ranlib", so it can be a program name with args.
5691set dummy ranlib; ac_word=$2
5692echo "$as_me:$LINENO: checking for $ac_word" >&5
5693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5694if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697 if test -n "$ac_ct_RANLIB"; then
5698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5699else
5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707 ac_cv_prog_ac_ct_RANLIB="ranlib"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711done
5712done
5713
5714 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5715fi
5716fi
5717ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5718if test -n "$ac_ct_RANLIB"; then
5719 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5720echo "${ECHO_T}$ac_ct_RANLIB" >&6
5721else
5722 echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6
5724fi
5725
5726 RANLIB=$ac_ct_RANLIB
5727else
5728 RANLIB="$ac_cv_prog_RANLIB"
5729fi
5730
5731if test -n "$ac_tool_prefix"; then
5732 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5733set dummy ${ac_tool_prefix}strip; ac_word=$2
5734echo "$as_me:$LINENO: checking for $ac_word" >&5
5735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5736if test "${ac_cv_prog_STRIP+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738else
5739 if test -n "$STRIP"; then
5740 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5741else
5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 break 2
5752 fi
5753done
5754done
5755
5756fi
5757fi
5758STRIP=$ac_cv_prog_STRIP
5759if test -n "$STRIP"; then
5760 echo "$as_me:$LINENO: result: $STRIP" >&5
5761echo "${ECHO_T}$STRIP" >&6
5762else
5763 echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
5765fi
5766
5767fi
5768if test -z "$ac_cv_prog_STRIP"; then
5769 ac_ct_STRIP=$STRIP
5770 # Extract the first word of "strip", so it can be a program name with args.
5771set dummy strip; ac_word=$2
5772echo "$as_me:$LINENO: checking for $ac_word" >&5
5773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777 if test -n "$ac_ct_STRIP"; then
5778 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787 ac_cv_prog_ac_ct_STRIP="strip"
5788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5790 fi
5791done
5792done
5793
5794 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5795fi
5796fi
5797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5798if test -n "$ac_ct_STRIP"; then
5799 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5800echo "${ECHO_T}$ac_ct_STRIP" >&6
5801else
5802 echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6
5804fi
5805
5806 STRIP=$ac_ct_STRIP
5807else
5808 STRIP="$ac_cv_prog_STRIP"
5809fi
5810
5811
John Criswell7a73b802003-06-30 21:59:07 +00005812old_CC="$CC"
5813old_CFLAGS="$CFLAGS"
5814
5815# Set sane defaults for various variables
5816test -z "$AR" && AR=ar
5817test -z "$AR_FLAGS" && AR_FLAGS=cru
5818test -z "$AS" && AS=as
5819test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005820test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005821test -z "$DLLTOOL" && DLLTOOL=dlltool
5822test -z "$LD" && LD=ld
5823test -z "$LN_S" && LN_S="ln -s"
5824test -z "$MAGIC_CMD" && MAGIC_CMD=file
5825test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005826test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005827test -z "$OBJDUMP" && OBJDUMP=objdump
5828test -z "$RANLIB" && RANLIB=:
5829test -z "$STRIP" && STRIP=:
5830test -z "$ac_objext" && ac_objext=o
5831
John Criswell7a73b802003-06-30 21:59:07 +00005832# Determine commands to create old-style static archives.
5833old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5834old_postinstall_cmds='chmod 644 $oldlib'
5835old_postuninstall_cmds=
5836
5837if test -n "$RANLIB"; then
5838 case $host_os in
5839 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +00005840 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005841 ;;
5842 *)
Reid Spencer177dbe22004-10-13 01:01:03 +00005843 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005844 ;;
5845 esac
Reid Spencer177dbe22004-10-13 01:01:03 +00005846 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +00005847fi
5848
Reid Spencer2706f8c2004-09-19 23:53:36 +00005849cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5850
John Criswell47fdd832003-07-14 16:52:07 +00005851# Only perform the check for file, if the check method requires it
5852case $deplibs_check_method in
5853file_magic*)
5854 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5855 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5856echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5857if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005859else
John Criswell47fdd832003-07-14 16:52:07 +00005860 case $MAGIC_CMD in
5861[\\/*] | ?:[\\/]*)
5862 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5863 ;;
5864*)
5865 lt_save_MAGIC_CMD="$MAGIC_CMD"
5866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5867 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5868 for ac_dir in $ac_dummy; do
5869 IFS="$lt_save_ifs"
5870 test -z "$ac_dir" && ac_dir=.
5871 if test -f $ac_dir/${ac_tool_prefix}file; then
5872 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5873 if test -n "$file_magic_test_file"; then
5874 case $deplibs_check_method in
5875 "file_magic "*)
5876 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5879 $EGREP "$file_magic_regex" > /dev/null; then
5880 :
5881 else
5882 cat <<EOF 1>&2
5883
5884*** Warning: the command libtool uses to detect shared libraries,
5885*** $file_magic_cmd, produces output that libtool cannot recognize.
5886*** The result is that libtool may fail to recognize shared libraries
5887*** as such. This will affect the creation of libtool libraries that
5888*** depend on shared libraries, but programs linked with such libtool
5889*** libraries will work regardless of this problem. Nevertheless, you
5890*** may want to report the problem to your system manager and/or to
5891*** bug-libtool@gnu.org
5892
5893EOF
5894 fi ;;
5895 esac
5896 fi
5897 break
5898 fi
5899 done
5900 IFS="$lt_save_ifs"
5901 MAGIC_CMD="$lt_save_MAGIC_CMD"
5902 ;;
5903esac
John Criswell7a73b802003-06-30 21:59:07 +00005904fi
John Criswell7a73b802003-06-30 21:59:07 +00005905
John Criswell47fdd832003-07-14 16:52:07 +00005906MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5907if test -n "$MAGIC_CMD"; then
5908 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5909echo "${ECHO_T}$MAGIC_CMD" >&6
5910else
5911 echo "$as_me:$LINENO: result: no" >&5
5912echo "${ECHO_T}no" >&6
5913fi
John Criswell7a73b802003-06-30 21:59:07 +00005914
John Criswell47fdd832003-07-14 16:52:07 +00005915if test -z "$lt_cv_path_MAGIC_CMD"; then
5916 if test -n "$ac_tool_prefix"; then
5917 echo "$as_me:$LINENO: checking for file" >&5
5918echo $ECHO_N "checking for file... $ECHO_C" >&6
5919if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921else
5922 case $MAGIC_CMD in
5923[\\/*] | ?:[\\/]*)
5924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5925 ;;
5926*)
5927 lt_save_MAGIC_CMD="$MAGIC_CMD"
5928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5930 for ac_dir in $ac_dummy; do
5931 IFS="$lt_save_ifs"
5932 test -z "$ac_dir" && ac_dir=.
5933 if test -f $ac_dir/file; then
5934 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5935 if test -n "$file_magic_test_file"; then
5936 case $deplibs_check_method in
5937 "file_magic "*)
5938 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5941 $EGREP "$file_magic_regex" > /dev/null; then
5942 :
5943 else
5944 cat <<EOF 1>&2
5945
5946*** Warning: the command libtool uses to detect shared libraries,
5947*** $file_magic_cmd, produces output that libtool cannot recognize.
5948*** The result is that libtool may fail to recognize shared libraries
5949*** as such. This will affect the creation of libtool libraries that
5950*** depend on shared libraries, but programs linked with such libtool
5951*** libraries will work regardless of this problem. Nevertheless, you
5952*** may want to report the problem to your system manager and/or to
5953*** bug-libtool@gnu.org
5954
5955EOF
5956 fi ;;
5957 esac
5958 fi
5959 break
5960 fi
5961 done
5962 IFS="$lt_save_ifs"
5963 MAGIC_CMD="$lt_save_MAGIC_CMD"
5964 ;;
5965esac
5966fi
5967
5968MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5969if test -n "$MAGIC_CMD"; then
5970 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5971echo "${ECHO_T}$MAGIC_CMD" >&6
5972else
5973 echo "$as_me:$LINENO: result: no" >&5
5974echo "${ECHO_T}no" >&6
5975fi
5976
5977 else
5978 MAGIC_CMD=:
5979 fi
5980fi
5981
5982 fi
5983 ;;
5984esac
5985
5986enable_dlopen=no
5987enable_win32_dll=no
5988
5989# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5990if test "${enable_libtool_lock+set}" = set; then
5991 enableval="$enable_libtool_lock"
5992
5993fi;
5994test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5995
John Criswell7a73b802003-06-30 21:59:07 +00005996
5997# Check whether --with-pic or --without-pic was given.
5998if test "${with_pic+set}" = set; then
5999 withval="$with_pic"
6000 pic_mode="$withval"
6001else
6002 pic_mode=default
6003fi;
6004test -z "$pic_mode" && pic_mode=default
6005
John Criswell47fdd832003-07-14 16:52:07 +00006006# Use C for the default configuration in the libtool script
6007tagname=
6008lt_save_CC="$CC"
6009ac_ext=c
6010ac_cpp='$CPP $CPPFLAGS'
6011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
6015
6016# Source file extension for C test sources.
6017ac_ext=c
6018
6019# Object file extension for compiled C test sources.
6020objext=o
6021objext=$objext
6022
6023# Code to be used in simple compile tests
6024lt_simple_compile_test_code="int some_variable = 0;\n"
6025
6026# Code to be used in simple link tests
6027lt_simple_link_test_code='int main(){return(0);}\n'
6028
6029
6030# If no C compiler was specified, use CC.
6031LTCC=${LTCC-"$CC"}
6032
6033# Allow CC to be a program name with arguments.
6034compiler=$CC
6035
6036
6037#
6038# Check for any special shared library compilation flags.
6039#
6040lt_prog_cc_shlib=
6041if test "$GCC" = no; then
6042 case $host_os in
6043 sco3.2v5*)
6044 lt_prog_cc_shlib='-belf'
6045 ;;
6046 esac
6047fi
6048if test -n "$lt_prog_cc_shlib"; then
6049 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6050echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6051 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6052 else
6053 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6054echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6055 lt_cv_prog_cc_can_build_shared=no
6056 fi
6057fi
6058
6059
6060#
6061# Check to make sure the static flag actually works.
6062#
6063echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6064echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6065if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067else
John Criswell47fdd832003-07-14 16:52:07 +00006068 lt_prog_compiler_static_works=no
6069 save_LDFLAGS="$LDFLAGS"
6070 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6071 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6072 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6073 # The compiler can only warn and ignore the option if not recognized
6074 # So say no if there are warnings
6075 if test -s conftest.err; then
6076 # Append any errors to the config.log.
6077 cat conftest.err 1>&5
6078 else
6079 lt_prog_compiler_static_works=yes
6080 fi
6081 fi
6082 $rm conftest*
6083 LDFLAGS="$save_LDFLAGS"
6084
6085fi
6086echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6087echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6088
6089if test x"$lt_prog_compiler_static_works" = xyes; then
6090 :
6091else
6092 lt_prog_compiler_static=
6093fi
6094
6095
6096
John Criswell47fdd832003-07-14 16:52:07 +00006097
6098lt_prog_compiler_no_builtin_flag=
6099
6100if test "$GCC" = yes; then
6101 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6102
Reid Spencer2706f8c2004-09-19 23:53:36 +00006103
6104echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006105echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6106if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
6109 lt_cv_prog_compiler_rtti_exceptions=no
6110 ac_outfile=conftest.$ac_objext
6111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6112 lt_compiler_flag="-fno-rtti -fno-exceptions"
6113 # Insert the option either (1) after the last *FLAGS variable, or
6114 # (2) before a word containing "conftest.", or (3) at the end.
6115 # Note that $ac_compile itself does not contain backslashes and begins
6116 # with a dollar sign (not a hyphen), so the echo should work correctly.
6117 # The option is referenced via a variable to avoid confusing sed.
6118 lt_compile=`echo "$ac_compile" | $SED \
6119 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6121 -e 's:$: $lt_compiler_flag:'`
John Criswelle96aa1c2004-10-28 13:35:00 +00006122 (eval echo "\"\$as_me:6122: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006123 (eval "$lt_compile" 2>conftest.err)
6124 ac_status=$?
6125 cat conftest.err >&5
John Criswelle96aa1c2004-10-28 13:35:00 +00006126 echo "$as_me:6126: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006127 if (exit $ac_status) && test -s "$ac_outfile"; then
6128 # The compiler can only warn and ignore the option if not recognized
6129 # So say no if there are warnings
6130 if test ! -s conftest.err; then
6131 lt_cv_prog_compiler_rtti_exceptions=yes
6132 fi
6133 fi
6134 $rm conftest*
6135
6136fi
6137echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6138echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6139
6140if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6141 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6142else
6143 :
6144fi
6145
6146fi
6147
6148lt_prog_compiler_wl=
6149lt_prog_compiler_pic=
6150lt_prog_compiler_static=
6151
6152echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6153echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006154
6155 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006156 lt_prog_compiler_wl='-Wl,'
6157 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006158
6159 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006160 aix*)
6161 # All AIX code is PIC.
6162 if test "$host_cpu" = ia64; then
6163 # AIX 5 now supports IA64 processor
6164 lt_prog_compiler_static='-Bstatic'
6165 fi
John Criswell7a73b802003-06-30 21:59:07 +00006166 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006167
John Criswell7a73b802003-06-30 21:59:07 +00006168 amigaos*)
6169 # FIXME: we need at least 68020 code to build shared libraries, but
6170 # adding the `-m68020' flag to GCC prevents building anything better,
6171 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006172 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006173 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006174
6175 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006176 # PIC is the default for these OSes.
6177 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006178
6179 mingw* | pw32* | os2*)
6180 # This hack is so that the source file can tell whether it is being
6181 # built for inclusion in a dll (and should export symbols for example).
6182 lt_prog_compiler_pic='-DDLL_EXPORT'
6183 ;;
6184
John Criswell7a73b802003-06-30 21:59:07 +00006185 darwin* | rhapsody*)
6186 # PIC is the default on this platform
6187 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006188 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006189 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006190
6191 msdosdjgpp*)
6192 # Just because we use GCC doesn't mean we suddenly get shared libraries
6193 # on systems that don't support them.
6194 lt_prog_compiler_can_build_shared=no
6195 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006196 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006197
John Criswell7a73b802003-06-30 21:59:07 +00006198 sysv4*MP*)
6199 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006200 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006201 fi
6202 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006203
6204 hpux*)
6205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6206 # not for PA HP-UX.
6207 case "$host_cpu" in
6208 hppa*64*|ia64*)
6209 # +Z the default
6210 ;;
6211 *)
6212 lt_prog_compiler_pic='-fPIC'
6213 ;;
6214 esac
6215 ;;
6216
John Criswell7a73b802003-06-30 21:59:07 +00006217 *)
John Criswell47fdd832003-07-14 16:52:07 +00006218 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006219 ;;
6220 esac
6221 else
John Criswell47fdd832003-07-14 16:52:07 +00006222 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006223 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006224 aix*)
6225 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006226 if test "$host_cpu" = ia64; then
6227 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006228 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006229 else
John Criswell47fdd832003-07-14 16:52:07 +00006230 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006231 fi
6232 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006233 darwin*)
6234 # PIC is the default on this platform
6235 # Common symbols not allowed in MH_DYLIB files
6236 case "$cc_basename" in
6237 xlc*)
6238 lt_prog_compiler_pic='-qnocommon'
6239 lt_prog_compiler_wl='-Wl,'
6240 ;;
6241 esac
6242 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006243
John Criswell47fdd832003-07-14 16:52:07 +00006244 mingw* | pw32* | os2*)
6245 # This hack is so that the source file can tell whether it is being
6246 # built for inclusion in a dll (and should export symbols for example).
6247 lt_prog_compiler_pic='-DDLL_EXPORT'
6248 ;;
6249
John Criswell7a73b802003-06-30 21:59:07 +00006250 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006251 lt_prog_compiler_wl='-Wl,'
6252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6253 # not for PA HP-UX.
6254 case "$host_cpu" in
6255 hppa*64*|ia64*)
6256 # +Z the default
6257 ;;
6258 *)
6259 lt_prog_compiler_pic='+Z'
6260 ;;
6261 esac
6262 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6263 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006264 ;;
6265
John Criswell47fdd832003-07-14 16:52:07 +00006266 irix5* | irix6* | nonstopux*)
6267 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006268 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006269 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006270 ;;
6271
6272 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006273 lt_prog_compiler_pic='-KPIC'
6274 lt_prog_compiler_static='-Bstatic'
6275 ;;
6276
6277 linux*)
6278 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006279 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +00006280 lt_prog_compiler_wl='-Wl,'
6281 lt_prog_compiler_pic='-KPIC'
6282 lt_prog_compiler_static='-static'
6283 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006284 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +00006285 lt_prog_compiler_wl='-Wl,'
6286 # All Alpha code is PIC.
6287 lt_prog_compiler_static='-non_shared'
6288 ;;
6289 esac
John Criswell7a73b802003-06-30 21:59:07 +00006290 ;;
6291
6292 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006293 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006294 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006295 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006296 ;;
6297
6298 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006299 lt_prog_compiler_pic='-Kpic'
6300 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006301 ;;
6302
6303 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006304 lt_prog_compiler_wl='-Wl,'
6305 lt_prog_compiler_pic='-KPIC'
6306 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006307 ;;
6308
6309 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006310 lt_prog_compiler_wl='-Qoption ld '
6311 lt_prog_compiler_pic='-PIC'
6312 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006313 ;;
6314
6315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006316 lt_prog_compiler_wl='-Wl,'
6317 lt_prog_compiler_pic='-KPIC'
6318 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006319 ;;
6320
6321 sysv4*MP*)
6322 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006323 lt_prog_compiler_pic='-Kconform_pic'
6324 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006325 fi
6326 ;;
6327
John Criswell47fdd832003-07-14 16:52:07 +00006328 uts4*)
6329 lt_prog_compiler_pic='-pic'
6330 lt_prog_compiler_static='-Bstatic'
6331 ;;
6332
John Criswell7a73b802003-06-30 21:59:07 +00006333 *)
John Criswell47fdd832003-07-14 16:52:07 +00006334 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006335 ;;
6336 esac
6337 fi
6338
John Criswell47fdd832003-07-14 16:52:07 +00006339echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6340echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006341
John Criswell47fdd832003-07-14 16:52:07 +00006342#
6343# Check to make sure the PIC flag actually works.
6344#
6345if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00006346
6347echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006348echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6349if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351else
John Criswell47fdd832003-07-14 16:52:07 +00006352 lt_prog_compiler_pic_works=no
6353 ac_outfile=conftest.$ac_objext
6354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6355 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6356 # Insert the option either (1) after the last *FLAGS variable, or
6357 # (2) before a word containing "conftest.", or (3) at the end.
6358 # Note that $ac_compile itself does not contain backslashes and begins
6359 # with a dollar sign (not a hyphen), so the echo should work correctly.
6360 # The option is referenced via a variable to avoid confusing sed.
6361 lt_compile=`echo "$ac_compile" | $SED \
6362 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6364 -e 's:$: $lt_compiler_flag:'`
John Criswelle96aa1c2004-10-28 13:35:00 +00006365 (eval echo "\"\$as_me:6365: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006366 (eval "$lt_compile" 2>conftest.err)
6367 ac_status=$?
6368 cat conftest.err >&5
John Criswelle96aa1c2004-10-28 13:35:00 +00006369 echo "$as_me:6369: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006370 if (exit $ac_status) && test -s "$ac_outfile"; then
6371 # The compiler can only warn and ignore the option if not recognized
6372 # So say no if there are warnings
6373 if test ! -s conftest.err; then
6374 lt_prog_compiler_pic_works=yes
6375 fi
6376 fi
6377 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006378
John Criswell47fdd832003-07-14 16:52:07 +00006379fi
6380echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6381echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006382
John Criswell47fdd832003-07-14 16:52:07 +00006383if test x"$lt_prog_compiler_pic_works" = xyes; then
6384 case $lt_prog_compiler_pic in
6385 "" | " "*) ;;
6386 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6387 esac
John Criswell7a73b802003-06-30 21:59:07 +00006388else
John Criswell47fdd832003-07-14 16:52:07 +00006389 lt_prog_compiler_pic=
6390 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006391fi
6392
John Criswell7a73b802003-06-30 21:59:07 +00006393fi
John Criswell47fdd832003-07-14 16:52:07 +00006394case "$host_os" in
6395 # For platforms which do not support PIC, -DPIC is meaningless:
6396 *djgpp*)
6397 lt_prog_compiler_pic=
6398 ;;
6399 *)
6400 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6401 ;;
6402esac
John Criswell7a73b802003-06-30 21:59:07 +00006403
John Criswell7a73b802003-06-30 21:59:07 +00006404echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6405echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006406if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408else
John Criswell47fdd832003-07-14 16:52:07 +00006409 lt_cv_prog_compiler_c_o=no
6410 $rm -r conftest 2>/dev/null
6411 mkdir conftest
6412 cd conftest
6413 mkdir out
6414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006415
John Criswell47fdd832003-07-14 16:52:07 +00006416 lt_compiler_flag="-o out/conftest2.$ac_objext"
6417 # Insert the option either (1) after the last *FLAGS variable, or
6418 # (2) before a word containing "conftest.", or (3) at the end.
6419 # Note that $ac_compile itself does not contain backslashes and begins
6420 # with a dollar sign (not a hyphen), so the echo should work correctly.
6421 lt_compile=`echo "$ac_compile" | $SED \
6422 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6424 -e 's:$: $lt_compiler_flag:'`
John Criswelle96aa1c2004-10-28 13:35:00 +00006425 (eval echo "\"\$as_me:6425: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006426 (eval "$lt_compile" 2>out/conftest.err)
6427 ac_status=$?
6428 cat out/conftest.err >&5
John Criswelle96aa1c2004-10-28 13:35:00 +00006429 echo "$as_me:6429: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6431 then
6432 # The compiler can only warn and ignore the option if not recognized
6433 # So say no if there are warnings
6434 if test ! -s out/conftest.err; then
6435 lt_cv_prog_compiler_c_o=yes
6436 fi
6437 fi
6438 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +00006439 $rm conftest*
6440 # SGI C++ compiler will create directory out/ii_files/ for
6441 # template instantiation
6442 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6443 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +00006444 cd ..
6445 rmdir conftest
6446 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006447
6448fi
John Criswell47fdd832003-07-14 16:52:07 +00006449echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6450echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006451
John Criswell7a73b802003-06-30 21:59:07 +00006452
John Criswell7a73b802003-06-30 21:59:07 +00006453hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006454if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006455 # do not overwrite the value of need_locks provided by the user
6456 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6457echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6458 hard_links=yes
6459 $rm conftest*
6460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6461 touch conftest.a
6462 ln conftest.a conftest.b 2>&5 || hard_links=no
6463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6464 echo "$as_me:$LINENO: result: $hard_links" >&5
6465echo "${ECHO_T}$hard_links" >&6
6466 if test "$hard_links" = no; then
6467 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6468echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6469 need_locks=warn
6470 fi
6471else
6472 need_locks=no
6473fi
John Criswell7a73b802003-06-30 21:59:07 +00006474
John Criswell47fdd832003-07-14 16:52:07 +00006475echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6476echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6477
6478 runpath_var=
6479 allow_undefined_flag=
6480 enable_shared_with_static_runtimes=no
6481 archive_cmds=
6482 archive_expsym_cmds=
6483 old_archive_From_new_cmds=
6484 old_archive_from_expsyms_cmds=
6485 export_dynamic_flag_spec=
6486 whole_archive_flag_spec=
6487 thread_safe_flag_spec=
6488 hardcode_libdir_flag_spec=
6489 hardcode_libdir_flag_spec_ld=
6490 hardcode_libdir_separator=
6491 hardcode_direct=no
6492 hardcode_minus_L=no
6493 hardcode_shlibpath_var=unsupported
6494 link_all_deplibs=unknown
6495 hardcode_automatic=no
6496 module_cmds=
6497 module_expsym_cmds=
6498 always_export_symbols=no
6499 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6500 # include_expsyms should be a list of space-separated symbols to be *always*
6501 # included in the symbol list
6502 include_expsyms=
6503 # exclude_expsyms can be an extended regexp of symbols to exclude
6504 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6505 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6506 # as well as any symbol that contains `d'.
6507 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6508 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6509 # platforms (ab)use it in PIC code, but their linkers get confused if
6510 # the symbol is explicitly referenced. Since portable code cannot
6511 # rely on this symbol name, it's probably fine to never include it in
6512 # preloaded symbol tables.
6513 extract_expsyms_cmds=
6514
6515 case $host_os in
6516 cygwin* | mingw* | pw32*)
6517 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6518 # When not using gcc, we currently assume that we are using
6519 # Microsoft Visual C++.
6520 if test "$GCC" != yes; then
6521 with_gnu_ld=no
6522 fi
6523 ;;
6524 openbsd*)
6525 with_gnu_ld=no
6526 ;;
6527 esac
6528
6529 ld_shlibs=yes
6530 if test "$with_gnu_ld" = yes; then
6531 # If archive_cmds runs LD, not CC, wlarc should be empty
6532 wlarc='${wl}'
6533
6534 # See if GNU ld supports shared libraries.
6535 case $host_os in
6536 aix3* | aix4* | aix5*)
6537 # On AIX/PPC, the GNU linker is very broken
6538 if test "$host_cpu" != ia64; then
6539 ld_shlibs=no
6540 cat <<EOF 1>&2
6541
6542*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6543*** to be unable to reliably create shared libraries on AIX.
6544*** Therefore, libtool is disabling shared libraries support. If you
6545*** really care for shared libraries, you may want to modify your PATH
6546*** so that a non-GNU linker is found, and then restart.
6547
6548EOF
6549 fi
6550 ;;
6551
6552 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +00006553 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)'
John Criswell47fdd832003-07-14 16:52:07 +00006554 hardcode_libdir_flag_spec='-L$libdir'
6555 hardcode_minus_L=yes
6556
6557 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6558 # that the semantics of dynamic libraries on AmigaOS, at least up
6559 # to version 4, is to share data among multiple programs linked
6560 # with the same dynamic library. Since this doesn't match the
6561 # behavior of shared libraries on other platforms, we can't use
6562 # them.
6563 ld_shlibs=no
6564 ;;
6565
6566 beos*)
6567 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6568 allow_undefined_flag=unsupported
6569 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6570 # support --undefined. This deserves some investigation. FIXME
6571 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6572 else
6573 ld_shlibs=no
6574 fi
6575 ;;
6576
6577 cygwin* | mingw* | pw32*)
6578 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6579 # as there is no search path for DLLs.
6580 hardcode_libdir_flag_spec='-L$libdir'
6581 allow_undefined_flag=unsupported
6582 always_export_symbols=no
6583 enable_shared_with_static_runtimes=yes
6584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6585
6586 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6588 # If the export-symbols file already is a .def file (1st line
6589 # is EXPORTS), use it as is; otherwise, prepend...
6590 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6591 cp $export_symbols $output_objdir/$soname.def;
6592 else
6593 echo EXPORTS > $output_objdir/$soname.def;
6594 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +00006595 fi~
6596 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +00006597 else
6598 ld_shlibs=no
6599 fi
6600 ;;
6601
6602 netbsd*)
6603 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6604 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6605 wlarc=
6606 else
6607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6609 fi
6610 ;;
6611
6612 solaris* | sysv5*)
6613 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6614 ld_shlibs=no
6615 cat <<EOF 1>&2
6616
6617*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6618*** create shared libraries on Solaris systems. Therefore, libtool
6619*** is disabling shared libraries support. We urge you to upgrade GNU
6620*** binutils to release 2.9.1 or newer. Another option is to modify
6621*** your PATH or compiler configuration so that the native linker is
6622*** used, and then restart.
6623
6624EOF
6625 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6628 else
6629 ld_shlibs=no
6630 fi
6631 ;;
6632
6633 sunos4*)
6634 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6635 wlarc=
6636 hardcode_direct=yes
6637 hardcode_shlibpath_var=no
6638 ;;
6639
Reid Spencer2706f8c2004-09-19 23:53:36 +00006640 linux*)
6641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6642 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6643 archive_cmds="$tmp_archive_cmds"
6644 supports_anon_versioning=no
6645 case `$LD -v 2>/dev/null` in
6646 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6647 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6648 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6649 *\ 2.11.*) ;; # other 2.11 versions
6650 *) supports_anon_versioning=yes ;;
6651 esac
6652 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +00006653 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6654cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6655$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +00006656 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6657 else
6658 archive_expsym_cmds="$tmp_archive_cmds"
6659 fi
6660 else
6661 ld_shlibs=no
6662 fi
6663 ;;
6664
John Criswell47fdd832003-07-14 16:52:07 +00006665 *)
6666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6669 else
6670 ld_shlibs=no
6671 fi
6672 ;;
6673 esac
6674
6675 if test "$ld_shlibs" = yes; then
6676 runpath_var=LD_RUN_PATH
6677 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6678 export_dynamic_flag_spec='${wl}--export-dynamic'
6679 # ancient GNU ld didn't support --whole-archive et. al.
6680 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6681 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6682 else
6683 whole_archive_flag_spec=
6684 fi
6685 fi
6686 else
6687 # PORTME fill in a description of your system's linker (not GNU ld)
6688 case $host_os in
6689 aix3*)
6690 allow_undefined_flag=unsupported
6691 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +00006692 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'
John Criswell47fdd832003-07-14 16:52:07 +00006693 # Note: this linker hardcodes the directories in LIBPATH if there
6694 # are no directories specified by -L.
6695 hardcode_minus_L=yes
6696 if test "$GCC" = yes && test -z "$link_static_flag"; then
6697 # Neither direct hardcoding nor static linking is supported with a
6698 # broken collect2.
6699 hardcode_direct=unsupported
6700 fi
6701 ;;
6702
6703 aix4* | aix5*)
6704 if test "$host_cpu" = ia64; then
6705 # On IA64, the linker does run time linking by default, so we don't
6706 # have to do anything special.
6707 aix_use_runtimelinking=no
6708 exp_sym_flag='-Bexport'
6709 no_entry_flag=""
6710 else
6711 # If we're using GNU nm, then we don't want the "-C" option.
6712 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6713 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6714 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'
6715 else
6716 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'
6717 fi
6718 aix_use_runtimelinking=no
6719
6720 # Test if we are trying to use run time linking or normal
6721 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6722 # need to do runtime linking.
6723 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6724 for ld_flag in $LDFLAGS; do
6725 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6726 aix_use_runtimelinking=yes
6727 break
6728 fi
6729 done
6730 esac
6731
6732 exp_sym_flag='-bexport'
6733 no_entry_flag='-bnoentry'
6734 fi
6735
6736 # When large executables or shared objects are built, AIX ld can
6737 # have problems creating the table of contents. If linking a library
6738 # or program results in "error TOC overflow" add -mminimal-toc to
6739 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6740 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6741
6742 archive_cmds=''
6743 hardcode_direct=yes
6744 hardcode_libdir_separator=':'
6745 link_all_deplibs=yes
6746
6747 if test "$GCC" = yes; then
6748 case $host_os in aix4.012|aix4.012.*)
6749 # We only want to do this on AIX 4.2 and lower, the check
6750 # below for broken collect2 doesn't work under 4.3+
6751 collect2name=`${CC} -print-prog-name=collect2`
6752 if test -f "$collect2name" && \
6753 strings "$collect2name" | grep resolve_lib_name >/dev/null
6754 then
6755 # We have reworked collect2
6756 hardcode_direct=yes
6757 else
6758 # We have old collect2
6759 hardcode_direct=unsupported
6760 # It fails to find uninstalled libraries when the uninstalled
6761 # path is not listed in the libpath. Setting hardcode_minus_L
6762 # to unsupported forces relinking
6763 hardcode_minus_L=yes
6764 hardcode_libdir_flag_spec='-L$libdir'
6765 hardcode_libdir_separator=
6766 fi
6767 esac
6768 shared_flag='-shared'
6769 else
6770 # not using gcc
6771 if test "$host_cpu" = ia64; then
6772 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6773 # chokes on -Wl,-G. The following line is correct:
6774 shared_flag='-G'
6775 else
6776 if test "$aix_use_runtimelinking" = yes; then
6777 shared_flag='${wl}-G'
6778 else
6779 shared_flag='${wl}-bM:SRE'
6780 fi
6781 fi
6782 fi
6783
6784 # It seems that -bexpall does not export symbols beginning with
6785 # underscore (_), so it is better to generate a list of symbols to export.
6786 always_export_symbols=yes
6787 if test "$aix_use_runtimelinking" = yes; then
6788 # Warning - without using the other runtime loading flags (-brtl),
6789 # -berok will link without error, but may produce a broken library.
6790 allow_undefined_flag='-berok'
6791 # Determine the default libpath from the value encoded in an empty executable.
6792 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006793/* confdefs.h. */
6794_ACEOF
6795cat confdefs.h >>conftest.$ac_ext
6796cat >>conftest.$ac_ext <<_ACEOF
6797/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006798
John Criswell7a73b802003-06-30 21:59:07 +00006799int
6800main ()
6801{
John Criswell47fdd832003-07-14 16:52:07 +00006802
John Criswell7a73b802003-06-30 21:59:07 +00006803 ;
6804 return 0;
6805}
6806_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006807rm -f conftest.$ac_objext conftest$ac_exeext
6808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006809 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006810 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006811 grep -v '^ *+' conftest.er1 >conftest.err
6812 rm -f conftest.er1
6813 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006816 { ac_try='test -z "$ac_c_werror_flag"
6817 || test ! -s conftest.err'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 (eval $ac_try) 2>&5
6820 ac_status=$?
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; } &&
6823 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006829
John Criswell47fdd832003-07-14 16:52:07 +00006830aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6831}'`
6832# Check for a 64-bit object if we didn't find anything.
6833if 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; }
6834}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006835else
6836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006837sed 's/^/| /' conftest.$ac_ext >&5
6838
John Criswell7a73b802003-06-30 21:59:07 +00006839fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006840rm -f conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006842if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006843
John Criswell47fdd832003-07-14 16:52:07 +00006844 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6845 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"
6846 else
6847 if test "$host_cpu" = ia64; then
6848 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6849 allow_undefined_flag="-z nodefs"
6850 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"
6851 else
6852 # Determine the default libpath from the value encoded in an empty executable.
6853 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006854/* confdefs.h. */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006859
John Criswell47fdd832003-07-14 16:52:07 +00006860int
6861main ()
6862{
John Criswell7a73b802003-06-30 21:59:07 +00006863
John Criswell47fdd832003-07-14 16:52:07 +00006864 ;
6865 return 0;
6866}
6867_ACEOF
6868rm -f conftest.$ac_objext conftest$ac_exeext
6869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006870 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006871 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006872 grep -v '^ *+' conftest.er1 >conftest.err
6873 rm -f conftest.er1
6874 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006877 { ac_try='test -z "$ac_c_werror_flag"
6878 || test ! -s conftest.err'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 (eval $ac_try) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; } &&
6884 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006890
John Criswell47fdd832003-07-14 16:52:07 +00006891aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6892}'`
6893# Check for a 64-bit object if we didn't find anything.
6894if 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; }
6895}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006896else
John Criswell47fdd832003-07-14 16:52:07 +00006897 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006898sed 's/^/| /' conftest.$ac_ext >&5
6899
John Criswell47fdd832003-07-14 16:52:07 +00006900fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006901rm -f conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006903if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006904
John Criswell47fdd832003-07-14 16:52:07 +00006905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6906 # Warning - without using the other run time loading flags,
6907 # -berok will link without error, but may produce a broken library.
6908 no_undefined_flag=' ${wl}-bernotok'
6909 allow_undefined_flag=' ${wl}-berok'
6910 # -bexpall does not export symbols beginning with underscore (_)
6911 always_export_symbols=yes
6912 # Exported symbols can be pulled into shared objects from archives
6913 whole_archive_flag_spec=' '
6914 archive_cmds_need_lc=yes
6915 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +00006916 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'
John Criswell7a73b802003-06-30 21:59:07 +00006917 fi
6918 fi
John Criswell7a73b802003-06-30 21:59:07 +00006919 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006920
6921 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +00006922 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)'
John Criswell47fdd832003-07-14 16:52:07 +00006923 hardcode_libdir_flag_spec='-L$libdir'
6924 hardcode_minus_L=yes
6925 # see comment about different semantics on the GNU ld section
6926 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006927 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006928
Reid Spencer2706f8c2004-09-19 23:53:36 +00006929 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +00006930 export_dynamic_flag_spec=-rdynamic
6931 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006932
John Criswell47fdd832003-07-14 16:52:07 +00006933 cygwin* | mingw* | pw32*)
6934 # When not using gcc, we currently assume that we are using
6935 # Microsoft Visual C++.
6936 # hardcode_libdir_flag_spec is actually meaningless, as there is
6937 # no search path for DLLs.
6938 hardcode_libdir_flag_spec=' '
6939 allow_undefined_flag=unsupported
6940 # Tell ltmain to make .lib files, not .a files.
6941 libext=lib
6942 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006943 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +00006944 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +00006945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +00006946 # The linker will automatically build a .lib file if we build a DLL.
6947 old_archive_From_new_cmds='true'
6948 # FIXME: Should let the user specify the lib program.
6949 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6950 fix_srcfile_path='`cygpath -w "$srcfile"`'
6951 enable_shared_with_static_runtimes=yes
6952 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006953
John Criswell47fdd832003-07-14 16:52:07 +00006954 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +00006955 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006956 rhapsody* | darwin1.[012])
6957 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6958 ;;
6959 *) # Darwin 1.3 on
6960 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6961 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6962 else
6963 case ${MACOSX_DEPLOYMENT_TARGET} in
6964 10.[012])
6965 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6966 ;;
6967 10.*)
6968 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6969 ;;
6970 esac
6971 fi
6972 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006973 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00006974 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +00006975 hardcode_direct=no
6976 hardcode_automatic=yes
6977 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +00006978 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +00006979 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +00006980 if test "$GCC" = yes ; then
6981 output_verbose_link_cmd='echo'
6982 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6983 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6984 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +00006985 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}'
6986 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00006987 else
6988 case "$cc_basename" in
6989 xlc*)
6990 output_verbose_link_cmd='echo'
6991 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6992 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6993 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +00006994 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}'
6995 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00006996 ;;
6997 *)
6998 ld_shlibs=no
6999 ;;
7000 esac
John Criswell7a73b802003-06-30 21:59:07 +00007001 fi
John Criswell47fdd832003-07-14 16:52:07 +00007002 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007003
John Criswell47fdd832003-07-14 16:52:07 +00007004 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007006 hardcode_libdir_flag_spec='-L$libdir'
7007 hardcode_shlibpath_var=no
7008 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007009
John Criswell47fdd832003-07-14 16:52:07 +00007010 freebsd1*)
7011 ld_shlibs=no
7012 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007013
John Criswell47fdd832003-07-14 16:52:07 +00007014 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7015 # support. Future versions do this automatically, but an explicit c++rt0.o
7016 # does not break anything, and helps significantly (at the cost of a little
7017 # extra space).
7018 freebsd2.2*)
7019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7020 hardcode_libdir_flag_spec='-R$libdir'
7021 hardcode_direct=yes
7022 hardcode_shlibpath_var=no
7023 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007024
John Criswell47fdd832003-07-14 16:52:07 +00007025 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7026 freebsd2*)
7027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7028 hardcode_direct=yes
7029 hardcode_minus_L=yes
7030 hardcode_shlibpath_var=no
7031 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007032
John Criswell47fdd832003-07-14 16:52:07 +00007033 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007034 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00007035 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7036 hardcode_libdir_flag_spec='-R$libdir'
7037 hardcode_direct=yes
7038 hardcode_shlibpath_var=no
7039 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007040
John Criswell47fdd832003-07-14 16:52:07 +00007041 hpux9*)
7042 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +00007043 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'
John Criswell47fdd832003-07-14 16:52:07 +00007044 else
Reid Spencer177dbe22004-10-13 01:01:03 +00007045 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'
John Criswell47fdd832003-07-14 16:52:07 +00007046 fi
7047 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7048 hardcode_libdir_separator=:
7049 hardcode_direct=yes
7050
7051 # hardcode_minus_L: Not really in the search PATH,
7052 # but as the default location of the library.
7053 hardcode_minus_L=yes
7054 export_dynamic_flag_spec='${wl}-E'
7055 ;;
7056
7057 hpux10* | hpux11*)
7058 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7059 case "$host_cpu" in
7060 hppa*64*|ia64*)
7061 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7062 ;;
7063 *)
7064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7065 ;;
7066 esac
7067 else
7068 case "$host_cpu" in
7069 hppa*64*|ia64*)
7070 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7071 ;;
7072 *)
7073 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7074 ;;
7075 esac
7076 fi
7077 if test "$with_gnu_ld" = no; then
7078 case "$host_cpu" in
7079 hppa*64*)
7080 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7081 hardcode_libdir_flag_spec_ld='+b $libdir'
7082 hardcode_libdir_separator=:
7083 hardcode_direct=no
7084 hardcode_shlibpath_var=no
7085 ;;
7086 ia64*)
7087 hardcode_libdir_flag_spec='-L$libdir'
7088 hardcode_direct=no
7089 hardcode_shlibpath_var=no
7090
7091 # hardcode_minus_L: Not really in the search PATH,
7092 # but as the default location of the library.
7093 hardcode_minus_L=yes
7094 ;;
7095 *)
7096 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7097 hardcode_libdir_separator=:
7098 hardcode_direct=yes
7099 export_dynamic_flag_spec='${wl}-E'
7100
7101 # hardcode_minus_L: Not really in the search PATH,
7102 # but as the default location of the library.
7103 hardcode_minus_L=yes
7104 ;;
7105 esac
7106 fi
7107 ;;
7108
7109 irix5* | irix6* | nonstopux*)
7110 if test "$GCC" = yes; then
7111 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'
7112 else
7113 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'
7114 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7115 fi
7116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7117 hardcode_libdir_separator=:
7118 link_all_deplibs=yes
7119 ;;
7120
7121 netbsd*)
7122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7124 else
7125 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7126 fi
7127 hardcode_libdir_flag_spec='-R$libdir'
7128 hardcode_direct=yes
7129 hardcode_shlibpath_var=no
7130 ;;
7131
7132 newsos6)
7133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7134 hardcode_direct=yes
7135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7136 hardcode_libdir_separator=:
7137 hardcode_shlibpath_var=no
7138 ;;
7139
7140 openbsd*)
7141 hardcode_direct=yes
7142 hardcode_shlibpath_var=no
7143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7144 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007145 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +00007146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7147 export_dynamic_flag_spec='${wl}-E'
7148 else
7149 case $host_os in
7150 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7152 hardcode_libdir_flag_spec='-R$libdir'
7153 ;;
7154 *)
7155 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7156 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7157 ;;
7158 esac
7159 fi
7160 ;;
7161
7162 os2*)
7163 hardcode_libdir_flag_spec='-L$libdir'
7164 hardcode_minus_L=yes
7165 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +00007166 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'
John Criswell47fdd832003-07-14 16:52:07 +00007167 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7168 ;;
7169
7170 osf3*)
7171 if test "$GCC" = yes; then
7172 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7173 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'
7174 else
7175 allow_undefined_flag=' -expect_unresolved \*'
7176 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'
7177 fi
7178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7179 hardcode_libdir_separator=:
7180 ;;
7181
7182 osf4* | osf5*) # as osf3* with the addition of -msym flag
7183 if test "$GCC" = yes; then
7184 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7185 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'
7186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7187 else
7188 allow_undefined_flag=' -expect_unresolved \*'
7189 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'
Reid Spencer177dbe22004-10-13 01:01:03 +00007190 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7191 $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'
7192
John Criswell47fdd832003-07-14 16:52:07 +00007193 # Both c and cxx compiler support -rpath directly
7194 hardcode_libdir_flag_spec='-rpath $libdir'
7195 fi
7196 hardcode_libdir_separator=:
7197 ;;
7198
7199 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7201 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007202 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007203 runpath_var=LD_RUN_PATH
7204 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007205 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007206
John Criswell47fdd832003-07-14 16:52:07 +00007207 solaris*)
7208 no_undefined_flag=' -z text'
7209 if test "$GCC" = yes; then
7210 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00007211 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7212 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +00007213 else
7214 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00007215 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7216 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +00007217 fi
7218 hardcode_libdir_flag_spec='-R$libdir'
7219 hardcode_shlibpath_var=no
7220 case $host_os in
7221 solaris2.[0-5] | solaris2.[0-5].*) ;;
7222 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7223 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7224 esac
7225 link_all_deplibs=yes
7226 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007227
John Criswell47fdd832003-07-14 16:52:07 +00007228 sunos4*)
7229 if test "x$host_vendor" = xsequent; then
7230 # Use $CC to link under sequent, because it throws in some extra .o
7231 # files that make .init and .fini sections work.
7232 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7233 else
7234 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7235 fi
7236 hardcode_libdir_flag_spec='-L$libdir'
7237 hardcode_direct=yes
7238 hardcode_minus_L=yes
7239 hardcode_shlibpath_var=no
7240 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007241
John Criswell47fdd832003-07-14 16:52:07 +00007242 sysv4)
7243 case $host_vendor in
7244 sni)
7245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7246 hardcode_direct=yes # is this really true???
7247 ;;
7248 siemens)
7249 ## LD is ld it makes a PLAMLIB
7250 ## CC just makes a GrossModule.
7251 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7252 reload_cmds='$CC -r -o $output$reload_objs'
7253 hardcode_direct=no
7254 ;;
7255 motorola)
7256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7257 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7258 ;;
7259 esac
7260 runpath_var='LD_RUN_PATH'
7261 hardcode_shlibpath_var=no
7262 ;;
7263
7264 sysv4.3*)
7265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7266 hardcode_shlibpath_var=no
7267 export_dynamic_flag_spec='-Bexport'
7268 ;;
7269
7270 sysv4*MP*)
7271 if test -d /usr/nec; then
7272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7273 hardcode_shlibpath_var=no
7274 runpath_var=LD_RUN_PATH
7275 hardcode_runpath_var=yes
7276 ld_shlibs=yes
7277 fi
7278 ;;
7279
7280 sysv4.2uw2*)
7281 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7282 hardcode_direct=yes
7283 hardcode_minus_L=no
7284 hardcode_shlibpath_var=no
7285 hardcode_runpath_var=yes
7286 runpath_var=LD_RUN_PATH
7287 ;;
7288
7289 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7290 no_undefined_flag='${wl}-z ${wl}text'
7291 if test "$GCC" = yes; then
7292 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7293 else
7294 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7295 fi
7296 runpath_var='LD_RUN_PATH'
7297 hardcode_shlibpath_var=no
7298 ;;
7299
7300 sysv5*)
7301 no_undefined_flag=' -z text'
7302 # $CC -shared without GNU ld will not create a library from C++
7303 # object files and a static libstdc++, better avoid it by now
7304 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00007305 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7306 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +00007307 hardcode_libdir_flag_spec=
7308 hardcode_shlibpath_var=no
7309 runpath_var='LD_RUN_PATH'
7310 ;;
7311
7312 uts4*)
7313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7314 hardcode_libdir_flag_spec='-L$libdir'
7315 hardcode_shlibpath_var=no
7316 ;;
7317
7318 *)
7319 ld_shlibs=no
7320 ;;
7321 esac
7322 fi
7323
John Criswell7a73b802003-06-30 21:59:07 +00007324echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7325echo "${ECHO_T}$ld_shlibs" >&6
7326test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007327
John Criswell47fdd832003-07-14 16:52:07 +00007328variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7329if test "$GCC" = yes; then
7330 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7331fi
7332
7333#
7334# Do we need to explicitly link libc?
7335#
7336case "x$archive_cmds_need_lc" in
7337x|xyes)
7338 # Assume -lc should be added
7339 archive_cmds_need_lc=yes
7340
7341 if test "$enable_shared" = yes && test "$GCC" = yes; then
7342 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +00007343 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +00007344 # FIXME: we may have to deal with multi-command sequences.
7345 ;;
7346 '$CC '*)
7347 # Test whether the compiler implicitly links with -lc since on some
7348 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7349 # to ld, don't add -lc before -lgcc.
7350 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7351echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7352 $rm conftest*
7353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7354
7355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356 (eval $ac_compile) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } 2>conftest.err; then
7360 soname=conftest
7361 lib=conftest
7362 libobjs=conftest.$ac_objext
7363 deplibs=
7364 wl=$lt_prog_compiler_wl
7365 compiler_flags=-v
7366 linker_flags=-v
7367 verstring=
7368 output_objdir=.
7369 libname=conftest
7370 lt_save_allow_undefined_flag=$allow_undefined_flag
7371 allow_undefined_flag=
7372 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7373 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }
7377 then
7378 archive_cmds_need_lc=no
7379 else
7380 archive_cmds_need_lc=yes
7381 fi
7382 allow_undefined_flag=$lt_save_allow_undefined_flag
7383 else
7384 cat conftest.err 1>&5
7385 fi
7386 $rm conftest*
7387 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7388echo "${ECHO_T}$archive_cmds_need_lc" >&6
7389 ;;
7390 esac
7391 fi
7392 ;;
7393esac
7394
John Criswell7a73b802003-06-30 21:59:07 +00007395echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7396echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7397library_names_spec=
7398libname_spec='lib$name'
7399soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +00007400shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007401postinstall_cmds=
7402postuninstall_cmds=
7403finish_cmds=
7404finish_eval=
7405shlibpath_var=
7406shlibpath_overrides_runpath=unknown
7407version_type=none
7408dynamic_linker="$host_os ld.so"
7409sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007410if test "$GCC" = yes; then
7411 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7412 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7413 # if the path contains ";" then we assume it to be the separator
7414 # otherwise default to the standard path separator (i.e. ":") - it is
7415 # assumed that no part of a normal pathname contains ";" but that should
7416 # okay in the real world where ";" in dirpaths is itself problematic.
7417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7418 else
7419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7420 fi
7421else
7422 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7423fi
7424need_lib_prefix=unknown
7425hardcode_into_libs=no
7426
7427# when you set need_version to no, make sure it does not cause -set_version
7428# flags to be left without arguments
7429need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007430
7431case $host_os in
7432aix3*)
7433 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007435 shlibpath_var=LIBPATH
7436
John Criswell47fdd832003-07-14 16:52:07 +00007437 # AIX 3 has no versioning support, so we append a major version to the name.
7438 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007439 ;;
7440
7441aix4* | aix5*)
7442 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007443 need_lib_prefix=no
7444 need_version=no
7445 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007446 if test "$host_cpu" = ia64; then
7447 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007448 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007449 shlibpath_var=LD_LIBRARY_PATH
7450 else
7451 # With GCC up to 2.95.x, collect2 would create an import file
7452 # for dependence libraries. The import file would start with
7453 # the line `#! .'. This would cause the generated library to
7454 # depend on `.', always an invalid library. This was fixed in
7455 # development snapshots of GCC prior to 3.0.
7456 case $host_os in
7457 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007458 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7459 echo ' yes '
7460 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7461 :
7462 else
7463 can_build_shared=no
7464 fi
7465 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007466 esac
John Criswell47fdd832003-07-14 16:52:07 +00007467 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7468 # soname into executable. Probably we can add versioning support to
7469 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007470 if test "$aix_use_runtimelinking" = yes; then
7471 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7472 # instead of lib<name>.a to let people know that these are not
7473 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007475 else
7476 # We preserve .a as extension for shared libraries through AIX4.2
7477 # and later when we are not doing run time linking.
7478 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007479 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007480 fi
7481 shlibpath_var=LIBPATH
7482 fi
7483 ;;
7484
7485amigaos*)
7486 library_names_spec='$libname.ixlibrary $libname.a'
7487 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007488 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'
John Criswell7a73b802003-06-30 21:59:07 +00007489 ;;
7490
7491beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007492 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007493 dynamic_linker="$host_os ld.so"
7494 shlibpath_var=LIBRARY_PATH
7495 ;;
7496
Reid Spencer2706f8c2004-09-19 23:53:36 +00007497bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00007498 version_type=linux
7499 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7501 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7503 shlibpath_var=LD_LIBRARY_PATH
7504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007506 # the default ld.so.conf also contains /usr/contrib/lib and
7507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7508 # libtool to hard-code these into programs
7509 ;;
7510
7511cygwin* | mingw* | pw32*)
7512 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +00007513 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007514 need_version=no
7515 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007516
John Criswell7a73b802003-06-30 21:59:07 +00007517 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007518 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007519 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +00007521 postinstall_cmds='base_file=`basename \${file}`~
7522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7523 dldir=$destdir/`dirname \$dlpath`~
7524 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007525 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +00007526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7527 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +00007528 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007529 shlibpath_overrides_runpath=yes
7530
7531 case $host_os in
7532 cygwin*)
7533 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7534 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007535 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007536 ;;
7537 mingw*)
7538 # MinGW DLLs use traditional 'lib' prefix
7539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7540 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7541 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7542 # It is most probably a Windows format PATH printed by
7543 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7544 # path with ; separators, and with drive letters. We can handle the
7545 # drive letters (cygwin fileutils understands them), so leave them,
7546 # especially as we might pass files found there to a mingw objdump,
7547 # which wouldn't understand a cygwinified path. Ahh.
7548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7549 else
7550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7551 fi
7552 ;;
7553 pw32*)
7554 # pw32 DLLs use 'pw' prefix rather than 'lib'
7555 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7556 ;;
7557 esac
John Criswell7a73b802003-06-30 21:59:07 +00007558 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007559
John Criswell7a73b802003-06-30 21:59:07 +00007560 *)
John Criswell47fdd832003-07-14 16:52:07 +00007561 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007562 ;;
7563 esac
7564 dynamic_linker='Win32 ld.exe'
7565 # FIXME: first we should search . and the directory the executable is in
7566 shlibpath_var=PATH
7567 ;;
7568
7569darwin* | rhapsody*)
7570 dynamic_linker="$host_os dyld"
7571 version_type=darwin
7572 need_lib_prefix=no
7573 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +00007574 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +00007575 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007576 shlibpath_overrides_runpath=yes
7577 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +00007578 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +00007579 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007580 if test "$GCC" = yes; then
7581 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"`
7582 else
7583 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +00007584 fi
7585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7586 ;;
7587
7588dgux*)
7589 version_type=linux
7590 need_lib_prefix=no
7591 need_version=no
7592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7593 soname_spec='${libname}${release}${shared_ext}$major'
7594 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007595 ;;
7596
7597freebsd1*)
7598 dynamic_linker=no
7599 ;;
7600
Reid Spencer2706f8c2004-09-19 23:53:36 +00007601kfreebsd*-gnu)
7602 version_type=linux
7603 need_lib_prefix=no
7604 need_version=no
7605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7606 soname_spec='${libname}${release}${shared_ext}$major'
7607 shlibpath_var=LD_LIBRARY_PATH
7608 shlibpath_overrides_runpath=no
7609 hardcode_into_libs=yes
7610 dynamic_linker='GNU ld.so'
7611 ;;
7612
John Criswell7a73b802003-06-30 21:59:07 +00007613freebsd*)
7614 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7615 version_type=freebsd-$objformat
7616 case $version_type in
7617 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007619 need_version=no
7620 need_lib_prefix=no
7621 ;;
7622 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007624 need_version=yes
7625 ;;
7626 esac
7627 shlibpath_var=LD_LIBRARY_PATH
7628 case $host_os in
7629 freebsd2*)
7630 shlibpath_overrides_runpath=yes
7631 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007632 freebsd3.01* | freebsdelf3.01*)
7633 shlibpath_overrides_runpath=yes
7634 hardcode_into_libs=yes
7635 ;;
7636 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007637 shlibpath_overrides_runpath=no
7638 hardcode_into_libs=yes
7639 ;;
7640 esac
7641 ;;
7642
7643gnu*)
7644 version_type=linux
7645 need_lib_prefix=no
7646 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7648 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007649 shlibpath_var=LD_LIBRARY_PATH
7650 hardcode_into_libs=yes
7651 ;;
7652
7653hpux9* | hpux10* | hpux11*)
7654 # Give a soname corresponding to the major version so that dld.sl refuses to
7655 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007656 version_type=sunos
7657 need_lib_prefix=no
7658 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007659 case "$host_cpu" in
7660 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007661 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +00007662 hardcode_into_libs=yes
7663 dynamic_linker="$host_os dld.so"
7664 shlibpath_var=LD_LIBRARY_PATH
7665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7667 soname_spec='${libname}${release}${shared_ext}$major'
7668 if test "X$HPUX_IA64_MODE" = X32; then
7669 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7670 else
7671 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7672 fi
7673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7674 ;;
7675 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007676 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007677 hardcode_into_libs=yes
7678 dynamic_linker="$host_os dld.sl"
7679 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7682 soname_spec='${libname}${release}${shared_ext}$major'
7683 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7685 ;;
7686 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007687 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007688 dynamic_linker="$host_os dld.sl"
7689 shlibpath_var=SHLIB_PATH
7690 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7692 soname_spec='${libname}${release}${shared_ext}$major'
7693 ;;
7694 esac
John Criswell7a73b802003-06-30 21:59:07 +00007695 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7696 postinstall_cmds='chmod 555 $lib'
7697 ;;
7698
John Criswell47fdd832003-07-14 16:52:07 +00007699irix5* | irix6* | nonstopux*)
7700 case $host_os in
7701 nonstopux*) version_type=nonstopux ;;
7702 *)
7703 if test "$lt_cv_prog_gnu_ld" = yes; then
7704 version_type=linux
7705 else
7706 version_type=irix
7707 fi ;;
7708 esac
John Criswell7a73b802003-06-30 21:59:07 +00007709 need_lib_prefix=no
7710 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007711 soname_spec='${libname}${release}${shared_ext}$major'
7712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007713 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007714 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007715 libsuff= shlibsuff=
7716 ;;
7717 *)
7718 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007719 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7720 libsuff= shlibsuff= libmagic=32-bit;;
7721 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7722 libsuff=32 shlibsuff=N32 libmagic=N32;;
7723 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7724 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007725 *) libsuff= shlibsuff= libmagic=never-match;;
7726 esac
7727 ;;
7728 esac
7729 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7730 shlibpath_overrides_runpath=no
7731 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7732 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007733 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007734 ;;
7735
7736# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007737linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007738 dynamic_linker=no
7739 ;;
7740
7741# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007742linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007743 version_type=linux
7744 need_lib_prefix=no
7745 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7747 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7749 shlibpath_var=LD_LIBRARY_PATH
7750 shlibpath_overrides_runpath=no
7751 # This implies no fast_install, which is unacceptable.
7752 # Some rework will be needed to allow for fast_install
7753 # before this can be enabled.
7754 hardcode_into_libs=yes
7755
Reid Spencer2706f8c2004-09-19 23:53:36 +00007756 # Append ld.so.conf contents to the search path
7757 if test -f /etc/ld.so.conf; then
7758 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7759 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7760 fi
7761
John Criswell7a73b802003-06-30 21:59:07 +00007762 # We used to test for /lib/ld.so.1 and disable shared libraries on
7763 # powerpc, because MkLinux only supported shared libraries with the
7764 # GNU dynamic linker. Since this was broken with cross compilers,
7765 # most powerpc-linux boxes support dynamic linking these days and
7766 # people can always --disable-shared, the test was removed, and we
7767 # assume the GNU/Linux dynamic linker is in use.
7768 dynamic_linker='GNU/Linux ld.so'
7769 ;;
7770
Reid Spencer2706f8c2004-09-19 23:53:36 +00007771knetbsd*-gnu)
7772 version_type=linux
7773 need_lib_prefix=no
7774 need_version=no
7775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7776 soname_spec='${libname}${release}${shared_ext}$major'
7777 shlibpath_var=LD_LIBRARY_PATH
7778 shlibpath_overrides_runpath=no
7779 hardcode_into_libs=yes
7780 dynamic_linker='GNU ld.so'
7781 ;;
7782
John Criswell7a73b802003-06-30 21:59:07 +00007783netbsd*)
7784 version_type=sunos
7785 need_lib_prefix=no
7786 need_version=no
7787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7790 dynamic_linker='NetBSD (a.out) ld.so'
7791 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00007792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +00007793 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007794 dynamic_linker='NetBSD ld.elf_so'
7795 fi
7796 shlibpath_var=LD_LIBRARY_PATH
7797 shlibpath_overrides_runpath=yes
7798 hardcode_into_libs=yes
7799 ;;
7800
7801newsos6)
7802 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7804 shlibpath_var=LD_LIBRARY_PATH
7805 shlibpath_overrides_runpath=yes
7806 ;;
7807
Reid Spencer2706f8c2004-09-19 23:53:36 +00007808nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00007809 version_type=linux
7810 need_lib_prefix=no
7811 need_version=no
7812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7813 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007814 shlibpath_var=LD_LIBRARY_PATH
7815 shlibpath_overrides_runpath=yes
7816 ;;
7817
7818openbsd*)
7819 version_type=sunos
7820 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +00007821 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7824 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
John Criswell47fdd832003-07-14 16:52:07 +00007826 case $host_os in
7827 openbsd2.[89] | openbsd2.[89].*)
7828 shlibpath_overrides_runpath=no
7829 ;;
7830 *)
7831 shlibpath_overrides_runpath=yes
7832 ;;
7833 esac
John Criswell7a73b802003-06-30 21:59:07 +00007834 else
7835 shlibpath_overrides_runpath=yes
7836 fi
John Criswell7a73b802003-06-30 21:59:07 +00007837 ;;
7838
7839os2*)
7840 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007841 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007842 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007843 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007844 dynamic_linker='OS/2 ld.exe'
7845 shlibpath_var=LIBPATH
7846 ;;
7847
7848osf3* | osf4* | osf5*)
7849 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007850 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007851 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007852 soname_spec='${libname}${release}${shared_ext}$major'
7853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007854 shlibpath_var=LD_LIBRARY_PATH
7855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7857 ;;
7858
7859sco3.2v5*)
7860 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007861 soname_spec='${libname}${release}${shared_ext}$major'
7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007863 shlibpath_var=LD_LIBRARY_PATH
7864 ;;
7865
7866solaris*)
7867 version_type=linux
7868 need_lib_prefix=no
7869 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7871 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007872 shlibpath_var=LD_LIBRARY_PATH
7873 shlibpath_overrides_runpath=yes
7874 hardcode_into_libs=yes
7875 # ldd complains unless libraries are executable
7876 postinstall_cmds='chmod +x $lib'
7877 ;;
7878
7879sunos4*)
7880 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7883 shlibpath_var=LD_LIBRARY_PATH
7884 shlibpath_overrides_runpath=yes
7885 if test "$with_gnu_ld" = yes; then
7886 need_lib_prefix=no
7887 fi
7888 need_version=yes
7889 ;;
7890
7891sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7892 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7894 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007895 shlibpath_var=LD_LIBRARY_PATH
7896 case $host_vendor in
7897 sni)
7898 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007899 need_lib_prefix=no
7900 export_dynamic_flag_spec='${wl}-Blargedynsym'
7901 runpath_var=LD_RUN_PATH
7902 ;;
7903 siemens)
7904 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007905 ;;
7906 motorola)
7907 need_lib_prefix=no
7908 need_version=no
7909 shlibpath_overrides_runpath=no
7910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7911 ;;
7912 esac
7913 ;;
7914
John Criswell7a73b802003-06-30 21:59:07 +00007915sysv4*MP*)
7916 if test -d /usr/nec ;then
7917 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7919 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007920 shlibpath_var=LD_LIBRARY_PATH
7921 fi
7922 ;;
7923
John Criswell47fdd832003-07-14 16:52:07 +00007924uts4*)
7925 version_type=linux
7926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7927 soname_spec='${libname}${release}${shared_ext}$major'
7928 shlibpath_var=LD_LIBRARY_PATH
7929 ;;
7930
John Criswell7a73b802003-06-30 21:59:07 +00007931*)
7932 dynamic_linker=no
7933 ;;
7934esac
7935echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7936echo "${ECHO_T}$dynamic_linker" >&6
7937test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007938
Reid Spencer2706f8c2004-09-19 23:53:36 +00007939echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7940echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7941hardcode_action=
7942if test -n "$hardcode_libdir_flag_spec" || \
7943 test -n "$runpath_var" || \
7944 test "X$hardcode_automatic" = "Xyes" ; then
7945
7946 # We can hardcode non-existant directories.
7947 if test "$hardcode_direct" != no &&
7948 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7949 # have to relink, otherwise we might link with an installed library
7950 # when we should be linking with a yet-to-be-installed one
7951 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7952 test "$hardcode_minus_L" != no; then
7953 # Linking always hardcodes the temporary library directory.
7954 hardcode_action=relink
7955 else
7956 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7957 hardcode_action=immediate
7958 fi
7959else
7960 # We cannot hardcode anything, or else we can only hardcode existing
7961 # directories.
7962 hardcode_action=unsupported
7963fi
7964echo "$as_me:$LINENO: result: $hardcode_action" >&5
7965echo "${ECHO_T}$hardcode_action" >&6
7966
7967if test "$hardcode_action" = relink; then
7968 # Fast installation is not supported
7969 enable_fast_install=no
7970elif test "$shlibpath_overrides_runpath" = yes ||
7971 test "$enable_shared" = no; then
7972 # Fast installation is not necessary
7973 enable_fast_install=needless
7974fi
7975
7976striplib=
7977old_striplib=
7978echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7979echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7980if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7981 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7982 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7983 echo "$as_me:$LINENO: result: yes" >&5
7984echo "${ECHO_T}yes" >&6
7985else
7986# FIXME - insert some real tests, host_os isn't really good enough
7987 case $host_os in
7988 darwin*)
7989 if test -n "$STRIP" ; then
7990 striplib="$STRIP -x"
7991 echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6
7993 else
7994 echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6
7996fi
7997 ;;
7998 *)
7999 echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6
8001 ;;
8002 esac
8003fi
8004
John Criswell7a73b802003-06-30 21:59:07 +00008005if test "x$enable_dlopen" != xyes; then
8006 enable_dlopen=unknown
8007 enable_dlopen_self=unknown
8008 enable_dlopen_self_static=unknown
8009else
8010 lt_cv_dlopen=no
8011 lt_cv_dlopen_libs=
8012
8013 case $host_os in
8014 beos*)
8015 lt_cv_dlopen="load_add_on"
8016 lt_cv_dlopen_libs=
8017 lt_cv_dlopen_self=yes
8018 ;;
8019
John Criswell47fdd832003-07-14 16:52:07 +00008020 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008021 lt_cv_dlopen="LoadLibrary"
8022 lt_cv_dlopen_libs=
8023 ;;
8024
John Criswell47fdd832003-07-14 16:52:07 +00008025 cygwin*)
8026 lt_cv_dlopen="dlopen"
8027 lt_cv_dlopen_libs=
8028 ;;
8029
8030 darwin*)
8031 # if libdl is installed we need to link against it
8032 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8033echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8034if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036else
8037 ac_check_lib_save_LIBS=$LIBS
8038LIBS="-ldl $LIBS"
8039cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008040/* confdefs.h. */
8041_ACEOF
8042cat confdefs.h >>conftest.$ac_ext
8043cat >>conftest.$ac_ext <<_ACEOF
8044/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008045
8046/* Override any gcc2 internal prototype to avoid an error. */
8047#ifdef __cplusplus
8048extern "C"
8049#endif
8050/* We use char because int might match the return type of a gcc2
8051 builtin and then its argument prototype would still apply. */
8052char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008053int
8054main ()
8055{
8056dlopen ();
8057 ;
8058 return 0;
8059}
8060_ACEOF
8061rm -f conftest.$ac_objext conftest$ac_exeext
8062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008063 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008064 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008070 { ac_try='test -z "$ac_c_werror_flag"
8071 || test ! -s conftest.err'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; } &&
8077 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083 ac_cv_lib_dl_dlopen=yes
8084else
8085 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008086sed 's/^/| /' conftest.$ac_ext >&5
8087
John Criswell47fdd832003-07-14 16:52:07 +00008088ac_cv_lib_dl_dlopen=no
8089fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008090rm -f conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008092LIBS=$ac_check_lib_save_LIBS
8093fi
8094echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8095echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8096if test $ac_cv_lib_dl_dlopen = yes; then
8097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8098else
8099
8100 lt_cv_dlopen="dyld"
8101 lt_cv_dlopen_libs=
8102 lt_cv_dlopen_self=yes
8103
8104fi
8105
8106 ;;
8107
John Criswell7a73b802003-06-30 21:59:07 +00008108 *)
8109 echo "$as_me:$LINENO: checking for shl_load" >&5
8110echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8111if test "${ac_cv_func_shl_load+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8113else
8114 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008115/* confdefs.h. */
8116_ACEOF
8117cat confdefs.h >>conftest.$ac_ext
8118cat >>conftest.$ac_ext <<_ACEOF
8119/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008120/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8122#define shl_load innocuous_shl_load
8123
John Criswell7a73b802003-06-30 21:59:07 +00008124/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008125 which can conflict with char shl_load (); below.
8126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8127 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008128
John Criswell0c38eaf2003-09-10 15:17:25 +00008129#ifdef __STDC__
8130# include <limits.h>
8131#else
8132# include <assert.h>
8133#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008134
8135#undef shl_load
8136
John Criswell7a73b802003-06-30 21:59:07 +00008137/* Override any gcc2 internal prototype to avoid an error. */
8138#ifdef __cplusplus
8139extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008140{
John Criswell7a73b802003-06-30 21:59:07 +00008141#endif
8142/* We use char because int might match the return type of a gcc2
8143 builtin and then its argument prototype would still apply. */
8144char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008145/* The GNU C library defines this for functions which it implements
8146 to always fail with ENOSYS. Some functions are actually named
8147 something starting with __ and the normal name is an alias. */
8148#if defined (__stub_shl_load) || defined (__stub___shl_load)
8149choke me
8150#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008151char (*f) () = shl_load;
8152#endif
8153#ifdef __cplusplus
8154}
John Criswell7a73b802003-06-30 21:59:07 +00008155#endif
8156
John Criswell0c38eaf2003-09-10 15:17:25 +00008157int
8158main ()
8159{
8160return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008161 ;
8162 return 0;
8163}
8164_ACEOF
8165rm -f conftest.$ac_objext conftest$ac_exeext
8166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008167 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008168 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008169 grep -v '^ *+' conftest.er1 >conftest.err
8170 rm -f conftest.er1
8171 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008174 { ac_try='test -z "$ac_c_werror_flag"
8175 || test ! -s conftest.err'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 (eval $ac_try) 2>&5
8178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; } &&
8181 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8187 ac_cv_func_shl_load=yes
8188else
8189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008190sed 's/^/| /' conftest.$ac_ext >&5
8191
John Criswell7a73b802003-06-30 21:59:07 +00008192ac_cv_func_shl_load=no
8193fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008194rm -f conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008196fi
8197echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8198echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8199if test $ac_cv_func_shl_load = yes; then
8200 lt_cv_dlopen="shl_load"
8201else
8202 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8203echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8204if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8206else
8207 ac_check_lib_save_LIBS=$LIBS
8208LIBS="-ldld $LIBS"
8209cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008215
8216/* Override any gcc2 internal prototype to avoid an error. */
8217#ifdef __cplusplus
8218extern "C"
8219#endif
8220/* We use char because int might match the return type of a gcc2
8221 builtin and then its argument prototype would still apply. */
8222char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008223int
8224main ()
8225{
8226shl_load ();
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231rm -f conftest.$ac_objext conftest$ac_exeext
8232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008233 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008234 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008240 { ac_try='test -z "$ac_c_werror_flag"
8241 || test ! -s conftest.err'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 (eval $ac_try) 2>&5
8244 ac_status=$?
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; } &&
8247 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249 (eval $ac_try) 2>&5
8250 ac_status=$?
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 ac_cv_lib_dld_shl_load=yes
8254else
8255 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008256sed 's/^/| /' conftest.$ac_ext >&5
8257
John Criswell7a73b802003-06-30 21:59:07 +00008258ac_cv_lib_dld_shl_load=no
8259fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008260rm -f conftest.err conftest.$ac_objext \
8261 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008262LIBS=$ac_check_lib_save_LIBS
8263fi
8264echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8265echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8266if test $ac_cv_lib_dld_shl_load = yes; then
8267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8268else
8269 echo "$as_me:$LINENO: checking for dlopen" >&5
8270echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8271if test "${ac_cv_func_dlopen+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008280/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8282#define dlopen innocuous_dlopen
8283
John Criswell7a73b802003-06-30 21:59:07 +00008284/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008285 which can conflict with char dlopen (); below.
8286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8287 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008288
John Criswell0c38eaf2003-09-10 15:17:25 +00008289#ifdef __STDC__
8290# include <limits.h>
8291#else
8292# include <assert.h>
8293#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008294
8295#undef dlopen
8296
John Criswell7a73b802003-06-30 21:59:07 +00008297/* Override any gcc2 internal prototype to avoid an error. */
8298#ifdef __cplusplus
8299extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008300{
John Criswell7a73b802003-06-30 21:59:07 +00008301#endif
8302/* We use char because int might match the return type of a gcc2
8303 builtin and then its argument prototype would still apply. */
8304char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008305/* The GNU C library defines this for functions which it implements
8306 to always fail with ENOSYS. Some functions are actually named
8307 something starting with __ and the normal name is an alias. */
8308#if defined (__stub_dlopen) || defined (__stub___dlopen)
8309choke me
8310#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008311char (*f) () = dlopen;
8312#endif
8313#ifdef __cplusplus
8314}
John Criswell7a73b802003-06-30 21:59:07 +00008315#endif
8316
John Criswell0c38eaf2003-09-10 15:17:25 +00008317int
8318main ()
8319{
8320return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008321 ;
8322 return 0;
8323}
8324_ACEOF
8325rm -f conftest.$ac_objext conftest$ac_exeext
8326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008327 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008328 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008334 { ac_try='test -z "$ac_c_werror_flag"
8335 || test ! -s conftest.err'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 (eval $ac_try) 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 ac_cv_func_dlopen=yes
8348else
8349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008350sed 's/^/| /' conftest.$ac_ext >&5
8351
John Criswell7a73b802003-06-30 21:59:07 +00008352ac_cv_func_dlopen=no
8353fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008354rm -f conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008356fi
8357echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8358echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8359if test $ac_cv_func_dlopen = yes; then
8360 lt_cv_dlopen="dlopen"
8361else
8362 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8363echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8364if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366else
8367 ac_check_lib_save_LIBS=$LIBS
8368LIBS="-ldl $LIBS"
8369cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008370/* confdefs.h. */
8371_ACEOF
8372cat confdefs.h >>conftest.$ac_ext
8373cat >>conftest.$ac_ext <<_ACEOF
8374/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008375
8376/* Override any gcc2 internal prototype to avoid an error. */
8377#ifdef __cplusplus
8378extern "C"
8379#endif
8380/* We use char because int might match the return type of a gcc2
8381 builtin and then its argument prototype would still apply. */
8382char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008383int
8384main ()
8385{
8386dlopen ();
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391rm -f conftest.$ac_objext conftest$ac_exeext
8392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008393 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008400 { ac_try='test -z "$ac_c_werror_flag"
8401 || test ! -s conftest.err'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 ac_cv_lib_dl_dlopen=yes
8414else
8415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008416sed 's/^/| /' conftest.$ac_ext >&5
8417
John Criswell7a73b802003-06-30 21:59:07 +00008418ac_cv_lib_dl_dlopen=no
8419fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008420rm -f conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008422LIBS=$ac_check_lib_save_LIBS
8423fi
8424echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8425echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8426if test $ac_cv_lib_dl_dlopen = yes; then
8427 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8428else
8429 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8430echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8431if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433else
8434 ac_check_lib_save_LIBS=$LIBS
8435LIBS="-lsvld $LIBS"
8436cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008437/* confdefs.h. */
8438_ACEOF
8439cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008442
8443/* Override any gcc2 internal prototype to avoid an error. */
8444#ifdef __cplusplus
8445extern "C"
8446#endif
8447/* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8449char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008450int
8451main ()
8452{
8453dlopen ();
8454 ;
8455 return 0;
8456}
8457_ACEOF
8458rm -f conftest.$ac_objext conftest$ac_exeext
8459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008460 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008461 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008467 { ac_try='test -z "$ac_c_werror_flag"
8468 || test ! -s conftest.err'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_cv_lib_svld_dlopen=yes
8481else
8482 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008483sed 's/^/| /' conftest.$ac_ext >&5
8484
John Criswell7a73b802003-06-30 21:59:07 +00008485ac_cv_lib_svld_dlopen=no
8486fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008487rm -f conftest.err conftest.$ac_objext \
8488 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008489LIBS=$ac_check_lib_save_LIBS
8490fi
8491echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8492echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8493if test $ac_cv_lib_svld_dlopen = yes; then
8494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8495else
8496 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8497echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8498if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8500else
8501 ac_check_lib_save_LIBS=$LIBS
8502LIBS="-ldld $LIBS"
8503cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008504/* confdefs.h. */
8505_ACEOF
8506cat confdefs.h >>conftest.$ac_ext
8507cat >>conftest.$ac_ext <<_ACEOF
8508/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008509
8510/* Override any gcc2 internal prototype to avoid an error. */
8511#ifdef __cplusplus
8512extern "C"
8513#endif
8514/* We use char because int might match the return type of a gcc2
8515 builtin and then its argument prototype would still apply. */
8516char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008517int
8518main ()
8519{
8520dld_link ();
8521 ;
8522 return 0;
8523}
8524_ACEOF
8525rm -f conftest.$ac_objext conftest$ac_exeext
8526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008527 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008528 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_lib_dld_dld_link=yes
8548else
8549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008550sed 's/^/| /' conftest.$ac_ext >&5
8551
John Criswell7a73b802003-06-30 21:59:07 +00008552ac_cv_lib_dld_dld_link=no
8553fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008554rm -f conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008556LIBS=$ac_check_lib_save_LIBS
8557fi
8558echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8559echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8560if test $ac_cv_lib_dld_dld_link = yes; then
8561 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8562fi
8563
8564
8565fi
8566
8567
8568fi
8569
8570
8571fi
8572
8573
8574fi
8575
8576
8577fi
8578
8579 ;;
8580 esac
8581
8582 if test "x$lt_cv_dlopen" != xno; then
8583 enable_dlopen=yes
8584 else
8585 enable_dlopen=no
8586 fi
8587
8588 case $lt_cv_dlopen in
8589 dlopen)
8590 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008591 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008592
8593 save_LDFLAGS="$LDFLAGS"
8594 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8595
8596 save_LIBS="$LIBS"
8597 LIBS="$lt_cv_dlopen_libs $LIBS"
8598
8599 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8600echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8601if test "${lt_cv_dlopen_self+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603else
8604 if test "$cross_compiling" = yes; then :
8605 lt_cv_dlopen_self=cross
8606else
John Criswell47fdd832003-07-14 16:52:07 +00008607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008608 lt_status=$lt_dlunknown
8609 cat > conftest.$ac_ext <<EOF
John Criswelle96aa1c2004-10-28 13:35:00 +00008610#line 8610 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008611#include "confdefs.h"
8612
8613#if HAVE_DLFCN_H
8614#include <dlfcn.h>
8615#endif
8616
8617#include <stdio.h>
8618
8619#ifdef RTLD_GLOBAL
8620# define LT_DLGLOBAL RTLD_GLOBAL
8621#else
8622# ifdef DL_GLOBAL
8623# define LT_DLGLOBAL DL_GLOBAL
8624# else
8625# define LT_DLGLOBAL 0
8626# endif
8627#endif
8628
8629/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8630 find out it does not work in some platform. */
8631#ifndef LT_DLLAZY_OR_NOW
8632# ifdef RTLD_LAZY
8633# define LT_DLLAZY_OR_NOW RTLD_LAZY
8634# else
8635# ifdef DL_LAZY
8636# define LT_DLLAZY_OR_NOW DL_LAZY
8637# else
8638# ifdef RTLD_NOW
8639# define LT_DLLAZY_OR_NOW RTLD_NOW
8640# else
8641# ifdef DL_NOW
8642# define LT_DLLAZY_OR_NOW DL_NOW
8643# else
8644# define LT_DLLAZY_OR_NOW 0
8645# endif
8646# endif
8647# endif
8648# endif
8649#endif
8650
8651#ifdef __cplusplus
8652extern "C" void exit (int);
8653#endif
8654
8655void fnord() { int i=42;}
8656int main ()
8657{
8658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8659 int status = $lt_dlunknown;
8660
8661 if (self)
8662 {
8663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8664 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8665 /* dlclose (self); */
8666 }
8667
8668 exit (status);
8669}
8670EOF
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8676 (./conftest; exit; ) 2>/dev/null
8677 lt_status=$?
8678 case x$lt_status in
8679 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8680 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8681 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8682 esac
8683 else :
8684 # compilation failed
8685 lt_cv_dlopen_self=no
8686 fi
8687fi
8688rm -fr conftest*
8689
8690
8691fi
8692echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8693echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8694
8695 if test "x$lt_cv_dlopen_self" = xyes; then
8696 LDFLAGS="$LDFLAGS $link_static_flag"
8697 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8698echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8699if test "${lt_cv_dlopen_self_static+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701else
8702 if test "$cross_compiling" = yes; then :
8703 lt_cv_dlopen_self_static=cross
8704else
John Criswell47fdd832003-07-14 16:52:07 +00008705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008706 lt_status=$lt_dlunknown
8707 cat > conftest.$ac_ext <<EOF
John Criswelle96aa1c2004-10-28 13:35:00 +00008708#line 8708 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008709#include "confdefs.h"
8710
8711#if HAVE_DLFCN_H
8712#include <dlfcn.h>
8713#endif
8714
8715#include <stdio.h>
8716
8717#ifdef RTLD_GLOBAL
8718# define LT_DLGLOBAL RTLD_GLOBAL
8719#else
8720# ifdef DL_GLOBAL
8721# define LT_DLGLOBAL DL_GLOBAL
8722# else
8723# define LT_DLGLOBAL 0
8724# endif
8725#endif
8726
8727/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8728 find out it does not work in some platform. */
8729#ifndef LT_DLLAZY_OR_NOW
8730# ifdef RTLD_LAZY
8731# define LT_DLLAZY_OR_NOW RTLD_LAZY
8732# else
8733# ifdef DL_LAZY
8734# define LT_DLLAZY_OR_NOW DL_LAZY
8735# else
8736# ifdef RTLD_NOW
8737# define LT_DLLAZY_OR_NOW RTLD_NOW
8738# else
8739# ifdef DL_NOW
8740# define LT_DLLAZY_OR_NOW DL_NOW
8741# else
8742# define LT_DLLAZY_OR_NOW 0
8743# endif
8744# endif
8745# endif
8746# endif
8747#endif
8748
8749#ifdef __cplusplus
8750extern "C" void exit (int);
8751#endif
8752
8753void fnord() { int i=42;}
8754int main ()
8755{
8756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8757 int status = $lt_dlunknown;
8758
8759 if (self)
8760 {
8761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8762 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8763 /* dlclose (self); */
8764 }
8765
8766 exit (status);
8767}
8768EOF
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770 (eval $ac_link) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8774 (./conftest; exit; ) 2>/dev/null
8775 lt_status=$?
8776 case x$lt_status in
8777 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8778 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8779 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8780 esac
8781 else :
8782 # compilation failed
8783 lt_cv_dlopen_self_static=no
8784 fi
8785fi
8786rm -fr conftest*
8787
8788
8789fi
8790echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8791echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8792 fi
8793
8794 CPPFLAGS="$save_CPPFLAGS"
8795 LDFLAGS="$save_LDFLAGS"
8796 LIBS="$save_LIBS"
8797 ;;
8798 esac
8799
8800 case $lt_cv_dlopen_self in
8801 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8802 *) enable_dlopen_self=unknown ;;
8803 esac
8804
8805 case $lt_cv_dlopen_self_static in
8806 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8807 *) enable_dlopen_self_static=unknown ;;
8808 esac
8809fi
8810
8811
John Criswell47fdd832003-07-14 16:52:07 +00008812# Report which librarie types wil actually be built
8813echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8814echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8815echo "$as_me:$LINENO: result: $can_build_shared" >&5
8816echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008817
John Criswell47fdd832003-07-14 16:52:07 +00008818echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8819echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8820test "$can_build_shared" = "no" && enable_shared=no
8821
8822# On AIX, shared libraries and static libraries use the same namespace, and
8823# are all built from PIC.
8824case "$host_os" in
8825aix3*)
8826 test "$enable_shared" = yes && enable_static=no
8827 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +00008828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +00008829 postinstall_cmds='$RANLIB $lib'
8830 fi
8831 ;;
8832
Reid Spencer2706f8c2004-09-19 23:53:36 +00008833aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +00008834 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8835 test "$enable_shared" = yes && enable_static=no
8836 fi
John Criswell7a73b802003-06-30 21:59:07 +00008837 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008838esac
8839echo "$as_me:$LINENO: result: $enable_shared" >&5
8840echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008841
John Criswell47fdd832003-07-14 16:52:07 +00008842echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8843echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8844# Make sure either enable_shared or enable_static is yes.
8845test "$enable_shared" = yes || enable_static=yes
8846echo "$as_me:$LINENO: result: $enable_static" >&5
8847echo "${ECHO_T}$enable_static" >&6
8848
8849# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008850# libtool distribution, otherwise you forgot to ship ltmain.sh
8851# with your package, and you will get complaints that there are
8852# no rules to generate ltmain.sh.
8853if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008854 # See if we are running on zsh, and set the options which allow our commands through
8855 # without removal of \ escapes.
8856 if test -n "${ZSH_VERSION+set}" ; then
8857 setopt NO_GLOB_SUBST
8858 fi
John Criswell7a73b802003-06-30 21:59:07 +00008859 # Now quote all the things that may contain metacharacters while being
8860 # careful not to overquote the AC_SUBSTed values. We take copies of the
8861 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008862 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8863 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +00008864 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8865 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8866 deplibs_check_method reload_flag reload_cmds need_locks \
8867 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8868 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008869 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008870 old_postinstall_cmds old_postuninstall_cmds \
8871 compiler \
8872 CC \
8873 LD \
8874 lt_prog_compiler_wl \
8875 lt_prog_compiler_pic \
8876 lt_prog_compiler_static \
8877 lt_prog_compiler_no_builtin_flag \
8878 export_dynamic_flag_spec \
8879 thread_safe_flag_spec \
8880 whole_archive_flag_spec \
8881 enable_shared_with_static_runtimes \
8882 old_archive_cmds \
8883 old_archive_from_new_cmds \
8884 predep_objects \
8885 postdep_objects \
8886 predeps \
8887 postdeps \
8888 compiler_lib_search_path \
8889 archive_cmds \
8890 archive_expsym_cmds \
8891 postinstall_cmds \
8892 postuninstall_cmds \
8893 old_archive_from_expsyms_cmds \
8894 allow_undefined_flag \
8895 no_undefined_flag \
8896 export_symbols_cmds \
8897 hardcode_libdir_flag_spec \
8898 hardcode_libdir_flag_spec_ld \
8899 hardcode_libdir_separator \
8900 hardcode_automatic \
8901 module_cmds \
8902 module_expsym_cmds \
8903 lt_cv_prog_compiler_c_o \
8904 exclude_expsyms \
8905 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008906
8907 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008908 old_archive_cmds | \
8909 old_archive_from_new_cmds | \
8910 archive_cmds | \
8911 archive_expsym_cmds | \
8912 module_cmds | \
8913 module_expsym_cmds | \
8914 old_archive_from_expsyms_cmds | \
8915 export_symbols_cmds | \
8916 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008917 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008918 old_postinstall_cmds | old_postuninstall_cmds | \
8919 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008920 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell7a73b802003-06-30 21:59:07 +00008922 ;;
8923 *)
8924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8925 ;;
8926 esac
8927 done
8928
John Criswell47fdd832003-07-14 16:52:07 +00008929 case $lt_echo in
8930 *'\$0 --fallback-echo"')
8931 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8932 ;;
8933 esac
8934
8935cfgfile="${ofile}T"
8936 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8937 $rm -f "$cfgfile"
8938 { echo "$as_me:$LINENO: creating $ofile" >&5
8939echo "$as_me: creating $ofile" >&6;}
8940
8941 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008942#! $SHELL
8943
John Criswell47fdd832003-07-14 16:52:07 +00008944# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008945# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8946# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8947#
John Criswell47fdd832003-07-14 16:52:07 +00008948# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8949# Free Software Foundation, Inc.
8950#
8951# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008952# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8953#
8954# This program is free software; you can redistribute it and/or modify
8955# it under the terms of the GNU General Public License as published by
8956# the Free Software Foundation; either version 2 of the License, or
8957# (at your option) any later version.
8958#
8959# This program is distributed in the hope that it will be useful, but
8960# WITHOUT ANY WARRANTY; without even the implied warranty of
8961# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8962# General Public License for more details.
8963#
8964# You should have received a copy of the GNU General Public License
8965# along with this program; if not, write to the Free Software
8966# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8967#
8968# As a special exception to the GNU General Public License, if you
8969# distribute this file as part of a program that contains a
8970# configuration script generated by Autoconf, you may include it under
8971# the same distribution terms that you use for the rest of that program.
8972
John Criswell47fdd832003-07-14 16:52:07 +00008973# A sed program that does not truncate output.
8974SED=$lt_SED
8975
John Criswell7a73b802003-06-30 21:59:07 +00008976# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008977Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008978
8979# The HP-UX ksh and POSIX shell print the target directory to stdout
8980# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008981(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +00008982
John Criswell47fdd832003-07-14 16:52:07 +00008983# The names of the tagged configurations supported by this script.
8984available_tags=
8985
John Criswell7a73b802003-06-30 21:59:07 +00008986# ### BEGIN LIBTOOL CONFIG
8987
8988# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8989
8990# Shell to use when invoking shell scripts.
8991SHELL=$lt_SHELL
8992
8993# Whether or not to build shared libraries.
8994build_libtool_libs=$enable_shared
8995
8996# Whether or not to build static libraries.
8997build_old_libs=$enable_static
8998
8999# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009000build_libtool_need_lc=$archive_cmds_need_lc
9001
9002# Whether or not to disallow shared libs when runtime libs are static
9003allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009004
9005# Whether or not to optimize for fast installation.
9006fast_install=$enable_fast_install
9007
9008# The host system.
9009host_alias=$host_alias
9010host=$host
9011
9012# An echo program that does not interpret backslashes.
9013echo=$lt_echo
9014
9015# The archiver.
9016AR=$lt_AR
9017AR_FLAGS=$lt_AR_FLAGS
9018
John Criswell47fdd832003-07-14 16:52:07 +00009019# A C compiler.
9020LTCC=$lt_LTCC
9021
9022# A language-specific compiler.
9023CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009024
9025# Is the compiler the GNU C compiler?
9026with_gcc=$GCC
9027
John Criswell47fdd832003-07-14 16:52:07 +00009028# An ERE matcher.
9029EGREP=$lt_EGREP
9030
John Criswell7a73b802003-06-30 21:59:07 +00009031# The linker used to build libraries.
9032LD=$lt_LD
9033
9034# Whether we need hard or soft links.
9035LN_S=$lt_LN_S
9036
9037# A BSD-compatible nm program.
9038NM=$lt_NM
9039
9040# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +00009041STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +00009042
9043# Used to examine libraries when file_magic_cmd begins "file"
9044MAGIC_CMD=$MAGIC_CMD
9045
9046# Used on cygwin: DLL creation program.
9047DLLTOOL="$DLLTOOL"
9048
9049# Used on cygwin: object dumper.
9050OBJDUMP="$OBJDUMP"
9051
9052# Used on cygwin: assembler.
9053AS="$AS"
9054
9055# The name of the directory that contains temporary libtool files.
9056objdir=$objdir
9057
9058# How to create reloadable object files.
9059reload_flag=$lt_reload_flag
9060reload_cmds=$lt_reload_cmds
9061
9062# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009063wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009064
9065# Object file suffix (normally "o").
9066objext="$ac_objext"
9067
9068# Old archive suffix (normally "a").
9069libext="$libext"
9070
John Criswell47fdd832003-07-14 16:52:07 +00009071# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +00009072shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +00009073
John Criswell7a73b802003-06-30 21:59:07 +00009074# Executable file suffix (normally "").
9075exeext="$exeext"
9076
9077# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009078pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009079pic_mode=$pic_mode
9080
John Criswell47fdd832003-07-14 16:52:07 +00009081# What is the maximum length of a command?
9082max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009083
John Criswell47fdd832003-07-14 16:52:07 +00009084# Does compiler simultaneously support -c and -o options?
9085compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009086
9087# Must we lock files when doing compilation ?
9088need_locks=$lt_need_locks
9089
9090# Do we need the lib prefix for modules?
9091need_lib_prefix=$need_lib_prefix
9092
9093# Do we need a version for libraries?
9094need_version=$need_version
9095
9096# Whether dlopen is supported.
9097dlopen_support=$enable_dlopen
9098
9099# Whether dlopen of programs is supported.
9100dlopen_self=$enable_dlopen_self
9101
9102# Whether dlopen of statically linked programs is supported.
9103dlopen_self_static=$enable_dlopen_self_static
9104
9105# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009106link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009107
9108# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009109no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009110
9111# Compiler flag to allow reflexive dlopens.
9112export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9113
9114# Compiler flag to generate shared objects directly from archives.
9115whole_archive_flag_spec=$lt_whole_archive_flag_spec
9116
9117# Compiler flag to generate thread-safe objects.
9118thread_safe_flag_spec=$lt_thread_safe_flag_spec
9119
9120# Library versioning type.
9121version_type=$version_type
9122
9123# Format of library name prefix.
9124libname_spec=$lt_libname_spec
9125
9126# List of archive names. First name is the real one, the rest are links.
9127# The last name is the one that the linker finds with -lNAME.
9128library_names_spec=$lt_library_names_spec
9129
9130# The coded name of the library, if different from the real name.
9131soname_spec=$lt_soname_spec
9132
9133# Commands used to build and install an old-style archive.
9134RANLIB=$lt_RANLIB
9135old_archive_cmds=$lt_old_archive_cmds
9136old_postinstall_cmds=$lt_old_postinstall_cmds
9137old_postuninstall_cmds=$lt_old_postuninstall_cmds
9138
9139# Create an old-style archive from a shared archive.
9140old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9141
9142# Create a temporary old-style archive to link instead of a shared archive.
9143old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9144
9145# Commands used to build and install a shared archive.
9146archive_cmds=$lt_archive_cmds
9147archive_expsym_cmds=$lt_archive_expsym_cmds
9148postinstall_cmds=$lt_postinstall_cmds
9149postuninstall_cmds=$lt_postuninstall_cmds
9150
John Criswell47fdd832003-07-14 16:52:07 +00009151# Commands used to build a loadable module (assumed same as above if empty)
9152module_cmds=$lt_module_cmds
9153module_expsym_cmds=$lt_module_expsym_cmds
9154
John Criswell7a73b802003-06-30 21:59:07 +00009155# Commands to strip libraries.
9156old_striplib=$lt_old_striplib
9157striplib=$lt_striplib
9158
John Criswell47fdd832003-07-14 16:52:07 +00009159# Dependencies to place before the objects being linked to create a
9160# shared library.
9161predep_objects=$lt_predep_objects
9162
9163# Dependencies to place after the objects being linked to create a
9164# shared library.
9165postdep_objects=$lt_postdep_objects
9166
9167# Dependencies to place before the objects being linked to create a
9168# shared library.
9169predeps=$lt_predeps
9170
9171# Dependencies to place after the objects being linked to create a
9172# shared library.
9173postdeps=$lt_postdeps
9174
9175# The library search path used internally by the compiler when linking
9176# a shared library.
9177compiler_lib_search_path=$lt_compiler_lib_search_path
9178
John Criswell7a73b802003-06-30 21:59:07 +00009179# Method to check whether dependent libraries are shared objects.
9180deplibs_check_method=$lt_deplibs_check_method
9181
9182# Command to use when deplibs_check_method == file_magic.
9183file_magic_cmd=$lt_file_magic_cmd
9184
9185# Flag that allows shared libraries with undefined symbols to be built.
9186allow_undefined_flag=$lt_allow_undefined_flag
9187
9188# Flag that forces no undefined symbols.
9189no_undefined_flag=$lt_no_undefined_flag
9190
9191# Commands used to finish a libtool library installation in a directory.
9192finish_cmds=$lt_finish_cmds
9193
9194# Same as above, but a single script fragment to be evaled but not shown.
9195finish_eval=$lt_finish_eval
9196
9197# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009198global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009199
9200# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009201global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009202
9203# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009204global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009205
9206# This is the shared library runtime path variable.
9207runpath_var=$runpath_var
9208
9209# This is the shared library path variable.
9210shlibpath_var=$shlibpath_var
9211
9212# Is shlibpath searched before the hard-coded library search path?
9213shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9214
9215# How to hardcode a shared library path into an executable.
9216hardcode_action=$hardcode_action
9217
9218# Whether we should hardcode library paths into libraries.
9219hardcode_into_libs=$hardcode_into_libs
9220
9221# Flag to hardcode \$libdir into a binary during linking.
9222# This must work even if \$libdir does not exist.
9223hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9224
John Criswell47fdd832003-07-14 16:52:07 +00009225# If ld is used when linking, flag to hardcode \$libdir into
9226# a binary during linking. This must work even if \$libdir does
9227# not exist.
9228hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9229
John Criswell7a73b802003-06-30 21:59:07 +00009230# Whether we need a single -rpath flag with a separated argument.
9231hardcode_libdir_separator=$lt_hardcode_libdir_separator
9232
John Criswell47fdd832003-07-14 16:52:07 +00009233# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009234# resulting binary.
9235hardcode_direct=$hardcode_direct
9236
9237# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9238# resulting binary.
9239hardcode_minus_L=$hardcode_minus_L
9240
9241# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9242# the resulting binary.
9243hardcode_shlibpath_var=$hardcode_shlibpath_var
9244
John Criswell47fdd832003-07-14 16:52:07 +00009245# Set to yes if building a shared library automatically hardcodes DIR into the library
9246# and all subsequent libraries and executables linked against it.
9247hardcode_automatic=$hardcode_automatic
9248
John Criswell7a73b802003-06-30 21:59:07 +00009249# Variables whose values should be saved in libtool wrapper scripts and
9250# restored at relink time.
9251variables_saved_for_relink="$variables_saved_for_relink"
9252
9253# Whether libtool must link a program against all its dependency libraries.
9254link_all_deplibs=$link_all_deplibs
9255
9256# Compile-time system search path for libraries
9257sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9258
9259# Run-time system search path for libraries
9260sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9261
9262# Fix the shell variable \$srcfile for the compiler.
9263fix_srcfile_path="$fix_srcfile_path"
9264
9265# Set to yes if exported symbols are required.
9266always_export_symbols=$always_export_symbols
9267
9268# The commands to list exported symbols.
9269export_symbols_cmds=$lt_export_symbols_cmds
9270
9271# The commands to extract the exported symbol list from a shared archive.
9272extract_expsyms_cmds=$lt_extract_expsyms_cmds
9273
9274# Symbols that should not be listed in the preloaded symbols.
9275exclude_expsyms=$lt_exclude_expsyms
9276
9277# Symbols that must always be exported.
9278include_expsyms=$lt_include_expsyms
9279
9280# ### END LIBTOOL CONFIG
9281
9282__EOF__
9283
John Criswell47fdd832003-07-14 16:52:07 +00009284
John Criswell7a73b802003-06-30 21:59:07 +00009285 case $host_os in
9286 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009287 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009288
9289# AIX sometimes has problems with the GCC collect2 program. For some
9290# reason, if we set the COLLECT_NAMES environment variable, the problems
9291# vanish in a puff of smoke.
9292if test "X${COLLECT_NAMES+set}" != Xset; then
9293 COLLECT_NAMES=
9294 export COLLECT_NAMES
9295fi
9296EOF
9297 ;;
9298 esac
9299
John Criswell7a73b802003-06-30 21:59:07 +00009300 # We use sed instead of cat because bash on DJGPP gets confused if
9301 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9302 # text mode, it properly converts lines to CR/LF. This bash problem
9303 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009304 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009305
John Criswell47fdd832003-07-14 16:52:07 +00009306 mv -f "$cfgfile" "$ofile" || \
9307 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009308 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009309
9310else
9311 # If there is no Makefile yet, we rely on a make rule to execute
9312 # `config.status --recheck' to rerun these tests and create the
9313 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009314 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9315 if test -f "$ltmain_in"; then
9316 test -f Makefile && make "$ltmain"
9317 fi
John Criswell7a73b802003-06-30 21:59:07 +00009318fi
John Criswell7a73b802003-06-30 21:59:07 +00009319
9320
John Criswell47fdd832003-07-14 16:52:07 +00009321ac_ext=c
9322ac_cpp='$CPP $CPPFLAGS'
9323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9325ac_compiler_gnu=$ac_cv_c_compiler_gnu
9326
9327CC="$lt_save_CC"
9328
9329
9330# Check whether --with-tags or --without-tags was given.
9331if test "${with_tags+set}" = set; then
9332 withval="$with_tags"
9333 tagnames="$withval"
9334fi;
9335
9336if test -f "$ltmain" && test -n "$tagnames"; then
9337 if test ! -f "${ofile}"; then
9338 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9339echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9340 fi
9341
9342 if test -z "$LTCC"; then
9343 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9344 if test -z "$LTCC"; then
9345 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9346echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9347 else
9348 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9349echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9350 fi
9351 fi
9352
9353 # Extract list of available tagged configurations in $ofile.
9354 # Note that this assumes the entire list is on one line.
9355 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9356
9357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9358 for tagname in $tagnames; do
9359 IFS="$lt_save_ifs"
9360 # Check whether tagname contains only valid characters
9361 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9362 "") ;;
9363 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9364echo "$as_me: error: invalid tag name: $tagname" >&2;}
9365 { (exit 1); exit 1; }; }
9366 ;;
9367 esac
9368
9369 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9370 then
9371 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9372echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9373 { (exit 1); exit 1; }; }
9374 fi
9375
9376 # Update the list of available tags.
9377 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +00009378 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +00009379
9380 case $tagname in
9381 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +00009382 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9383 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9384 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +00009385 ac_ext=cc
9386ac_cpp='$CXXCPP $CPPFLAGS'
9387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9390
9391
9392
9393
9394archive_cmds_need_lc_CXX=no
9395allow_undefined_flag_CXX=
9396always_export_symbols_CXX=no
9397archive_expsym_cmds_CXX=
9398export_dynamic_flag_spec_CXX=
9399hardcode_direct_CXX=no
9400hardcode_libdir_flag_spec_CXX=
9401hardcode_libdir_flag_spec_ld_CXX=
9402hardcode_libdir_separator_CXX=
9403hardcode_minus_L_CXX=no
9404hardcode_automatic_CXX=no
9405module_cmds_CXX=
9406module_expsym_cmds_CXX=
9407link_all_deplibs_CXX=unknown
9408old_archive_cmds_CXX=$old_archive_cmds
9409no_undefined_flag_CXX=
9410whole_archive_flag_spec_CXX=
9411enable_shared_with_static_runtimes_CXX=no
9412
9413# Dependencies to place before and after the object being linked:
9414predep_objects_CXX=
9415postdep_objects_CXX=
9416predeps_CXX=
9417postdeps_CXX=
9418compiler_lib_search_path_CXX=
9419
9420# Source file extension for C++ test sources.
9421ac_ext=cc
9422
9423# Object file extension for compiled C++ test sources.
9424objext=o
9425objext_CXX=$objext
9426
9427# Code to be used in simple compile tests
9428lt_simple_compile_test_code="int some_variable = 0;\n"
9429
9430# Code to be used in simple link tests
9431lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9432
9433# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9434
9435# If no C compiler was specified, use CC.
9436LTCC=${LTCC-"$CC"}
9437
9438# Allow CC to be a program name with arguments.
9439compiler=$CC
9440
9441
9442# Allow CC to be a program name with arguments.
9443lt_save_CC=$CC
9444lt_save_LD=$LD
9445lt_save_GCC=$GCC
9446GCC=$GXX
9447lt_save_with_gnu_ld=$with_gnu_ld
9448lt_save_path_LD=$lt_cv_path_LD
9449if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9450 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9451else
9452 unset lt_cv_prog_gnu_ld
9453fi
9454if test -n "${lt_cv_path_LDCXX+set}"; then
9455 lt_cv_path_LD=$lt_cv_path_LDCXX
9456else
9457 unset lt_cv_path_LD
9458fi
9459test -z "${LDCXX+set}" || LD=$LDCXX
9460CC=${CXX-"c++"}
9461compiler=$CC
9462compiler_CXX=$CC
9463cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9464
9465# We don't want -fno-exception wen compiling C++ code, so set the
9466# no_builtin_flag separately
9467if test "$GXX" = yes; then
9468 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9469else
9470 lt_prog_compiler_no_builtin_flag_CXX=
9471fi
9472
9473if test "$GXX" = yes; then
9474 # Set up default GNU C++ configuration
9475
9476
9477# Check whether --with-gnu-ld or --without-gnu-ld was given.
9478if test "${with_gnu_ld+set}" = set; then
9479 withval="$with_gnu_ld"
9480 test "$withval" = no || with_gnu_ld=yes
9481else
9482 with_gnu_ld=no
9483fi;
9484ac_prog=ld
9485if test "$GCC" = yes; then
9486 # Check if gcc -print-prog-name=ld gives a path.
9487 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9488echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9489 case $host in
9490 *-*-mingw*)
9491 # gcc leaves a trailing carriage return which upsets mingw
9492 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9493 *)
9494 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9495 esac
9496 case $ac_prog in
9497 # Accept absolute paths.
9498 [\\/]* | ?:[\\/]*)
9499 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009500 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00009501 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9502 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9503 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9504 done
9505 test -z "$LD" && LD="$ac_prog"
9506 ;;
9507 "")
9508 # If it fails, then pretend we aren't using GCC.
9509 ac_prog=ld
9510 ;;
9511 *)
9512 # If it is relative, then search for the first ld in PATH.
9513 with_gnu_ld=unknown
9514 ;;
9515 esac
9516elif test "$with_gnu_ld" = yes; then
9517 echo "$as_me:$LINENO: checking for GNU ld" >&5
9518echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9519else
9520 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9521echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9522fi
9523if test "${lt_cv_path_LD+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9525else
9526 if test -z "$LD"; then
9527 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9528 for ac_dir in $PATH; do
9529 IFS="$lt_save_ifs"
9530 test -z "$ac_dir" && ac_dir=.
9531 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9532 lt_cv_path_LD="$ac_dir/$ac_prog"
9533 # Check to see if the program is GNU ld. I'd rather use --version,
9534 # but apparently some GNU ld's only accept -v.
9535 # Break only if it was the GNU/non-GNU ld that we prefer.
9536 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9537 *GNU* | *'with BFD'*)
9538 test "$with_gnu_ld" != no && break
9539 ;;
9540 *)
9541 test "$with_gnu_ld" != yes && break
9542 ;;
9543 esac
9544 fi
9545 done
9546 IFS="$lt_save_ifs"
9547else
9548 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9549fi
9550fi
9551
9552LD="$lt_cv_path_LD"
9553if test -n "$LD"; then
9554 echo "$as_me:$LINENO: result: $LD" >&5
9555echo "${ECHO_T}$LD" >&6
9556else
9557 echo "$as_me:$LINENO: result: no" >&5
9558echo "${ECHO_T}no" >&6
9559fi
9560test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9561echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9562 { (exit 1); exit 1; }; }
9563echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9564echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9565if test "${lt_cv_prog_gnu_ld+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9567else
9568 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009569case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00009570*GNU* | *'with BFD'*)
9571 lt_cv_prog_gnu_ld=yes
9572 ;;
9573*)
9574 lt_cv_prog_gnu_ld=no
9575 ;;
9576esac
9577fi
9578echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9579echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9580with_gnu_ld=$lt_cv_prog_gnu_ld
9581
9582
9583
9584 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9585 # archiving commands below assume that GNU ld is being used.
9586 if test "$with_gnu_ld" = yes; then
9587 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9588 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'
9589
9590 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9591 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9592
9593 # If archive_cmds runs LD, not CC, wlarc should be empty
9594 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9595 # investigate it a little bit more. (MM)
9596 wlarc='${wl}'
9597
9598 # ancient GNU ld didn't support --whole-archive et. al.
9599 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9600 grep 'no-whole-archive' > /dev/null; then
9601 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9602 else
9603 whole_archive_flag_spec_CXX=
9604 fi
9605 else
9606 with_gnu_ld=no
9607 wlarc=
9608
9609 # A generic and very simple default shared library creation
9610 # command for GNU C++ for the case where it uses the native
9611 # linker, instead of GNU ld. If possible, this setting should
9612 # overridden to take advantage of the native linker features on
9613 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009614 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +00009615 fi
9616
9617 # Commands to make compiler produce verbose output that lists
9618 # what "hidden" libraries, object files and flags are used when
9619 # linking a shared library.
9620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9621
9622else
9623 GXX=no
9624 with_gnu_ld=no
9625 wlarc=
9626fi
9627
9628# PORTME: fill in a description of your system's C++ link characteristics
9629echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9630echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9631ld_shlibs_CXX=yes
9632case $host_os in
9633 aix3*)
9634 # FIXME: insert proper C++ library support
9635 ld_shlibs_CXX=no
9636 ;;
9637 aix4* | aix5*)
9638 if test "$host_cpu" = ia64; then
9639 # On IA64, the linker does run time linking by default, so we don't
9640 # have to do anything special.
9641 aix_use_runtimelinking=no
9642 exp_sym_flag='-Bexport'
9643 no_entry_flag=""
9644 else
9645 aix_use_runtimelinking=no
9646
9647 # Test if we are trying to use run time linking or normal
9648 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9649 # need to do runtime linking.
9650 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9651 for ld_flag in $LDFLAGS; do
9652 case $ld_flag in
9653 *-brtl*)
9654 aix_use_runtimelinking=yes
9655 break
9656 ;;
9657 esac
9658 done
9659 esac
9660
9661 exp_sym_flag='-bexport'
9662 no_entry_flag='-bnoentry'
9663 fi
9664
9665 # When large executables or shared objects are built, AIX ld can
9666 # have problems creating the table of contents. If linking a library
9667 # or program results in "error TOC overflow" add -mminimal-toc to
9668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9670
9671 archive_cmds_CXX=''
9672 hardcode_direct_CXX=yes
9673 hardcode_libdir_separator_CXX=':'
9674 link_all_deplibs_CXX=yes
9675
9676 if test "$GXX" = yes; then
9677 case $host_os in aix4.012|aix4.012.*)
9678 # We only want to do this on AIX 4.2 and lower, the check
9679 # below for broken collect2 doesn't work under 4.3+
9680 collect2name=`${CC} -print-prog-name=collect2`
9681 if test -f "$collect2name" && \
9682 strings "$collect2name" | grep resolve_lib_name >/dev/null
9683 then
9684 # We have reworked collect2
9685 hardcode_direct_CXX=yes
9686 else
9687 # We have old collect2
9688 hardcode_direct_CXX=unsupported
9689 # It fails to find uninstalled libraries when the uninstalled
9690 # path is not listed in the libpath. Setting hardcode_minus_L
9691 # to unsupported forces relinking
9692 hardcode_minus_L_CXX=yes
9693 hardcode_libdir_flag_spec_CXX='-L$libdir'
9694 hardcode_libdir_separator_CXX=
9695 fi
9696 esac
9697 shared_flag='-shared'
9698 else
9699 # not using gcc
9700 if test "$host_cpu" = ia64; then
9701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9702 # chokes on -Wl,-G. The following line is correct:
9703 shared_flag='-G'
9704 else
9705 if test "$aix_use_runtimelinking" = yes; then
9706 shared_flag='${wl}-G'
9707 else
9708 shared_flag='${wl}-bM:SRE'
9709 fi
9710 fi
9711 fi
9712
9713 # It seems that -bexpall does not export symbols beginning with
9714 # underscore (_), so it is better to generate a list of symbols to export.
9715 always_export_symbols_CXX=yes
9716 if test "$aix_use_runtimelinking" = yes; then
9717 # Warning - without using the other runtime loading flags (-brtl),
9718 # -berok will link without error, but may produce a broken library.
9719 allow_undefined_flag_CXX='-berok'
9720 # Determine the default libpath from the value encoded in an empty executable.
9721 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009722/* confdefs.h. */
9723_ACEOF
9724cat confdefs.h >>conftest.$ac_ext
9725cat >>conftest.$ac_ext <<_ACEOF
9726/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009727
John Criswell47fdd832003-07-14 16:52:07 +00009728int
9729main ()
9730{
9731
9732 ;
9733 return 0;
9734}
9735_ACEOF
9736rm -f conftest.$ac_objext conftest$ac_exeext
9737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009738 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009739 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009745 { ac_try='test -z "$ac_cxx_werror_flag"
9746 || test ! -s conftest.err'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758
9759aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9760}'`
9761# Check for a 64-bit object if we didn't find anything.
9762if 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; }
9763}'`; fi
9764else
9765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009766sed 's/^/| /' conftest.$ac_ext >&5
9767
John Criswell47fdd832003-07-14 16:52:07 +00009768fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009769rm -f conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009771if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9772
9773 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9774
9775 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"
9776 else
9777 if test "$host_cpu" = ia64; then
9778 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9779 allow_undefined_flag_CXX="-z nodefs"
9780 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"
9781 else
9782 # Determine the default libpath from the value encoded in an empty executable.
9783 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009784/* confdefs.h. */
9785_ACEOF
9786cat confdefs.h >>conftest.$ac_ext
9787cat >>conftest.$ac_ext <<_ACEOF
9788/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009789
John Criswell47fdd832003-07-14 16:52:07 +00009790int
9791main ()
9792{
9793
9794 ;
9795 return 0;
9796}
9797_ACEOF
9798rm -f conftest.$ac_objext conftest$ac_exeext
9799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009800 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009801 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009807 { ac_try='test -z "$ac_cxx_werror_flag"
9808 || test ! -s conftest.err'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 (eval $ac_try) 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; } &&
9814 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 (eval $ac_try) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820
9821aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9822}'`
9823# Check for a 64-bit object if we didn't find anything.
9824if 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; }
9825}'`; fi
9826else
9827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009828sed 's/^/| /' conftest.$ac_ext >&5
9829
John Criswell47fdd832003-07-14 16:52:07 +00009830fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009831rm -f conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009833if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9834
9835 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9836 # Warning - without using the other run time loading flags,
9837 # -berok will link without error, but may produce a broken library.
9838 no_undefined_flag_CXX=' ${wl}-bernotok'
9839 allow_undefined_flag_CXX=' ${wl}-berok'
9840 # -bexpall does not export symbols beginning with underscore (_)
9841 always_export_symbols_CXX=yes
9842 # Exported symbols can be pulled into shared objects from archives
9843 whole_archive_flag_spec_CXX=' '
9844 archive_cmds_need_lc_CXX=yes
9845 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +00009846 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'
John Criswell47fdd832003-07-14 16:52:07 +00009847 fi
9848 fi
9849 ;;
9850 chorus*)
9851 case $cc_basename in
9852 *)
9853 # FIXME: insert proper C++ library support
9854 ld_shlibs_CXX=no
9855 ;;
9856 esac
9857 ;;
9858
Reid Spencer2706f8c2004-09-19 23:53:36 +00009859
John Criswell47fdd832003-07-14 16:52:07 +00009860 cygwin* | mingw* | pw32*)
9861 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9862 # as there is no search path for DLLs.
9863 hardcode_libdir_flag_spec_CXX='-L$libdir'
9864 allow_undefined_flag_CXX=unsupported
9865 always_export_symbols_CXX=no
9866 enable_shared_with_static_runtimes_CXX=yes
9867
9868 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9869 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'
9870 # If the export-symbols file already is a .def file (1st line
9871 # is EXPORTS), use it as is; otherwise, prepend...
9872 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9873 cp $export_symbols $output_objdir/$soname.def;
9874 else
9875 echo EXPORTS > $output_objdir/$soname.def;
9876 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +00009877 fi~
9878 $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'
John Criswell47fdd832003-07-14 16:52:07 +00009879 else
9880 ld_shlibs_CXX=no
9881 fi
9882 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009883 darwin* | rhapsody*)
9884 case "$host_os" in
9885 rhapsody* | darwin1.[012])
9886 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9887 ;;
9888 *) # Darwin 1.3 on
9889 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9890 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9891 else
9892 case ${MACOSX_DEPLOYMENT_TARGET} in
9893 10.[012])
9894 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9895 ;;
9896 10.*)
9897 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9898 ;;
9899 esac
9900 fi
9901 ;;
9902 esac
9903 archive_cmds_need_lc_CXX=no
9904 hardcode_direct_CXX=no
9905 hardcode_automatic_CXX=yes
9906 hardcode_shlibpath_var_CXX=unsupported
9907 whole_archive_flag_spec_CXX=''
9908 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +00009909
Reid Spencer2706f8c2004-09-19 23:53:36 +00009910 if test "$GXX" = yes ; then
9911 lt_int_apple_cc_single_mod=no
9912 output_verbose_link_cmd='echo'
9913 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9914 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009915 fi
Brian Gaeke0a621332004-09-08 20:38:05 +00009916 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00009917 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Brian Gaeke0a621332004-09-08 20:38:05 +00009918 else
Reid Spencer177dbe22004-10-13 01:01:03 +00009919 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'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009920 fi
9921 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9922 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9923 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +00009924 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009925 else
Reid Spencer177dbe22004-10-13 01:01:03 +00009926 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009927 fi
Reid Spencer177dbe22004-10-13 01:01:03 +00009928 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009929 else
9930 case "$cc_basename" in
9931 xlc*)
9932 output_verbose_link_cmd='echo'
9933 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'
9934 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9935 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +00009936 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}'
9937 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009938 ;;
9939 *)
9940 ld_shlibs_CXX=no
9941 ;;
9942 esac
Brian Gaeke0a621332004-09-08 20:38:05 +00009943 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009944 ;;
John Criswell47fdd832003-07-14 16:52:07 +00009945
9946 dgux*)
9947 case $cc_basename in
9948 ec++)
9949 # FIXME: insert proper C++ library support
9950 ld_shlibs_CXX=no
9951 ;;
9952 ghcx)
9953 # Green Hills C++ Compiler
9954 # FIXME: insert proper C++ library support
9955 ld_shlibs_CXX=no
9956 ;;
9957 *)
9958 # FIXME: insert proper C++ library support
9959 ld_shlibs_CXX=no
9960 ;;
9961 esac
9962 ;;
9963 freebsd12*)
9964 # C++ shared libraries reported to be fairly broken before switch to ELF
9965 ld_shlibs_CXX=no
9966 ;;
9967 freebsd-elf*)
9968 archive_cmds_need_lc_CXX=no
9969 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009970 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00009971 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9972 # conventions
9973 ld_shlibs_CXX=yes
9974 ;;
9975 gnu*)
9976 ;;
9977 hpux9*)
9978 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9979 hardcode_libdir_separator_CXX=:
9980 export_dynamic_flag_spec_CXX='${wl}-E'
9981 hardcode_direct_CXX=yes
9982 hardcode_minus_L_CXX=yes # Not in the search PATH,
9983 # but as the default
9984 # location of the library.
9985
9986 case $cc_basename in
9987 CC)
9988 # FIXME: insert proper C++ library support
9989 ld_shlibs_CXX=no
9990 ;;
9991 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +00009992 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'
John Criswell47fdd832003-07-14 16:52:07 +00009993 # Commands to make compiler produce verbose output that lists
9994 # what "hidden" libraries, object files and flags are used when
9995 # linking a shared library.
9996 #
9997 # There doesn't appear to be a way to prevent this compiler from
9998 # explicitly linking system object files so we need to strip them
9999 # from the output so that they don't get included in the library
10000 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010001 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'
John Criswell47fdd832003-07-14 16:52:07 +000010002 ;;
10003 *)
10004 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000010005 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'
John Criswell47fdd832003-07-14 16:52:07 +000010006 else
10007 # FIXME: insert proper C++ library support
10008 ld_shlibs_CXX=no
10009 fi
10010 ;;
10011 esac
10012 ;;
10013 hpux10*|hpux11*)
10014 if test $with_gnu_ld = no; then
10015 case "$host_cpu" in
10016 hppa*64*)
10017 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10018 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10019 hardcode_libdir_separator_CXX=:
10020 ;;
10021 ia64*)
10022 hardcode_libdir_flag_spec_CXX='-L$libdir'
10023 ;;
10024 *)
10025 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10026 hardcode_libdir_separator_CXX=:
10027 export_dynamic_flag_spec_CXX='${wl}-E'
10028 ;;
10029 esac
10030 fi
10031 case "$host_cpu" in
10032 hppa*64*)
10033 hardcode_direct_CXX=no
10034 hardcode_shlibpath_var_CXX=no
10035 ;;
10036 ia64*)
10037 hardcode_direct_CXX=no
10038 hardcode_shlibpath_var_CXX=no
10039 hardcode_minus_L_CXX=yes # Not in the search PATH,
10040 # but as the default
10041 # location of the library.
10042 ;;
10043 *)
10044 hardcode_direct_CXX=yes
10045 hardcode_minus_L_CXX=yes # Not in the search PATH,
10046 # but as the default
10047 # location of the library.
10048 ;;
10049 esac
10050
10051 case $cc_basename in
10052 CC)
10053 # FIXME: insert proper C++ library support
10054 ld_shlibs_CXX=no
10055 ;;
10056 aCC)
10057 case "$host_cpu" in
10058 hppa*64*|ia64*)
10059 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10060 ;;
10061 *)
10062 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10063 ;;
10064 esac
10065 # Commands to make compiler produce verbose output that lists
10066 # what "hidden" libraries, object files and flags are used when
10067 # linking a shared library.
10068 #
10069 # There doesn't appear to be a way to prevent this compiler from
10070 # explicitly linking system object files so we need to strip them
10071 # from the output so that they don't get included in the library
10072 # dependencies.
10073 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'
10074 ;;
10075 *)
10076 if test "$GXX" = yes; then
10077 if test $with_gnu_ld = no; then
10078 case "$host_cpu" in
10079 ia64*|hppa*64*)
10080 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10081 ;;
10082 *)
10083 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'
10084 ;;
10085 esac
10086 fi
10087 else
10088 # FIXME: insert proper C++ library support
10089 ld_shlibs_CXX=no
10090 fi
10091 ;;
10092 esac
10093 ;;
10094 irix5* | irix6*)
10095 case $cc_basename in
10096 CC)
10097 # SGI C++
10098 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'
10099
10100 # Archives containing C++ object files must be created using
10101 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10102 # necessary to make sure instantiated templates are included
10103 # in the archive.
10104 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10105 ;;
10106 *)
10107 if test "$GXX" = yes; then
10108 if test "$with_gnu_ld" = no; then
10109 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'
10110 else
10111 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'
10112 fi
10113 fi
10114 link_all_deplibs_CXX=yes
10115 ;;
10116 esac
10117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10118 hardcode_libdir_separator_CXX=:
10119 ;;
10120 linux*)
10121 case $cc_basename in
10122 KCC)
10123 # Kuck and Associates, Inc. (KAI) C++ Compiler
10124
10125 # KCC will only create a shared library if the output file
10126 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10127 # to its proper name (with version) after linking.
10128 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'
10129 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'
10130 # Commands to make compiler produce verbose output that lists
10131 # what "hidden" libraries, object files and flags are used when
10132 # linking a shared library.
10133 #
10134 # There doesn't appear to be a way to prevent this compiler from
10135 # explicitly linking system object files so we need to strip them
10136 # from the output so that they don't get included in the library
10137 # dependencies.
10138 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'
10139
10140 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10141 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10142
10143 # Archives containing C++ object files must be created using
10144 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10145 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10146 ;;
10147 icpc)
10148 # Intel C++
10149 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000010150 # version 8.0 and above of icpc choke on multiply defined symbols
10151 # if we add $predep_objects and $postdep_objects, however 7.1 and
10152 # earlier do not add the objects themselves.
10153 case `$CC -V 2>&1` in
10154 *"Version 7."*)
10155 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10156 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'
10157 ;;
10158 *) # Version 8.0 or newer
10159 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10161 ;;
10162 esac
John Criswell47fdd832003-07-14 16:52:07 +000010163 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000010164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10165 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10166 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10167 ;;
10168 cxx)
10169 # Compaq C++
10170 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10171 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'
10172
10173 runpath_var=LD_RUN_PATH
10174 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10175 hardcode_libdir_separator_CXX=:
10176
10177 # Commands to make compiler produce verbose output that lists
10178 # what "hidden" libraries, object files and flags are used when
10179 # linking a shared library.
10180 #
10181 # There doesn't appear to be a way to prevent this compiler from
10182 # explicitly linking system object files so we need to strip them
10183 # from the output so that they don't get included in the library
10184 # dependencies.
10185 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'
10186 ;;
10187 esac
10188 ;;
10189 lynxos*)
10190 # FIXME: insert proper C++ library support
10191 ld_shlibs_CXX=no
10192 ;;
10193 m88k*)
10194 # FIXME: insert proper C++ library support
10195 ld_shlibs_CXX=no
10196 ;;
10197 mvs*)
10198 case $cc_basename in
10199 cxx)
10200 # FIXME: insert proper C++ library support
10201 ld_shlibs_CXX=no
10202 ;;
10203 *)
10204 # FIXME: insert proper C++ library support
10205 ld_shlibs_CXX=no
10206 ;;
10207 esac
10208 ;;
10209 netbsd*)
10210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10211 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10212 wlarc=
10213 hardcode_libdir_flag_spec_CXX='-R$libdir'
10214 hardcode_direct_CXX=yes
10215 hardcode_shlibpath_var_CXX=no
10216 fi
10217 # Workaround some broken pre-1.5 toolchains
10218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10219 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010220 openbsd2*)
10221 # C++ shared libraries are fairly broken
10222 ld_shlibs_CXX=no
10223 ;;
10224 openbsd*)
10225 hardcode_direct_CXX=yes
10226 hardcode_shlibpath_var_CXX=no
10227 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10231 export_dynamic_flag_spec_CXX='${wl}-E'
10232 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10233 fi
10234 output_verbose_link_cmd='echo'
10235 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010236 osf3*)
10237 case $cc_basename in
10238 KCC)
10239 # Kuck and Associates, Inc. (KAI) C++ Compiler
10240
10241 # KCC will only create a shared library if the output file
10242 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10243 # to its proper name (with version) after linking.
10244 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'
10245
10246 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10247 hardcode_libdir_separator_CXX=:
10248
10249 # Archives containing C++ object files must be created using
10250 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10251 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10252
10253 ;;
10254 RCC)
10255 # Rational C++ 2.4.1
10256 # FIXME: insert proper C++ library support
10257 ld_shlibs_CXX=no
10258 ;;
10259 cxx)
10260 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10261 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'
10262
10263 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10264 hardcode_libdir_separator_CXX=:
10265
10266 # Commands to make compiler produce verbose output that lists
10267 # what "hidden" libraries, object files and flags are used when
10268 # linking a shared library.
10269 #
10270 # There doesn't appear to be a way to prevent this compiler from
10271 # explicitly linking system object files so we need to strip them
10272 # from the output so that they don't get included in the library
10273 # dependencies.
10274 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'
10275 ;;
10276 *)
10277 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10278 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10279 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'
10280
10281 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10282 hardcode_libdir_separator_CXX=:
10283
10284 # Commands to make compiler produce verbose output that lists
10285 # what "hidden" libraries, object files and flags are used when
10286 # linking a shared library.
10287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10288
10289 else
10290 # FIXME: insert proper C++ library support
10291 ld_shlibs_CXX=no
10292 fi
10293 ;;
10294 esac
10295 ;;
10296 osf4* | osf5*)
10297 case $cc_basename in
10298 KCC)
10299 # Kuck and Associates, Inc. (KAI) C++ Compiler
10300
10301 # KCC will only create a shared library if the output file
10302 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10303 # to its proper name (with version) after linking.
10304 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'
10305
10306 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10307 hardcode_libdir_separator_CXX=:
10308
10309 # Archives containing C++ object files must be created using
10310 # the KAI C++ compiler.
10311 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10312 ;;
10313 RCC)
10314 # Rational C++ 2.4.1
10315 # FIXME: insert proper C++ library support
10316 ld_shlibs_CXX=no
10317 ;;
10318 cxx)
10319 allow_undefined_flag_CXX=' -expect_unresolved \*'
10320 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000010321 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10322 echo "-hidden">> $lib.exp~
10323 $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~
10324 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000010325
10326 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10327 hardcode_libdir_separator_CXX=:
10328
10329 # Commands to make compiler produce verbose output that lists
10330 # what "hidden" libraries, object files and flags are used when
10331 # linking a shared library.
10332 #
10333 # There doesn't appear to be a way to prevent this compiler from
10334 # explicitly linking system object files so we need to strip them
10335 # from the output so that they don't get included in the library
10336 # dependencies.
10337 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'
10338 ;;
10339 *)
10340 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10341 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10342 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'
10343
10344 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10345 hardcode_libdir_separator_CXX=:
10346
10347 # Commands to make compiler produce verbose output that lists
10348 # what "hidden" libraries, object files and flags are used when
10349 # linking a shared library.
10350 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10351
10352 else
10353 # FIXME: insert proper C++ library support
10354 ld_shlibs_CXX=no
10355 fi
10356 ;;
10357 esac
10358 ;;
10359 psos*)
10360 # FIXME: insert proper C++ library support
10361 ld_shlibs_CXX=no
10362 ;;
10363 sco*)
10364 archive_cmds_need_lc_CXX=no
10365 case $cc_basename in
10366 CC)
10367 # FIXME: insert proper C++ library support
10368 ld_shlibs_CXX=no
10369 ;;
10370 *)
10371 # FIXME: insert proper C++ library support
10372 ld_shlibs_CXX=no
10373 ;;
10374 esac
10375 ;;
10376 sunos4*)
10377 case $cc_basename in
10378 CC)
10379 # Sun C++ 4.x
10380 # FIXME: insert proper C++ library support
10381 ld_shlibs_CXX=no
10382 ;;
10383 lcc)
10384 # Lucid
10385 # FIXME: insert proper C++ library support
10386 ld_shlibs_CXX=no
10387 ;;
10388 *)
10389 # FIXME: insert proper C++ library support
10390 ld_shlibs_CXX=no
10391 ;;
10392 esac
10393 ;;
10394 solaris*)
10395 case $cc_basename in
10396 CC)
10397 # Sun C++ 4.2, 5.x and Centerline C++
10398 no_undefined_flag_CXX=' -zdefs'
10399 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000010400 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10401 $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'
John Criswell47fdd832003-07-14 16:52:07 +000010402
10403 hardcode_libdir_flag_spec_CXX='-R$libdir'
10404 hardcode_shlibpath_var_CXX=no
10405 case $host_os in
10406 solaris2.0-5 | solaris2.0-5.*) ;;
10407 *)
10408 # The C++ compiler is used as linker so we must use $wl
10409 # flag to pass the commands to the underlying system
10410 # linker.
10411 # Supported since Solaris 2.6 (maybe 2.5.1?)
10412 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10413 ;;
10414 esac
10415 link_all_deplibs_CXX=yes
10416
10417 # Commands to make compiler produce verbose output that lists
10418 # what "hidden" libraries, object files and flags are used when
10419 # linking a shared library.
10420 #
10421 # There doesn't appear to be a way to prevent this compiler from
10422 # explicitly linking system object files so we need to strip them
10423 # from the output so that they don't get included in the library
10424 # dependencies.
10425 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'
10426
10427 # Archives containing C++ object files must be created using
10428 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10429 # necessary to make sure instantiated templates are included
10430 # in the archive.
10431 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10432 ;;
10433 gcx)
10434 # Green Hills C++ Compiler
10435 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10436
10437 # The C++ compiler must be used to create the archive.
10438 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10439 ;;
10440 *)
10441 # GNU C++ compiler with Solaris linker
10442 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10443 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10444 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000010445 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000010446 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10447 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10448
John Criswell47fdd832003-07-14 16:52:07 +000010449 # Commands to make compiler produce verbose output that lists
10450 # what "hidden" libraries, object files and flags are used when
10451 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000010452 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000010453 else
10454 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10455 # platform.
10456 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000010457 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10458 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000010459
10460 # Commands to make compiler produce verbose output that lists
10461 # what "hidden" libraries, object files and flags are used when
10462 # linking a shared library.
10463 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10464 fi
10465
10466 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10467 fi
10468 ;;
10469 esac
10470 ;;
10471 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10472 archive_cmds_need_lc_CXX=no
10473 ;;
10474 tandem*)
10475 case $cc_basename in
10476 NCC)
10477 # NonStop-UX NCC 3.20
10478 # FIXME: insert proper C++ library support
10479 ld_shlibs_CXX=no
10480 ;;
10481 *)
10482 # FIXME: insert proper C++ library support
10483 ld_shlibs_CXX=no
10484 ;;
10485 esac
10486 ;;
10487 vxworks*)
10488 # FIXME: insert proper C++ library support
10489 ld_shlibs_CXX=no
10490 ;;
10491 *)
10492 # FIXME: insert proper C++ library support
10493 ld_shlibs_CXX=no
10494 ;;
10495esac
10496echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10497echo "${ECHO_T}$ld_shlibs_CXX" >&6
10498test "$ld_shlibs_CXX" = no && can_build_shared=no
10499
10500GCC_CXX="$GXX"
10501LD_CXX="$LD"
10502
John Criswell47fdd832003-07-14 16:52:07 +000010503
10504cat > conftest.$ac_ext <<EOF
10505class Foo
10506{
10507public:
10508 Foo (void) { a = 0; }
10509private:
10510 int a;
10511};
10512EOF
10513
10514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10515 (eval $ac_compile) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; then
10519 # Parse the compiler output and extract the necessary
10520 # objects, libraries and library flags.
10521
10522 # Sentinel used to keep track of whether or not we are before
10523 # the conftest object file.
10524 pre_test_object_deps_done=no
10525
10526 # The `*' in the case matches for architectures that use `case' in
10527 # $output_verbose_cmd can trigger glob expansion during the loop
10528 # eval without this substitution.
10529 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10530
10531 for p in `eval $output_verbose_link_cmd`; do
10532 case $p in
10533
10534 -L* | -R* | -l*)
10535 # Some compilers place space between "-{L,R}" and the path.
10536 # Remove the space.
10537 if test $p = "-L" \
10538 || test $p = "-R"; then
10539 prev=$p
10540 continue
10541 else
10542 prev=
10543 fi
10544
10545 if test "$pre_test_object_deps_done" = no; then
10546 case $p in
10547 -L* | -R*)
10548 # Internal compiler library paths should come after those
10549 # provided the user. The postdeps already come after the
10550 # user supplied libs so there is no need to process them.
10551 if test -z "$compiler_lib_search_path_CXX"; then
10552 compiler_lib_search_path_CXX="${prev}${p}"
10553 else
10554 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10555 fi
10556 ;;
10557 # The "-l" case would never come before the object being
10558 # linked, so don't bother handling this case.
10559 esac
10560 else
10561 if test -z "$postdeps_CXX"; then
10562 postdeps_CXX="${prev}${p}"
10563 else
10564 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10565 fi
10566 fi
10567 ;;
10568
10569 *.$objext)
10570 # This assumes that the test object file only shows up
10571 # once in the compiler output.
10572 if test "$p" = "conftest.$objext"; then
10573 pre_test_object_deps_done=yes
10574 continue
10575 fi
10576
10577 if test "$pre_test_object_deps_done" = no; then
10578 if test -z "$predep_objects_CXX"; then
10579 predep_objects_CXX="$p"
10580 else
10581 predep_objects_CXX="$predep_objects_CXX $p"
10582 fi
10583 else
10584 if test -z "$postdep_objects_CXX"; then
10585 postdep_objects_CXX="$p"
10586 else
10587 postdep_objects_CXX="$postdep_objects_CXX $p"
10588 fi
10589 fi
10590 ;;
10591
10592 *) ;; # Ignore the rest.
10593
10594 esac
10595 done
10596
10597 # Clean up.
10598 rm -f a.out a.exe
10599else
10600 echo "libtool.m4: error: problem compiling CXX test program"
10601fi
10602
10603$rm -f confest.$objext
10604
10605case " $postdeps_CXX " in
10606*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10607esac
10608
10609lt_prog_compiler_wl_CXX=
10610lt_prog_compiler_pic_CXX=
10611lt_prog_compiler_static_CXX=
10612
10613echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10614echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10615
10616 # C++ specific cases for pic, static, wl, etc.
10617 if test "$GXX" = yes; then
10618 lt_prog_compiler_wl_CXX='-Wl,'
10619 lt_prog_compiler_static_CXX='-static'
10620
10621 case $host_os in
10622 aix*)
10623 # All AIX code is PIC.
10624 if test "$host_cpu" = ia64; then
10625 # AIX 5 now supports IA64 processor
10626 lt_prog_compiler_static_CXX='-Bstatic'
10627 fi
10628 ;;
10629 amigaos*)
10630 # FIXME: we need at least 68020 code to build shared libraries, but
10631 # adding the `-m68020' flag to GCC prevents building anything better,
10632 # like `-m68040'.
10633 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10634 ;;
10635 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10636 # PIC is the default for these OSes.
10637 ;;
10638 mingw* | os2* | pw32*)
10639 # This hack is so that the source file can tell whether it is being
10640 # built for inclusion in a dll (and should export symbols for example).
10641 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10642 ;;
10643 darwin* | rhapsody*)
10644 # PIC is the default on this platform
10645 # Common symbols not allowed in MH_DYLIB files
10646 lt_prog_compiler_pic_CXX='-fno-common'
10647 ;;
10648 *djgpp*)
10649 # DJGPP does not support shared libraries at all
10650 lt_prog_compiler_pic_CXX=
10651 ;;
10652 sysv4*MP*)
10653 if test -d /usr/nec; then
10654 lt_prog_compiler_pic_CXX=-Kconform_pic
10655 fi
10656 ;;
10657 hpux*)
10658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10659 # not for PA HP-UX.
10660 case "$host_cpu" in
10661 hppa*64*|ia64*)
10662 ;;
10663 *)
10664 lt_prog_compiler_pic_CXX='-fPIC'
10665 ;;
10666 esac
10667 ;;
10668 *)
10669 lt_prog_compiler_pic_CXX='-fPIC'
10670 ;;
10671 esac
10672 else
10673 case $host_os in
10674 aix4* | aix5*)
10675 # All AIX code is PIC.
10676 if test "$host_cpu" = ia64; then
10677 # AIX 5 now supports IA64 processor
10678 lt_prog_compiler_static_CXX='-Bstatic'
10679 else
10680 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10681 fi
10682 ;;
10683 chorus*)
10684 case $cc_basename in
10685 cxch68)
10686 # Green Hills C++ Compiler
10687 # _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"
10688 ;;
10689 esac
10690 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010691 darwin*)
10692 # PIC is the default on this platform
10693 # Common symbols not allowed in MH_DYLIB files
10694 case "$cc_basename" in
10695 xlc*)
10696 lt_prog_compiler_pic_CXX='-qnocommon'
10697 lt_prog_compiler_wl_CXX='-Wl,'
10698 ;;
10699 esac
10700 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010701 dgux*)
10702 case $cc_basename in
10703 ec++)
10704 lt_prog_compiler_pic_CXX='-KPIC'
10705 ;;
10706 ghcx)
10707 # Green Hills C++ Compiler
10708 lt_prog_compiler_pic_CXX='-pic'
10709 ;;
10710 *)
10711 ;;
10712 esac
10713 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010714 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000010715 # FreeBSD uses GNU C++
10716 ;;
10717 hpux9* | hpux10* | hpux11*)
10718 case $cc_basename in
10719 CC)
10720 lt_prog_compiler_wl_CXX='-Wl,'
10721 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10722 if test "$host_cpu" != ia64; then
10723 lt_prog_compiler_pic_CXX='+Z'
10724 fi
10725 ;;
10726 aCC)
10727 lt_prog_compiler_wl_CXX='-Wl,'
10728 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10729 case "$host_cpu" in
10730 hppa*64*|ia64*)
10731 # +Z the default
10732 ;;
10733 *)
10734 lt_prog_compiler_pic_CXX='+Z'
10735 ;;
10736 esac
10737 ;;
10738 *)
10739 ;;
10740 esac
10741 ;;
10742 irix5* | irix6* | nonstopux*)
10743 case $cc_basename in
10744 CC)
10745 lt_prog_compiler_wl_CXX='-Wl,'
10746 lt_prog_compiler_static_CXX='-non_shared'
10747 # CC pic flag -KPIC is the default.
10748 ;;
10749 *)
10750 ;;
10751 esac
10752 ;;
10753 linux*)
10754 case $cc_basename in
10755 KCC)
10756 # KAI C++ Compiler
10757 lt_prog_compiler_wl_CXX='--backend -Wl,'
10758 lt_prog_compiler_pic_CXX='-fPIC'
10759 ;;
10760 icpc)
10761 # Intel C++
10762 lt_prog_compiler_wl_CXX='-Wl,'
10763 lt_prog_compiler_pic_CXX='-KPIC'
10764 lt_prog_compiler_static_CXX='-static'
10765 ;;
10766 cxx)
10767 # Compaq C++
10768 # Make sure the PIC flag is empty. It appears that all Alpha
10769 # Linux and Compaq Tru64 Unix objects are PIC.
10770 lt_prog_compiler_pic_CXX=
10771 lt_prog_compiler_static_CXX='-non_shared'
10772 ;;
10773 *)
10774 ;;
10775 esac
10776 ;;
10777 lynxos*)
10778 ;;
10779 m88k*)
10780 ;;
10781 mvs*)
10782 case $cc_basename in
10783 cxx)
10784 lt_prog_compiler_pic_CXX='-W c,exportall'
10785 ;;
10786 *)
10787 ;;
10788 esac
10789 ;;
10790 netbsd*)
10791 ;;
10792 osf3* | osf4* | osf5*)
10793 case $cc_basename in
10794 KCC)
10795 lt_prog_compiler_wl_CXX='--backend -Wl,'
10796 ;;
10797 RCC)
10798 # Rational C++ 2.4.1
10799 lt_prog_compiler_pic_CXX='-pic'
10800 ;;
10801 cxx)
10802 # Digital/Compaq C++
10803 lt_prog_compiler_wl_CXX='-Wl,'
10804 # Make sure the PIC flag is empty. It appears that all Alpha
10805 # Linux and Compaq Tru64 Unix objects are PIC.
10806 lt_prog_compiler_pic_CXX=
10807 lt_prog_compiler_static_CXX='-non_shared'
10808 ;;
10809 *)
10810 ;;
10811 esac
10812 ;;
10813 psos*)
10814 ;;
10815 sco*)
10816 case $cc_basename in
10817 CC)
10818 lt_prog_compiler_pic_CXX='-fPIC'
10819 ;;
10820 *)
10821 ;;
10822 esac
10823 ;;
10824 solaris*)
10825 case $cc_basename in
10826 CC)
10827 # Sun C++ 4.2, 5.x and Centerline C++
10828 lt_prog_compiler_pic_CXX='-KPIC'
10829 lt_prog_compiler_static_CXX='-Bstatic'
10830 lt_prog_compiler_wl_CXX='-Qoption ld '
10831 ;;
10832 gcx)
10833 # Green Hills C++ Compiler
10834 lt_prog_compiler_pic_CXX='-PIC'
10835 ;;
10836 *)
10837 ;;
10838 esac
10839 ;;
10840 sunos4*)
10841 case $cc_basename in
10842 CC)
10843 # Sun C++ 4.x
10844 lt_prog_compiler_pic_CXX='-pic'
10845 lt_prog_compiler_static_CXX='-Bstatic'
10846 ;;
10847 lcc)
10848 # Lucid
10849 lt_prog_compiler_pic_CXX='-pic'
10850 ;;
10851 *)
10852 ;;
10853 esac
10854 ;;
10855 tandem*)
10856 case $cc_basename in
10857 NCC)
10858 # NonStop-UX NCC 3.20
10859 lt_prog_compiler_pic_CXX='-KPIC'
10860 ;;
10861 *)
10862 ;;
10863 esac
10864 ;;
10865 unixware*)
10866 ;;
10867 vxworks*)
10868 ;;
10869 *)
10870 lt_prog_compiler_can_build_shared_CXX=no
10871 ;;
10872 esac
10873 fi
10874
10875echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10876echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10877
10878#
10879# Check to make sure the PIC flag actually works.
10880#
10881if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010882
10883echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010884echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10885if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887else
10888 lt_prog_compiler_pic_works_CXX=no
10889 ac_outfile=conftest.$ac_objext
10890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10891 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10892 # Insert the option either (1) after the last *FLAGS variable, or
10893 # (2) before a word containing "conftest.", or (3) at the end.
10894 # Note that $ac_compile itself does not contain backslashes and begins
10895 # with a dollar sign (not a hyphen), so the echo should work correctly.
10896 # The option is referenced via a variable to avoid confusing sed.
10897 lt_compile=`echo "$ac_compile" | $SED \
10898 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10900 -e 's:$: $lt_compiler_flag:'`
John Criswelle96aa1c2004-10-28 13:35:00 +000010901 (eval echo "\"\$as_me:10901: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010902 (eval "$lt_compile" 2>conftest.err)
10903 ac_status=$?
10904 cat conftest.err >&5
John Criswelle96aa1c2004-10-28 13:35:00 +000010905 echo "$as_me:10905: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010906 if (exit $ac_status) && test -s "$ac_outfile"; then
10907 # The compiler can only warn and ignore the option if not recognized
10908 # So say no if there are warnings
10909 if test ! -s conftest.err; then
10910 lt_prog_compiler_pic_works_CXX=yes
10911 fi
10912 fi
10913 $rm conftest*
10914
10915fi
10916echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10917echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10918
10919if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10920 case $lt_prog_compiler_pic_CXX in
10921 "" | " "*) ;;
10922 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10923 esac
10924else
10925 lt_prog_compiler_pic_CXX=
10926 lt_prog_compiler_can_build_shared_CXX=no
10927fi
10928
10929fi
10930case "$host_os" in
10931 # For platforms which do not support PIC, -DPIC is meaningless:
10932 *djgpp*)
10933 lt_prog_compiler_pic_CXX=
10934 ;;
10935 *)
10936 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10937 ;;
10938esac
10939
10940echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10941echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10942if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10944else
10945 lt_cv_prog_compiler_c_o_CXX=no
10946 $rm -r conftest 2>/dev/null
10947 mkdir conftest
10948 cd conftest
10949 mkdir out
10950 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10951
John Criswell47fdd832003-07-14 16:52:07 +000010952 lt_compiler_flag="-o out/conftest2.$ac_objext"
10953 # Insert the option either (1) after the last *FLAGS variable, or
10954 # (2) before a word containing "conftest.", or (3) at the end.
10955 # Note that $ac_compile itself does not contain backslashes and begins
10956 # with a dollar sign (not a hyphen), so the echo should work correctly.
10957 lt_compile=`echo "$ac_compile" | $SED \
10958 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10960 -e 's:$: $lt_compiler_flag:'`
John Criswelle96aa1c2004-10-28 13:35:00 +000010961 (eval echo "\"\$as_me:10961: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010962 (eval "$lt_compile" 2>out/conftest.err)
10963 ac_status=$?
10964 cat out/conftest.err >&5
John Criswelle96aa1c2004-10-28 13:35:00 +000010965 echo "$as_me:10965: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10967 then
10968 # The compiler can only warn and ignore the option if not recognized
10969 # So say no if there are warnings
10970 if test ! -s out/conftest.err; then
10971 lt_cv_prog_compiler_c_o_CXX=yes
10972 fi
10973 fi
10974 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000010975 $rm conftest*
10976 # SGI C++ compiler will create directory out/ii_files/ for
10977 # template instantiation
10978 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10979 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000010980 cd ..
10981 rmdir conftest
10982 $rm conftest*
10983
10984fi
10985echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10986echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10987
10988
10989hard_links="nottested"
10990if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10991 # do not overwrite the value of need_locks provided by the user
10992 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10993echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10994 hard_links=yes
10995 $rm conftest*
10996 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10997 touch conftest.a
10998 ln conftest.a conftest.b 2>&5 || hard_links=no
10999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11000 echo "$as_me:$LINENO: result: $hard_links" >&5
11001echo "${ECHO_T}$hard_links" >&6
11002 if test "$hard_links" = no; then
11003 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11004echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11005 need_locks=warn
11006 fi
11007else
11008 need_locks=no
11009fi
11010
11011echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11012echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11013
11014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11015 case $host_os in
11016 aix4* | aix5*)
11017 # If we're using GNU nm, then we don't want the "-C" option.
11018 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11019 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11020 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'
11021 else
11022 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'
11023 fi
11024 ;;
11025 pw32*)
11026 export_symbols_cmds_CXX="$ltdll_cmds"
11027 ;;
11028 cygwin* | mingw*)
11029 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11030 ;;
11031 *)
11032 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11033 ;;
11034 esac
11035
11036echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11037echo "${ECHO_T}$ld_shlibs_CXX" >&6
11038test "$ld_shlibs_CXX" = no && can_build_shared=no
11039
11040variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11041if test "$GCC" = yes; then
11042 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11043fi
11044
11045#
11046# Do we need to explicitly link libc?
11047#
11048case "x$archive_cmds_need_lc_CXX" in
11049x|xyes)
11050 # Assume -lc should be added
11051 archive_cmds_need_lc_CXX=yes
11052
11053 if test "$enable_shared" = yes && test "$GCC" = yes; then
11054 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011055 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000011056 # FIXME: we may have to deal with multi-command sequences.
11057 ;;
11058 '$CC '*)
11059 # Test whether the compiler implicitly links with -lc since on some
11060 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11061 # to ld, don't add -lc before -lgcc.
11062 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11063echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11064 $rm conftest*
11065 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11066
11067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11068 (eval $ac_compile) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } 2>conftest.err; then
11072 soname=conftest
11073 lib=conftest
11074 libobjs=conftest.$ac_objext
11075 deplibs=
11076 wl=$lt_prog_compiler_wl_CXX
11077 compiler_flags=-v
11078 linker_flags=-v
11079 verstring=
11080 output_objdir=.
11081 libname=conftest
11082 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11083 allow_undefined_flag_CXX=
11084 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11085 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }
11089 then
11090 archive_cmds_need_lc_CXX=no
11091 else
11092 archive_cmds_need_lc_CXX=yes
11093 fi
11094 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11095 else
11096 cat conftest.err 1>&5
11097 fi
11098 $rm conftest*
11099 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11100echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11101 ;;
11102 esac
11103 fi
11104 ;;
11105esac
11106
John Criswell47fdd832003-07-14 16:52:07 +000011107echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11108echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11109library_names_spec=
11110libname_spec='lib$name'
11111soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000011112shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000011113postinstall_cmds=
11114postuninstall_cmds=
11115finish_cmds=
11116finish_eval=
11117shlibpath_var=
11118shlibpath_overrides_runpath=unknown
11119version_type=none
11120dynamic_linker="$host_os ld.so"
11121sys_lib_dlsearch_path_spec="/lib /usr/lib"
11122if test "$GCC" = yes; then
11123 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11124 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11125 # if the path contains ";" then we assume it to be the separator
11126 # otherwise default to the standard path separator (i.e. ":") - it is
11127 # assumed that no part of a normal pathname contains ";" but that should
11128 # okay in the real world where ";" in dirpaths is itself problematic.
11129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11130 else
11131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11132 fi
11133else
11134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11135fi
11136need_lib_prefix=unknown
11137hardcode_into_libs=no
11138
11139# when you set need_version to no, make sure it does not cause -set_version
11140# flags to be left without arguments
11141need_version=unknown
11142
11143case $host_os in
11144aix3*)
11145 version_type=linux
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11147 shlibpath_var=LIBPATH
11148
11149 # AIX 3 has no versioning support, so we append a major version to the name.
11150 soname_spec='${libname}${release}${shared_ext}$major'
11151 ;;
11152
11153aix4* | aix5*)
11154 version_type=linux
11155 need_lib_prefix=no
11156 need_version=no
11157 hardcode_into_libs=yes
11158 if test "$host_cpu" = ia64; then
11159 # AIX 5 supports IA64
11160 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 else
11163 # With GCC up to 2.95.x, collect2 would create an import file
11164 # for dependence libraries. The import file would start with
11165 # the line `#! .'. This would cause the generated library to
11166 # depend on `.', always an invalid library. This was fixed in
11167 # development snapshots of GCC prior to 3.0.
11168 case $host_os in
11169 aix4 | aix4.[01] | aix4.[01].*)
11170 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11171 echo ' yes '
11172 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11173 :
11174 else
11175 can_build_shared=no
11176 fi
11177 ;;
11178 esac
11179 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11180 # soname into executable. Probably we can add versioning support to
11181 # collect2, so additional links can be useful in future.
11182 if test "$aix_use_runtimelinking" = yes; then
11183 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11184 # instead of lib<name>.a to let people know that these are not
11185 # typical AIX shared libraries.
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 else
11188 # We preserve .a as extension for shared libraries through AIX4.2
11189 # and later when we are not doing run time linking.
11190 library_names_spec='${libname}${release}.a $libname.a'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 fi
11193 shlibpath_var=LIBPATH
11194 fi
11195 ;;
11196
11197amigaos*)
11198 library_names_spec='$libname.ixlibrary $libname.a'
11199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011200 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'
John Criswell47fdd832003-07-14 16:52:07 +000011201 ;;
11202
11203beos*)
11204 library_names_spec='${libname}${shared_ext}'
11205 dynamic_linker="$host_os ld.so"
11206 shlibpath_var=LIBRARY_PATH
11207 ;;
11208
Reid Spencer2706f8c2004-09-19 23:53:36 +000011209bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000011210 version_type=linux
11211 need_version=no
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11217 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11218 # the default ld.so.conf also contains /usr/contrib/lib and
11219 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11220 # libtool to hard-code these into programs
11221 ;;
11222
11223cygwin* | mingw* | pw32*)
11224 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000011225 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011226 need_version=no
11227 need_lib_prefix=no
11228
11229 case $GCC,$host_os in
11230 yes,cygwin* | yes,mingw* | yes,pw32*)
11231 library_names_spec='$libname.dll.a'
11232 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000011233 postinstall_cmds='base_file=`basename \${file}`~
11234 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11235 dldir=$destdir/`dirname \$dlpath`~
11236 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000011237 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000011238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11239 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000011240 $rm \$dlpath'
11241 shlibpath_overrides_runpath=yes
11242
11243 case $host_os in
11244 cygwin*)
11245 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11246 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000011247 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000011248 ;;
11249 mingw*)
11250 # MinGW DLLs use traditional 'lib' prefix
11251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11252 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11253 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11254 # It is most probably a Windows format PATH printed by
11255 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11256 # path with ; separators, and with drive letters. We can handle the
11257 # drive letters (cygwin fileutils understands them), so leave them,
11258 # especially as we might pass files found there to a mingw objdump,
11259 # which wouldn't understand a cygwinified path. Ahh.
11260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11261 else
11262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11263 fi
11264 ;;
11265 pw32*)
11266 # pw32 DLLs use 'pw' prefix rather than 'lib'
11267 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11268 ;;
11269 esac
11270 ;;
11271
11272 *)
11273 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11274 ;;
11275 esac
11276 dynamic_linker='Win32 ld.exe'
11277 # FIXME: first we should search . and the directory the executable is in
11278 shlibpath_var=PATH
11279 ;;
11280
11281darwin* | rhapsody*)
11282 dynamic_linker="$host_os dyld"
11283 version_type=darwin
11284 need_lib_prefix=no
11285 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000011286 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000011287 soname_spec='${libname}${release}${major}$shared_ext'
11288 shlibpath_overrides_runpath=yes
11289 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000011290 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000011291 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011292 if test "$GCC" = yes; then
11293 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"`
11294 else
11295 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000011296 fi
11297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11298 ;;
11299
11300dgux*)
11301 version_type=linux
11302 need_lib_prefix=no
11303 need_version=no
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 ;;
11308
11309freebsd1*)
11310 dynamic_linker=no
11311 ;;
11312
Reid Spencer2706f8c2004-09-19 23:53:36 +000011313kfreebsd*-gnu)
11314 version_type=linux
11315 need_lib_prefix=no
11316 need_version=no
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 shlibpath_overrides_runpath=no
11321 hardcode_into_libs=yes
11322 dynamic_linker='GNU ld.so'
11323 ;;
11324
John Criswell47fdd832003-07-14 16:52:07 +000011325freebsd*)
11326 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11327 version_type=freebsd-$objformat
11328 case $version_type in
11329 freebsd-elf*)
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11331 need_version=no
11332 need_lib_prefix=no
11333 ;;
11334 freebsd-*)
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11336 need_version=yes
11337 ;;
11338 esac
11339 shlibpath_var=LD_LIBRARY_PATH
11340 case $host_os in
11341 freebsd2*)
11342 shlibpath_overrides_runpath=yes
11343 ;;
11344 freebsd3.01* | freebsdelf3.01*)
11345 shlibpath_overrides_runpath=yes
11346 hardcode_into_libs=yes
11347 ;;
11348 *) # from 3.2 on
11349 shlibpath_overrides_runpath=no
11350 hardcode_into_libs=yes
11351 ;;
11352 esac
11353 ;;
11354
11355gnu*)
11356 version_type=linux
11357 need_lib_prefix=no
11358 need_version=no
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 hardcode_into_libs=yes
11363 ;;
11364
11365hpux9* | hpux10* | hpux11*)
11366 # Give a soname corresponding to the major version so that dld.sl refuses to
11367 # link against other versions.
11368 version_type=sunos
11369 need_lib_prefix=no
11370 need_version=no
11371 case "$host_cpu" in
11372 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011373 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000011374 hardcode_into_libs=yes
11375 dynamic_linker="$host_os dld.so"
11376 shlibpath_var=LD_LIBRARY_PATH
11377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 if test "X$HPUX_IA64_MODE" = X32; then
11381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11382 else
11383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11384 fi
11385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11386 ;;
11387 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011388 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011389 hardcode_into_libs=yes
11390 dynamic_linker="$host_os dld.sl"
11391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11397 ;;
11398 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011399 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011400 dynamic_linker="$host_os dld.sl"
11401 shlibpath_var=SHLIB_PATH
11402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 soname_spec='${libname}${release}${shared_ext}$major'
11405 ;;
11406 esac
11407 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11408 postinstall_cmds='chmod 555 $lib'
11409 ;;
11410
11411irix5* | irix6* | nonstopux*)
11412 case $host_os in
11413 nonstopux*) version_type=nonstopux ;;
11414 *)
11415 if test "$lt_cv_prog_gnu_ld" = yes; then
11416 version_type=linux
11417 else
11418 version_type=irix
11419 fi ;;
11420 esac
11421 need_lib_prefix=no
11422 need_version=no
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11425 case $host_os in
11426 irix5* | nonstopux*)
11427 libsuff= shlibsuff=
11428 ;;
11429 *)
11430 case $LD in # libtool.m4 will add one of these switches to LD
11431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11432 libsuff= shlibsuff= libmagic=32-bit;;
11433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11434 libsuff=32 shlibsuff=N32 libmagic=N32;;
11435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11437 *) libsuff= shlibsuff= libmagic=never-match;;
11438 esac
11439 ;;
11440 esac
11441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11442 shlibpath_overrides_runpath=no
11443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11445 hardcode_into_libs=yes
11446 ;;
11447
11448# No shared lib support for Linux oldld, aout, or coff.
11449linux*oldld* | linux*aout* | linux*coff*)
11450 dynamic_linker=no
11451 ;;
11452
11453# This must be Linux ELF.
11454linux*)
11455 version_type=linux
11456 need_lib_prefix=no
11457 need_version=no
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11461 shlibpath_var=LD_LIBRARY_PATH
11462 shlibpath_overrides_runpath=no
11463 # This implies no fast_install, which is unacceptable.
11464 # Some rework will be needed to allow for fast_install
11465 # before this can be enabled.
11466 hardcode_into_libs=yes
11467
Reid Spencer2706f8c2004-09-19 23:53:36 +000011468 # Append ld.so.conf contents to the search path
11469 if test -f /etc/ld.so.conf; then
11470 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11472 fi
11473
John Criswell47fdd832003-07-14 16:52:07 +000011474 # We used to test for /lib/ld.so.1 and disable shared libraries on
11475 # powerpc, because MkLinux only supported shared libraries with the
11476 # GNU dynamic linker. Since this was broken with cross compilers,
11477 # most powerpc-linux boxes support dynamic linking these days and
11478 # people can always --disable-shared, the test was removed, and we
11479 # assume the GNU/Linux dynamic linker is in use.
11480 dynamic_linker='GNU/Linux ld.so'
11481 ;;
11482
Reid Spencer2706f8c2004-09-19 23:53:36 +000011483knetbsd*-gnu)
11484 version_type=linux
11485 need_lib_prefix=no
11486 need_version=no
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 shlibpath_overrides_runpath=no
11491 hardcode_into_libs=yes
11492 dynamic_linker='GNU ld.so'
11493 ;;
11494
John Criswell47fdd832003-07-14 16:52:07 +000011495netbsd*)
11496 version_type=sunos
11497 need_lib_prefix=no
11498 need_version=no
11499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11502 dynamic_linker='NetBSD (a.out) ld.so'
11503 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000011505 soname_spec='${libname}${release}${shared_ext}$major'
11506 dynamic_linker='NetBSD ld.elf_so'
11507 fi
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes
11510 hardcode_into_libs=yes
11511 ;;
11512
11513newsos6)
11514 version_type=linux
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes
11518 ;;
11519
Reid Spencer2706f8c2004-09-19 23:53:36 +000011520nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000011521 version_type=linux
11522 need_lib_prefix=no
11523 need_version=no
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11528 ;;
11529
11530openbsd*)
11531 version_type=sunos
11532 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000011533 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000011534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11538 case $host_os in
11539 openbsd2.[89] | openbsd2.[89].*)
11540 shlibpath_overrides_runpath=no
11541 ;;
11542 *)
11543 shlibpath_overrides_runpath=yes
11544 ;;
11545 esac
11546 else
11547 shlibpath_overrides_runpath=yes
11548 fi
11549 ;;
11550
11551os2*)
11552 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000011553 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011554 need_lib_prefix=no
11555 library_names_spec='$libname${shared_ext} $libname.a'
11556 dynamic_linker='OS/2 ld.exe'
11557 shlibpath_var=LIBPATH
11558 ;;
11559
11560osf3* | osf4* | osf5*)
11561 version_type=osf
11562 need_lib_prefix=no
11563 need_version=no
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 shlibpath_var=LD_LIBRARY_PATH
11567 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11568 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11569 ;;
11570
11571sco3.2v5*)
11572 version_type=osf
11573 soname_spec='${libname}${release}${shared_ext}$major'
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575 shlibpath_var=LD_LIBRARY_PATH
11576 ;;
11577
11578solaris*)
11579 version_type=linux
11580 need_lib_prefix=no
11581 need_version=no
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583 soname_spec='${libname}${release}${shared_ext}$major'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 shlibpath_overrides_runpath=yes
11586 hardcode_into_libs=yes
11587 # ldd complains unless libraries are executable
11588 postinstall_cmds='chmod +x $lib'
11589 ;;
11590
11591sunos4*)
11592 version_type=sunos
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11594 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=yes
11597 if test "$with_gnu_ld" = yes; then
11598 need_lib_prefix=no
11599 fi
11600 need_version=yes
11601 ;;
11602
11603sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11604 version_type=linux
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 case $host_vendor in
11609 sni)
11610 shlibpath_overrides_runpath=no
11611 need_lib_prefix=no
11612 export_dynamic_flag_spec='${wl}-Blargedynsym'
11613 runpath_var=LD_RUN_PATH
11614 ;;
11615 siemens)
11616 need_lib_prefix=no
11617 ;;
11618 motorola)
11619 need_lib_prefix=no
11620 need_version=no
11621 shlibpath_overrides_runpath=no
11622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11623 ;;
11624 esac
11625 ;;
11626
11627sysv4*MP*)
11628 if test -d /usr/nec ;then
11629 version_type=linux
11630 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11631 soname_spec='$libname${shared_ext}.$major'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 fi
11634 ;;
11635
11636uts4*)
11637 version_type=linux
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 ;;
11642
11643*)
11644 dynamic_linker=no
11645 ;;
11646esac
11647echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11648echo "${ECHO_T}$dynamic_linker" >&6
11649test "$dynamic_linker" = no && can_build_shared=no
11650
Reid Spencer2706f8c2004-09-19 23:53:36 +000011651echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11652echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11653hardcode_action_CXX=
11654if test -n "$hardcode_libdir_flag_spec_CXX" || \
11655 test -n "$runpath_var_CXX" || \
11656 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11657
11658 # We can hardcode non-existant directories.
11659 if test "$hardcode_direct_CXX" != no &&
11660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11661 # have to relink, otherwise we might link with an installed library
11662 # when we should be linking with a yet-to-be-installed one
11663 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11664 test "$hardcode_minus_L_CXX" != no; then
11665 # Linking always hardcodes the temporary library directory.
11666 hardcode_action_CXX=relink
11667 else
11668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11669 hardcode_action_CXX=immediate
11670 fi
11671else
11672 # We cannot hardcode anything, or else we can only hardcode existing
11673 # directories.
11674 hardcode_action_CXX=unsupported
11675fi
11676echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11677echo "${ECHO_T}$hardcode_action_CXX" >&6
11678
11679if test "$hardcode_action_CXX" = relink; then
11680 # Fast installation is not supported
11681 enable_fast_install=no
11682elif test "$shlibpath_overrides_runpath" = yes ||
11683 test "$enable_shared" = no; then
11684 # Fast installation is not necessary
11685 enable_fast_install=needless
11686fi
11687
11688striplib=
11689old_striplib=
11690echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11691echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11692if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11693 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11694 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11695 echo "$as_me:$LINENO: result: yes" >&5
11696echo "${ECHO_T}yes" >&6
11697else
11698# FIXME - insert some real tests, host_os isn't really good enough
11699 case $host_os in
11700 darwin*)
11701 if test -n "$STRIP" ; then
11702 striplib="$STRIP -x"
11703 echo "$as_me:$LINENO: result: yes" >&5
11704echo "${ECHO_T}yes" >&6
11705 else
11706 echo "$as_me:$LINENO: result: no" >&5
11707echo "${ECHO_T}no" >&6
11708fi
11709 ;;
11710 *)
11711 echo "$as_me:$LINENO: result: no" >&5
11712echo "${ECHO_T}no" >&6
11713 ;;
11714 esac
11715fi
11716
John Criswell47fdd832003-07-14 16:52:07 +000011717if test "x$enable_dlopen" != xyes; then
11718 enable_dlopen=unknown
11719 enable_dlopen_self=unknown
11720 enable_dlopen_self_static=unknown
11721else
11722 lt_cv_dlopen=no
11723 lt_cv_dlopen_libs=
11724
11725 case $host_os in
11726 beos*)
11727 lt_cv_dlopen="load_add_on"
11728 lt_cv_dlopen_libs=
11729 lt_cv_dlopen_self=yes
11730 ;;
11731
11732 mingw* | pw32*)
11733 lt_cv_dlopen="LoadLibrary"
11734 lt_cv_dlopen_libs=
11735 ;;
11736
11737 cygwin*)
11738 lt_cv_dlopen="dlopen"
11739 lt_cv_dlopen_libs=
11740 ;;
11741
11742 darwin*)
11743 # if libdl is installed we need to link against it
11744 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11745echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11746if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748else
11749 ac_check_lib_save_LIBS=$LIBS
11750LIBS="-ldl $LIBS"
11751cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011757
11758/* Override any gcc2 internal prototype to avoid an error. */
11759#ifdef __cplusplus
11760extern "C"
11761#endif
11762/* We use char because int might match the return type of a gcc2
11763 builtin and then its argument prototype would still apply. */
11764char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011765int
11766main ()
11767{
11768dlopen ();
11769 ;
11770 return 0;
11771}
11772_ACEOF
11773rm -f conftest.$ac_objext conftest$ac_exeext
11774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011775 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011776 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011782 { ac_try='test -z "$ac_cxx_werror_flag"
11783 || test ! -s conftest.err'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_cv_lib_dl_dlopen=yes
11796else
11797 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011798sed 's/^/| /' conftest.$ac_ext >&5
11799
John Criswell47fdd832003-07-14 16:52:07 +000011800ac_cv_lib_dl_dlopen=no
11801fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011802rm -f conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011804LIBS=$ac_check_lib_save_LIBS
11805fi
11806echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11807echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11808if test $ac_cv_lib_dl_dlopen = yes; then
11809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11810else
11811
11812 lt_cv_dlopen="dyld"
11813 lt_cv_dlopen_libs=
11814 lt_cv_dlopen_self=yes
11815
11816fi
11817
11818 ;;
11819
11820 *)
11821 echo "$as_me:$LINENO: checking for shl_load" >&5
11822echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11823if test "${ac_cv_func_shl_load+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825else
11826 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011827/* confdefs.h. */
11828_ACEOF
11829cat confdefs.h >>conftest.$ac_ext
11830cat >>conftest.$ac_ext <<_ACEOF
11831/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011832/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11834#define shl_load innocuous_shl_load
11835
John Criswell47fdd832003-07-14 16:52:07 +000011836/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011837 which can conflict with char shl_load (); below.
11838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011840
John Criswell0c38eaf2003-09-10 15:17:25 +000011841#ifdef __STDC__
11842# include <limits.h>
11843#else
11844# include <assert.h>
11845#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011846
11847#undef shl_load
11848
John Criswell47fdd832003-07-14 16:52:07 +000011849/* Override any gcc2 internal prototype to avoid an error. */
11850#ifdef __cplusplus
11851extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011852{
John Criswell47fdd832003-07-14 16:52:07 +000011853#endif
11854/* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11856char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011857/* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860#if defined (__stub_shl_load) || defined (__stub___shl_load)
11861choke me
11862#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011863char (*f) () = shl_load;
11864#endif
11865#ifdef __cplusplus
11866}
John Criswell47fdd832003-07-14 16:52:07 +000011867#endif
11868
John Criswell0c38eaf2003-09-10 15:17:25 +000011869int
11870main ()
11871{
11872return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011873 ;
11874 return 0;
11875}
11876_ACEOF
11877rm -f conftest.$ac_objext conftest$ac_exeext
11878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011879 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011880 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011886 { ac_try='test -z "$ac_cxx_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_func_shl_load=yes
11900else
11901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011902sed 's/^/| /' conftest.$ac_ext >&5
11903
John Criswell47fdd832003-07-14 16:52:07 +000011904ac_cv_func_shl_load=no
11905fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011906rm -f conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011908fi
11909echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11910echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11911if test $ac_cv_func_shl_load = yes; then
11912 lt_cv_dlopen="shl_load"
11913else
11914 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11915echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11916if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919 ac_check_lib_save_LIBS=$LIBS
11920LIBS="-ldld $LIBS"
11921cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011927
11928/* Override any gcc2 internal prototype to avoid an error. */
11929#ifdef __cplusplus
11930extern "C"
11931#endif
11932/* We use char because int might match the return type of a gcc2
11933 builtin and then its argument prototype would still apply. */
11934char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011935int
11936main ()
11937{
11938shl_load ();
11939 ;
11940 return 0;
11941}
11942_ACEOF
11943rm -f conftest.$ac_objext conftest$ac_exeext
11944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011945 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011946 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011947 grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011952 { ac_try='test -z "$ac_cxx_werror_flag"
11953 || test ! -s conftest.err'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; } &&
11959 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 ac_cv_lib_dld_shl_load=yes
11966else
11967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011968sed 's/^/| /' conftest.$ac_ext >&5
11969
John Criswell47fdd832003-07-14 16:52:07 +000011970ac_cv_lib_dld_shl_load=no
11971fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011972rm -f conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011974LIBS=$ac_check_lib_save_LIBS
11975fi
11976echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11977echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11978if test $ac_cv_lib_dld_shl_load = yes; then
11979 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11980else
11981 echo "$as_me:$LINENO: checking for dlopen" >&5
11982echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11983if test "${ac_cv_func_dlopen+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985else
11986 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011992/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11994#define dlopen innocuous_dlopen
11995
John Criswell47fdd832003-07-14 16:52:07 +000011996/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011997 which can conflict with char dlopen (); below.
11998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11999 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000012000
John Criswell0c38eaf2003-09-10 15:17:25 +000012001#ifdef __STDC__
12002# include <limits.h>
12003#else
12004# include <assert.h>
12005#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012006
12007#undef dlopen
12008
John Criswell47fdd832003-07-14 16:52:07 +000012009/* Override any gcc2 internal prototype to avoid an error. */
12010#ifdef __cplusplus
12011extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000012012{
John Criswell47fdd832003-07-14 16:52:07 +000012013#endif
12014/* We use char because int might match the return type of a gcc2
12015 builtin and then its argument prototype would still apply. */
12016char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012017/* The GNU C library defines this for functions which it implements
12018 to always fail with ENOSYS. Some functions are actually named
12019 something starting with __ and the normal name is an alias. */
12020#if defined (__stub_dlopen) || defined (__stub___dlopen)
12021choke me
12022#else
John Criswell0c38eaf2003-09-10 15:17:25 +000012023char (*f) () = dlopen;
12024#endif
12025#ifdef __cplusplus
12026}
John Criswell47fdd832003-07-14 16:52:07 +000012027#endif
12028
John Criswell0c38eaf2003-09-10 15:17:25 +000012029int
12030main ()
12031{
12032return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000012033 ;
12034 return 0;
12035}
12036_ACEOF
12037rm -f conftest.$ac_objext conftest$ac_exeext
12038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012039 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012040 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012046 { ac_try='test -z "$ac_cxx_werror_flag"
12047 || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_func_dlopen=yes
12060else
12061 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012062sed 's/^/| /' conftest.$ac_ext >&5
12063
John Criswell47fdd832003-07-14 16:52:07 +000012064ac_cv_func_dlopen=no
12065fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012066rm -f conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012068fi
12069echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12070echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12071if test $ac_cv_func_dlopen = yes; then
12072 lt_cv_dlopen="dlopen"
12073else
12074 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12075echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12076if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079 ac_check_lib_save_LIBS=$LIBS
12080LIBS="-ldl $LIBS"
12081cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012082/* confdefs.h. */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012087
12088/* Override any gcc2 internal prototype to avoid an error. */
12089#ifdef __cplusplus
12090extern "C"
12091#endif
12092/* We use char because int might match the return type of a gcc2
12093 builtin and then its argument prototype would still apply. */
12094char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012095int
12096main ()
12097{
12098dlopen ();
12099 ;
12100 return 0;
12101}
12102_ACEOF
12103rm -f conftest.$ac_objext conftest$ac_exeext
12104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012105 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012106 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012112 { ac_try='test -z "$ac_cxx_werror_flag"
12113 || test ! -s conftest.err'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 ac_cv_lib_dl_dlopen=yes
12126else
12127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012128sed 's/^/| /' conftest.$ac_ext >&5
12129
John Criswell47fdd832003-07-14 16:52:07 +000012130ac_cv_lib_dl_dlopen=no
12131fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012132rm -f conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012134LIBS=$ac_check_lib_save_LIBS
12135fi
12136echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12137echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12138if test $ac_cv_lib_dl_dlopen = yes; then
12139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12140else
12141 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12142echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12143if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12145else
12146 ac_check_lib_save_LIBS=$LIBS
12147LIBS="-lsvld $LIBS"
12148cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012149/* confdefs.h. */
12150_ACEOF
12151cat confdefs.h >>conftest.$ac_ext
12152cat >>conftest.$ac_ext <<_ACEOF
12153/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012154
12155/* Override any gcc2 internal prototype to avoid an error. */
12156#ifdef __cplusplus
12157extern "C"
12158#endif
12159/* We use char because int might match the return type of a gcc2
12160 builtin and then its argument prototype would still apply. */
12161char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012162int
12163main ()
12164{
12165dlopen ();
12166 ;
12167 return 0;
12168}
12169_ACEOF
12170rm -f conftest.$ac_objext conftest$ac_exeext
12171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012172 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012173 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012179 { ac_try='test -z "$ac_cxx_werror_flag"
12180 || test ! -s conftest.err'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 ac_cv_lib_svld_dlopen=yes
12193else
12194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012195sed 's/^/| /' conftest.$ac_ext >&5
12196
John Criswell47fdd832003-07-14 16:52:07 +000012197ac_cv_lib_svld_dlopen=no
12198fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012199rm -f conftest.err conftest.$ac_objext \
12200 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012201LIBS=$ac_check_lib_save_LIBS
12202fi
12203echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12204echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12205if test $ac_cv_lib_svld_dlopen = yes; then
12206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12207else
12208 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12209echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12210if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12212else
12213 ac_check_lib_save_LIBS=$LIBS
12214LIBS="-ldld $LIBS"
12215cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012216/* confdefs.h. */
12217_ACEOF
12218cat confdefs.h >>conftest.$ac_ext
12219cat >>conftest.$ac_ext <<_ACEOF
12220/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012221
12222/* Override any gcc2 internal prototype to avoid an error. */
12223#ifdef __cplusplus
12224extern "C"
12225#endif
12226/* We use char because int might match the return type of a gcc2
12227 builtin and then its argument prototype would still apply. */
12228char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012229int
12230main ()
12231{
12232dld_link ();
12233 ;
12234 return 0;
12235}
12236_ACEOF
12237rm -f conftest.$ac_objext conftest$ac_exeext
12238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012239 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012240 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012241 grep -v '^ *+' conftest.er1 >conftest.err
12242 rm -f conftest.er1
12243 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012246 { ac_try='test -z "$ac_cxx_werror_flag"
12247 || test ! -s conftest.err'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; } &&
12253 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12259 ac_cv_lib_dld_dld_link=yes
12260else
12261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012262sed 's/^/| /' conftest.$ac_ext >&5
12263
John Criswell47fdd832003-07-14 16:52:07 +000012264ac_cv_lib_dld_dld_link=no
12265fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012266rm -f conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012268LIBS=$ac_check_lib_save_LIBS
12269fi
12270echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12271echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12272if test $ac_cv_lib_dld_dld_link = yes; then
12273 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12274fi
12275
12276
12277fi
12278
12279
12280fi
12281
12282
12283fi
12284
12285
12286fi
12287
12288
12289fi
12290
12291 ;;
12292 esac
12293
12294 if test "x$lt_cv_dlopen" != xno; then
12295 enable_dlopen=yes
12296 else
12297 enable_dlopen=no
12298 fi
12299
12300 case $lt_cv_dlopen in
12301 dlopen)
12302 save_CPPFLAGS="$CPPFLAGS"
12303 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12304
12305 save_LDFLAGS="$LDFLAGS"
12306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12307
12308 save_LIBS="$LIBS"
12309 LIBS="$lt_cv_dlopen_libs $LIBS"
12310
12311 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12312echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12313if test "${lt_cv_dlopen_self+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315else
12316 if test "$cross_compiling" = yes; then :
12317 lt_cv_dlopen_self=cross
12318else
12319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12320 lt_status=$lt_dlunknown
12321 cat > conftest.$ac_ext <<EOF
John Criswelle96aa1c2004-10-28 13:35:00 +000012322#line 12322 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012323#include "confdefs.h"
12324
12325#if HAVE_DLFCN_H
12326#include <dlfcn.h>
12327#endif
12328
12329#include <stdio.h>
12330
12331#ifdef RTLD_GLOBAL
12332# define LT_DLGLOBAL RTLD_GLOBAL
12333#else
12334# ifdef DL_GLOBAL
12335# define LT_DLGLOBAL DL_GLOBAL
12336# else
12337# define LT_DLGLOBAL 0
12338# endif
12339#endif
12340
12341/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12342 find out it does not work in some platform. */
12343#ifndef LT_DLLAZY_OR_NOW
12344# ifdef RTLD_LAZY
12345# define LT_DLLAZY_OR_NOW RTLD_LAZY
12346# else
12347# ifdef DL_LAZY
12348# define LT_DLLAZY_OR_NOW DL_LAZY
12349# else
12350# ifdef RTLD_NOW
12351# define LT_DLLAZY_OR_NOW RTLD_NOW
12352# else
12353# ifdef DL_NOW
12354# define LT_DLLAZY_OR_NOW DL_NOW
12355# else
12356# define LT_DLLAZY_OR_NOW 0
12357# endif
12358# endif
12359# endif
12360# endif
12361#endif
12362
12363#ifdef __cplusplus
12364extern "C" void exit (int);
12365#endif
12366
12367void fnord() { int i=42;}
12368int main ()
12369{
12370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12371 int status = $lt_dlunknown;
12372
12373 if (self)
12374 {
12375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12376 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12377 /* dlclose (self); */
12378 }
12379
12380 exit (status);
12381}
12382EOF
12383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384 (eval $ac_link) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12388 (./conftest; exit; ) 2>/dev/null
12389 lt_status=$?
12390 case x$lt_status in
12391 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12392 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12393 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12394 esac
12395 else :
12396 # compilation failed
12397 lt_cv_dlopen_self=no
12398 fi
12399fi
12400rm -fr conftest*
12401
12402
12403fi
12404echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12405echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12406
12407 if test "x$lt_cv_dlopen_self" = xyes; then
12408 LDFLAGS="$LDFLAGS $link_static_flag"
12409 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12410echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12411if test "${lt_cv_dlopen_self_static+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12413else
12414 if test "$cross_compiling" = yes; then :
12415 lt_cv_dlopen_self_static=cross
12416else
12417 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12418 lt_status=$lt_dlunknown
12419 cat > conftest.$ac_ext <<EOF
John Criswelle96aa1c2004-10-28 13:35:00 +000012420#line 12420 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012421#include "confdefs.h"
12422
12423#if HAVE_DLFCN_H
12424#include <dlfcn.h>
12425#endif
12426
12427#include <stdio.h>
12428
12429#ifdef RTLD_GLOBAL
12430# define LT_DLGLOBAL RTLD_GLOBAL
12431#else
12432# ifdef DL_GLOBAL
12433# define LT_DLGLOBAL DL_GLOBAL
12434# else
12435# define LT_DLGLOBAL 0
12436# endif
12437#endif
12438
12439/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12440 find out it does not work in some platform. */
12441#ifndef LT_DLLAZY_OR_NOW
12442# ifdef RTLD_LAZY
12443# define LT_DLLAZY_OR_NOW RTLD_LAZY
12444# else
12445# ifdef DL_LAZY
12446# define LT_DLLAZY_OR_NOW DL_LAZY
12447# else
12448# ifdef RTLD_NOW
12449# define LT_DLLAZY_OR_NOW RTLD_NOW
12450# else
12451# ifdef DL_NOW
12452# define LT_DLLAZY_OR_NOW DL_NOW
12453# else
12454# define LT_DLLAZY_OR_NOW 0
12455# endif
12456# endif
12457# endif
12458# endif
12459#endif
12460
12461#ifdef __cplusplus
12462extern "C" void exit (int);
12463#endif
12464
12465void fnord() { int i=42;}
12466int main ()
12467{
12468 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12469 int status = $lt_dlunknown;
12470
12471 if (self)
12472 {
12473 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12474 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12475 /* dlclose (self); */
12476 }
12477
12478 exit (status);
12479}
12480EOF
12481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482 (eval $ac_link) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12486 (./conftest; exit; ) 2>/dev/null
12487 lt_status=$?
12488 case x$lt_status in
12489 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12490 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12491 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12492 esac
12493 else :
12494 # compilation failed
12495 lt_cv_dlopen_self_static=no
12496 fi
12497fi
12498rm -fr conftest*
12499
12500
12501fi
12502echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12503echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12504 fi
12505
12506 CPPFLAGS="$save_CPPFLAGS"
12507 LDFLAGS="$save_LDFLAGS"
12508 LIBS="$save_LIBS"
12509 ;;
12510 esac
12511
12512 case $lt_cv_dlopen_self in
12513 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12514 *) enable_dlopen_self=unknown ;;
12515 esac
12516
12517 case $lt_cv_dlopen_self_static in
12518 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12519 *) enable_dlopen_self_static=unknown ;;
12520 esac
12521fi
12522
12523
12524# The else clause should only fire when bootstrapping the
12525# libtool distribution, otherwise you forgot to ship ltmain.sh
12526# with your package, and you will get complaints that there are
12527# no rules to generate ltmain.sh.
12528if test -f "$ltmain"; then
12529 # See if we are running on zsh, and set the options which allow our commands through
12530 # without removal of \ escapes.
12531 if test -n "${ZSH_VERSION+set}" ; then
12532 setopt NO_GLOB_SUBST
12533 fi
12534 # Now quote all the things that may contain metacharacters while being
12535 # careful not to overquote the AC_SUBSTed values. We take copies of the
12536 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012537 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12538 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000012539 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12540 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12541 deplibs_check_method reload_flag reload_cmds need_locks \
12542 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12543 lt_cv_sys_global_symbol_to_c_name_address \
12544 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12545 old_postinstall_cmds old_postuninstall_cmds \
12546 compiler_CXX \
12547 CC_CXX \
12548 LD_CXX \
12549 lt_prog_compiler_wl_CXX \
12550 lt_prog_compiler_pic_CXX \
12551 lt_prog_compiler_static_CXX \
12552 lt_prog_compiler_no_builtin_flag_CXX \
12553 export_dynamic_flag_spec_CXX \
12554 thread_safe_flag_spec_CXX \
12555 whole_archive_flag_spec_CXX \
12556 enable_shared_with_static_runtimes_CXX \
12557 old_archive_cmds_CXX \
12558 old_archive_from_new_cmds_CXX \
12559 predep_objects_CXX \
12560 postdep_objects_CXX \
12561 predeps_CXX \
12562 postdeps_CXX \
12563 compiler_lib_search_path_CXX \
12564 archive_cmds_CXX \
12565 archive_expsym_cmds_CXX \
12566 postinstall_cmds_CXX \
12567 postuninstall_cmds_CXX \
12568 old_archive_from_expsyms_cmds_CXX \
12569 allow_undefined_flag_CXX \
12570 no_undefined_flag_CXX \
12571 export_symbols_cmds_CXX \
12572 hardcode_libdir_flag_spec_CXX \
12573 hardcode_libdir_flag_spec_ld_CXX \
12574 hardcode_libdir_separator_CXX \
12575 hardcode_automatic_CXX \
12576 module_cmds_CXX \
12577 module_expsym_cmds_CXX \
12578 lt_cv_prog_compiler_c_o_CXX \
12579 exclude_expsyms_CXX \
12580 include_expsyms_CXX; do
12581
12582 case $var in
12583 old_archive_cmds_CXX | \
12584 old_archive_from_new_cmds_CXX | \
12585 archive_cmds_CXX | \
12586 archive_expsym_cmds_CXX | \
12587 module_cmds_CXX | \
12588 module_expsym_cmds_CXX | \
12589 old_archive_from_expsyms_cmds_CXX | \
12590 export_symbols_cmds_CXX | \
12591 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12592 postinstall_cmds | postuninstall_cmds | \
12593 old_postinstall_cmds | old_postuninstall_cmds | \
12594 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12595 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012596 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000012597 ;;
12598 *)
12599 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12600 ;;
12601 esac
12602 done
12603
12604 case $lt_echo in
12605 *'\$0 --fallback-echo"')
12606 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12607 ;;
12608 esac
12609
12610cfgfile="$ofile"
12611
12612 cat <<__EOF__ >> "$cfgfile"
12613# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12614
12615# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12616
12617# Shell to use when invoking shell scripts.
12618SHELL=$lt_SHELL
12619
12620# Whether or not to build shared libraries.
12621build_libtool_libs=$enable_shared
12622
12623# Whether or not to build static libraries.
12624build_old_libs=$enable_static
12625
12626# Whether or not to add -lc for building shared libraries.
12627build_libtool_need_lc=$archive_cmds_need_lc_CXX
12628
12629# Whether or not to disallow shared libs when runtime libs are static
12630allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12631
12632# Whether or not to optimize for fast installation.
12633fast_install=$enable_fast_install
12634
12635# The host system.
12636host_alias=$host_alias
12637host=$host
12638
12639# An echo program that does not interpret backslashes.
12640echo=$lt_echo
12641
12642# The archiver.
12643AR=$lt_AR
12644AR_FLAGS=$lt_AR_FLAGS
12645
12646# A C compiler.
12647LTCC=$lt_LTCC
12648
12649# A language-specific compiler.
12650CC=$lt_compiler_CXX
12651
12652# Is the compiler the GNU C compiler?
12653with_gcc=$GCC_CXX
12654
12655# An ERE matcher.
12656EGREP=$lt_EGREP
12657
12658# The linker used to build libraries.
12659LD=$lt_LD_CXX
12660
12661# Whether we need hard or soft links.
12662LN_S=$lt_LN_S
12663
12664# A BSD-compatible nm program.
12665NM=$lt_NM
12666
12667# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000012668STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000012669
12670# Used to examine libraries when file_magic_cmd begins "file"
12671MAGIC_CMD=$MAGIC_CMD
12672
12673# Used on cygwin: DLL creation program.
12674DLLTOOL="$DLLTOOL"
12675
12676# Used on cygwin: object dumper.
12677OBJDUMP="$OBJDUMP"
12678
12679# Used on cygwin: assembler.
12680AS="$AS"
12681
12682# The name of the directory that contains temporary libtool files.
12683objdir=$objdir
12684
12685# How to create reloadable object files.
12686reload_flag=$lt_reload_flag
12687reload_cmds=$lt_reload_cmds
12688
12689# How to pass a linker flag through the compiler.
12690wl=$lt_lt_prog_compiler_wl_CXX
12691
12692# Object file suffix (normally "o").
12693objext="$ac_objext"
12694
12695# Old archive suffix (normally "a").
12696libext="$libext"
12697
12698# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000012699shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000012700
12701# Executable file suffix (normally "").
12702exeext="$exeext"
12703
12704# Additional compiler flags for building library objects.
12705pic_flag=$lt_lt_prog_compiler_pic_CXX
12706pic_mode=$pic_mode
12707
12708# What is the maximum length of a command?
12709max_cmd_len=$lt_cv_sys_max_cmd_len
12710
12711# Does compiler simultaneously support -c and -o options?
12712compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12713
12714# Must we lock files when doing compilation ?
12715need_locks=$lt_need_locks
12716
12717# Do we need the lib prefix for modules?
12718need_lib_prefix=$need_lib_prefix
12719
12720# Do we need a version for libraries?
12721need_version=$need_version
12722
12723# Whether dlopen is supported.
12724dlopen_support=$enable_dlopen
12725
12726# Whether dlopen of programs is supported.
12727dlopen_self=$enable_dlopen_self
12728
12729# Whether dlopen of statically linked programs is supported.
12730dlopen_self_static=$enable_dlopen_self_static
12731
12732# Compiler flag to prevent dynamic linking.
12733link_static_flag=$lt_lt_prog_compiler_static_CXX
12734
12735# Compiler flag to turn off builtin functions.
12736no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12737
12738# Compiler flag to allow reflexive dlopens.
12739export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12740
12741# Compiler flag to generate shared objects directly from archives.
12742whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12743
12744# Compiler flag to generate thread-safe objects.
12745thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12746
12747# Library versioning type.
12748version_type=$version_type
12749
12750# Format of library name prefix.
12751libname_spec=$lt_libname_spec
12752
12753# List of archive names. First name is the real one, the rest are links.
12754# The last name is the one that the linker finds with -lNAME.
12755library_names_spec=$lt_library_names_spec
12756
12757# The coded name of the library, if different from the real name.
12758soname_spec=$lt_soname_spec
12759
12760# Commands used to build and install an old-style archive.
12761RANLIB=$lt_RANLIB
12762old_archive_cmds=$lt_old_archive_cmds_CXX
12763old_postinstall_cmds=$lt_old_postinstall_cmds
12764old_postuninstall_cmds=$lt_old_postuninstall_cmds
12765
12766# Create an old-style archive from a shared archive.
12767old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12768
12769# Create a temporary old-style archive to link instead of a shared archive.
12770old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12771
12772# Commands used to build and install a shared archive.
12773archive_cmds=$lt_archive_cmds_CXX
12774archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12775postinstall_cmds=$lt_postinstall_cmds
12776postuninstall_cmds=$lt_postuninstall_cmds
12777
12778# Commands used to build a loadable module (assumed same as above if empty)
12779module_cmds=$lt_module_cmds_CXX
12780module_expsym_cmds=$lt_module_expsym_cmds_CXX
12781
12782# Commands to strip libraries.
12783old_striplib=$lt_old_striplib
12784striplib=$lt_striplib
12785
12786# Dependencies to place before the objects being linked to create a
12787# shared library.
12788predep_objects=$lt_predep_objects_CXX
12789
12790# Dependencies to place after the objects being linked to create a
12791# shared library.
12792postdep_objects=$lt_postdep_objects_CXX
12793
12794# Dependencies to place before the objects being linked to create a
12795# shared library.
12796predeps=$lt_predeps_CXX
12797
12798# Dependencies to place after the objects being linked to create a
12799# shared library.
12800postdeps=$lt_postdeps_CXX
12801
12802# The library search path used internally by the compiler when linking
12803# a shared library.
12804compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12805
12806# Method to check whether dependent libraries are shared objects.
12807deplibs_check_method=$lt_deplibs_check_method
12808
12809# Command to use when deplibs_check_method == file_magic.
12810file_magic_cmd=$lt_file_magic_cmd
12811
12812# Flag that allows shared libraries with undefined symbols to be built.
12813allow_undefined_flag=$lt_allow_undefined_flag_CXX
12814
12815# Flag that forces no undefined symbols.
12816no_undefined_flag=$lt_no_undefined_flag_CXX
12817
12818# Commands used to finish a libtool library installation in a directory.
12819finish_cmds=$lt_finish_cmds
12820
12821# Same as above, but a single script fragment to be evaled but not shown.
12822finish_eval=$lt_finish_eval
12823
12824# Take the output of nm and produce a listing of raw symbols and C names.
12825global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12826
12827# Transform the output of nm in a proper C declaration
12828global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12829
12830# Transform the output of nm in a C name address pair
12831global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12832
12833# This is the shared library runtime path variable.
12834runpath_var=$runpath_var
12835
12836# This is the shared library path variable.
12837shlibpath_var=$shlibpath_var
12838
12839# Is shlibpath searched before the hard-coded library search path?
12840shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12841
12842# How to hardcode a shared library path into an executable.
12843hardcode_action=$hardcode_action_CXX
12844
12845# Whether we should hardcode library paths into libraries.
12846hardcode_into_libs=$hardcode_into_libs
12847
12848# Flag to hardcode \$libdir into a binary during linking.
12849# This must work even if \$libdir does not exist.
12850hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12851
12852# If ld is used when linking, flag to hardcode \$libdir into
12853# a binary during linking. This must work even if \$libdir does
12854# not exist.
12855hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12856
12857# Whether we need a single -rpath flag with a separated argument.
12858hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12859
12860# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12861# resulting binary.
12862hardcode_direct=$hardcode_direct_CXX
12863
12864# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12865# resulting binary.
12866hardcode_minus_L=$hardcode_minus_L_CXX
12867
12868# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12869# the resulting binary.
12870hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12871
12872# Set to yes if building a shared library automatically hardcodes DIR into the library
12873# and all subsequent libraries and executables linked against it.
12874hardcode_automatic=$hardcode_automatic_CXX
12875
12876# Variables whose values should be saved in libtool wrapper scripts and
12877# restored at relink time.
12878variables_saved_for_relink="$variables_saved_for_relink"
12879
12880# Whether libtool must link a program against all its dependency libraries.
12881link_all_deplibs=$link_all_deplibs_CXX
12882
12883# Compile-time system search path for libraries
12884sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12885
12886# Run-time system search path for libraries
12887sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12888
12889# Fix the shell variable \$srcfile for the compiler.
12890fix_srcfile_path="$fix_srcfile_path_CXX"
12891
12892# Set to yes if exported symbols are required.
12893always_export_symbols=$always_export_symbols_CXX
12894
12895# The commands to list exported symbols.
12896export_symbols_cmds=$lt_export_symbols_cmds_CXX
12897
12898# The commands to extract the exported symbol list from a shared archive.
12899extract_expsyms_cmds=$lt_extract_expsyms_cmds
12900
12901# Symbols that should not be listed in the preloaded symbols.
12902exclude_expsyms=$lt_exclude_expsyms_CXX
12903
12904# Symbols that must always be exported.
12905include_expsyms=$lt_include_expsyms_CXX
12906
12907# ### END LIBTOOL TAG CONFIG: $tagname
12908
12909__EOF__
12910
12911
12912else
12913 # If there is no Makefile yet, we rely on a make rule to execute
12914 # `config.status --recheck' to rerun these tests and create the
12915 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012916 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12917 if test -f "$ltmain_in"; then
12918 test -f Makefile && make "$ltmain"
12919 fi
John Criswell47fdd832003-07-14 16:52:07 +000012920fi
12921
12922
12923ac_ext=c
12924ac_cpp='$CPP $CPPFLAGS'
12925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12927ac_compiler_gnu=$ac_cv_c_compiler_gnu
12928
12929CC=$lt_save_CC
12930LDCXX=$LD
12931LD=$lt_save_LD
12932GCC=$lt_save_GCC
12933with_gnu_ldcxx=$with_gnu_ld
12934with_gnu_ld=$lt_save_with_gnu_ld
12935lt_cv_path_LDCXX=$lt_cv_path_LD
12936lt_cv_path_LD=$lt_save_path_LD
12937lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12938lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12939
12940 else
12941 tagname=""
12942 fi
12943 ;;
12944
12945 F77)
12946 if test -n "$F77" && test "X$F77" != "Xno"; then
12947
12948ac_ext=f
12949ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12950ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12951ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12952
12953
12954archive_cmds_need_lc_F77=no
12955allow_undefined_flag_F77=
12956always_export_symbols_F77=no
12957archive_expsym_cmds_F77=
12958export_dynamic_flag_spec_F77=
12959hardcode_direct_F77=no
12960hardcode_libdir_flag_spec_F77=
12961hardcode_libdir_flag_spec_ld_F77=
12962hardcode_libdir_separator_F77=
12963hardcode_minus_L_F77=no
12964hardcode_automatic_F77=no
12965module_cmds_F77=
12966module_expsym_cmds_F77=
12967link_all_deplibs_F77=unknown
12968old_archive_cmds_F77=$old_archive_cmds
12969no_undefined_flag_F77=
12970whole_archive_flag_spec_F77=
12971enable_shared_with_static_runtimes_F77=no
12972
12973# Source file extension for f77 test sources.
12974ac_ext=f
12975
12976# Object file extension for compiled f77 test sources.
12977objext=o
12978objext_F77=$objext
12979
12980# Code to be used in simple compile tests
12981lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12982
12983# Code to be used in simple link tests
12984lt_simple_link_test_code=" program t\n end\n"
12985
12986# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12987
12988# If no C compiler was specified, use CC.
12989LTCC=${LTCC-"$CC"}
12990
12991# Allow CC to be a program name with arguments.
12992compiler=$CC
12993
12994
12995# Allow CC to be a program name with arguments.
12996lt_save_CC="$CC"
12997CC=${F77-"f77"}
12998compiler=$CC
12999compiler_F77=$CC
13000cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13001
13002echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13003echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13004echo "$as_me:$LINENO: result: $can_build_shared" >&5
13005echo "${ECHO_T}$can_build_shared" >&6
13006
13007echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13008echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13009test "$can_build_shared" = "no" && enable_shared=no
13010
13011# On AIX, shared libraries and static libraries use the same namespace, and
13012# are all built from PIC.
13013case "$host_os" in
13014aix3*)
13015 test "$enable_shared" = yes && enable_static=no
13016 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013017 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000013018 postinstall_cmds='$RANLIB $lib'
13019 fi
13020 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013021aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000013022 test "$enable_shared" = yes && enable_static=no
13023 ;;
13024esac
13025echo "$as_me:$LINENO: result: $enable_shared" >&5
13026echo "${ECHO_T}$enable_shared" >&6
13027
13028echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13029echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13030# Make sure either enable_shared or enable_static is yes.
13031test "$enable_shared" = yes || enable_static=yes
13032echo "$as_me:$LINENO: result: $enable_static" >&5
13033echo "${ECHO_T}$enable_static" >&6
13034
13035test "$ld_shlibs_F77" = no && can_build_shared=no
13036
13037GCC_F77="$G77"
13038LD_F77="$LD"
13039
13040lt_prog_compiler_wl_F77=
13041lt_prog_compiler_pic_F77=
13042lt_prog_compiler_static_F77=
13043
13044echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13045echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13046
13047 if test "$GCC" = yes; then
13048 lt_prog_compiler_wl_F77='-Wl,'
13049 lt_prog_compiler_static_F77='-static'
13050
13051 case $host_os in
13052 aix*)
13053 # All AIX code is PIC.
13054 if test "$host_cpu" = ia64; then
13055 # AIX 5 now supports IA64 processor
13056 lt_prog_compiler_static_F77='-Bstatic'
13057 fi
13058 ;;
13059
13060 amigaos*)
13061 # FIXME: we need at least 68020 code to build shared libraries, but
13062 # adding the `-m68020' flag to GCC prevents building anything better,
13063 # like `-m68040'.
13064 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13065 ;;
13066
13067 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13068 # PIC is the default for these OSes.
13069 ;;
13070
13071 mingw* | pw32* | os2*)
13072 # This hack is so that the source file can tell whether it is being
13073 # built for inclusion in a dll (and should export symbols for example).
13074 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13075 ;;
13076
13077 darwin* | rhapsody*)
13078 # PIC is the default on this platform
13079 # Common symbols not allowed in MH_DYLIB files
13080 lt_prog_compiler_pic_F77='-fno-common'
13081 ;;
13082
13083 msdosdjgpp*)
13084 # Just because we use GCC doesn't mean we suddenly get shared libraries
13085 # on systems that don't support them.
13086 lt_prog_compiler_can_build_shared_F77=no
13087 enable_shared=no
13088 ;;
13089
13090 sysv4*MP*)
13091 if test -d /usr/nec; then
13092 lt_prog_compiler_pic_F77=-Kconform_pic
13093 fi
13094 ;;
13095
13096 hpux*)
13097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13098 # not for PA HP-UX.
13099 case "$host_cpu" in
13100 hppa*64*|ia64*)
13101 # +Z the default
13102 ;;
13103 *)
13104 lt_prog_compiler_pic_F77='-fPIC'
13105 ;;
13106 esac
13107 ;;
13108
13109 *)
13110 lt_prog_compiler_pic_F77='-fPIC'
13111 ;;
13112 esac
13113 else
13114 # PORTME Check for flag to pass linker flags through the system compiler.
13115 case $host_os in
13116 aix*)
13117 lt_prog_compiler_wl_F77='-Wl,'
13118 if test "$host_cpu" = ia64; then
13119 # AIX 5 now supports IA64 processor
13120 lt_prog_compiler_static_F77='-Bstatic'
13121 else
13122 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13123 fi
13124 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013125 darwin*)
13126 # PIC is the default on this platform
13127 # Common symbols not allowed in MH_DYLIB files
13128 case "$cc_basename" in
13129 xlc*)
13130 lt_prog_compiler_pic_F77='-qnocommon'
13131 lt_prog_compiler_wl_F77='-Wl,'
13132 ;;
13133 esac
13134 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013135
13136 mingw* | pw32* | os2*)
13137 # This hack is so that the source file can tell whether it is being
13138 # built for inclusion in a dll (and should export symbols for example).
13139 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13140 ;;
13141
13142 hpux9* | hpux10* | hpux11*)
13143 lt_prog_compiler_wl_F77='-Wl,'
13144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13145 # not for PA HP-UX.
13146 case "$host_cpu" in
13147 hppa*64*|ia64*)
13148 # +Z the default
13149 ;;
13150 *)
13151 lt_prog_compiler_pic_F77='+Z'
13152 ;;
13153 esac
13154 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13155 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13156 ;;
13157
13158 irix5* | irix6* | nonstopux*)
13159 lt_prog_compiler_wl_F77='-Wl,'
13160 # PIC (with -KPIC) is the default.
13161 lt_prog_compiler_static_F77='-non_shared'
13162 ;;
13163
13164 newsos6)
13165 lt_prog_compiler_pic_F77='-KPIC'
13166 lt_prog_compiler_static_F77='-Bstatic'
13167 ;;
13168
13169 linux*)
13170 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013171 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013172 lt_prog_compiler_wl_F77='-Wl,'
13173 lt_prog_compiler_pic_F77='-KPIC'
13174 lt_prog_compiler_static_F77='-static'
13175 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013176 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013177 lt_prog_compiler_wl_F77='-Wl,'
13178 # All Alpha code is PIC.
13179 lt_prog_compiler_static_F77='-non_shared'
13180 ;;
13181 esac
13182 ;;
13183
13184 osf3* | osf4* | osf5*)
13185 lt_prog_compiler_wl_F77='-Wl,'
13186 # All OSF/1 code is PIC.
13187 lt_prog_compiler_static_F77='-non_shared'
13188 ;;
13189
13190 sco3.2v5*)
13191 lt_prog_compiler_pic_F77='-Kpic'
13192 lt_prog_compiler_static_F77='-dn'
13193 ;;
13194
13195 solaris*)
13196 lt_prog_compiler_wl_F77='-Wl,'
13197 lt_prog_compiler_pic_F77='-KPIC'
13198 lt_prog_compiler_static_F77='-Bstatic'
13199 ;;
13200
13201 sunos4*)
13202 lt_prog_compiler_wl_F77='-Qoption ld '
13203 lt_prog_compiler_pic_F77='-PIC'
13204 lt_prog_compiler_static_F77='-Bstatic'
13205 ;;
13206
13207 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13208 lt_prog_compiler_wl_F77='-Wl,'
13209 lt_prog_compiler_pic_F77='-KPIC'
13210 lt_prog_compiler_static_F77='-Bstatic'
13211 ;;
13212
13213 sysv4*MP*)
13214 if test -d /usr/nec ;then
13215 lt_prog_compiler_pic_F77='-Kconform_pic'
13216 lt_prog_compiler_static_F77='-Bstatic'
13217 fi
13218 ;;
13219
13220 uts4*)
13221 lt_prog_compiler_pic_F77='-pic'
13222 lt_prog_compiler_static_F77='-Bstatic'
13223 ;;
13224
13225 *)
13226 lt_prog_compiler_can_build_shared_F77=no
13227 ;;
13228 esac
13229 fi
13230
13231echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13232echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13233
13234#
13235# Check to make sure the PIC flag actually works.
13236#
13237if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013238
13239echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013240echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13241if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243else
13244 lt_prog_compiler_pic_works_F77=no
13245 ac_outfile=conftest.$ac_objext
13246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13247 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13248 # Insert the option either (1) after the last *FLAGS variable, or
13249 # (2) before a word containing "conftest.", or (3) at the end.
13250 # Note that $ac_compile itself does not contain backslashes and begins
13251 # with a dollar sign (not a hyphen), so the echo should work correctly.
13252 # The option is referenced via a variable to avoid confusing sed.
13253 lt_compile=`echo "$ac_compile" | $SED \
13254 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13256 -e 's:$: $lt_compiler_flag:'`
John Criswelle96aa1c2004-10-28 13:35:00 +000013257 (eval echo "\"\$as_me:13257: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013258 (eval "$lt_compile" 2>conftest.err)
13259 ac_status=$?
13260 cat conftest.err >&5
John Criswelle96aa1c2004-10-28 13:35:00 +000013261 echo "$as_me:13261: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013262 if (exit $ac_status) && test -s "$ac_outfile"; then
13263 # The compiler can only warn and ignore the option if not recognized
13264 # So say no if there are warnings
13265 if test ! -s conftest.err; then
13266 lt_prog_compiler_pic_works_F77=yes
13267 fi
13268 fi
13269 $rm conftest*
13270
13271fi
13272echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13273echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13274
13275if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13276 case $lt_prog_compiler_pic_F77 in
13277 "" | " "*) ;;
13278 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13279 esac
13280else
13281 lt_prog_compiler_pic_F77=
13282 lt_prog_compiler_can_build_shared_F77=no
13283fi
13284
13285fi
13286case "$host_os" in
13287 # For platforms which do not support PIC, -DPIC is meaningless:
13288 *djgpp*)
13289 lt_prog_compiler_pic_F77=
13290 ;;
13291 *)
13292 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13293 ;;
13294esac
13295
13296echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13297echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13298if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300else
13301 lt_cv_prog_compiler_c_o_F77=no
13302 $rm -r conftest 2>/dev/null
13303 mkdir conftest
13304 cd conftest
13305 mkdir out
13306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13307
John Criswell47fdd832003-07-14 16:52:07 +000013308 lt_compiler_flag="-o out/conftest2.$ac_objext"
13309 # Insert the option either (1) after the last *FLAGS variable, or
13310 # (2) before a word containing "conftest.", or (3) at the end.
13311 # Note that $ac_compile itself does not contain backslashes and begins
13312 # with a dollar sign (not a hyphen), so the echo should work correctly.
13313 lt_compile=`echo "$ac_compile" | $SED \
13314 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13316 -e 's:$: $lt_compiler_flag:'`
John Criswelle96aa1c2004-10-28 13:35:00 +000013317 (eval echo "\"\$as_me:13317: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013318 (eval "$lt_compile" 2>out/conftest.err)
13319 ac_status=$?
13320 cat out/conftest.err >&5
John Criswelle96aa1c2004-10-28 13:35:00 +000013321 echo "$as_me:13321: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013322 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13323 then
13324 # The compiler can only warn and ignore the option if not recognized
13325 # So say no if there are warnings
13326 if test ! -s out/conftest.err; then
13327 lt_cv_prog_compiler_c_o_F77=yes
13328 fi
13329 fi
13330 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000013331 $rm conftest*
13332 # SGI C++ compiler will create directory out/ii_files/ for
13333 # template instantiation
13334 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13335 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000013336 cd ..
13337 rmdir conftest
13338 $rm conftest*
13339
13340fi
13341echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13342echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13343
13344
13345hard_links="nottested"
13346if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13347 # do not overwrite the value of need_locks provided by the user
13348 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13349echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13350 hard_links=yes
13351 $rm conftest*
13352 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13353 touch conftest.a
13354 ln conftest.a conftest.b 2>&5 || hard_links=no
13355 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13356 echo "$as_me:$LINENO: result: $hard_links" >&5
13357echo "${ECHO_T}$hard_links" >&6
13358 if test "$hard_links" = no; then
13359 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13360echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13361 need_locks=warn
13362 fi
13363else
13364 need_locks=no
13365fi
13366
13367echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13368echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13369
13370 runpath_var=
13371 allow_undefined_flag_F77=
13372 enable_shared_with_static_runtimes_F77=no
13373 archive_cmds_F77=
13374 archive_expsym_cmds_F77=
13375 old_archive_From_new_cmds_F77=
13376 old_archive_from_expsyms_cmds_F77=
13377 export_dynamic_flag_spec_F77=
13378 whole_archive_flag_spec_F77=
13379 thread_safe_flag_spec_F77=
13380 hardcode_libdir_flag_spec_F77=
13381 hardcode_libdir_flag_spec_ld_F77=
13382 hardcode_libdir_separator_F77=
13383 hardcode_direct_F77=no
13384 hardcode_minus_L_F77=no
13385 hardcode_shlibpath_var_F77=unsupported
13386 link_all_deplibs_F77=unknown
13387 hardcode_automatic_F77=no
13388 module_cmds_F77=
13389 module_expsym_cmds_F77=
13390 always_export_symbols_F77=no
13391 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13392 # include_expsyms should be a list of space-separated symbols to be *always*
13393 # included in the symbol list
13394 include_expsyms_F77=
13395 # exclude_expsyms can be an extended regexp of symbols to exclude
13396 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13397 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13398 # as well as any symbol that contains `d'.
13399 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13400 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13401 # platforms (ab)use it in PIC code, but their linkers get confused if
13402 # the symbol is explicitly referenced. Since portable code cannot
13403 # rely on this symbol name, it's probably fine to never include it in
13404 # preloaded symbol tables.
13405 extract_expsyms_cmds=
13406
13407 case $host_os in
13408 cygwin* | mingw* | pw32*)
13409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13410 # When not using gcc, we currently assume that we are using
13411 # Microsoft Visual C++.
13412 if test "$GCC" != yes; then
13413 with_gnu_ld=no
13414 fi
13415 ;;
13416 openbsd*)
13417 with_gnu_ld=no
13418 ;;
13419 esac
13420
13421 ld_shlibs_F77=yes
13422 if test "$with_gnu_ld" = yes; then
13423 # If archive_cmds runs LD, not CC, wlarc should be empty
13424 wlarc='${wl}'
13425
13426 # See if GNU ld supports shared libraries.
13427 case $host_os in
13428 aix3* | aix4* | aix5*)
13429 # On AIX/PPC, the GNU linker is very broken
13430 if test "$host_cpu" != ia64; then
13431 ld_shlibs_F77=no
13432 cat <<EOF 1>&2
13433
13434*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13435*** to be unable to reliably create shared libraries on AIX.
13436*** Therefore, libtool is disabling shared libraries support. If you
13437*** really care for shared libraries, you may want to modify your PATH
13438*** so that a non-GNU linker is found, and then restart.
13439
13440EOF
13441 fi
13442 ;;
13443
13444 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013445 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)'
John Criswell47fdd832003-07-14 16:52:07 +000013446 hardcode_libdir_flag_spec_F77='-L$libdir'
13447 hardcode_minus_L_F77=yes
13448
13449 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13450 # that the semantics of dynamic libraries on AmigaOS, at least up
13451 # to version 4, is to share data among multiple programs linked
13452 # with the same dynamic library. Since this doesn't match the
13453 # behavior of shared libraries on other platforms, we can't use
13454 # them.
13455 ld_shlibs_F77=no
13456 ;;
13457
13458 beos*)
13459 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13460 allow_undefined_flag_F77=unsupported
13461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13462 # support --undefined. This deserves some investigation. FIXME
13463 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13464 else
13465 ld_shlibs_F77=no
13466 fi
13467 ;;
13468
13469 cygwin* | mingw* | pw32*)
13470 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13471 # as there is no search path for DLLs.
13472 hardcode_libdir_flag_spec_F77='-L$libdir'
13473 allow_undefined_flag_F77=unsupported
13474 always_export_symbols_F77=no
13475 enable_shared_with_static_runtimes_F77=yes
13476 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13477
13478 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13479 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13480 # If the export-symbols file already is a .def file (1st line
13481 # is EXPORTS), use it as is; otherwise, prepend...
13482 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13483 cp $export_symbols $output_objdir/$soname.def;
13484 else
13485 echo EXPORTS > $output_objdir/$soname.def;
13486 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000013487 fi~
13488 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +000013489 else
13490 ld_shlibs=no
13491 fi
13492 ;;
13493
13494 netbsd*)
13495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13496 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13497 wlarc=
13498 else
13499 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13500 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13501 fi
13502 ;;
13503
13504 solaris* | sysv5*)
13505 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13506 ld_shlibs_F77=no
13507 cat <<EOF 1>&2
13508
13509*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13510*** create shared libraries on Solaris systems. Therefore, libtool
13511*** is disabling shared libraries support. We urge you to upgrade GNU
13512*** binutils to release 2.9.1 or newer. Another option is to modify
13513*** your PATH or compiler configuration so that the native linker is
13514*** used, and then restart.
13515
13516EOF
13517 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13518 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13520 else
13521 ld_shlibs_F77=no
13522 fi
13523 ;;
13524
13525 sunos4*)
13526 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13527 wlarc=
13528 hardcode_direct_F77=yes
13529 hardcode_shlibpath_var_F77=no
13530 ;;
13531
Reid Spencer2706f8c2004-09-19 23:53:36 +000013532 linux*)
13533 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13534 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13535 archive_cmds_F77="$tmp_archive_cmds"
13536 supports_anon_versioning=no
13537 case `$LD -v 2>/dev/null` in
13538 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13539 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13540 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13541 *\ 2.11.*) ;; # other 2.11 versions
13542 *) supports_anon_versioning=yes ;;
13543 esac
13544 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013545 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13546cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13547$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000013548 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13549 else
13550 archive_expsym_cmds_F77="$tmp_archive_cmds"
13551 fi
13552 else
13553 ld_shlibs_F77=no
13554 fi
13555 ;;
13556
John Criswell47fdd832003-07-14 16:52:07 +000013557 *)
13558 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13559 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13560 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13561 else
13562 ld_shlibs_F77=no
13563 fi
13564 ;;
13565 esac
13566
13567 if test "$ld_shlibs_F77" = yes; then
13568 runpath_var=LD_RUN_PATH
13569 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13570 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13571 # ancient GNU ld didn't support --whole-archive et. al.
13572 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13573 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13574 else
13575 whole_archive_flag_spec_F77=
13576 fi
13577 fi
13578 else
13579 # PORTME fill in a description of your system's linker (not GNU ld)
13580 case $host_os in
13581 aix3*)
13582 allow_undefined_flag_F77=unsupported
13583 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000013584 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'
John Criswell47fdd832003-07-14 16:52:07 +000013585 # Note: this linker hardcodes the directories in LIBPATH if there
13586 # are no directories specified by -L.
13587 hardcode_minus_L_F77=yes
13588 if test "$GCC" = yes && test -z "$link_static_flag"; then
13589 # Neither direct hardcoding nor static linking is supported with a
13590 # broken collect2.
13591 hardcode_direct_F77=unsupported
13592 fi
13593 ;;
13594
13595 aix4* | aix5*)
13596 if test "$host_cpu" = ia64; then
13597 # On IA64, the linker does run time linking by default, so we don't
13598 # have to do anything special.
13599 aix_use_runtimelinking=no
13600 exp_sym_flag='-Bexport'
13601 no_entry_flag=""
13602 else
13603 # If we're using GNU nm, then we don't want the "-C" option.
13604 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13605 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13606 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'
13607 else
13608 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'
13609 fi
13610 aix_use_runtimelinking=no
13611
13612 # Test if we are trying to use run time linking or normal
13613 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13614 # need to do runtime linking.
13615 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13616 for ld_flag in $LDFLAGS; do
13617 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13618 aix_use_runtimelinking=yes
13619 break
13620 fi
13621 done
13622 esac
13623
13624 exp_sym_flag='-bexport'
13625 no_entry_flag='-bnoentry'
13626 fi
13627
13628 # When large executables or shared objects are built, AIX ld can
13629 # have problems creating the table of contents. If linking a library
13630 # or program results in "error TOC overflow" add -mminimal-toc to
13631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13633
13634 archive_cmds_F77=''
13635 hardcode_direct_F77=yes
13636 hardcode_libdir_separator_F77=':'
13637 link_all_deplibs_F77=yes
13638
13639 if test "$GCC" = yes; then
13640 case $host_os in aix4.012|aix4.012.*)
13641 # We only want to do this on AIX 4.2 and lower, the check
13642 # below for broken collect2 doesn't work under 4.3+
13643 collect2name=`${CC} -print-prog-name=collect2`
13644 if test -f "$collect2name" && \
13645 strings "$collect2name" | grep resolve_lib_name >/dev/null
13646 then
13647 # We have reworked collect2
13648 hardcode_direct_F77=yes
13649 else
13650 # We have old collect2
13651 hardcode_direct_F77=unsupported
13652 # It fails to find uninstalled libraries when the uninstalled
13653 # path is not listed in the libpath. Setting hardcode_minus_L
13654 # to unsupported forces relinking
13655 hardcode_minus_L_F77=yes
13656 hardcode_libdir_flag_spec_F77='-L$libdir'
13657 hardcode_libdir_separator_F77=
13658 fi
13659 esac
13660 shared_flag='-shared'
13661 else
13662 # not using gcc
13663 if test "$host_cpu" = ia64; then
13664 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13665 # chokes on -Wl,-G. The following line is correct:
13666 shared_flag='-G'
13667 else
13668 if test "$aix_use_runtimelinking" = yes; then
13669 shared_flag='${wl}-G'
13670 else
13671 shared_flag='${wl}-bM:SRE'
13672 fi
13673 fi
13674 fi
13675
13676 # It seems that -bexpall does not export symbols beginning with
13677 # underscore (_), so it is better to generate a list of symbols to export.
13678 always_export_symbols_F77=yes
13679 if test "$aix_use_runtimelinking" = yes; then
13680 # Warning - without using the other runtime loading flags (-brtl),
13681 # -berok will link without error, but may produce a broken library.
13682 allow_undefined_flag_F77='-berok'
13683 # Determine the default libpath from the value encoded in an empty executable.
13684 cat >conftest.$ac_ext <<_ACEOF
13685 program main
13686
13687 end
13688_ACEOF
13689rm -f conftest.$ac_objext conftest$ac_exeext
13690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013691 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013692 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013698 { ac_try='test -z "$ac_f77_werror_flag"
13699 || test ! -s conftest.err'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; } &&
13705 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711
13712aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13713}'`
13714# Check for a 64-bit object if we didn't find anything.
13715if 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; }
13716}'`; fi
13717else
13718 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013719sed 's/^/| /' conftest.$ac_ext >&5
13720
John Criswell47fdd832003-07-14 16:52:07 +000013721fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013722rm -f conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013724if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13725
13726 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13727 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"
13728 else
13729 if test "$host_cpu" = ia64; then
13730 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13731 allow_undefined_flag_F77="-z nodefs"
13732 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"
13733 else
13734 # Determine the default libpath from the value encoded in an empty executable.
13735 cat >conftest.$ac_ext <<_ACEOF
13736 program main
13737
13738 end
13739_ACEOF
13740rm -f conftest.$ac_objext conftest$ac_exeext
13741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013742 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013743 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013749 { ac_try='test -z "$ac_f77_werror_flag"
13750 || test ! -s conftest.err'
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; } &&
13756 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }; then
13762
13763aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13764}'`
13765# Check for a 64-bit object if we didn't find anything.
13766if 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; }
13767}'`; fi
13768else
13769 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013770sed 's/^/| /' conftest.$ac_ext >&5
13771
John Criswell47fdd832003-07-14 16:52:07 +000013772fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013773rm -f conftest.err conftest.$ac_objext \
13774 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013775if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13776
13777 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13778 # Warning - without using the other run time loading flags,
13779 # -berok will link without error, but may produce a broken library.
13780 no_undefined_flag_F77=' ${wl}-bernotok'
13781 allow_undefined_flag_F77=' ${wl}-berok'
13782 # -bexpall does not export symbols beginning with underscore (_)
13783 always_export_symbols_F77=yes
13784 # Exported symbols can be pulled into shared objects from archives
13785 whole_archive_flag_spec_F77=' '
13786 archive_cmds_need_lc_F77=yes
13787 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000013788 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'
John Criswell47fdd832003-07-14 16:52:07 +000013789 fi
13790 fi
13791 ;;
13792
13793 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013794 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)'
John Criswell47fdd832003-07-14 16:52:07 +000013795 hardcode_libdir_flag_spec_F77='-L$libdir'
13796 hardcode_minus_L_F77=yes
13797 # see comment about different semantics on the GNU ld section
13798 ld_shlibs_F77=no
13799 ;;
13800
Reid Spencer2706f8c2004-09-19 23:53:36 +000013801 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000013802 export_dynamic_flag_spec_F77=-rdynamic
13803 ;;
13804
13805 cygwin* | mingw* | pw32*)
13806 # When not using gcc, we currently assume that we are using
13807 # Microsoft Visual C++.
13808 # hardcode_libdir_flag_spec is actually meaningless, as there is
13809 # no search path for DLLs.
13810 hardcode_libdir_flag_spec_F77=' '
13811 allow_undefined_flag_F77=unsupported
13812 # Tell ltmain to make .lib files, not .a files.
13813 libext=lib
13814 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013815 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000013816 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000013817 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000013818 # The linker will automatically build a .lib file if we build a DLL.
13819 old_archive_From_new_cmds_F77='true'
13820 # FIXME: Should let the user specify the lib program.
13821 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13822 fix_srcfile_path='`cygpath -w "$srcfile"`'
13823 enable_shared_with_static_runtimes_F77=yes
13824 ;;
13825
13826 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000013827 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013828 rhapsody* | darwin1.[012])
13829 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13830 ;;
13831 *) # Darwin 1.3 on
13832 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13833 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13834 else
13835 case ${MACOSX_DEPLOYMENT_TARGET} in
13836 10.[012])
13837 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13838 ;;
13839 10.*)
13840 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13841 ;;
13842 esac
13843 fi
13844 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013845 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000013846 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000013847 hardcode_direct_F77=no
13848 hardcode_automatic_F77=yes
13849 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000013850 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000013851 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000013852 if test "$GCC" = yes ; then
13853 output_verbose_link_cmd='echo'
13854 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13855 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13856 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000013857 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}'
13858 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013859 else
13860 case "$cc_basename" in
13861 xlc*)
13862 output_verbose_link_cmd='echo'
13863 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13864 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000013866 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}'
13867 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013868 ;;
13869 *)
13870 ld_shlibs_F77=no
13871 ;;
13872 esac
John Criswell47fdd832003-07-14 16:52:07 +000013873 fi
13874 ;;
13875
13876 dgux*)
13877 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878 hardcode_libdir_flag_spec_F77='-L$libdir'
13879 hardcode_shlibpath_var_F77=no
13880 ;;
13881
13882 freebsd1*)
13883 ld_shlibs_F77=no
13884 ;;
13885
13886 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13887 # support. Future versions do this automatically, but an explicit c++rt0.o
13888 # does not break anything, and helps significantly (at the cost of a little
13889 # extra space).
13890 freebsd2.2*)
13891 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13892 hardcode_libdir_flag_spec_F77='-R$libdir'
13893 hardcode_direct_F77=yes
13894 hardcode_shlibpath_var_F77=no
13895 ;;
13896
13897 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13898 freebsd2*)
13899 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13900 hardcode_direct_F77=yes
13901 hardcode_minus_L_F77=yes
13902 hardcode_shlibpath_var_F77=no
13903 ;;
13904
13905 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013906 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000013907 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13908 hardcode_libdir_flag_spec_F77='-R$libdir'
13909 hardcode_direct_F77=yes
13910 hardcode_shlibpath_var_F77=no
13911 ;;
13912
13913 hpux9*)
13914 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013915 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'
John Criswell47fdd832003-07-14 16:52:07 +000013916 else
Reid Spencer177dbe22004-10-13 01:01:03 +000013917 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'
John Criswell47fdd832003-07-14 16:52:07 +000013918 fi
13919 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13920 hardcode_libdir_separator_F77=:
13921 hardcode_direct_F77=yes
13922
13923 # hardcode_minus_L: Not really in the search PATH,
13924 # but as the default location of the library.
13925 hardcode_minus_L_F77=yes
13926 export_dynamic_flag_spec_F77='${wl}-E'
13927 ;;
13928
13929 hpux10* | hpux11*)
13930 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13931 case "$host_cpu" in
13932 hppa*64*|ia64*)
13933 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13934 ;;
13935 *)
13936 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13937 ;;
13938 esac
13939 else
13940 case "$host_cpu" in
13941 hppa*64*|ia64*)
13942 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13943 ;;
13944 *)
13945 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13946 ;;
13947 esac
13948 fi
13949 if test "$with_gnu_ld" = no; then
13950 case "$host_cpu" in
13951 hppa*64*)
13952 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13953 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13954 hardcode_libdir_separator_F77=:
13955 hardcode_direct_F77=no
13956 hardcode_shlibpath_var_F77=no
13957 ;;
13958 ia64*)
13959 hardcode_libdir_flag_spec_F77='-L$libdir'
13960 hardcode_direct_F77=no
13961 hardcode_shlibpath_var_F77=no
13962
13963 # hardcode_minus_L: Not really in the search PATH,
13964 # but as the default location of the library.
13965 hardcode_minus_L_F77=yes
13966 ;;
13967 *)
13968 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13969 hardcode_libdir_separator_F77=:
13970 hardcode_direct_F77=yes
13971 export_dynamic_flag_spec_F77='${wl}-E'
13972
13973 # hardcode_minus_L: Not really in the search PATH,
13974 # but as the default location of the library.
13975 hardcode_minus_L_F77=yes
13976 ;;
13977 esac
13978 fi
13979 ;;
13980
13981 irix5* | irix6* | nonstopux*)
13982 if test "$GCC" = yes; then
13983 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'
13984 else
13985 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'
13986 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13987 fi
13988 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13989 hardcode_libdir_separator_F77=:
13990 link_all_deplibs_F77=yes
13991 ;;
13992
13993 netbsd*)
13994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13995 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13996 else
13997 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13998 fi
13999 hardcode_libdir_flag_spec_F77='-R$libdir'
14000 hardcode_direct_F77=yes
14001 hardcode_shlibpath_var_F77=no
14002 ;;
14003
14004 newsos6)
14005 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14006 hardcode_direct_F77=yes
14007 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14008 hardcode_libdir_separator_F77=:
14009 hardcode_shlibpath_var_F77=no
14010 ;;
14011
14012 openbsd*)
14013 hardcode_direct_F77=yes
14014 hardcode_shlibpath_var_F77=no
14015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14016 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014017 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000014018 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14019 export_dynamic_flag_spec_F77='${wl}-E'
14020 else
14021 case $host_os in
14022 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14023 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14024 hardcode_libdir_flag_spec_F77='-R$libdir'
14025 ;;
14026 *)
14027 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14028 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14029 ;;
14030 esac
14031 fi
14032 ;;
14033
14034 os2*)
14035 hardcode_libdir_flag_spec_F77='-L$libdir'
14036 hardcode_minus_L_F77=yes
14037 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000014038 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'
John Criswell47fdd832003-07-14 16:52:07 +000014039 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14040 ;;
14041
14042 osf3*)
14043 if test "$GCC" = yes; then
14044 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14045 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'
14046 else
14047 allow_undefined_flag_F77=' -expect_unresolved \*'
14048 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'
14049 fi
14050 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14051 hardcode_libdir_separator_F77=:
14052 ;;
14053
14054 osf4* | osf5*) # as osf3* with the addition of -msym flag
14055 if test "$GCC" = yes; then
14056 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14057 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'
14058 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14059 else
14060 allow_undefined_flag_F77=' -expect_unresolved \*'
14061 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000014062 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~
14063 $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'
14064
John Criswell47fdd832003-07-14 16:52:07 +000014065 # Both c and cxx compiler support -rpath directly
14066 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14067 fi
14068 hardcode_libdir_separator_F77=:
14069 ;;
14070
14071 sco3.2v5*)
14072 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14073 hardcode_shlibpath_var_F77=no
14074 export_dynamic_flag_spec_F77='${wl}-Bexport'
14075 runpath_var=LD_RUN_PATH
14076 hardcode_runpath_var=yes
14077 ;;
14078
14079 solaris*)
14080 no_undefined_flag_F77=' -z text'
14081 if test "$GCC" = yes; then
14082 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014083 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14084 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000014085 else
14086 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014087 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14088 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000014089 fi
14090 hardcode_libdir_flag_spec_F77='-R$libdir'
14091 hardcode_shlibpath_var_F77=no
14092 case $host_os in
14093 solaris2.[0-5] | solaris2.[0-5].*) ;;
14094 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14095 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14096 esac
14097 link_all_deplibs_F77=yes
14098 ;;
14099
14100 sunos4*)
14101 if test "x$host_vendor" = xsequent; then
14102 # Use $CC to link under sequent, because it throws in some extra .o
14103 # files that make .init and .fini sections work.
14104 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14105 else
14106 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14107 fi
14108 hardcode_libdir_flag_spec_F77='-L$libdir'
14109 hardcode_direct_F77=yes
14110 hardcode_minus_L_F77=yes
14111 hardcode_shlibpath_var_F77=no
14112 ;;
14113
14114 sysv4)
14115 case $host_vendor in
14116 sni)
14117 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14118 hardcode_direct_F77=yes # is this really true???
14119 ;;
14120 siemens)
14121 ## LD is ld it makes a PLAMLIB
14122 ## CC just makes a GrossModule.
14123 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14124 reload_cmds_F77='$CC -r -o $output$reload_objs'
14125 hardcode_direct_F77=no
14126 ;;
14127 motorola)
14128 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14129 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14130 ;;
14131 esac
14132 runpath_var='LD_RUN_PATH'
14133 hardcode_shlibpath_var_F77=no
14134 ;;
14135
14136 sysv4.3*)
14137 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14138 hardcode_shlibpath_var_F77=no
14139 export_dynamic_flag_spec_F77='-Bexport'
14140 ;;
14141
14142 sysv4*MP*)
14143 if test -d /usr/nec; then
14144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145 hardcode_shlibpath_var_F77=no
14146 runpath_var=LD_RUN_PATH
14147 hardcode_runpath_var=yes
14148 ld_shlibs_F77=yes
14149 fi
14150 ;;
14151
14152 sysv4.2uw2*)
14153 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14154 hardcode_direct_F77=yes
14155 hardcode_minus_L_F77=no
14156 hardcode_shlibpath_var_F77=no
14157 hardcode_runpath_var=yes
14158 runpath_var=LD_RUN_PATH
14159 ;;
14160
14161 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14162 no_undefined_flag_F77='${wl}-z ${wl}text'
14163 if test "$GCC" = yes; then
14164 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14165 else
14166 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14167 fi
14168 runpath_var='LD_RUN_PATH'
14169 hardcode_shlibpath_var_F77=no
14170 ;;
14171
14172 sysv5*)
14173 no_undefined_flag_F77=' -z text'
14174 # $CC -shared without GNU ld will not create a library from C++
14175 # object files and a static libstdc++, better avoid it by now
14176 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014177 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14178 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000014179 hardcode_libdir_flag_spec_F77=
14180 hardcode_shlibpath_var_F77=no
14181 runpath_var='LD_RUN_PATH'
14182 ;;
14183
14184 uts4*)
14185 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14186 hardcode_libdir_flag_spec_F77='-L$libdir'
14187 hardcode_shlibpath_var_F77=no
14188 ;;
14189
14190 *)
14191 ld_shlibs_F77=no
14192 ;;
14193 esac
14194 fi
14195
14196echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14197echo "${ECHO_T}$ld_shlibs_F77" >&6
14198test "$ld_shlibs_F77" = no && can_build_shared=no
14199
14200variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14201if test "$GCC" = yes; then
14202 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14203fi
14204
14205#
14206# Do we need to explicitly link libc?
14207#
14208case "x$archive_cmds_need_lc_F77" in
14209x|xyes)
14210 # Assume -lc should be added
14211 archive_cmds_need_lc_F77=yes
14212
14213 if test "$enable_shared" = yes && test "$GCC" = yes; then
14214 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014215 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000014216 # FIXME: we may have to deal with multi-command sequences.
14217 ;;
14218 '$CC '*)
14219 # Test whether the compiler implicitly links with -lc since on some
14220 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14221 # to ld, don't add -lc before -lgcc.
14222 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14223echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14224 $rm conftest*
14225 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14226
14227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14228 (eval $ac_compile) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } 2>conftest.err; then
14232 soname=conftest
14233 lib=conftest
14234 libobjs=conftest.$ac_objext
14235 deplibs=
14236 wl=$lt_prog_compiler_wl_F77
14237 compiler_flags=-v
14238 linker_flags=-v
14239 verstring=
14240 output_objdir=.
14241 libname=conftest
14242 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14243 allow_undefined_flag_F77=
14244 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14245 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }
14249 then
14250 archive_cmds_need_lc_F77=no
14251 else
14252 archive_cmds_need_lc_F77=yes
14253 fi
14254 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14255 else
14256 cat conftest.err 1>&5
14257 fi
14258 $rm conftest*
14259 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14260echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14261 ;;
14262 esac
14263 fi
14264 ;;
14265esac
14266
John Criswell47fdd832003-07-14 16:52:07 +000014267echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14268echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14269library_names_spec=
14270libname_spec='lib$name'
14271soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000014272shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000014273postinstall_cmds=
14274postuninstall_cmds=
14275finish_cmds=
14276finish_eval=
14277shlibpath_var=
14278shlibpath_overrides_runpath=unknown
14279version_type=none
14280dynamic_linker="$host_os ld.so"
14281sys_lib_dlsearch_path_spec="/lib /usr/lib"
14282if test "$GCC" = yes; then
14283 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14284 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14285 # if the path contains ";" then we assume it to be the separator
14286 # otherwise default to the standard path separator (i.e. ":") - it is
14287 # assumed that no part of a normal pathname contains ";" but that should
14288 # okay in the real world where ";" in dirpaths is itself problematic.
14289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14290 else
14291 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14292 fi
14293else
14294 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14295fi
14296need_lib_prefix=unknown
14297hardcode_into_libs=no
14298
14299# when you set need_version to no, make sure it does not cause -set_version
14300# flags to be left without arguments
14301need_version=unknown
14302
14303case $host_os in
14304aix3*)
14305 version_type=linux
14306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14307 shlibpath_var=LIBPATH
14308
14309 # AIX 3 has no versioning support, so we append a major version to the name.
14310 soname_spec='${libname}${release}${shared_ext}$major'
14311 ;;
14312
14313aix4* | aix5*)
14314 version_type=linux
14315 need_lib_prefix=no
14316 need_version=no
14317 hardcode_into_libs=yes
14318 if test "$host_cpu" = ia64; then
14319 # AIX 5 supports IA64
14320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14321 shlibpath_var=LD_LIBRARY_PATH
14322 else
14323 # With GCC up to 2.95.x, collect2 would create an import file
14324 # for dependence libraries. The import file would start with
14325 # the line `#! .'. This would cause the generated library to
14326 # depend on `.', always an invalid library. This was fixed in
14327 # development snapshots of GCC prior to 3.0.
14328 case $host_os in
14329 aix4 | aix4.[01] | aix4.[01].*)
14330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14331 echo ' yes '
14332 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14333 :
14334 else
14335 can_build_shared=no
14336 fi
14337 ;;
14338 esac
14339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14340 # soname into executable. Probably we can add versioning support to
14341 # collect2, so additional links can be useful in future.
14342 if test "$aix_use_runtimelinking" = yes; then
14343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14344 # instead of lib<name>.a to let people know that these are not
14345 # typical AIX shared libraries.
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347 else
14348 # We preserve .a as extension for shared libraries through AIX4.2
14349 # and later when we are not doing run time linking.
14350 library_names_spec='${libname}${release}.a $libname.a'
14351 soname_spec='${libname}${release}${shared_ext}$major'
14352 fi
14353 shlibpath_var=LIBPATH
14354 fi
14355 ;;
14356
14357amigaos*)
14358 library_names_spec='$libname.ixlibrary $libname.a'
14359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014360 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'
John Criswell47fdd832003-07-14 16:52:07 +000014361 ;;
14362
14363beos*)
14364 library_names_spec='${libname}${shared_ext}'
14365 dynamic_linker="$host_os ld.so"
14366 shlibpath_var=LIBRARY_PATH
14367 ;;
14368
Reid Spencer2706f8c2004-09-19 23:53:36 +000014369bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014370 version_type=linux
14371 need_version=no
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373 soname_spec='${libname}${release}${shared_ext}$major'
14374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14375 shlibpath_var=LD_LIBRARY_PATH
14376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14378 # the default ld.so.conf also contains /usr/contrib/lib and
14379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14380 # libtool to hard-code these into programs
14381 ;;
14382
14383cygwin* | mingw* | pw32*)
14384 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000014385 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014386 need_version=no
14387 need_lib_prefix=no
14388
14389 case $GCC,$host_os in
14390 yes,cygwin* | yes,mingw* | yes,pw32*)
14391 library_names_spec='$libname.dll.a'
14392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000014393 postinstall_cmds='base_file=`basename \${file}`~
14394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14395 dldir=$destdir/`dirname \$dlpath`~
14396 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000014397 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000014398 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14399 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000014400 $rm \$dlpath'
14401 shlibpath_overrides_runpath=yes
14402
14403 case $host_os in
14404 cygwin*)
14405 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14406 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014407 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000014408 ;;
14409 mingw*)
14410 # MinGW DLLs use traditional 'lib' prefix
14411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14413 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14414 # It is most probably a Windows format PATH printed by
14415 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14416 # path with ; separators, and with drive letters. We can handle the
14417 # drive letters (cygwin fileutils understands them), so leave them,
14418 # especially as we might pass files found there to a mingw objdump,
14419 # which wouldn't understand a cygwinified path. Ahh.
14420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14421 else
14422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14423 fi
14424 ;;
14425 pw32*)
14426 # pw32 DLLs use 'pw' prefix rather than 'lib'
14427 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14428 ;;
14429 esac
14430 ;;
14431
14432 *)
14433 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14434 ;;
14435 esac
14436 dynamic_linker='Win32 ld.exe'
14437 # FIXME: first we should search . and the directory the executable is in
14438 shlibpath_var=PATH
14439 ;;
14440
14441darwin* | rhapsody*)
14442 dynamic_linker="$host_os dyld"
14443 version_type=darwin
14444 need_lib_prefix=no
14445 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000014446 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000014447 soname_spec='${libname}${release}${major}$shared_ext'
14448 shlibpath_overrides_runpath=yes
14449 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000014450 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000014451 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014452 if test "$GCC" = yes; then
14453 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"`
14454 else
14455 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000014456 fi
14457 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14458 ;;
14459
14460dgux*)
14461 version_type=linux
14462 need_lib_prefix=no
14463 need_version=no
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14465 soname_spec='${libname}${release}${shared_ext}$major'
14466 shlibpath_var=LD_LIBRARY_PATH
14467 ;;
14468
14469freebsd1*)
14470 dynamic_linker=no
14471 ;;
14472
Reid Spencer2706f8c2004-09-19 23:53:36 +000014473kfreebsd*-gnu)
14474 version_type=linux
14475 need_lib_prefix=no
14476 need_version=no
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 shlibpath_var=LD_LIBRARY_PATH
14480 shlibpath_overrides_runpath=no
14481 hardcode_into_libs=yes
14482 dynamic_linker='GNU ld.so'
14483 ;;
14484
John Criswell47fdd832003-07-14 16:52:07 +000014485freebsd*)
14486 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14487 version_type=freebsd-$objformat
14488 case $version_type in
14489 freebsd-elf*)
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14491 need_version=no
14492 need_lib_prefix=no
14493 ;;
14494 freebsd-*)
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14496 need_version=yes
14497 ;;
14498 esac
14499 shlibpath_var=LD_LIBRARY_PATH
14500 case $host_os in
14501 freebsd2*)
14502 shlibpath_overrides_runpath=yes
14503 ;;
14504 freebsd3.01* | freebsdelf3.01*)
14505 shlibpath_overrides_runpath=yes
14506 hardcode_into_libs=yes
14507 ;;
14508 *) # from 3.2 on
14509 shlibpath_overrides_runpath=no
14510 hardcode_into_libs=yes
14511 ;;
14512 esac
14513 ;;
14514
14515gnu*)
14516 version_type=linux
14517 need_lib_prefix=no
14518 need_version=no
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 hardcode_into_libs=yes
14523 ;;
14524
14525hpux9* | hpux10* | hpux11*)
14526 # Give a soname corresponding to the major version so that dld.sl refuses to
14527 # link against other versions.
14528 version_type=sunos
14529 need_lib_prefix=no
14530 need_version=no
14531 case "$host_cpu" in
14532 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014533 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000014534 hardcode_into_libs=yes
14535 dynamic_linker="$host_os dld.so"
14536 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14540 if test "X$HPUX_IA64_MODE" = X32; then
14541 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14542 else
14543 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14544 fi
14545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14546 ;;
14547 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014548 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014549 hardcode_into_libs=yes
14550 dynamic_linker="$host_os dld.sl"
14551 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14554 soname_spec='${libname}${release}${shared_ext}$major'
14555 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14557 ;;
14558 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014559 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014560 dynamic_linker="$host_os dld.sl"
14561 shlibpath_var=SHLIB_PATH
14562 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 ;;
14566 esac
14567 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14568 postinstall_cmds='chmod 555 $lib'
14569 ;;
14570
14571irix5* | irix6* | nonstopux*)
14572 case $host_os in
14573 nonstopux*) version_type=nonstopux ;;
14574 *)
14575 if test "$lt_cv_prog_gnu_ld" = yes; then
14576 version_type=linux
14577 else
14578 version_type=irix
14579 fi ;;
14580 esac
14581 need_lib_prefix=no
14582 need_version=no
14583 soname_spec='${libname}${release}${shared_ext}$major'
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14585 case $host_os in
14586 irix5* | nonstopux*)
14587 libsuff= shlibsuff=
14588 ;;
14589 *)
14590 case $LD in # libtool.m4 will add one of these switches to LD
14591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14592 libsuff= shlibsuff= libmagic=32-bit;;
14593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14594 libsuff=32 shlibsuff=N32 libmagic=N32;;
14595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14597 *) libsuff= shlibsuff= libmagic=never-match;;
14598 esac
14599 ;;
14600 esac
14601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14602 shlibpath_overrides_runpath=no
14603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14605 hardcode_into_libs=yes
14606 ;;
14607
14608# No shared lib support for Linux oldld, aout, or coff.
14609linux*oldld* | linux*aout* | linux*coff*)
14610 dynamic_linker=no
14611 ;;
14612
14613# This must be Linux ELF.
14614linux*)
14615 version_type=linux
14616 need_lib_prefix=no
14617 need_version=no
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619 soname_spec='${libname}${release}${shared_ext}$major'
14620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=no
14623 # This implies no fast_install, which is unacceptable.
14624 # Some rework will be needed to allow for fast_install
14625 # before this can be enabled.
14626 hardcode_into_libs=yes
14627
Reid Spencer2706f8c2004-09-19 23:53:36 +000014628 # Append ld.so.conf contents to the search path
14629 if test -f /etc/ld.so.conf; then
14630 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14631 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14632 fi
14633
John Criswell47fdd832003-07-14 16:52:07 +000014634 # We used to test for /lib/ld.so.1 and disable shared libraries on
14635 # powerpc, because MkLinux only supported shared libraries with the
14636 # GNU dynamic linker. Since this was broken with cross compilers,
14637 # most powerpc-linux boxes support dynamic linking these days and
14638 # people can always --disable-shared, the test was removed, and we
14639 # assume the GNU/Linux dynamic linker is in use.
14640 dynamic_linker='GNU/Linux ld.so'
14641 ;;
14642
Reid Spencer2706f8c2004-09-19 23:53:36 +000014643knetbsd*-gnu)
14644 version_type=linux
14645 need_lib_prefix=no
14646 need_version=no
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14648 soname_spec='${libname}${release}${shared_ext}$major'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=no
14651 hardcode_into_libs=yes
14652 dynamic_linker='GNU ld.so'
14653 ;;
14654
John Criswell47fdd832003-07-14 16:52:07 +000014655netbsd*)
14656 version_type=sunos
14657 need_lib_prefix=no
14658 need_version=no
14659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14662 dynamic_linker='NetBSD (a.out) ld.so'
14663 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000014664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000014665 soname_spec='${libname}${release}${shared_ext}$major'
14666 dynamic_linker='NetBSD ld.elf_so'
14667 fi
14668 shlibpath_var=LD_LIBRARY_PATH
14669 shlibpath_overrides_runpath=yes
14670 hardcode_into_libs=yes
14671 ;;
14672
14673newsos6)
14674 version_type=linux
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676 shlibpath_var=LD_LIBRARY_PATH
14677 shlibpath_overrides_runpath=yes
14678 ;;
14679
Reid Spencer2706f8c2004-09-19 23:53:36 +000014680nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000014681 version_type=linux
14682 need_lib_prefix=no
14683 need_version=no
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath=yes
14688 ;;
14689
14690openbsd*)
14691 version_type=sunos
14692 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000014693 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14698 case $host_os in
14699 openbsd2.[89] | openbsd2.[89].*)
14700 shlibpath_overrides_runpath=no
14701 ;;
14702 *)
14703 shlibpath_overrides_runpath=yes
14704 ;;
14705 esac
14706 else
14707 shlibpath_overrides_runpath=yes
14708 fi
14709 ;;
14710
14711os2*)
14712 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014713 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014714 need_lib_prefix=no
14715 library_names_spec='$libname${shared_ext} $libname.a'
14716 dynamic_linker='OS/2 ld.exe'
14717 shlibpath_var=LIBPATH
14718 ;;
14719
14720osf3* | osf4* | osf5*)
14721 version_type=osf
14722 need_lib_prefix=no
14723 need_version=no
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14728 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14729 ;;
14730
14731sco3.2v5*)
14732 version_type=osf
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735 shlibpath_var=LD_LIBRARY_PATH
14736 ;;
14737
14738solaris*)
14739 version_type=linux
14740 need_lib_prefix=no
14741 need_version=no
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743 soname_spec='${libname}${release}${shared_ext}$major'
14744 shlibpath_var=LD_LIBRARY_PATH
14745 shlibpath_overrides_runpath=yes
14746 hardcode_into_libs=yes
14747 # ldd complains unless libraries are executable
14748 postinstall_cmds='chmod +x $lib'
14749 ;;
14750
14751sunos4*)
14752 version_type=sunos
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=yes
14757 if test "$with_gnu_ld" = yes; then
14758 need_lib_prefix=no
14759 fi
14760 need_version=yes
14761 ;;
14762
14763sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14764 version_type=linux
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766 soname_spec='${libname}${release}${shared_ext}$major'
14767 shlibpath_var=LD_LIBRARY_PATH
14768 case $host_vendor in
14769 sni)
14770 shlibpath_overrides_runpath=no
14771 need_lib_prefix=no
14772 export_dynamic_flag_spec='${wl}-Blargedynsym'
14773 runpath_var=LD_RUN_PATH
14774 ;;
14775 siemens)
14776 need_lib_prefix=no
14777 ;;
14778 motorola)
14779 need_lib_prefix=no
14780 need_version=no
14781 shlibpath_overrides_runpath=no
14782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14783 ;;
14784 esac
14785 ;;
14786
14787sysv4*MP*)
14788 if test -d /usr/nec ;then
14789 version_type=linux
14790 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14791 soname_spec='$libname${shared_ext}.$major'
14792 shlibpath_var=LD_LIBRARY_PATH
14793 fi
14794 ;;
14795
14796uts4*)
14797 version_type=linux
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 shlibpath_var=LD_LIBRARY_PATH
14801 ;;
14802
14803*)
14804 dynamic_linker=no
14805 ;;
14806esac
14807echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14808echo "${ECHO_T}$dynamic_linker" >&6
14809test "$dynamic_linker" = no && can_build_shared=no
14810
Reid Spencer2706f8c2004-09-19 23:53:36 +000014811echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14812echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14813hardcode_action_F77=
14814if test -n "$hardcode_libdir_flag_spec_F77" || \
14815 test -n "$runpath_var_F77" || \
14816 test "X$hardcode_automatic_F77" = "Xyes" ; then
14817
14818 # We can hardcode non-existant directories.
14819 if test "$hardcode_direct_F77" != no &&
14820 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14821 # have to relink, otherwise we might link with an installed library
14822 # when we should be linking with a yet-to-be-installed one
14823 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14824 test "$hardcode_minus_L_F77" != no; then
14825 # Linking always hardcodes the temporary library directory.
14826 hardcode_action_F77=relink
14827 else
14828 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14829 hardcode_action_F77=immediate
14830 fi
14831else
14832 # We cannot hardcode anything, or else we can only hardcode existing
14833 # directories.
14834 hardcode_action_F77=unsupported
14835fi
14836echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14837echo "${ECHO_T}$hardcode_action_F77" >&6
14838
14839if test "$hardcode_action_F77" = relink; then
14840 # Fast installation is not supported
14841 enable_fast_install=no
14842elif test "$shlibpath_overrides_runpath" = yes ||
14843 test "$enable_shared" = no; then
14844 # Fast installation is not necessary
14845 enable_fast_install=needless
14846fi
14847
14848striplib=
14849old_striplib=
14850echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14851echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14852if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14853 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14854 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14855 echo "$as_me:$LINENO: result: yes" >&5
14856echo "${ECHO_T}yes" >&6
14857else
14858# FIXME - insert some real tests, host_os isn't really good enough
14859 case $host_os in
14860 darwin*)
14861 if test -n "$STRIP" ; then
14862 striplib="$STRIP -x"
14863 echo "$as_me:$LINENO: result: yes" >&5
14864echo "${ECHO_T}yes" >&6
14865 else
14866 echo "$as_me:$LINENO: result: no" >&5
14867echo "${ECHO_T}no" >&6
14868fi
14869 ;;
14870 *)
14871 echo "$as_me:$LINENO: result: no" >&5
14872echo "${ECHO_T}no" >&6
14873 ;;
14874 esac
14875fi
14876
14877
John Criswell47fdd832003-07-14 16:52:07 +000014878
14879# The else clause should only fire when bootstrapping the
14880# libtool distribution, otherwise you forgot to ship ltmain.sh
14881# with your package, and you will get complaints that there are
14882# no rules to generate ltmain.sh.
14883if test -f "$ltmain"; then
14884 # See if we are running on zsh, and set the options which allow our commands through
14885 # without removal of \ escapes.
14886 if test -n "${ZSH_VERSION+set}" ; then
14887 setopt NO_GLOB_SUBST
14888 fi
14889 # Now quote all the things that may contain metacharacters while being
14890 # careful not to overquote the AC_SUBSTed values. We take copies of the
14891 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014892 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14893 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014894 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14895 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14896 deplibs_check_method reload_flag reload_cmds need_locks \
14897 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14898 lt_cv_sys_global_symbol_to_c_name_address \
14899 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14900 old_postinstall_cmds old_postuninstall_cmds \
14901 compiler_F77 \
14902 CC_F77 \
14903 LD_F77 \
14904 lt_prog_compiler_wl_F77 \
14905 lt_prog_compiler_pic_F77 \
14906 lt_prog_compiler_static_F77 \
14907 lt_prog_compiler_no_builtin_flag_F77 \
14908 export_dynamic_flag_spec_F77 \
14909 thread_safe_flag_spec_F77 \
14910 whole_archive_flag_spec_F77 \
14911 enable_shared_with_static_runtimes_F77 \
14912 old_archive_cmds_F77 \
14913 old_archive_from_new_cmds_F77 \
14914 predep_objects_F77 \
14915 postdep_objects_F77 \
14916 predeps_F77 \
14917 postdeps_F77 \
14918 compiler_lib_search_path_F77 \
14919 archive_cmds_F77 \
14920 archive_expsym_cmds_F77 \
14921 postinstall_cmds_F77 \
14922 postuninstall_cmds_F77 \
14923 old_archive_from_expsyms_cmds_F77 \
14924 allow_undefined_flag_F77 \
14925 no_undefined_flag_F77 \
14926 export_symbols_cmds_F77 \
14927 hardcode_libdir_flag_spec_F77 \
14928 hardcode_libdir_flag_spec_ld_F77 \
14929 hardcode_libdir_separator_F77 \
14930 hardcode_automatic_F77 \
14931 module_cmds_F77 \
14932 module_expsym_cmds_F77 \
14933 lt_cv_prog_compiler_c_o_F77 \
14934 exclude_expsyms_F77 \
14935 include_expsyms_F77; do
14936
14937 case $var in
14938 old_archive_cmds_F77 | \
14939 old_archive_from_new_cmds_F77 | \
14940 archive_cmds_F77 | \
14941 archive_expsym_cmds_F77 | \
14942 module_cmds_F77 | \
14943 module_expsym_cmds_F77 | \
14944 old_archive_from_expsyms_cmds_F77 | \
14945 export_symbols_cmds_F77 | \
14946 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14947 postinstall_cmds | postuninstall_cmds | \
14948 old_postinstall_cmds | old_postuninstall_cmds | \
14949 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14950 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014951 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000014952 ;;
14953 *)
14954 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14955 ;;
14956 esac
14957 done
14958
14959 case $lt_echo in
14960 *'\$0 --fallback-echo"')
14961 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14962 ;;
14963 esac
14964
14965cfgfile="$ofile"
14966
14967 cat <<__EOF__ >> "$cfgfile"
14968# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14969
14970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14971
14972# Shell to use when invoking shell scripts.
14973SHELL=$lt_SHELL
14974
14975# Whether or not to build shared libraries.
14976build_libtool_libs=$enable_shared
14977
14978# Whether or not to build static libraries.
14979build_old_libs=$enable_static
14980
14981# Whether or not to add -lc for building shared libraries.
14982build_libtool_need_lc=$archive_cmds_need_lc_F77
14983
14984# Whether or not to disallow shared libs when runtime libs are static
14985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14986
14987# Whether or not to optimize for fast installation.
14988fast_install=$enable_fast_install
14989
14990# The host system.
14991host_alias=$host_alias
14992host=$host
14993
14994# An echo program that does not interpret backslashes.
14995echo=$lt_echo
14996
14997# The archiver.
14998AR=$lt_AR
14999AR_FLAGS=$lt_AR_FLAGS
15000
15001# A C compiler.
15002LTCC=$lt_LTCC
15003
15004# A language-specific compiler.
15005CC=$lt_compiler_F77
15006
15007# Is the compiler the GNU C compiler?
15008with_gcc=$GCC_F77
15009
15010# An ERE matcher.
15011EGREP=$lt_EGREP
15012
15013# The linker used to build libraries.
15014LD=$lt_LD_F77
15015
15016# Whether we need hard or soft links.
15017LN_S=$lt_LN_S
15018
15019# A BSD-compatible nm program.
15020NM=$lt_NM
15021
15022# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000015023STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000015024
15025# Used to examine libraries when file_magic_cmd begins "file"
15026MAGIC_CMD=$MAGIC_CMD
15027
15028# Used on cygwin: DLL creation program.
15029DLLTOOL="$DLLTOOL"
15030
15031# Used on cygwin: object dumper.
15032OBJDUMP="$OBJDUMP"
15033
15034# Used on cygwin: assembler.
15035AS="$AS"
15036
15037# The name of the directory that contains temporary libtool files.
15038objdir=$objdir
15039
15040# How to create reloadable object files.
15041reload_flag=$lt_reload_flag
15042reload_cmds=$lt_reload_cmds
15043
15044# How to pass a linker flag through the compiler.
15045wl=$lt_lt_prog_compiler_wl_F77
15046
15047# Object file suffix (normally "o").
15048objext="$ac_objext"
15049
15050# Old archive suffix (normally "a").
15051libext="$libext"
15052
15053# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015054shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015055
15056# Executable file suffix (normally "").
15057exeext="$exeext"
15058
15059# Additional compiler flags for building library objects.
15060pic_flag=$lt_lt_prog_compiler_pic_F77
15061pic_mode=$pic_mode
15062
15063# What is the maximum length of a command?
15064max_cmd_len=$lt_cv_sys_max_cmd_len
15065
15066# Does compiler simultaneously support -c and -o options?
15067compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15068
15069# Must we lock files when doing compilation ?
15070need_locks=$lt_need_locks
15071
15072# Do we need the lib prefix for modules?
15073need_lib_prefix=$need_lib_prefix
15074
15075# Do we need a version for libraries?
15076need_version=$need_version
15077
15078# Whether dlopen is supported.
15079dlopen_support=$enable_dlopen
15080
15081# Whether dlopen of programs is supported.
15082dlopen_self=$enable_dlopen_self
15083
15084# Whether dlopen of statically linked programs is supported.
15085dlopen_self_static=$enable_dlopen_self_static
15086
15087# Compiler flag to prevent dynamic linking.
15088link_static_flag=$lt_lt_prog_compiler_static_F77
15089
15090# Compiler flag to turn off builtin functions.
15091no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15092
15093# Compiler flag to allow reflexive dlopens.
15094export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15095
15096# Compiler flag to generate shared objects directly from archives.
15097whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15098
15099# Compiler flag to generate thread-safe objects.
15100thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15101
15102# Library versioning type.
15103version_type=$version_type
15104
15105# Format of library name prefix.
15106libname_spec=$lt_libname_spec
15107
15108# List of archive names. First name is the real one, the rest are links.
15109# The last name is the one that the linker finds with -lNAME.
15110library_names_spec=$lt_library_names_spec
15111
15112# The coded name of the library, if different from the real name.
15113soname_spec=$lt_soname_spec
15114
15115# Commands used to build and install an old-style archive.
15116RANLIB=$lt_RANLIB
15117old_archive_cmds=$lt_old_archive_cmds_F77
15118old_postinstall_cmds=$lt_old_postinstall_cmds
15119old_postuninstall_cmds=$lt_old_postuninstall_cmds
15120
15121# Create an old-style archive from a shared archive.
15122old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15123
15124# Create a temporary old-style archive to link instead of a shared archive.
15125old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15126
15127# Commands used to build and install a shared archive.
15128archive_cmds=$lt_archive_cmds_F77
15129archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15130postinstall_cmds=$lt_postinstall_cmds
15131postuninstall_cmds=$lt_postuninstall_cmds
15132
15133# Commands used to build a loadable module (assumed same as above if empty)
15134module_cmds=$lt_module_cmds_F77
15135module_expsym_cmds=$lt_module_expsym_cmds_F77
15136
15137# Commands to strip libraries.
15138old_striplib=$lt_old_striplib
15139striplib=$lt_striplib
15140
15141# Dependencies to place before the objects being linked to create a
15142# shared library.
15143predep_objects=$lt_predep_objects_F77
15144
15145# Dependencies to place after the objects being linked to create a
15146# shared library.
15147postdep_objects=$lt_postdep_objects_F77
15148
15149# Dependencies to place before the objects being linked to create a
15150# shared library.
15151predeps=$lt_predeps_F77
15152
15153# Dependencies to place after the objects being linked to create a
15154# shared library.
15155postdeps=$lt_postdeps_F77
15156
15157# The library search path used internally by the compiler when linking
15158# a shared library.
15159compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15160
15161# Method to check whether dependent libraries are shared objects.
15162deplibs_check_method=$lt_deplibs_check_method
15163
15164# Command to use when deplibs_check_method == file_magic.
15165file_magic_cmd=$lt_file_magic_cmd
15166
15167# Flag that allows shared libraries with undefined symbols to be built.
15168allow_undefined_flag=$lt_allow_undefined_flag_F77
15169
15170# Flag that forces no undefined symbols.
15171no_undefined_flag=$lt_no_undefined_flag_F77
15172
15173# Commands used to finish a libtool library installation in a directory.
15174finish_cmds=$lt_finish_cmds
15175
15176# Same as above, but a single script fragment to be evaled but not shown.
15177finish_eval=$lt_finish_eval
15178
15179# Take the output of nm and produce a listing of raw symbols and C names.
15180global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15181
15182# Transform the output of nm in a proper C declaration
15183global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15184
15185# Transform the output of nm in a C name address pair
15186global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15187
15188# This is the shared library runtime path variable.
15189runpath_var=$runpath_var
15190
15191# This is the shared library path variable.
15192shlibpath_var=$shlibpath_var
15193
15194# Is shlibpath searched before the hard-coded library search path?
15195shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15196
15197# How to hardcode a shared library path into an executable.
15198hardcode_action=$hardcode_action_F77
15199
15200# Whether we should hardcode library paths into libraries.
15201hardcode_into_libs=$hardcode_into_libs
15202
15203# Flag to hardcode \$libdir into a binary during linking.
15204# This must work even if \$libdir does not exist.
15205hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15206
15207# If ld is used when linking, flag to hardcode \$libdir into
15208# a binary during linking. This must work even if \$libdir does
15209# not exist.
15210hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15211
15212# Whether we need a single -rpath flag with a separated argument.
15213hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15214
15215# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15216# resulting binary.
15217hardcode_direct=$hardcode_direct_F77
15218
15219# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15220# resulting binary.
15221hardcode_minus_L=$hardcode_minus_L_F77
15222
15223# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15224# the resulting binary.
15225hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15226
15227# Set to yes if building a shared library automatically hardcodes DIR into the library
15228# and all subsequent libraries and executables linked against it.
15229hardcode_automatic=$hardcode_automatic_F77
15230
15231# Variables whose values should be saved in libtool wrapper scripts and
15232# restored at relink time.
15233variables_saved_for_relink="$variables_saved_for_relink"
15234
15235# Whether libtool must link a program against all its dependency libraries.
15236link_all_deplibs=$link_all_deplibs_F77
15237
15238# Compile-time system search path for libraries
15239sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15240
15241# Run-time system search path for libraries
15242sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15243
15244# Fix the shell variable \$srcfile for the compiler.
15245fix_srcfile_path="$fix_srcfile_path_F77"
15246
15247# Set to yes if exported symbols are required.
15248always_export_symbols=$always_export_symbols_F77
15249
15250# The commands to list exported symbols.
15251export_symbols_cmds=$lt_export_symbols_cmds_F77
15252
15253# The commands to extract the exported symbol list from a shared archive.
15254extract_expsyms_cmds=$lt_extract_expsyms_cmds
15255
15256# Symbols that should not be listed in the preloaded symbols.
15257exclude_expsyms=$lt_exclude_expsyms_F77
15258
15259# Symbols that must always be exported.
15260include_expsyms=$lt_include_expsyms_F77
15261
15262# ### END LIBTOOL TAG CONFIG: $tagname
15263
15264__EOF__
15265
15266
15267else
15268 # If there is no Makefile yet, we rely on a make rule to execute
15269 # `config.status --recheck' to rerun these tests and create the
15270 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015271 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15272 if test -f "$ltmain_in"; then
15273 test -f Makefile && make "$ltmain"
15274 fi
John Criswell47fdd832003-07-14 16:52:07 +000015275fi
15276
15277
15278ac_ext=c
15279ac_cpp='$CPP $CPPFLAGS'
15280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15282ac_compiler_gnu=$ac_cv_c_compiler_gnu
15283
15284CC="$lt_save_CC"
15285
15286 else
15287 tagname=""
15288 fi
15289 ;;
15290
15291 GCJ)
15292 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015293 ac_ext=c
15294ac_cpp='$CPP $CPPFLAGS'
15295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15297ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000015298
15299
15300# Source file extension for Java test sources.
15301ac_ext=java
15302
15303# Object file extension for compiled Java test sources.
15304objext=o
15305objext_GCJ=$objext
15306
15307# Code to be used in simple compile tests
15308lt_simple_compile_test_code="class foo {}\n"
15309
15310# Code to be used in simple link tests
15311lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15312
15313# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15314
15315# If no C compiler was specified, use CC.
15316LTCC=${LTCC-"$CC"}
15317
15318# Allow CC to be a program name with arguments.
15319compiler=$CC
15320
15321
15322# Allow CC to be a program name with arguments.
15323lt_save_CC="$CC"
15324CC=${GCJ-"gcj"}
15325compiler=$CC
15326compiler_GCJ=$CC
15327
15328# GCJ did not exist at the time GCC didn't implicitly link libc in.
15329archive_cmds_need_lc_GCJ=no
15330
John Criswell47fdd832003-07-14 16:52:07 +000015331
15332lt_prog_compiler_no_builtin_flag_GCJ=
15333
15334if test "$GCC" = yes; then
15335 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15336
Reid Spencer2706f8c2004-09-19 23:53:36 +000015337
15338echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015339echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15340if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15342else
15343 lt_cv_prog_compiler_rtti_exceptions=no
15344 ac_outfile=conftest.$ac_objext
15345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15346 lt_compiler_flag="-fno-rtti -fno-exceptions"
15347 # Insert the option either (1) after the last *FLAGS variable, or
15348 # (2) before a word containing "conftest.", or (3) at the end.
15349 # Note that $ac_compile itself does not contain backslashes and begins
15350 # with a dollar sign (not a hyphen), so the echo should work correctly.
15351 # The option is referenced via a variable to avoid confusing sed.
15352 lt_compile=`echo "$ac_compile" | $SED \
15353 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15355 -e 's:$: $lt_compiler_flag:'`
John Criswelle96aa1c2004-10-28 13:35:00 +000015356 (eval echo "\"\$as_me:15356: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015357 (eval "$lt_compile" 2>conftest.err)
15358 ac_status=$?
15359 cat conftest.err >&5
John Criswelle96aa1c2004-10-28 13:35:00 +000015360 echo "$as_me:15360: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015361 if (exit $ac_status) && test -s "$ac_outfile"; then
15362 # The compiler can only warn and ignore the option if not recognized
15363 # So say no if there are warnings
15364 if test ! -s conftest.err; then
15365 lt_cv_prog_compiler_rtti_exceptions=yes
15366 fi
15367 fi
15368 $rm conftest*
15369
15370fi
15371echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15372echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15373
15374if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15375 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15376else
15377 :
15378fi
15379
15380fi
15381
15382lt_prog_compiler_wl_GCJ=
15383lt_prog_compiler_pic_GCJ=
15384lt_prog_compiler_static_GCJ=
15385
15386echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15387echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15388
15389 if test "$GCC" = yes; then
15390 lt_prog_compiler_wl_GCJ='-Wl,'
15391 lt_prog_compiler_static_GCJ='-static'
15392
15393 case $host_os in
15394 aix*)
15395 # All AIX code is PIC.
15396 if test "$host_cpu" = ia64; then
15397 # AIX 5 now supports IA64 processor
15398 lt_prog_compiler_static_GCJ='-Bstatic'
15399 fi
15400 ;;
15401
15402 amigaos*)
15403 # FIXME: we need at least 68020 code to build shared libraries, but
15404 # adding the `-m68020' flag to GCC prevents building anything better,
15405 # like `-m68040'.
15406 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15407 ;;
15408
15409 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15410 # PIC is the default for these OSes.
15411 ;;
15412
15413 mingw* | pw32* | os2*)
15414 # This hack is so that the source file can tell whether it is being
15415 # built for inclusion in a dll (and should export symbols for example).
15416 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15417 ;;
15418
15419 darwin* | rhapsody*)
15420 # PIC is the default on this platform
15421 # Common symbols not allowed in MH_DYLIB files
15422 lt_prog_compiler_pic_GCJ='-fno-common'
15423 ;;
15424
15425 msdosdjgpp*)
15426 # Just because we use GCC doesn't mean we suddenly get shared libraries
15427 # on systems that don't support them.
15428 lt_prog_compiler_can_build_shared_GCJ=no
15429 enable_shared=no
15430 ;;
15431
15432 sysv4*MP*)
15433 if test -d /usr/nec; then
15434 lt_prog_compiler_pic_GCJ=-Kconform_pic
15435 fi
15436 ;;
15437
15438 hpux*)
15439 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15440 # not for PA HP-UX.
15441 case "$host_cpu" in
15442 hppa*64*|ia64*)
15443 # +Z the default
15444 ;;
15445 *)
15446 lt_prog_compiler_pic_GCJ='-fPIC'
15447 ;;
15448 esac
15449 ;;
15450
15451 *)
15452 lt_prog_compiler_pic_GCJ='-fPIC'
15453 ;;
15454 esac
15455 else
15456 # PORTME Check for flag to pass linker flags through the system compiler.
15457 case $host_os in
15458 aix*)
15459 lt_prog_compiler_wl_GCJ='-Wl,'
15460 if test "$host_cpu" = ia64; then
15461 # AIX 5 now supports IA64 processor
15462 lt_prog_compiler_static_GCJ='-Bstatic'
15463 else
15464 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15465 fi
15466 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015467 darwin*)
15468 # PIC is the default on this platform
15469 # Common symbols not allowed in MH_DYLIB files
15470 case "$cc_basename" in
15471 xlc*)
15472 lt_prog_compiler_pic_GCJ='-qnocommon'
15473 lt_prog_compiler_wl_GCJ='-Wl,'
15474 ;;
15475 esac
15476 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015477
15478 mingw* | pw32* | os2*)
15479 # This hack is so that the source file can tell whether it is being
15480 # built for inclusion in a dll (and should export symbols for example).
15481 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15482 ;;
15483
15484 hpux9* | hpux10* | hpux11*)
15485 lt_prog_compiler_wl_GCJ='-Wl,'
15486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15487 # not for PA HP-UX.
15488 case "$host_cpu" in
15489 hppa*64*|ia64*)
15490 # +Z the default
15491 ;;
15492 *)
15493 lt_prog_compiler_pic_GCJ='+Z'
15494 ;;
15495 esac
15496 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15497 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15498 ;;
15499
15500 irix5* | irix6* | nonstopux*)
15501 lt_prog_compiler_wl_GCJ='-Wl,'
15502 # PIC (with -KPIC) is the default.
15503 lt_prog_compiler_static_GCJ='-non_shared'
15504 ;;
15505
15506 newsos6)
15507 lt_prog_compiler_pic_GCJ='-KPIC'
15508 lt_prog_compiler_static_GCJ='-Bstatic'
15509 ;;
15510
15511 linux*)
15512 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015513 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015514 lt_prog_compiler_wl_GCJ='-Wl,'
15515 lt_prog_compiler_pic_GCJ='-KPIC'
15516 lt_prog_compiler_static_GCJ='-static'
15517 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015518 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015519 lt_prog_compiler_wl_GCJ='-Wl,'
15520 # All Alpha code is PIC.
15521 lt_prog_compiler_static_GCJ='-non_shared'
15522 ;;
15523 esac
15524 ;;
15525
15526 osf3* | osf4* | osf5*)
15527 lt_prog_compiler_wl_GCJ='-Wl,'
15528 # All OSF/1 code is PIC.
15529 lt_prog_compiler_static_GCJ='-non_shared'
15530 ;;
15531
15532 sco3.2v5*)
15533 lt_prog_compiler_pic_GCJ='-Kpic'
15534 lt_prog_compiler_static_GCJ='-dn'
15535 ;;
15536
15537 solaris*)
15538 lt_prog_compiler_wl_GCJ='-Wl,'
15539 lt_prog_compiler_pic_GCJ='-KPIC'
15540 lt_prog_compiler_static_GCJ='-Bstatic'
15541 ;;
15542
15543 sunos4*)
15544 lt_prog_compiler_wl_GCJ='-Qoption ld '
15545 lt_prog_compiler_pic_GCJ='-PIC'
15546 lt_prog_compiler_static_GCJ='-Bstatic'
15547 ;;
15548
15549 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15550 lt_prog_compiler_wl_GCJ='-Wl,'
15551 lt_prog_compiler_pic_GCJ='-KPIC'
15552 lt_prog_compiler_static_GCJ='-Bstatic'
15553 ;;
15554
15555 sysv4*MP*)
15556 if test -d /usr/nec ;then
15557 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15558 lt_prog_compiler_static_GCJ='-Bstatic'
15559 fi
15560 ;;
15561
15562 uts4*)
15563 lt_prog_compiler_pic_GCJ='-pic'
15564 lt_prog_compiler_static_GCJ='-Bstatic'
15565 ;;
15566
15567 *)
15568 lt_prog_compiler_can_build_shared_GCJ=no
15569 ;;
15570 esac
15571 fi
15572
15573echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15574echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15575
15576#
15577# Check to make sure the PIC flag actually works.
15578#
15579if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015580
15581echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015582echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15583if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585else
15586 lt_prog_compiler_pic_works_GCJ=no
15587 ac_outfile=conftest.$ac_objext
15588 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15589 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15590 # Insert the option either (1) after the last *FLAGS variable, or
15591 # (2) before a word containing "conftest.", or (3) at the end.
15592 # Note that $ac_compile itself does not contain backslashes and begins
15593 # with a dollar sign (not a hyphen), so the echo should work correctly.
15594 # The option is referenced via a variable to avoid confusing sed.
15595 lt_compile=`echo "$ac_compile" | $SED \
15596 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15598 -e 's:$: $lt_compiler_flag:'`
John Criswelle96aa1c2004-10-28 13:35:00 +000015599 (eval echo "\"\$as_me:15599: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015600 (eval "$lt_compile" 2>conftest.err)
15601 ac_status=$?
15602 cat conftest.err >&5
John Criswelle96aa1c2004-10-28 13:35:00 +000015603 echo "$as_me:15603: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015604 if (exit $ac_status) && test -s "$ac_outfile"; then
15605 # The compiler can only warn and ignore the option if not recognized
15606 # So say no if there are warnings
15607 if test ! -s conftest.err; then
15608 lt_prog_compiler_pic_works_GCJ=yes
15609 fi
15610 fi
15611 $rm conftest*
15612
15613fi
15614echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15615echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15616
15617if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15618 case $lt_prog_compiler_pic_GCJ in
15619 "" | " "*) ;;
15620 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15621 esac
15622else
15623 lt_prog_compiler_pic_GCJ=
15624 lt_prog_compiler_can_build_shared_GCJ=no
15625fi
15626
15627fi
15628case "$host_os" in
15629 # For platforms which do not support PIC, -DPIC is meaningless:
15630 *djgpp*)
15631 lt_prog_compiler_pic_GCJ=
15632 ;;
15633 *)
15634 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15635 ;;
15636esac
15637
15638echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15639echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15640if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15642else
15643 lt_cv_prog_compiler_c_o_GCJ=no
15644 $rm -r conftest 2>/dev/null
15645 mkdir conftest
15646 cd conftest
15647 mkdir out
15648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15649
John Criswell47fdd832003-07-14 16:52:07 +000015650 lt_compiler_flag="-o out/conftest2.$ac_objext"
15651 # Insert the option either (1) after the last *FLAGS variable, or
15652 # (2) before a word containing "conftest.", or (3) at the end.
15653 # Note that $ac_compile itself does not contain backslashes and begins
15654 # with a dollar sign (not a hyphen), so the echo should work correctly.
15655 lt_compile=`echo "$ac_compile" | $SED \
15656 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15658 -e 's:$: $lt_compiler_flag:'`
John Criswelle96aa1c2004-10-28 13:35:00 +000015659 (eval echo "\"\$as_me:15659: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015660 (eval "$lt_compile" 2>out/conftest.err)
15661 ac_status=$?
15662 cat out/conftest.err >&5
John Criswelle96aa1c2004-10-28 13:35:00 +000015663 echo "$as_me:15663: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15665 then
15666 # The compiler can only warn and ignore the option if not recognized
15667 # So say no if there are warnings
15668 if test ! -s out/conftest.err; then
15669 lt_cv_prog_compiler_c_o_GCJ=yes
15670 fi
15671 fi
15672 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000015673 $rm conftest*
15674 # SGI C++ compiler will create directory out/ii_files/ for
15675 # template instantiation
15676 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15677 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015678 cd ..
15679 rmdir conftest
15680 $rm conftest*
15681
15682fi
15683echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15684echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15685
15686
15687hard_links="nottested"
15688if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15689 # do not overwrite the value of need_locks provided by the user
15690 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15691echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15692 hard_links=yes
15693 $rm conftest*
15694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15695 touch conftest.a
15696 ln conftest.a conftest.b 2>&5 || hard_links=no
15697 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15698 echo "$as_me:$LINENO: result: $hard_links" >&5
15699echo "${ECHO_T}$hard_links" >&6
15700 if test "$hard_links" = no; then
15701 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15702echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15703 need_locks=warn
15704 fi
15705else
15706 need_locks=no
15707fi
15708
15709echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15710echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15711
15712 runpath_var=
15713 allow_undefined_flag_GCJ=
15714 enable_shared_with_static_runtimes_GCJ=no
15715 archive_cmds_GCJ=
15716 archive_expsym_cmds_GCJ=
15717 old_archive_From_new_cmds_GCJ=
15718 old_archive_from_expsyms_cmds_GCJ=
15719 export_dynamic_flag_spec_GCJ=
15720 whole_archive_flag_spec_GCJ=
15721 thread_safe_flag_spec_GCJ=
15722 hardcode_libdir_flag_spec_GCJ=
15723 hardcode_libdir_flag_spec_ld_GCJ=
15724 hardcode_libdir_separator_GCJ=
15725 hardcode_direct_GCJ=no
15726 hardcode_minus_L_GCJ=no
15727 hardcode_shlibpath_var_GCJ=unsupported
15728 link_all_deplibs_GCJ=unknown
15729 hardcode_automatic_GCJ=no
15730 module_cmds_GCJ=
15731 module_expsym_cmds_GCJ=
15732 always_export_symbols_GCJ=no
15733 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15734 # include_expsyms should be a list of space-separated symbols to be *always*
15735 # included in the symbol list
15736 include_expsyms_GCJ=
15737 # exclude_expsyms can be an extended regexp of symbols to exclude
15738 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15739 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15740 # as well as any symbol that contains `d'.
15741 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15742 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15743 # platforms (ab)use it in PIC code, but their linkers get confused if
15744 # the symbol is explicitly referenced. Since portable code cannot
15745 # rely on this symbol name, it's probably fine to never include it in
15746 # preloaded symbol tables.
15747 extract_expsyms_cmds=
15748
15749 case $host_os in
15750 cygwin* | mingw* | pw32*)
15751 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15752 # When not using gcc, we currently assume that we are using
15753 # Microsoft Visual C++.
15754 if test "$GCC" != yes; then
15755 with_gnu_ld=no
15756 fi
15757 ;;
15758 openbsd*)
15759 with_gnu_ld=no
15760 ;;
15761 esac
15762
15763 ld_shlibs_GCJ=yes
15764 if test "$with_gnu_ld" = yes; then
15765 # If archive_cmds runs LD, not CC, wlarc should be empty
15766 wlarc='${wl}'
15767
15768 # See if GNU ld supports shared libraries.
15769 case $host_os in
15770 aix3* | aix4* | aix5*)
15771 # On AIX/PPC, the GNU linker is very broken
15772 if test "$host_cpu" != ia64; then
15773 ld_shlibs_GCJ=no
15774 cat <<EOF 1>&2
15775
15776*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15777*** to be unable to reliably create shared libraries on AIX.
15778*** Therefore, libtool is disabling shared libraries support. If you
15779*** really care for shared libraries, you may want to modify your PATH
15780*** so that a non-GNU linker is found, and then restart.
15781
15782EOF
15783 fi
15784 ;;
15785
15786 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015787 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)'
John Criswell47fdd832003-07-14 16:52:07 +000015788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15789 hardcode_minus_L_GCJ=yes
15790
15791 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15792 # that the semantics of dynamic libraries on AmigaOS, at least up
15793 # to version 4, is to share data among multiple programs linked
15794 # with the same dynamic library. Since this doesn't match the
15795 # behavior of shared libraries on other platforms, we can't use
15796 # them.
15797 ld_shlibs_GCJ=no
15798 ;;
15799
15800 beos*)
15801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15802 allow_undefined_flag_GCJ=unsupported
15803 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15804 # support --undefined. This deserves some investigation. FIXME
15805 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806 else
15807 ld_shlibs_GCJ=no
15808 fi
15809 ;;
15810
15811 cygwin* | mingw* | pw32*)
15812 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15813 # as there is no search path for DLLs.
15814 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15815 allow_undefined_flag_GCJ=unsupported
15816 always_export_symbols_GCJ=no
15817 enable_shared_with_static_runtimes_GCJ=yes
15818 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15819
15820 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15821 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15822 # If the export-symbols file already is a .def file (1st line
15823 # is EXPORTS), use it as is; otherwise, prepend...
15824 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15825 cp $export_symbols $output_objdir/$soname.def;
15826 else
15827 echo EXPORTS > $output_objdir/$soname.def;
15828 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015829 fi~
15830 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +000015831 else
15832 ld_shlibs=no
15833 fi
15834 ;;
15835
15836 netbsd*)
15837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15838 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15839 wlarc=
15840 else
15841 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15842 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15843 fi
15844 ;;
15845
15846 solaris* | sysv5*)
15847 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15848 ld_shlibs_GCJ=no
15849 cat <<EOF 1>&2
15850
15851*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15852*** create shared libraries on Solaris systems. Therefore, libtool
15853*** is disabling shared libraries support. We urge you to upgrade GNU
15854*** binutils to release 2.9.1 or newer. Another option is to modify
15855*** your PATH or compiler configuration so that the native linker is
15856*** used, and then restart.
15857
15858EOF
15859 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15860 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15861 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15862 else
15863 ld_shlibs_GCJ=no
15864 fi
15865 ;;
15866
15867 sunos4*)
15868 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15869 wlarc=
15870 hardcode_direct_GCJ=yes
15871 hardcode_shlibpath_var_GCJ=no
15872 ;;
15873
Reid Spencer2706f8c2004-09-19 23:53:36 +000015874 linux*)
15875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15876 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15877 archive_cmds_GCJ="$tmp_archive_cmds"
15878 supports_anon_versioning=no
15879 case `$LD -v 2>/dev/null` in
15880 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15881 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15882 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15883 *\ 2.11.*) ;; # other 2.11 versions
15884 *) supports_anon_versioning=yes ;;
15885 esac
15886 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015887 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15888cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15889$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000015890 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15891 else
15892 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15893 fi
15894 else
15895 ld_shlibs_GCJ=no
15896 fi
15897 ;;
15898
John Criswell47fdd832003-07-14 16:52:07 +000015899 *)
15900 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15901 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15902 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15903 else
15904 ld_shlibs_GCJ=no
15905 fi
15906 ;;
15907 esac
15908
15909 if test "$ld_shlibs_GCJ" = yes; then
15910 runpath_var=LD_RUN_PATH
15911 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15912 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15913 # ancient GNU ld didn't support --whole-archive et. al.
15914 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15915 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15916 else
15917 whole_archive_flag_spec_GCJ=
15918 fi
15919 fi
15920 else
15921 # PORTME fill in a description of your system's linker (not GNU ld)
15922 case $host_os in
15923 aix3*)
15924 allow_undefined_flag_GCJ=unsupported
15925 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015926 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'
John Criswell47fdd832003-07-14 16:52:07 +000015927 # Note: this linker hardcodes the directories in LIBPATH if there
15928 # are no directories specified by -L.
15929 hardcode_minus_L_GCJ=yes
15930 if test "$GCC" = yes && test -z "$link_static_flag"; then
15931 # Neither direct hardcoding nor static linking is supported with a
15932 # broken collect2.
15933 hardcode_direct_GCJ=unsupported
15934 fi
15935 ;;
15936
15937 aix4* | aix5*)
15938 if test "$host_cpu" = ia64; then
15939 # On IA64, the linker does run time linking by default, so we don't
15940 # have to do anything special.
15941 aix_use_runtimelinking=no
15942 exp_sym_flag='-Bexport'
15943 no_entry_flag=""
15944 else
15945 # If we're using GNU nm, then we don't want the "-C" option.
15946 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15947 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15948 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'
15949 else
15950 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'
15951 fi
15952 aix_use_runtimelinking=no
15953
15954 # Test if we are trying to use run time linking or normal
15955 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15956 # need to do runtime linking.
15957 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15958 for ld_flag in $LDFLAGS; do
15959 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15960 aix_use_runtimelinking=yes
15961 break
15962 fi
15963 done
15964 esac
15965
15966 exp_sym_flag='-bexport'
15967 no_entry_flag='-bnoentry'
15968 fi
15969
15970 # When large executables or shared objects are built, AIX ld can
15971 # have problems creating the table of contents. If linking a library
15972 # or program results in "error TOC overflow" add -mminimal-toc to
15973 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15974 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15975
15976 archive_cmds_GCJ=''
15977 hardcode_direct_GCJ=yes
15978 hardcode_libdir_separator_GCJ=':'
15979 link_all_deplibs_GCJ=yes
15980
15981 if test "$GCC" = yes; then
15982 case $host_os in aix4.012|aix4.012.*)
15983 # We only want to do this on AIX 4.2 and lower, the check
15984 # below for broken collect2 doesn't work under 4.3+
15985 collect2name=`${CC} -print-prog-name=collect2`
15986 if test -f "$collect2name" && \
15987 strings "$collect2name" | grep resolve_lib_name >/dev/null
15988 then
15989 # We have reworked collect2
15990 hardcode_direct_GCJ=yes
15991 else
15992 # We have old collect2
15993 hardcode_direct_GCJ=unsupported
15994 # It fails to find uninstalled libraries when the uninstalled
15995 # path is not listed in the libpath. Setting hardcode_minus_L
15996 # to unsupported forces relinking
15997 hardcode_minus_L_GCJ=yes
15998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15999 hardcode_libdir_separator_GCJ=
16000 fi
16001 esac
16002 shared_flag='-shared'
16003 else
16004 # not using gcc
16005 if test "$host_cpu" = ia64; then
16006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16007 # chokes on -Wl,-G. The following line is correct:
16008 shared_flag='-G'
16009 else
16010 if test "$aix_use_runtimelinking" = yes; then
16011 shared_flag='${wl}-G'
16012 else
16013 shared_flag='${wl}-bM:SRE'
16014 fi
16015 fi
16016 fi
16017
16018 # It seems that -bexpall does not export symbols beginning with
16019 # underscore (_), so it is better to generate a list of symbols to export.
16020 always_export_symbols_GCJ=yes
16021 if test "$aix_use_runtimelinking" = yes; then
16022 # Warning - without using the other runtime loading flags (-brtl),
16023 # -berok will link without error, but may produce a broken library.
16024 allow_undefined_flag_GCJ='-berok'
16025 # Determine the default libpath from the value encoded in an empty executable.
16026 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016027/* confdefs.h. */
16028_ACEOF
16029cat confdefs.h >>conftest.$ac_ext
16030cat >>conftest.$ac_ext <<_ACEOF
16031/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016032
John Criswell47fdd832003-07-14 16:52:07 +000016033int
16034main ()
16035{
16036
16037 ;
16038 return 0;
16039}
16040_ACEOF
16041rm -f conftest.$ac_objext conftest$ac_exeext
16042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016043 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016044 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016045 grep -v '^ *+' conftest.er1 >conftest.err
16046 rm -f conftest.er1
16047 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016050 { ac_try='test -z "$ac_c_werror_flag"
16051 || test ! -s conftest.err'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; }; then
16063
16064aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16065}'`
16066# Check for a 64-bit object if we didn't find anything.
16067if 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; }
16068}'`; fi
16069else
16070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016071sed 's/^/| /' conftest.$ac_ext >&5
16072
John Criswell47fdd832003-07-14 16:52:07 +000016073fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016074rm -f conftest.err conftest.$ac_objext \
16075 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16077
16078 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16079 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"
16080 else
16081 if test "$host_cpu" = ia64; then
16082 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16083 allow_undefined_flag_GCJ="-z nodefs"
16084 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"
16085 else
16086 # Determine the default libpath from the value encoded in an empty executable.
16087 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016088/* confdefs.h. */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016093
John Criswell47fdd832003-07-14 16:52:07 +000016094int
16095main ()
16096{
16097
16098 ;
16099 return 0;
16100}
16101_ACEOF
16102rm -f conftest.$ac_objext conftest$ac_exeext
16103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016104 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016105 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016106 grep -v '^ *+' conftest.er1 >conftest.err
16107 rm -f conftest.er1
16108 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016111 { ac_try='test -z "$ac_c_werror_flag"
16112 || test ! -s conftest.err'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; }; then
16124
16125aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16126}'`
16127# Check for a 64-bit object if we didn't find anything.
16128if 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; }
16129}'`; fi
16130else
16131 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016132sed 's/^/| /' conftest.$ac_ext >&5
16133
John Criswell47fdd832003-07-14 16:52:07 +000016134fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016135rm -f conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16138
16139 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16140 # Warning - without using the other run time loading flags,
16141 # -berok will link without error, but may produce a broken library.
16142 no_undefined_flag_GCJ=' ${wl}-bernotok'
16143 allow_undefined_flag_GCJ=' ${wl}-berok'
16144 # -bexpall does not export symbols beginning with underscore (_)
16145 always_export_symbols_GCJ=yes
16146 # Exported symbols can be pulled into shared objects from archives
16147 whole_archive_flag_spec_GCJ=' '
16148 archive_cmds_need_lc_GCJ=yes
16149 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000016150 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'
John Criswell47fdd832003-07-14 16:52:07 +000016151 fi
16152 fi
16153 ;;
16154
16155 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000016156 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)'
John Criswell47fdd832003-07-14 16:52:07 +000016157 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16158 hardcode_minus_L_GCJ=yes
16159 # see comment about different semantics on the GNU ld section
16160 ld_shlibs_GCJ=no
16161 ;;
16162
Reid Spencer2706f8c2004-09-19 23:53:36 +000016163 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016164 export_dynamic_flag_spec_GCJ=-rdynamic
16165 ;;
16166
16167 cygwin* | mingw* | pw32*)
16168 # When not using gcc, we currently assume that we are using
16169 # Microsoft Visual C++.
16170 # hardcode_libdir_flag_spec is actually meaningless, as there is
16171 # no search path for DLLs.
16172 hardcode_libdir_flag_spec_GCJ=' '
16173 allow_undefined_flag_GCJ=unsupported
16174 # Tell ltmain to make .lib files, not .a files.
16175 libext=lib
16176 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016177 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016178 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000016179 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000016180 # The linker will automatically build a .lib file if we build a DLL.
16181 old_archive_From_new_cmds_GCJ='true'
16182 # FIXME: Should let the user specify the lib program.
16183 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16184 fix_srcfile_path='`cygpath -w "$srcfile"`'
16185 enable_shared_with_static_runtimes_GCJ=yes
16186 ;;
16187
16188 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000016189 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016190 rhapsody* | darwin1.[012])
16191 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16192 ;;
16193 *) # Darwin 1.3 on
16194 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16195 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16196 else
16197 case ${MACOSX_DEPLOYMENT_TARGET} in
16198 10.[012])
16199 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16200 ;;
16201 10.*)
16202 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16203 ;;
16204 esac
16205 fi
16206 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016207 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000016208 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000016209 hardcode_direct_GCJ=no
16210 hardcode_automatic_GCJ=yes
16211 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000016212 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000016213 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016214 if test "$GCC" = yes ; then
16215 output_verbose_link_cmd='echo'
16216 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16217 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16218 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000016219 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}'
16220 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016221 else
16222 case "$cc_basename" in
16223 xlc*)
16224 output_verbose_link_cmd='echo'
16225 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16226 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16227 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000016228 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}'
16229 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016230 ;;
16231 *)
16232 ld_shlibs_GCJ=no
16233 ;;
16234 esac
John Criswell47fdd832003-07-14 16:52:07 +000016235 fi
16236 ;;
16237
16238 dgux*)
16239 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16241 hardcode_shlibpath_var_GCJ=no
16242 ;;
16243
16244 freebsd1*)
16245 ld_shlibs_GCJ=no
16246 ;;
16247
16248 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16249 # support. Future versions do this automatically, but an explicit c++rt0.o
16250 # does not break anything, and helps significantly (at the cost of a little
16251 # extra space).
16252 freebsd2.2*)
16253 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16254 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16255 hardcode_direct_GCJ=yes
16256 hardcode_shlibpath_var_GCJ=no
16257 ;;
16258
16259 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16260 freebsd2*)
16261 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16262 hardcode_direct_GCJ=yes
16263 hardcode_minus_L_GCJ=yes
16264 hardcode_shlibpath_var_GCJ=no
16265 ;;
16266
16267 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016268 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016269 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16270 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16271 hardcode_direct_GCJ=yes
16272 hardcode_shlibpath_var_GCJ=no
16273 ;;
16274
16275 hpux9*)
16276 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016277 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'
John Criswell47fdd832003-07-14 16:52:07 +000016278 else
Reid Spencer177dbe22004-10-13 01:01:03 +000016279 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'
John Criswell47fdd832003-07-14 16:52:07 +000016280 fi
16281 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16282 hardcode_libdir_separator_GCJ=:
16283 hardcode_direct_GCJ=yes
16284
16285 # hardcode_minus_L: Not really in the search PATH,
16286 # but as the default location of the library.
16287 hardcode_minus_L_GCJ=yes
16288 export_dynamic_flag_spec_GCJ='${wl}-E'
16289 ;;
16290
16291 hpux10* | hpux11*)
16292 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16293 case "$host_cpu" in
16294 hppa*64*|ia64*)
16295 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16296 ;;
16297 *)
16298 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16299 ;;
16300 esac
16301 else
16302 case "$host_cpu" in
16303 hppa*64*|ia64*)
16304 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16305 ;;
16306 *)
16307 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16308 ;;
16309 esac
16310 fi
16311 if test "$with_gnu_ld" = no; then
16312 case "$host_cpu" in
16313 hppa*64*)
16314 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16315 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16316 hardcode_libdir_separator_GCJ=:
16317 hardcode_direct_GCJ=no
16318 hardcode_shlibpath_var_GCJ=no
16319 ;;
16320 ia64*)
16321 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16322 hardcode_direct_GCJ=no
16323 hardcode_shlibpath_var_GCJ=no
16324
16325 # hardcode_minus_L: Not really in the search PATH,
16326 # but as the default location of the library.
16327 hardcode_minus_L_GCJ=yes
16328 ;;
16329 *)
16330 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16331 hardcode_libdir_separator_GCJ=:
16332 hardcode_direct_GCJ=yes
16333 export_dynamic_flag_spec_GCJ='${wl}-E'
16334
16335 # hardcode_minus_L: Not really in the search PATH,
16336 # but as the default location of the library.
16337 hardcode_minus_L_GCJ=yes
16338 ;;
16339 esac
16340 fi
16341 ;;
16342
16343 irix5* | irix6* | nonstopux*)
16344 if test "$GCC" = yes; then
16345 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'
16346 else
16347 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'
16348 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16349 fi
16350 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16351 hardcode_libdir_separator_GCJ=:
16352 link_all_deplibs_GCJ=yes
16353 ;;
16354
16355 netbsd*)
16356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16357 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16358 else
16359 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16360 fi
16361 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16362 hardcode_direct_GCJ=yes
16363 hardcode_shlibpath_var_GCJ=no
16364 ;;
16365
16366 newsos6)
16367 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16368 hardcode_direct_GCJ=yes
16369 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16370 hardcode_libdir_separator_GCJ=:
16371 hardcode_shlibpath_var_GCJ=no
16372 ;;
16373
16374 openbsd*)
16375 hardcode_direct_GCJ=yes
16376 hardcode_shlibpath_var_GCJ=no
16377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16378 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016379 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000016380 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16381 export_dynamic_flag_spec_GCJ='${wl}-E'
16382 else
16383 case $host_os in
16384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16385 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16386 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16387 ;;
16388 *)
16389 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16390 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16391 ;;
16392 esac
16393 fi
16394 ;;
16395
16396 os2*)
16397 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16398 hardcode_minus_L_GCJ=yes
16399 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016400 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'
John Criswell47fdd832003-07-14 16:52:07 +000016401 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16402 ;;
16403
16404 osf3*)
16405 if test "$GCC" = yes; then
16406 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16407 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'
16408 else
16409 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16410 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'
16411 fi
16412 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16413 hardcode_libdir_separator_GCJ=:
16414 ;;
16415
16416 osf4* | osf5*) # as osf3* with the addition of -msym flag
16417 if test "$GCC" = yes; then
16418 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16419 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'
16420 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16421 else
16422 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16423 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000016424 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~
16425 $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'
16426
John Criswell47fdd832003-07-14 16:52:07 +000016427 # Both c and cxx compiler support -rpath directly
16428 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16429 fi
16430 hardcode_libdir_separator_GCJ=:
16431 ;;
16432
16433 sco3.2v5*)
16434 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16435 hardcode_shlibpath_var_GCJ=no
16436 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16437 runpath_var=LD_RUN_PATH
16438 hardcode_runpath_var=yes
16439 ;;
16440
16441 solaris*)
16442 no_undefined_flag_GCJ=' -z text'
16443 if test "$GCC" = yes; then
16444 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016445 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16446 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016447 else
16448 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016449 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16450 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016451 fi
16452 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16453 hardcode_shlibpath_var_GCJ=no
16454 case $host_os in
16455 solaris2.[0-5] | solaris2.[0-5].*) ;;
16456 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16457 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16458 esac
16459 link_all_deplibs_GCJ=yes
16460 ;;
16461
16462 sunos4*)
16463 if test "x$host_vendor" = xsequent; then
16464 # Use $CC to link under sequent, because it throws in some extra .o
16465 # files that make .init and .fini sections work.
16466 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16467 else
16468 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16469 fi
16470 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16471 hardcode_direct_GCJ=yes
16472 hardcode_minus_L_GCJ=yes
16473 hardcode_shlibpath_var_GCJ=no
16474 ;;
16475
16476 sysv4)
16477 case $host_vendor in
16478 sni)
16479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16480 hardcode_direct_GCJ=yes # is this really true???
16481 ;;
16482 siemens)
16483 ## LD is ld it makes a PLAMLIB
16484 ## CC just makes a GrossModule.
16485 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16486 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16487 hardcode_direct_GCJ=no
16488 ;;
16489 motorola)
16490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16491 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16492 ;;
16493 esac
16494 runpath_var='LD_RUN_PATH'
16495 hardcode_shlibpath_var_GCJ=no
16496 ;;
16497
16498 sysv4.3*)
16499 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16500 hardcode_shlibpath_var_GCJ=no
16501 export_dynamic_flag_spec_GCJ='-Bexport'
16502 ;;
16503
16504 sysv4*MP*)
16505 if test -d /usr/nec; then
16506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16507 hardcode_shlibpath_var_GCJ=no
16508 runpath_var=LD_RUN_PATH
16509 hardcode_runpath_var=yes
16510 ld_shlibs_GCJ=yes
16511 fi
16512 ;;
16513
16514 sysv4.2uw2*)
16515 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16516 hardcode_direct_GCJ=yes
16517 hardcode_minus_L_GCJ=no
16518 hardcode_shlibpath_var_GCJ=no
16519 hardcode_runpath_var=yes
16520 runpath_var=LD_RUN_PATH
16521 ;;
16522
16523 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16524 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16525 if test "$GCC" = yes; then
16526 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16527 else
16528 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16529 fi
16530 runpath_var='LD_RUN_PATH'
16531 hardcode_shlibpath_var_GCJ=no
16532 ;;
16533
16534 sysv5*)
16535 no_undefined_flag_GCJ=' -z text'
16536 # $CC -shared without GNU ld will not create a library from C++
16537 # object files and a static libstdc++, better avoid it by now
16538 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016539 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016541 hardcode_libdir_flag_spec_GCJ=
16542 hardcode_shlibpath_var_GCJ=no
16543 runpath_var='LD_RUN_PATH'
16544 ;;
16545
16546 uts4*)
16547 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16548 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16549 hardcode_shlibpath_var_GCJ=no
16550 ;;
16551
16552 *)
16553 ld_shlibs_GCJ=no
16554 ;;
16555 esac
16556 fi
16557
16558echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16559echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16560test "$ld_shlibs_GCJ" = no && can_build_shared=no
16561
16562variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16563if test "$GCC" = yes; then
16564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16565fi
16566
16567#
16568# Do we need to explicitly link libc?
16569#
16570case "x$archive_cmds_need_lc_GCJ" in
16571x|xyes)
16572 # Assume -lc should be added
16573 archive_cmds_need_lc_GCJ=yes
16574
16575 if test "$enable_shared" = yes && test "$GCC" = yes; then
16576 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016577 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016578 # FIXME: we may have to deal with multi-command sequences.
16579 ;;
16580 '$CC '*)
16581 # Test whether the compiler implicitly links with -lc since on some
16582 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16583 # to ld, don't add -lc before -lgcc.
16584 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16585echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16586 $rm conftest*
16587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16588
16589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16590 (eval $ac_compile) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } 2>conftest.err; then
16594 soname=conftest
16595 lib=conftest
16596 libobjs=conftest.$ac_objext
16597 deplibs=
16598 wl=$lt_prog_compiler_wl_GCJ
16599 compiler_flags=-v
16600 linker_flags=-v
16601 verstring=
16602 output_objdir=.
16603 libname=conftest
16604 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16605 allow_undefined_flag_GCJ=
16606 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16607 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }
16611 then
16612 archive_cmds_need_lc_GCJ=no
16613 else
16614 archive_cmds_need_lc_GCJ=yes
16615 fi
16616 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16617 else
16618 cat conftest.err 1>&5
16619 fi
16620 $rm conftest*
16621 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16622echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16623 ;;
16624 esac
16625 fi
16626 ;;
16627esac
16628
John Criswell47fdd832003-07-14 16:52:07 +000016629echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16630echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16631library_names_spec=
16632libname_spec='lib$name'
16633soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016634shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016635postinstall_cmds=
16636postuninstall_cmds=
16637finish_cmds=
16638finish_eval=
16639shlibpath_var=
16640shlibpath_overrides_runpath=unknown
16641version_type=none
16642dynamic_linker="$host_os ld.so"
16643sys_lib_dlsearch_path_spec="/lib /usr/lib"
16644if test "$GCC" = yes; then
16645 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16646 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16647 # if the path contains ";" then we assume it to be the separator
16648 # otherwise default to the standard path separator (i.e. ":") - it is
16649 # assumed that no part of a normal pathname contains ";" but that should
16650 # okay in the real world where ";" in dirpaths is itself problematic.
16651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16652 else
16653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16654 fi
16655else
16656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16657fi
16658need_lib_prefix=unknown
16659hardcode_into_libs=no
16660
16661# when you set need_version to no, make sure it does not cause -set_version
16662# flags to be left without arguments
16663need_version=unknown
16664
16665case $host_os in
16666aix3*)
16667 version_type=linux
16668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16669 shlibpath_var=LIBPATH
16670
16671 # AIX 3 has no versioning support, so we append a major version to the name.
16672 soname_spec='${libname}${release}${shared_ext}$major'
16673 ;;
16674
16675aix4* | aix5*)
16676 version_type=linux
16677 need_lib_prefix=no
16678 need_version=no
16679 hardcode_into_libs=yes
16680 if test "$host_cpu" = ia64; then
16681 # AIX 5 supports IA64
16682 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16683 shlibpath_var=LD_LIBRARY_PATH
16684 else
16685 # With GCC up to 2.95.x, collect2 would create an import file
16686 # for dependence libraries. The import file would start with
16687 # the line `#! .'. This would cause the generated library to
16688 # depend on `.', always an invalid library. This was fixed in
16689 # development snapshots of GCC prior to 3.0.
16690 case $host_os in
16691 aix4 | aix4.[01] | aix4.[01].*)
16692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16693 echo ' yes '
16694 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16695 :
16696 else
16697 can_build_shared=no
16698 fi
16699 ;;
16700 esac
16701 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16702 # soname into executable. Probably we can add versioning support to
16703 # collect2, so additional links can be useful in future.
16704 if test "$aix_use_runtimelinking" = yes; then
16705 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16706 # instead of lib<name>.a to let people know that these are not
16707 # typical AIX shared libraries.
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709 else
16710 # We preserve .a as extension for shared libraries through AIX4.2
16711 # and later when we are not doing run time linking.
16712 library_names_spec='${libname}${release}.a $libname.a'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 fi
16715 shlibpath_var=LIBPATH
16716 fi
16717 ;;
16718
16719amigaos*)
16720 library_names_spec='$libname.ixlibrary $libname.a'
16721 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016722 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'
John Criswell47fdd832003-07-14 16:52:07 +000016723 ;;
16724
16725beos*)
16726 library_names_spec='${libname}${shared_ext}'
16727 dynamic_linker="$host_os ld.so"
16728 shlibpath_var=LIBRARY_PATH
16729 ;;
16730
Reid Spencer2706f8c2004-09-19 23:53:36 +000016731bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016732 version_type=linux
16733 need_version=no
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16735 soname_spec='${libname}${release}${shared_ext}$major'
16736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16737 shlibpath_var=LD_LIBRARY_PATH
16738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16740 # the default ld.so.conf also contains /usr/contrib/lib and
16741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16742 # libtool to hard-code these into programs
16743 ;;
16744
16745cygwin* | mingw* | pw32*)
16746 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016747 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016748 need_version=no
16749 need_lib_prefix=no
16750
16751 case $GCC,$host_os in
16752 yes,cygwin* | yes,mingw* | yes,pw32*)
16753 library_names_spec='$libname.dll.a'
16754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016755 postinstall_cmds='base_file=`basename \${file}`~
16756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16757 dldir=$destdir/`dirname \$dlpath`~
16758 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016759 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16761 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016762 $rm \$dlpath'
16763 shlibpath_overrides_runpath=yes
16764
16765 case $host_os in
16766 cygwin*)
16767 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016769 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016770 ;;
16771 mingw*)
16772 # MinGW DLLs use traditional 'lib' prefix
16773 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16775 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16776 # It is most probably a Windows format PATH printed by
16777 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16778 # path with ; separators, and with drive letters. We can handle the
16779 # drive letters (cygwin fileutils understands them), so leave them,
16780 # especially as we might pass files found there to a mingw objdump,
16781 # which wouldn't understand a cygwinified path. Ahh.
16782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16783 else
16784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16785 fi
16786 ;;
16787 pw32*)
16788 # pw32 DLLs use 'pw' prefix rather than 'lib'
16789 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16790 ;;
16791 esac
16792 ;;
16793
16794 *)
16795 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16796 ;;
16797 esac
16798 dynamic_linker='Win32 ld.exe'
16799 # FIXME: first we should search . and the directory the executable is in
16800 shlibpath_var=PATH
16801 ;;
16802
16803darwin* | rhapsody*)
16804 dynamic_linker="$host_os dyld"
16805 version_type=darwin
16806 need_lib_prefix=no
16807 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016808 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016809 soname_spec='${libname}${release}${major}$shared_ext'
16810 shlibpath_overrides_runpath=yes
16811 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016812 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016813 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016814 if test "$GCC" = yes; then
16815 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"`
16816 else
16817 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016818 fi
16819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16820 ;;
16821
16822dgux*)
16823 version_type=linux
16824 need_lib_prefix=no
16825 need_version=no
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 ;;
16830
16831freebsd1*)
16832 dynamic_linker=no
16833 ;;
16834
Reid Spencer2706f8c2004-09-19 23:53:36 +000016835kfreebsd*-gnu)
16836 version_type=linux
16837 need_lib_prefix=no
16838 need_version=no
16839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 shlibpath_var=LD_LIBRARY_PATH
16842 shlibpath_overrides_runpath=no
16843 hardcode_into_libs=yes
16844 dynamic_linker='GNU ld.so'
16845 ;;
16846
John Criswell47fdd832003-07-14 16:52:07 +000016847freebsd*)
16848 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16849 version_type=freebsd-$objformat
16850 case $version_type in
16851 freebsd-elf*)
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16853 need_version=no
16854 need_lib_prefix=no
16855 ;;
16856 freebsd-*)
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16858 need_version=yes
16859 ;;
16860 esac
16861 shlibpath_var=LD_LIBRARY_PATH
16862 case $host_os in
16863 freebsd2*)
16864 shlibpath_overrides_runpath=yes
16865 ;;
16866 freebsd3.01* | freebsdelf3.01*)
16867 shlibpath_overrides_runpath=yes
16868 hardcode_into_libs=yes
16869 ;;
16870 *) # from 3.2 on
16871 shlibpath_overrides_runpath=no
16872 hardcode_into_libs=yes
16873 ;;
16874 esac
16875 ;;
16876
16877gnu*)
16878 version_type=linux
16879 need_lib_prefix=no
16880 need_version=no
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 hardcode_into_libs=yes
16885 ;;
16886
16887hpux9* | hpux10* | hpux11*)
16888 # Give a soname corresponding to the major version so that dld.sl refuses to
16889 # link against other versions.
16890 version_type=sunos
16891 need_lib_prefix=no
16892 need_version=no
16893 case "$host_cpu" in
16894 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016895 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016896 hardcode_into_libs=yes
16897 dynamic_linker="$host_os dld.so"
16898 shlibpath_var=LD_LIBRARY_PATH
16899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901 soname_spec='${libname}${release}${shared_ext}$major'
16902 if test "X$HPUX_IA64_MODE" = X32; then
16903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16904 else
16905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16906 fi
16907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16908 ;;
16909 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016910 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016911 hardcode_into_libs=yes
16912 dynamic_linker="$host_os dld.sl"
16913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 soname_spec='${libname}${release}${shared_ext}$major'
16917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16919 ;;
16920 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016921 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016922 dynamic_linker="$host_os dld.sl"
16923 shlibpath_var=SHLIB_PATH
16924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926 soname_spec='${libname}${release}${shared_ext}$major'
16927 ;;
16928 esac
16929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16930 postinstall_cmds='chmod 555 $lib'
16931 ;;
16932
16933irix5* | irix6* | nonstopux*)
16934 case $host_os in
16935 nonstopux*) version_type=nonstopux ;;
16936 *)
16937 if test "$lt_cv_prog_gnu_ld" = yes; then
16938 version_type=linux
16939 else
16940 version_type=irix
16941 fi ;;
16942 esac
16943 need_lib_prefix=no
16944 need_version=no
16945 soname_spec='${libname}${release}${shared_ext}$major'
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16947 case $host_os in
16948 irix5* | nonstopux*)
16949 libsuff= shlibsuff=
16950 ;;
16951 *)
16952 case $LD in # libtool.m4 will add one of these switches to LD
16953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16954 libsuff= shlibsuff= libmagic=32-bit;;
16955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16956 libsuff=32 shlibsuff=N32 libmagic=N32;;
16957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16958 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16959 *) libsuff= shlibsuff= libmagic=never-match;;
16960 esac
16961 ;;
16962 esac
16963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16964 shlibpath_overrides_runpath=no
16965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16967 hardcode_into_libs=yes
16968 ;;
16969
16970# No shared lib support for Linux oldld, aout, or coff.
16971linux*oldld* | linux*aout* | linux*coff*)
16972 dynamic_linker=no
16973 ;;
16974
16975# This must be Linux ELF.
16976linux*)
16977 version_type=linux
16978 need_lib_prefix=no
16979 need_version=no
16980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16981 soname_spec='${libname}${release}${shared_ext}$major'
16982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16983 shlibpath_var=LD_LIBRARY_PATH
16984 shlibpath_overrides_runpath=no
16985 # This implies no fast_install, which is unacceptable.
16986 # Some rework will be needed to allow for fast_install
16987 # before this can be enabled.
16988 hardcode_into_libs=yes
16989
Reid Spencer2706f8c2004-09-19 23:53:36 +000016990 # Append ld.so.conf contents to the search path
16991 if test -f /etc/ld.so.conf; then
16992 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16994 fi
16995
John Criswell47fdd832003-07-14 16:52:07 +000016996 # We used to test for /lib/ld.so.1 and disable shared libraries on
16997 # powerpc, because MkLinux only supported shared libraries with the
16998 # GNU dynamic linker. Since this was broken with cross compilers,
16999 # most powerpc-linux boxes support dynamic linking these days and
17000 # people can always --disable-shared, the test was removed, and we
17001 # assume the GNU/Linux dynamic linker is in use.
17002 dynamic_linker='GNU/Linux ld.so'
17003 ;;
17004
Reid Spencer2706f8c2004-09-19 23:53:36 +000017005knetbsd*-gnu)
17006 version_type=linux
17007 need_lib_prefix=no
17008 need_version=no
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 shlibpath_var=LD_LIBRARY_PATH
17012 shlibpath_overrides_runpath=no
17013 hardcode_into_libs=yes
17014 dynamic_linker='GNU ld.so'
17015 ;;
17016
John Criswell47fdd832003-07-14 16:52:07 +000017017netbsd*)
17018 version_type=sunos
17019 need_lib_prefix=no
17020 need_version=no
17021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17024 dynamic_linker='NetBSD (a.out) ld.so'
17025 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017027 soname_spec='${libname}${release}${shared_ext}$major'
17028 dynamic_linker='NetBSD ld.elf_so'
17029 fi
17030 shlibpath_var=LD_LIBRARY_PATH
17031 shlibpath_overrides_runpath=yes
17032 hardcode_into_libs=yes
17033 ;;
17034
17035newsos6)
17036 version_type=linux
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038 shlibpath_var=LD_LIBRARY_PATH
17039 shlibpath_overrides_runpath=yes
17040 ;;
17041
Reid Spencer2706f8c2004-09-19 23:53:36 +000017042nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017043 version_type=linux
17044 need_lib_prefix=no
17045 need_version=no
17046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17047 soname_spec='${libname}${release}${shared_ext}$major'
17048 shlibpath_var=LD_LIBRARY_PATH
17049 shlibpath_overrides_runpath=yes
17050 ;;
17051
17052openbsd*)
17053 version_type=sunos
17054 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017055 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17058 shlibpath_var=LD_LIBRARY_PATH
17059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17060 case $host_os in
17061 openbsd2.[89] | openbsd2.[89].*)
17062 shlibpath_overrides_runpath=no
17063 ;;
17064 *)
17065 shlibpath_overrides_runpath=yes
17066 ;;
17067 esac
17068 else
17069 shlibpath_overrides_runpath=yes
17070 fi
17071 ;;
17072
17073os2*)
17074 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017075 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017076 need_lib_prefix=no
17077 library_names_spec='$libname${shared_ext} $libname.a'
17078 dynamic_linker='OS/2 ld.exe'
17079 shlibpath_var=LIBPATH
17080 ;;
17081
17082osf3* | osf4* | osf5*)
17083 version_type=osf
17084 need_lib_prefix=no
17085 need_version=no
17086 soname_spec='${libname}${release}${shared_ext}$major'
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088 shlibpath_var=LD_LIBRARY_PATH
17089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17091 ;;
17092
17093sco3.2v5*)
17094 version_type=osf
17095 soname_spec='${libname}${release}${shared_ext}$major'
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 shlibpath_var=LD_LIBRARY_PATH
17098 ;;
17099
17100solaris*)
17101 version_type=linux
17102 need_lib_prefix=no
17103 need_version=no
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105 soname_spec='${libname}${release}${shared_ext}$major'
17106 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=yes
17108 hardcode_into_libs=yes
17109 # ldd complains unless libraries are executable
17110 postinstall_cmds='chmod +x $lib'
17111 ;;
17112
17113sunos4*)
17114 version_type=sunos
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 shlibpath_overrides_runpath=yes
17119 if test "$with_gnu_ld" = yes; then
17120 need_lib_prefix=no
17121 fi
17122 need_version=yes
17123 ;;
17124
17125sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17126 version_type=linux
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 shlibpath_var=LD_LIBRARY_PATH
17130 case $host_vendor in
17131 sni)
17132 shlibpath_overrides_runpath=no
17133 need_lib_prefix=no
17134 export_dynamic_flag_spec='${wl}-Blargedynsym'
17135 runpath_var=LD_RUN_PATH
17136 ;;
17137 siemens)
17138 need_lib_prefix=no
17139 ;;
17140 motorola)
17141 need_lib_prefix=no
17142 need_version=no
17143 shlibpath_overrides_runpath=no
17144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17145 ;;
17146 esac
17147 ;;
17148
17149sysv4*MP*)
17150 if test -d /usr/nec ;then
17151 version_type=linux
17152 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17153 soname_spec='$libname${shared_ext}.$major'
17154 shlibpath_var=LD_LIBRARY_PATH
17155 fi
17156 ;;
17157
17158uts4*)
17159 version_type=linux
17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161 soname_spec='${libname}${release}${shared_ext}$major'
17162 shlibpath_var=LD_LIBRARY_PATH
17163 ;;
17164
17165*)
17166 dynamic_linker=no
17167 ;;
17168esac
17169echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17170echo "${ECHO_T}$dynamic_linker" >&6
17171test "$dynamic_linker" = no && can_build_shared=no
17172
Reid Spencer2706f8c2004-09-19 23:53:36 +000017173echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17174echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17175hardcode_action_GCJ=
17176if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17177 test -n "$runpath_var_GCJ" || \
17178 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17179
17180 # We can hardcode non-existant directories.
17181 if test "$hardcode_direct_GCJ" != no &&
17182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17183 # have to relink, otherwise we might link with an installed library
17184 # when we should be linking with a yet-to-be-installed one
17185 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17186 test "$hardcode_minus_L_GCJ" != no; then
17187 # Linking always hardcodes the temporary library directory.
17188 hardcode_action_GCJ=relink
17189 else
17190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17191 hardcode_action_GCJ=immediate
17192 fi
17193else
17194 # We cannot hardcode anything, or else we can only hardcode existing
17195 # directories.
17196 hardcode_action_GCJ=unsupported
17197fi
17198echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17199echo "${ECHO_T}$hardcode_action_GCJ" >&6
17200
17201if test "$hardcode_action_GCJ" = relink; then
17202 # Fast installation is not supported
17203 enable_fast_install=no
17204elif test "$shlibpath_overrides_runpath" = yes ||
17205 test "$enable_shared" = no; then
17206 # Fast installation is not necessary
17207 enable_fast_install=needless
17208fi
17209
17210striplib=
17211old_striplib=
17212echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17213echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17214if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17215 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17216 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17217 echo "$as_me:$LINENO: result: yes" >&5
17218echo "${ECHO_T}yes" >&6
17219else
17220# FIXME - insert some real tests, host_os isn't really good enough
17221 case $host_os in
17222 darwin*)
17223 if test -n "$STRIP" ; then
17224 striplib="$STRIP -x"
17225 echo "$as_me:$LINENO: result: yes" >&5
17226echo "${ECHO_T}yes" >&6
17227 else
17228 echo "$as_me:$LINENO: result: no" >&5
17229echo "${ECHO_T}no" >&6
17230fi
17231 ;;
17232 *)
17233 echo "$as_me:$LINENO: result: no" >&5
17234echo "${ECHO_T}no" >&6
17235 ;;
17236 esac
17237fi
17238
John Criswell47fdd832003-07-14 16:52:07 +000017239if test "x$enable_dlopen" != xyes; then
17240 enable_dlopen=unknown
17241 enable_dlopen_self=unknown
17242 enable_dlopen_self_static=unknown
17243else
17244 lt_cv_dlopen=no
17245 lt_cv_dlopen_libs=
17246
17247 case $host_os in
17248 beos*)
17249 lt_cv_dlopen="load_add_on"
17250 lt_cv_dlopen_libs=
17251 lt_cv_dlopen_self=yes
17252 ;;
17253
17254 mingw* | pw32*)
17255 lt_cv_dlopen="LoadLibrary"
17256 lt_cv_dlopen_libs=
17257 ;;
17258
17259 cygwin*)
17260 lt_cv_dlopen="dlopen"
17261 lt_cv_dlopen_libs=
17262 ;;
17263
17264 darwin*)
17265 # if libdl is installed we need to link against it
17266 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17267echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17268if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17270else
17271 ac_check_lib_save_LIBS=$LIBS
17272LIBS="-ldl $LIBS"
17273cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017274/* confdefs.h. */
17275_ACEOF
17276cat confdefs.h >>conftest.$ac_ext
17277cat >>conftest.$ac_ext <<_ACEOF
17278/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017279
17280/* Override any gcc2 internal prototype to avoid an error. */
17281#ifdef __cplusplus
17282extern "C"
17283#endif
17284/* We use char because int might match the return type of a gcc2
17285 builtin and then its argument prototype would still apply. */
17286char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017287int
17288main ()
17289{
17290dlopen ();
17291 ;
17292 return 0;
17293}
17294_ACEOF
17295rm -f conftest.$ac_objext conftest$ac_exeext
17296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017297 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017298 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017299 grep -v '^ *+' conftest.er1 >conftest.err
17300 rm -f conftest.er1
17301 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017304 { ac_try='test -z "$ac_c_werror_flag"
17305 || test ! -s conftest.err'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 ac_cv_lib_dl_dlopen=yes
17318else
17319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017320sed 's/^/| /' conftest.$ac_ext >&5
17321
John Criswell47fdd832003-07-14 16:52:07 +000017322ac_cv_lib_dl_dlopen=no
17323fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017324rm -f conftest.err conftest.$ac_objext \
17325 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017326LIBS=$ac_check_lib_save_LIBS
17327fi
17328echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17329echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17330if test $ac_cv_lib_dl_dlopen = yes; then
17331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17332else
17333
17334 lt_cv_dlopen="dyld"
17335 lt_cv_dlopen_libs=
17336 lt_cv_dlopen_self=yes
17337
17338fi
17339
17340 ;;
17341
17342 *)
17343 echo "$as_me:$LINENO: checking for shl_load" >&5
17344echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17345if test "${ac_cv_func_shl_load+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347else
17348 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017349/* confdefs.h. */
17350_ACEOF
17351cat confdefs.h >>conftest.$ac_ext
17352cat >>conftest.$ac_ext <<_ACEOF
17353/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017354/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17356#define shl_load innocuous_shl_load
17357
John Criswell47fdd832003-07-14 16:52:07 +000017358/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017359 which can conflict with char shl_load (); below.
17360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017362
John Criswell0c38eaf2003-09-10 15:17:25 +000017363#ifdef __STDC__
17364# include <limits.h>
17365#else
17366# include <assert.h>
17367#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017368
17369#undef shl_load
17370
John Criswell47fdd832003-07-14 16:52:07 +000017371/* Override any gcc2 internal prototype to avoid an error. */
17372#ifdef __cplusplus
17373extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017374{
John Criswell47fdd832003-07-14 16:52:07 +000017375#endif
17376/* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17378char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017379/* The GNU C library defines this for functions which it implements
17380 to always fail with ENOSYS. Some functions are actually named
17381 something starting with __ and the normal name is an alias. */
17382#if defined (__stub_shl_load) || defined (__stub___shl_load)
17383choke me
17384#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017385char (*f) () = shl_load;
17386#endif
17387#ifdef __cplusplus
17388}
John Criswell47fdd832003-07-14 16:52:07 +000017389#endif
17390
John Criswell0c38eaf2003-09-10 15:17:25 +000017391int
17392main ()
17393{
17394return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017395 ;
17396 return 0;
17397}
17398_ACEOF
17399rm -f conftest.$ac_objext conftest$ac_exeext
17400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017401 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017402 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017408 { ac_try='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 ac_cv_func_shl_load=yes
17422else
17423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017424sed 's/^/| /' conftest.$ac_ext >&5
17425
John Criswell47fdd832003-07-14 16:52:07 +000017426ac_cv_func_shl_load=no
17427fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017428rm -f conftest.err conftest.$ac_objext \
17429 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017430fi
17431echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17432echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17433if test $ac_cv_func_shl_load = yes; then
17434 lt_cv_dlopen="shl_load"
17435else
17436 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17437echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17438if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17440else
17441 ac_check_lib_save_LIBS=$LIBS
17442LIBS="-ldld $LIBS"
17443cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017444/* confdefs.h. */
17445_ACEOF
17446cat confdefs.h >>conftest.$ac_ext
17447cat >>conftest.$ac_ext <<_ACEOF
17448/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017449
17450/* Override any gcc2 internal prototype to avoid an error. */
17451#ifdef __cplusplus
17452extern "C"
17453#endif
17454/* We use char because int might match the return type of a gcc2
17455 builtin and then its argument prototype would still apply. */
17456char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017457int
17458main ()
17459{
17460shl_load ();
17461 ;
17462 return 0;
17463}
17464_ACEOF
17465rm -f conftest.$ac_objext conftest$ac_exeext
17466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017467 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017468 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017474 { ac_try='test -z "$ac_c_werror_flag"
17475 || test ! -s conftest.err'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_cv_lib_dld_shl_load=yes
17488else
17489 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017490sed 's/^/| /' conftest.$ac_ext >&5
17491
John Criswell47fdd832003-07-14 16:52:07 +000017492ac_cv_lib_dld_shl_load=no
17493fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017494rm -f conftest.err conftest.$ac_objext \
17495 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017496LIBS=$ac_check_lib_save_LIBS
17497fi
17498echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17499echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17500if test $ac_cv_lib_dld_shl_load = yes; then
17501 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17502else
17503 echo "$as_me:$LINENO: checking for dlopen" >&5
17504echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17505if test "${ac_cv_func_dlopen+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17507else
17508 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017509/* confdefs.h. */
17510_ACEOF
17511cat confdefs.h >>conftest.$ac_ext
17512cat >>conftest.$ac_ext <<_ACEOF
17513/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017514/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17516#define dlopen innocuous_dlopen
17517
John Criswell47fdd832003-07-14 16:52:07 +000017518/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017519 which can conflict with char dlopen (); below.
17520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17521 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017522
John Criswell0c38eaf2003-09-10 15:17:25 +000017523#ifdef __STDC__
17524# include <limits.h>
17525#else
17526# include <assert.h>
17527#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017528
17529#undef dlopen
17530
John Criswell47fdd832003-07-14 16:52:07 +000017531/* Override any gcc2 internal prototype to avoid an error. */
17532#ifdef __cplusplus
17533extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017534{
John Criswell47fdd832003-07-14 16:52:07 +000017535#endif
17536/* We use char because int might match the return type of a gcc2
17537 builtin and then its argument prototype would still apply. */
17538char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017539/* The GNU C library defines this for functions which it implements
17540 to always fail with ENOSYS. Some functions are actually named
17541 something starting with __ and the normal name is an alias. */
17542#if defined (__stub_dlopen) || defined (__stub___dlopen)
17543choke me
17544#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017545char (*f) () = dlopen;
17546#endif
17547#ifdef __cplusplus
17548}
John Criswell47fdd832003-07-14 16:52:07 +000017549#endif
17550
John Criswell0c38eaf2003-09-10 15:17:25 +000017551int
17552main ()
17553{
17554return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017555 ;
17556 return 0;
17557}
17558_ACEOF
17559rm -f conftest.$ac_objext conftest$ac_exeext
17560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017561 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017562 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017568 { ac_try='test -z "$ac_c_werror_flag"
17569 || test ! -s conftest.err'
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 ac_cv_func_dlopen=yes
17582else
17583 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017584sed 's/^/| /' conftest.$ac_ext >&5
17585
John Criswell47fdd832003-07-14 16:52:07 +000017586ac_cv_func_dlopen=no
17587fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017588rm -f conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017590fi
17591echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17592echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17593if test $ac_cv_func_dlopen = yes; then
17594 lt_cv_dlopen="dlopen"
17595else
17596 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17597echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17598if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17600else
17601 ac_check_lib_save_LIBS=$LIBS
17602LIBS="-ldl $LIBS"
17603cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017604/* confdefs.h. */
17605_ACEOF
17606cat confdefs.h >>conftest.$ac_ext
17607cat >>conftest.$ac_ext <<_ACEOF
17608/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017609
17610/* Override any gcc2 internal prototype to avoid an error. */
17611#ifdef __cplusplus
17612extern "C"
17613#endif
17614/* We use char because int might match the return type of a gcc2
17615 builtin and then its argument prototype would still apply. */
17616char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017617int
17618main ()
17619{
17620dlopen ();
17621 ;
17622 return 0;
17623}
17624_ACEOF
17625rm -f conftest.$ac_objext conftest$ac_exeext
17626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017627 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017629 grep -v '^ *+' conftest.er1 >conftest.err
17630 rm -f conftest.er1
17631 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017634 { ac_try='test -z "$ac_c_werror_flag"
17635 || test ! -s conftest.err'
17636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637 (eval $ac_try) 2>&5
17638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; } &&
17641 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; }; then
17647 ac_cv_lib_dl_dlopen=yes
17648else
17649 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017650sed 's/^/| /' conftest.$ac_ext >&5
17651
John Criswell47fdd832003-07-14 16:52:07 +000017652ac_cv_lib_dl_dlopen=no
17653fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017654rm -f conftest.err conftest.$ac_objext \
17655 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017656LIBS=$ac_check_lib_save_LIBS
17657fi
17658echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17659echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17660if test $ac_cv_lib_dl_dlopen = yes; then
17661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17662else
17663 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17664echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17665if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
17667else
17668 ac_check_lib_save_LIBS=$LIBS
17669LIBS="-lsvld $LIBS"
17670cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017671/* confdefs.h. */
17672_ACEOF
17673cat confdefs.h >>conftest.$ac_ext
17674cat >>conftest.$ac_ext <<_ACEOF
17675/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017676
17677/* Override any gcc2 internal prototype to avoid an error. */
17678#ifdef __cplusplus
17679extern "C"
17680#endif
17681/* We use char because int might match the return type of a gcc2
17682 builtin and then its argument prototype would still apply. */
17683char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017684int
17685main ()
17686{
17687dlopen ();
17688 ;
17689 return 0;
17690}
17691_ACEOF
17692rm -f conftest.$ac_objext conftest$ac_exeext
17693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017694 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017695 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017696 grep -v '^ *+' conftest.er1 >conftest.err
17697 rm -f conftest.er1
17698 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017701 { ac_try='test -z "$ac_c_werror_flag"
17702 || test ! -s conftest.err'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; } &&
17708 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
17714 ac_cv_lib_svld_dlopen=yes
17715else
17716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017717sed 's/^/| /' conftest.$ac_ext >&5
17718
John Criswell47fdd832003-07-14 16:52:07 +000017719ac_cv_lib_svld_dlopen=no
17720fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017721rm -f conftest.err conftest.$ac_objext \
17722 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017723LIBS=$ac_check_lib_save_LIBS
17724fi
17725echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17726echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17727if test $ac_cv_lib_svld_dlopen = yes; then
17728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17729else
17730 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17731echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17732if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17734else
17735 ac_check_lib_save_LIBS=$LIBS
17736LIBS="-ldld $LIBS"
17737cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017738/* confdefs.h. */
17739_ACEOF
17740cat confdefs.h >>conftest.$ac_ext
17741cat >>conftest.$ac_ext <<_ACEOF
17742/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017743
17744/* Override any gcc2 internal prototype to avoid an error. */
17745#ifdef __cplusplus
17746extern "C"
17747#endif
17748/* We use char because int might match the return type of a gcc2
17749 builtin and then its argument prototype would still apply. */
17750char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017751int
17752main ()
17753{
17754dld_link ();
17755 ;
17756 return 0;
17757}
17758_ACEOF
17759rm -f conftest.$ac_objext conftest$ac_exeext
17760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017761 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017762 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017768 { ac_try='test -z "$ac_c_werror_flag"
17769 || test ! -s conftest.err'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; } &&
17775 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17778 ac_status=$?
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; }; then
17781 ac_cv_lib_dld_dld_link=yes
17782else
17783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017784sed 's/^/| /' conftest.$ac_ext >&5
17785
John Criswell47fdd832003-07-14 16:52:07 +000017786ac_cv_lib_dld_dld_link=no
17787fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017788rm -f conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017790LIBS=$ac_check_lib_save_LIBS
17791fi
17792echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17793echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17794if test $ac_cv_lib_dld_dld_link = yes; then
17795 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17796fi
17797
17798
17799fi
17800
17801
17802fi
17803
17804
17805fi
17806
17807
17808fi
17809
17810
17811fi
17812
17813 ;;
17814 esac
17815
17816 if test "x$lt_cv_dlopen" != xno; then
17817 enable_dlopen=yes
17818 else
17819 enable_dlopen=no
17820 fi
17821
17822 case $lt_cv_dlopen in
17823 dlopen)
17824 save_CPPFLAGS="$CPPFLAGS"
17825 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17826
17827 save_LDFLAGS="$LDFLAGS"
17828 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17829
17830 save_LIBS="$LIBS"
17831 LIBS="$lt_cv_dlopen_libs $LIBS"
17832
17833 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17834echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17835if test "${lt_cv_dlopen_self+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837else
17838 if test "$cross_compiling" = yes; then :
17839 lt_cv_dlopen_self=cross
17840else
17841 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17842 lt_status=$lt_dlunknown
17843 cat > conftest.$ac_ext <<EOF
John Criswelle96aa1c2004-10-28 13:35:00 +000017844#line 17844 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017845#include "confdefs.h"
17846
17847#if HAVE_DLFCN_H
17848#include <dlfcn.h>
17849#endif
17850
17851#include <stdio.h>
17852
17853#ifdef RTLD_GLOBAL
17854# define LT_DLGLOBAL RTLD_GLOBAL
17855#else
17856# ifdef DL_GLOBAL
17857# define LT_DLGLOBAL DL_GLOBAL
17858# else
17859# define LT_DLGLOBAL 0
17860# endif
17861#endif
17862
17863/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17864 find out it does not work in some platform. */
17865#ifndef LT_DLLAZY_OR_NOW
17866# ifdef RTLD_LAZY
17867# define LT_DLLAZY_OR_NOW RTLD_LAZY
17868# else
17869# ifdef DL_LAZY
17870# define LT_DLLAZY_OR_NOW DL_LAZY
17871# else
17872# ifdef RTLD_NOW
17873# define LT_DLLAZY_OR_NOW RTLD_NOW
17874# else
17875# ifdef DL_NOW
17876# define LT_DLLAZY_OR_NOW DL_NOW
17877# else
17878# define LT_DLLAZY_OR_NOW 0
17879# endif
17880# endif
17881# endif
17882# endif
17883#endif
17884
17885#ifdef __cplusplus
17886extern "C" void exit (int);
17887#endif
17888
17889void fnord() { int i=42;}
17890int main ()
17891{
17892 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17893 int status = $lt_dlunknown;
17894
17895 if (self)
17896 {
17897 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17898 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17899 /* dlclose (self); */
17900 }
17901
17902 exit (status);
17903}
17904EOF
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906 (eval $ac_link) 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17910 (./conftest; exit; ) 2>/dev/null
17911 lt_status=$?
17912 case x$lt_status in
17913 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17914 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17915 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17916 esac
17917 else :
17918 # compilation failed
17919 lt_cv_dlopen_self=no
17920 fi
17921fi
17922rm -fr conftest*
17923
17924
17925fi
17926echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17927echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17928
17929 if test "x$lt_cv_dlopen_self" = xyes; then
17930 LDFLAGS="$LDFLAGS $link_static_flag"
17931 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17932echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17933if test "${lt_cv_dlopen_self_static+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17935else
17936 if test "$cross_compiling" = yes; then :
17937 lt_cv_dlopen_self_static=cross
17938else
17939 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17940 lt_status=$lt_dlunknown
17941 cat > conftest.$ac_ext <<EOF
John Criswelle96aa1c2004-10-28 13:35:00 +000017942#line 17942 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017943#include "confdefs.h"
17944
17945#if HAVE_DLFCN_H
17946#include <dlfcn.h>
17947#endif
17948
17949#include <stdio.h>
17950
17951#ifdef RTLD_GLOBAL
17952# define LT_DLGLOBAL RTLD_GLOBAL
17953#else
17954# ifdef DL_GLOBAL
17955# define LT_DLGLOBAL DL_GLOBAL
17956# else
17957# define LT_DLGLOBAL 0
17958# endif
17959#endif
17960
17961/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17962 find out it does not work in some platform. */
17963#ifndef LT_DLLAZY_OR_NOW
17964# ifdef RTLD_LAZY
17965# define LT_DLLAZY_OR_NOW RTLD_LAZY
17966# else
17967# ifdef DL_LAZY
17968# define LT_DLLAZY_OR_NOW DL_LAZY
17969# else
17970# ifdef RTLD_NOW
17971# define LT_DLLAZY_OR_NOW RTLD_NOW
17972# else
17973# ifdef DL_NOW
17974# define LT_DLLAZY_OR_NOW DL_NOW
17975# else
17976# define LT_DLLAZY_OR_NOW 0
17977# endif
17978# endif
17979# endif
17980# endif
17981#endif
17982
17983#ifdef __cplusplus
17984extern "C" void exit (int);
17985#endif
17986
17987void fnord() { int i=42;}
17988int main ()
17989{
17990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17991 int status = $lt_dlunknown;
17992
17993 if (self)
17994 {
17995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17996 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17997 /* dlclose (self); */
17998 }
17999
18000 exit (status);
18001}
18002EOF
18003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18004 (eval $ac_link) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18008 (./conftest; exit; ) 2>/dev/null
18009 lt_status=$?
18010 case x$lt_status in
18011 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18012 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18013 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18014 esac
18015 else :
18016 # compilation failed
18017 lt_cv_dlopen_self_static=no
18018 fi
18019fi
18020rm -fr conftest*
18021
18022
18023fi
18024echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18025echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18026 fi
18027
18028 CPPFLAGS="$save_CPPFLAGS"
18029 LDFLAGS="$save_LDFLAGS"
18030 LIBS="$save_LIBS"
18031 ;;
18032 esac
18033
18034 case $lt_cv_dlopen_self in
18035 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18036 *) enable_dlopen_self=unknown ;;
18037 esac
18038
18039 case $lt_cv_dlopen_self_static in
18040 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18041 *) enable_dlopen_self_static=unknown ;;
18042 esac
18043fi
18044
18045
18046# The else clause should only fire when bootstrapping the
18047# libtool distribution, otherwise you forgot to ship ltmain.sh
18048# with your package, and you will get complaints that there are
18049# no rules to generate ltmain.sh.
18050if test -f "$ltmain"; then
18051 # See if we are running on zsh, and set the options which allow our commands through
18052 # without removal of \ escapes.
18053 if test -n "${ZSH_VERSION+set}" ; then
18054 setopt NO_GLOB_SUBST
18055 fi
18056 # Now quote all the things that may contain metacharacters while being
18057 # careful not to overquote the AC_SUBSTed values. We take copies of the
18058 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018059 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18060 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018061 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18062 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18063 deplibs_check_method reload_flag reload_cmds need_locks \
18064 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18065 lt_cv_sys_global_symbol_to_c_name_address \
18066 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18067 old_postinstall_cmds old_postuninstall_cmds \
18068 compiler_GCJ \
18069 CC_GCJ \
18070 LD_GCJ \
18071 lt_prog_compiler_wl_GCJ \
18072 lt_prog_compiler_pic_GCJ \
18073 lt_prog_compiler_static_GCJ \
18074 lt_prog_compiler_no_builtin_flag_GCJ \
18075 export_dynamic_flag_spec_GCJ \
18076 thread_safe_flag_spec_GCJ \
18077 whole_archive_flag_spec_GCJ \
18078 enable_shared_with_static_runtimes_GCJ \
18079 old_archive_cmds_GCJ \
18080 old_archive_from_new_cmds_GCJ \
18081 predep_objects_GCJ \
18082 postdep_objects_GCJ \
18083 predeps_GCJ \
18084 postdeps_GCJ \
18085 compiler_lib_search_path_GCJ \
18086 archive_cmds_GCJ \
18087 archive_expsym_cmds_GCJ \
18088 postinstall_cmds_GCJ \
18089 postuninstall_cmds_GCJ \
18090 old_archive_from_expsyms_cmds_GCJ \
18091 allow_undefined_flag_GCJ \
18092 no_undefined_flag_GCJ \
18093 export_symbols_cmds_GCJ \
18094 hardcode_libdir_flag_spec_GCJ \
18095 hardcode_libdir_flag_spec_ld_GCJ \
18096 hardcode_libdir_separator_GCJ \
18097 hardcode_automatic_GCJ \
18098 module_cmds_GCJ \
18099 module_expsym_cmds_GCJ \
18100 lt_cv_prog_compiler_c_o_GCJ \
18101 exclude_expsyms_GCJ \
18102 include_expsyms_GCJ; do
18103
18104 case $var in
18105 old_archive_cmds_GCJ | \
18106 old_archive_from_new_cmds_GCJ | \
18107 archive_cmds_GCJ | \
18108 archive_expsym_cmds_GCJ | \
18109 module_cmds_GCJ | \
18110 module_expsym_cmds_GCJ | \
18111 old_archive_from_expsyms_cmds_GCJ | \
18112 export_symbols_cmds_GCJ | \
18113 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18114 postinstall_cmds | postuninstall_cmds | \
18115 old_postinstall_cmds | old_postuninstall_cmds | \
18116 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18117 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000018119 ;;
18120 *)
18121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18122 ;;
18123 esac
18124 done
18125
18126 case $lt_echo in
18127 *'\$0 --fallback-echo"')
18128 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18129 ;;
18130 esac
18131
18132cfgfile="$ofile"
18133
18134 cat <<__EOF__ >> "$cfgfile"
18135# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18136
18137# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18138
18139# Shell to use when invoking shell scripts.
18140SHELL=$lt_SHELL
18141
18142# Whether or not to build shared libraries.
18143build_libtool_libs=$enable_shared
18144
18145# Whether or not to build static libraries.
18146build_old_libs=$enable_static
18147
18148# Whether or not to add -lc for building shared libraries.
18149build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18150
18151# Whether or not to disallow shared libs when runtime libs are static
18152allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18153
18154# Whether or not to optimize for fast installation.
18155fast_install=$enable_fast_install
18156
18157# The host system.
18158host_alias=$host_alias
18159host=$host
18160
18161# An echo program that does not interpret backslashes.
18162echo=$lt_echo
18163
18164# The archiver.
18165AR=$lt_AR
18166AR_FLAGS=$lt_AR_FLAGS
18167
18168# A C compiler.
18169LTCC=$lt_LTCC
18170
18171# A language-specific compiler.
18172CC=$lt_compiler_GCJ
18173
18174# Is the compiler the GNU C compiler?
18175with_gcc=$GCC_GCJ
18176
18177# An ERE matcher.
18178EGREP=$lt_EGREP
18179
18180# The linker used to build libraries.
18181LD=$lt_LD_GCJ
18182
18183# Whether we need hard or soft links.
18184LN_S=$lt_LN_S
18185
18186# A BSD-compatible nm program.
18187NM=$lt_NM
18188
18189# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018190STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018191
18192# Used to examine libraries when file_magic_cmd begins "file"
18193MAGIC_CMD=$MAGIC_CMD
18194
18195# Used on cygwin: DLL creation program.
18196DLLTOOL="$DLLTOOL"
18197
18198# Used on cygwin: object dumper.
18199OBJDUMP="$OBJDUMP"
18200
18201# Used on cygwin: assembler.
18202AS="$AS"
18203
18204# The name of the directory that contains temporary libtool files.
18205objdir=$objdir
18206
18207# How to create reloadable object files.
18208reload_flag=$lt_reload_flag
18209reload_cmds=$lt_reload_cmds
18210
18211# How to pass a linker flag through the compiler.
18212wl=$lt_lt_prog_compiler_wl_GCJ
18213
18214# Object file suffix (normally "o").
18215objext="$ac_objext"
18216
18217# Old archive suffix (normally "a").
18218libext="$libext"
18219
18220# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018221shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018222
18223# Executable file suffix (normally "").
18224exeext="$exeext"
18225
18226# Additional compiler flags for building library objects.
18227pic_flag=$lt_lt_prog_compiler_pic_GCJ
18228pic_mode=$pic_mode
18229
18230# What is the maximum length of a command?
18231max_cmd_len=$lt_cv_sys_max_cmd_len
18232
18233# Does compiler simultaneously support -c and -o options?
18234compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18235
18236# Must we lock files when doing compilation ?
18237need_locks=$lt_need_locks
18238
18239# Do we need the lib prefix for modules?
18240need_lib_prefix=$need_lib_prefix
18241
18242# Do we need a version for libraries?
18243need_version=$need_version
18244
18245# Whether dlopen is supported.
18246dlopen_support=$enable_dlopen
18247
18248# Whether dlopen of programs is supported.
18249dlopen_self=$enable_dlopen_self
18250
18251# Whether dlopen of statically linked programs is supported.
18252dlopen_self_static=$enable_dlopen_self_static
18253
18254# Compiler flag to prevent dynamic linking.
18255link_static_flag=$lt_lt_prog_compiler_static_GCJ
18256
18257# Compiler flag to turn off builtin functions.
18258no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18259
18260# Compiler flag to allow reflexive dlopens.
18261export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18262
18263# Compiler flag to generate shared objects directly from archives.
18264whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18265
18266# Compiler flag to generate thread-safe objects.
18267thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18268
18269# Library versioning type.
18270version_type=$version_type
18271
18272# Format of library name prefix.
18273libname_spec=$lt_libname_spec
18274
18275# List of archive names. First name is the real one, the rest are links.
18276# The last name is the one that the linker finds with -lNAME.
18277library_names_spec=$lt_library_names_spec
18278
18279# The coded name of the library, if different from the real name.
18280soname_spec=$lt_soname_spec
18281
18282# Commands used to build and install an old-style archive.
18283RANLIB=$lt_RANLIB
18284old_archive_cmds=$lt_old_archive_cmds_GCJ
18285old_postinstall_cmds=$lt_old_postinstall_cmds
18286old_postuninstall_cmds=$lt_old_postuninstall_cmds
18287
18288# Create an old-style archive from a shared archive.
18289old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18290
18291# Create a temporary old-style archive to link instead of a shared archive.
18292old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18293
18294# Commands used to build and install a shared archive.
18295archive_cmds=$lt_archive_cmds_GCJ
18296archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18297postinstall_cmds=$lt_postinstall_cmds
18298postuninstall_cmds=$lt_postuninstall_cmds
18299
18300# Commands used to build a loadable module (assumed same as above if empty)
18301module_cmds=$lt_module_cmds_GCJ
18302module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18303
18304# Commands to strip libraries.
18305old_striplib=$lt_old_striplib
18306striplib=$lt_striplib
18307
18308# Dependencies to place before the objects being linked to create a
18309# shared library.
18310predep_objects=$lt_predep_objects_GCJ
18311
18312# Dependencies to place after the objects being linked to create a
18313# shared library.
18314postdep_objects=$lt_postdep_objects_GCJ
18315
18316# Dependencies to place before the objects being linked to create a
18317# shared library.
18318predeps=$lt_predeps_GCJ
18319
18320# Dependencies to place after the objects being linked to create a
18321# shared library.
18322postdeps=$lt_postdeps_GCJ
18323
18324# The library search path used internally by the compiler when linking
18325# a shared library.
18326compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18327
18328# Method to check whether dependent libraries are shared objects.
18329deplibs_check_method=$lt_deplibs_check_method
18330
18331# Command to use when deplibs_check_method == file_magic.
18332file_magic_cmd=$lt_file_magic_cmd
18333
18334# Flag that allows shared libraries with undefined symbols to be built.
18335allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18336
18337# Flag that forces no undefined symbols.
18338no_undefined_flag=$lt_no_undefined_flag_GCJ
18339
18340# Commands used to finish a libtool library installation in a directory.
18341finish_cmds=$lt_finish_cmds
18342
18343# Same as above, but a single script fragment to be evaled but not shown.
18344finish_eval=$lt_finish_eval
18345
18346# Take the output of nm and produce a listing of raw symbols and C names.
18347global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18348
18349# Transform the output of nm in a proper C declaration
18350global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18351
18352# Transform the output of nm in a C name address pair
18353global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18354
18355# This is the shared library runtime path variable.
18356runpath_var=$runpath_var
18357
18358# This is the shared library path variable.
18359shlibpath_var=$shlibpath_var
18360
18361# Is shlibpath searched before the hard-coded library search path?
18362shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18363
18364# How to hardcode a shared library path into an executable.
18365hardcode_action=$hardcode_action_GCJ
18366
18367# Whether we should hardcode library paths into libraries.
18368hardcode_into_libs=$hardcode_into_libs
18369
18370# Flag to hardcode \$libdir into a binary during linking.
18371# This must work even if \$libdir does not exist.
18372hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18373
18374# If ld is used when linking, flag to hardcode \$libdir into
18375# a binary during linking. This must work even if \$libdir does
18376# not exist.
18377hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18378
18379# Whether we need a single -rpath flag with a separated argument.
18380hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18381
18382# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18383# resulting binary.
18384hardcode_direct=$hardcode_direct_GCJ
18385
18386# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18387# resulting binary.
18388hardcode_minus_L=$hardcode_minus_L_GCJ
18389
18390# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18391# the resulting binary.
18392hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18393
18394# Set to yes if building a shared library automatically hardcodes DIR into the library
18395# and all subsequent libraries and executables linked against it.
18396hardcode_automatic=$hardcode_automatic_GCJ
18397
18398# Variables whose values should be saved in libtool wrapper scripts and
18399# restored at relink time.
18400variables_saved_for_relink="$variables_saved_for_relink"
18401
18402# Whether libtool must link a program against all its dependency libraries.
18403link_all_deplibs=$link_all_deplibs_GCJ
18404
18405# Compile-time system search path for libraries
18406sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18407
18408# Run-time system search path for libraries
18409sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18410
18411# Fix the shell variable \$srcfile for the compiler.
18412fix_srcfile_path="$fix_srcfile_path_GCJ"
18413
18414# Set to yes if exported symbols are required.
18415always_export_symbols=$always_export_symbols_GCJ
18416
18417# The commands to list exported symbols.
18418export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18419
18420# The commands to extract the exported symbol list from a shared archive.
18421extract_expsyms_cmds=$lt_extract_expsyms_cmds
18422
18423# Symbols that should not be listed in the preloaded symbols.
18424exclude_expsyms=$lt_exclude_expsyms_GCJ
18425
18426# Symbols that must always be exported.
18427include_expsyms=$lt_include_expsyms_GCJ
18428
18429# ### END LIBTOOL TAG CONFIG: $tagname
18430
18431__EOF__
18432
18433
18434else
18435 # If there is no Makefile yet, we rely on a make rule to execute
18436 # `config.status --recheck' to rerun these tests and create the
18437 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018438 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18439 if test -f "$ltmain_in"; then
18440 test -f Makefile && make "$ltmain"
18441 fi
John Criswell47fdd832003-07-14 16:52:07 +000018442fi
18443
18444
18445ac_ext=c
18446ac_cpp='$CPP $CPPFLAGS'
18447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18449ac_compiler_gnu=$ac_cv_c_compiler_gnu
18450
18451CC="$lt_save_CC"
18452
18453 else
18454 tagname=""
18455 fi
18456 ;;
18457
18458 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018459 ac_ext=c
18460ac_cpp='$CPP $CPPFLAGS'
18461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18463ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000018464
18465
18466# Source file extension for RC test sources.
18467ac_ext=rc
18468
18469# Object file extension for compiled RC test sources.
18470objext=o
18471objext_RC=$objext
18472
18473# Code to be used in simple compile tests
18474lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18475
18476# Code to be used in simple link tests
18477lt_simple_link_test_code="$lt_simple_compile_test_code"
18478
18479# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18480
18481# If no C compiler was specified, use CC.
18482LTCC=${LTCC-"$CC"}
18483
18484# Allow CC to be a program name with arguments.
18485compiler=$CC
18486
18487
18488# Allow CC to be a program name with arguments.
18489lt_save_CC="$CC"
18490CC=${RC-"windres"}
18491compiler=$CC
18492compiler_RC=$CC
18493lt_cv_prog_compiler_c_o_RC=yes
18494
18495# The else clause should only fire when bootstrapping the
18496# libtool distribution, otherwise you forgot to ship ltmain.sh
18497# with your package, and you will get complaints that there are
18498# no rules to generate ltmain.sh.
18499if test -f "$ltmain"; then
18500 # See if we are running on zsh, and set the options which allow our commands through
18501 # without removal of \ escapes.
18502 if test -n "${ZSH_VERSION+set}" ; then
18503 setopt NO_GLOB_SUBST
18504 fi
18505 # Now quote all the things that may contain metacharacters while being
18506 # careful not to overquote the AC_SUBSTed values. We take copies of the
18507 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018508 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18509 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018510 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18511 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18512 deplibs_check_method reload_flag reload_cmds need_locks \
18513 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18514 lt_cv_sys_global_symbol_to_c_name_address \
18515 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18516 old_postinstall_cmds old_postuninstall_cmds \
18517 compiler_RC \
18518 CC_RC \
18519 LD_RC \
18520 lt_prog_compiler_wl_RC \
18521 lt_prog_compiler_pic_RC \
18522 lt_prog_compiler_static_RC \
18523 lt_prog_compiler_no_builtin_flag_RC \
18524 export_dynamic_flag_spec_RC \
18525 thread_safe_flag_spec_RC \
18526 whole_archive_flag_spec_RC \
18527 enable_shared_with_static_runtimes_RC \
18528 old_archive_cmds_RC \
18529 old_archive_from_new_cmds_RC \
18530 predep_objects_RC \
18531 postdep_objects_RC \
18532 predeps_RC \
18533 postdeps_RC \
18534 compiler_lib_search_path_RC \
18535 archive_cmds_RC \
18536 archive_expsym_cmds_RC \
18537 postinstall_cmds_RC \
18538 postuninstall_cmds_RC \
18539 old_archive_from_expsyms_cmds_RC \
18540 allow_undefined_flag_RC \
18541 no_undefined_flag_RC \
18542 export_symbols_cmds_RC \
18543 hardcode_libdir_flag_spec_RC \
18544 hardcode_libdir_flag_spec_ld_RC \
18545 hardcode_libdir_separator_RC \
18546 hardcode_automatic_RC \
18547 module_cmds_RC \
18548 module_expsym_cmds_RC \
18549 lt_cv_prog_compiler_c_o_RC \
18550 exclude_expsyms_RC \
18551 include_expsyms_RC; do
18552
18553 case $var in
18554 old_archive_cmds_RC | \
18555 old_archive_from_new_cmds_RC | \
18556 archive_cmds_RC | \
18557 archive_expsym_cmds_RC | \
18558 module_cmds_RC | \
18559 module_expsym_cmds_RC | \
18560 old_archive_from_expsyms_cmds_RC | \
18561 export_symbols_cmds_RC | \
18562 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18563 postinstall_cmds | postuninstall_cmds | \
18564 old_postinstall_cmds | old_postuninstall_cmds | \
18565 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18566 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000018568 ;;
18569 *)
18570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18571 ;;
18572 esac
18573 done
18574
18575 case $lt_echo in
18576 *'\$0 --fallback-echo"')
18577 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18578 ;;
18579 esac
18580
18581cfgfile="$ofile"
18582
18583 cat <<__EOF__ >> "$cfgfile"
18584# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18585
18586# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18587
18588# Shell to use when invoking shell scripts.
18589SHELL=$lt_SHELL
18590
18591# Whether or not to build shared libraries.
18592build_libtool_libs=$enable_shared
18593
18594# Whether or not to build static libraries.
18595build_old_libs=$enable_static
18596
18597# Whether or not to add -lc for building shared libraries.
18598build_libtool_need_lc=$archive_cmds_need_lc_RC
18599
18600# Whether or not to disallow shared libs when runtime libs are static
18601allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18602
18603# Whether or not to optimize for fast installation.
18604fast_install=$enable_fast_install
18605
18606# The host system.
18607host_alias=$host_alias
18608host=$host
18609
18610# An echo program that does not interpret backslashes.
18611echo=$lt_echo
18612
18613# The archiver.
18614AR=$lt_AR
18615AR_FLAGS=$lt_AR_FLAGS
18616
18617# A C compiler.
18618LTCC=$lt_LTCC
18619
18620# A language-specific compiler.
18621CC=$lt_compiler_RC
18622
18623# Is the compiler the GNU C compiler?
18624with_gcc=$GCC_RC
18625
18626# An ERE matcher.
18627EGREP=$lt_EGREP
18628
18629# The linker used to build libraries.
18630LD=$lt_LD_RC
18631
18632# Whether we need hard or soft links.
18633LN_S=$lt_LN_S
18634
18635# A BSD-compatible nm program.
18636NM=$lt_NM
18637
18638# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018639STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018640
18641# Used to examine libraries when file_magic_cmd begins "file"
18642MAGIC_CMD=$MAGIC_CMD
18643
18644# Used on cygwin: DLL creation program.
18645DLLTOOL="$DLLTOOL"
18646
18647# Used on cygwin: object dumper.
18648OBJDUMP="$OBJDUMP"
18649
18650# Used on cygwin: assembler.
18651AS="$AS"
18652
18653# The name of the directory that contains temporary libtool files.
18654objdir=$objdir
18655
18656# How to create reloadable object files.
18657reload_flag=$lt_reload_flag
18658reload_cmds=$lt_reload_cmds
18659
18660# How to pass a linker flag through the compiler.
18661wl=$lt_lt_prog_compiler_wl_RC
18662
18663# Object file suffix (normally "o").
18664objext="$ac_objext"
18665
18666# Old archive suffix (normally "a").
18667libext="$libext"
18668
18669# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018670shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018671
18672# Executable file suffix (normally "").
18673exeext="$exeext"
18674
18675# Additional compiler flags for building library objects.
18676pic_flag=$lt_lt_prog_compiler_pic_RC
18677pic_mode=$pic_mode
18678
18679# What is the maximum length of a command?
18680max_cmd_len=$lt_cv_sys_max_cmd_len
18681
18682# Does compiler simultaneously support -c and -o options?
18683compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18684
18685# Must we lock files when doing compilation ?
18686need_locks=$lt_need_locks
18687
18688# Do we need the lib prefix for modules?
18689need_lib_prefix=$need_lib_prefix
18690
18691# Do we need a version for libraries?
18692need_version=$need_version
18693
18694# Whether dlopen is supported.
18695dlopen_support=$enable_dlopen
18696
18697# Whether dlopen of programs is supported.
18698dlopen_self=$enable_dlopen_self
18699
18700# Whether dlopen of statically linked programs is supported.
18701dlopen_self_static=$enable_dlopen_self_static
18702
18703# Compiler flag to prevent dynamic linking.
18704link_static_flag=$lt_lt_prog_compiler_static_RC
18705
18706# Compiler flag to turn off builtin functions.
18707no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18708
18709# Compiler flag to allow reflexive dlopens.
18710export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18711
18712# Compiler flag to generate shared objects directly from archives.
18713whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18714
18715# Compiler flag to generate thread-safe objects.
18716thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18717
18718# Library versioning type.
18719version_type=$version_type
18720
18721# Format of library name prefix.
18722libname_spec=$lt_libname_spec
18723
18724# List of archive names. First name is the real one, the rest are links.
18725# The last name is the one that the linker finds with -lNAME.
18726library_names_spec=$lt_library_names_spec
18727
18728# The coded name of the library, if different from the real name.
18729soname_spec=$lt_soname_spec
18730
18731# Commands used to build and install an old-style archive.
18732RANLIB=$lt_RANLIB
18733old_archive_cmds=$lt_old_archive_cmds_RC
18734old_postinstall_cmds=$lt_old_postinstall_cmds
18735old_postuninstall_cmds=$lt_old_postuninstall_cmds
18736
18737# Create an old-style archive from a shared archive.
18738old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18739
18740# Create a temporary old-style archive to link instead of a shared archive.
18741old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18742
18743# Commands used to build and install a shared archive.
18744archive_cmds=$lt_archive_cmds_RC
18745archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18746postinstall_cmds=$lt_postinstall_cmds
18747postuninstall_cmds=$lt_postuninstall_cmds
18748
18749# Commands used to build a loadable module (assumed same as above if empty)
18750module_cmds=$lt_module_cmds_RC
18751module_expsym_cmds=$lt_module_expsym_cmds_RC
18752
18753# Commands to strip libraries.
18754old_striplib=$lt_old_striplib
18755striplib=$lt_striplib
18756
18757# Dependencies to place before the objects being linked to create a
18758# shared library.
18759predep_objects=$lt_predep_objects_RC
18760
18761# Dependencies to place after the objects being linked to create a
18762# shared library.
18763postdep_objects=$lt_postdep_objects_RC
18764
18765# Dependencies to place before the objects being linked to create a
18766# shared library.
18767predeps=$lt_predeps_RC
18768
18769# Dependencies to place after the objects being linked to create a
18770# shared library.
18771postdeps=$lt_postdeps_RC
18772
18773# The library search path used internally by the compiler when linking
18774# a shared library.
18775compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18776
18777# Method to check whether dependent libraries are shared objects.
18778deplibs_check_method=$lt_deplibs_check_method
18779
18780# Command to use when deplibs_check_method == file_magic.
18781file_magic_cmd=$lt_file_magic_cmd
18782
18783# Flag that allows shared libraries with undefined symbols to be built.
18784allow_undefined_flag=$lt_allow_undefined_flag_RC
18785
18786# Flag that forces no undefined symbols.
18787no_undefined_flag=$lt_no_undefined_flag_RC
18788
18789# Commands used to finish a libtool library installation in a directory.
18790finish_cmds=$lt_finish_cmds
18791
18792# Same as above, but a single script fragment to be evaled but not shown.
18793finish_eval=$lt_finish_eval
18794
18795# Take the output of nm and produce a listing of raw symbols and C names.
18796global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18797
18798# Transform the output of nm in a proper C declaration
18799global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18800
18801# Transform the output of nm in a C name address pair
18802global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18803
18804# This is the shared library runtime path variable.
18805runpath_var=$runpath_var
18806
18807# This is the shared library path variable.
18808shlibpath_var=$shlibpath_var
18809
18810# Is shlibpath searched before the hard-coded library search path?
18811shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18812
18813# How to hardcode a shared library path into an executable.
18814hardcode_action=$hardcode_action_RC
18815
18816# Whether we should hardcode library paths into libraries.
18817hardcode_into_libs=$hardcode_into_libs
18818
18819# Flag to hardcode \$libdir into a binary during linking.
18820# This must work even if \$libdir does not exist.
18821hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18822
18823# If ld is used when linking, flag to hardcode \$libdir into
18824# a binary during linking. This must work even if \$libdir does
18825# not exist.
18826hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18827
18828# Whether we need a single -rpath flag with a separated argument.
18829hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18830
18831# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18832# resulting binary.
18833hardcode_direct=$hardcode_direct_RC
18834
18835# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18836# resulting binary.
18837hardcode_minus_L=$hardcode_minus_L_RC
18838
18839# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18840# the resulting binary.
18841hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18842
18843# Set to yes if building a shared library automatically hardcodes DIR into the library
18844# and all subsequent libraries and executables linked against it.
18845hardcode_automatic=$hardcode_automatic_RC
18846
18847# Variables whose values should be saved in libtool wrapper scripts and
18848# restored at relink time.
18849variables_saved_for_relink="$variables_saved_for_relink"
18850
18851# Whether libtool must link a program against all its dependency libraries.
18852link_all_deplibs=$link_all_deplibs_RC
18853
18854# Compile-time system search path for libraries
18855sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18856
18857# Run-time system search path for libraries
18858sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18859
18860# Fix the shell variable \$srcfile for the compiler.
18861fix_srcfile_path="$fix_srcfile_path_RC"
18862
18863# Set to yes if exported symbols are required.
18864always_export_symbols=$always_export_symbols_RC
18865
18866# The commands to list exported symbols.
18867export_symbols_cmds=$lt_export_symbols_cmds_RC
18868
18869# The commands to extract the exported symbol list from a shared archive.
18870extract_expsyms_cmds=$lt_extract_expsyms_cmds
18871
18872# Symbols that should not be listed in the preloaded symbols.
18873exclude_expsyms=$lt_exclude_expsyms_RC
18874
18875# Symbols that must always be exported.
18876include_expsyms=$lt_include_expsyms_RC
18877
18878# ### END LIBTOOL TAG CONFIG: $tagname
18879
18880__EOF__
18881
18882
18883else
18884 # If there is no Makefile yet, we rely on a make rule to execute
18885 # `config.status --recheck' to rerun these tests and create the
18886 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018887 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18888 if test -f "$ltmain_in"; then
18889 test -f Makefile && make "$ltmain"
18890 fi
John Criswell47fdd832003-07-14 16:52:07 +000018891fi
18892
18893
18894ac_ext=c
18895ac_cpp='$CPP $CPPFLAGS'
18896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18898ac_compiler_gnu=$ac_cv_c_compiler_gnu
18899
18900CC="$lt_save_CC"
18901
18902 ;;
18903
18904 *)
18905 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18906echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18907 { (exit 1); exit 1; }; }
18908 ;;
18909 esac
18910
18911 # Append the new tag name to the list of available tags.
18912 if test -n "$tagname" ; then
18913 available_tags="$available_tags $tagname"
18914 fi
18915 fi
18916 done
18917 IFS="$lt_save_ifs"
18918
18919 # Now substitute the updated list of available tags.
18920 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18921 mv "${ofile}T" "$ofile"
18922 chmod +x "$ofile"
18923 else
18924 rm -f "${ofile}T"
18925 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18926echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18927 { (exit 1); exit 1; }; }
18928 fi
18929fi
John Criswell7a73b802003-06-30 21:59:07 +000018930
18931
18932
18933# This can be used to rebuild libtool when needed
18934LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18935
18936# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018937LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018938
18939# Prevent multiple expansion
18940
18941
18942
John Criswell47fdd832003-07-14 16:52:07 +000018943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
Reid Spencerad354c92004-10-25 08:18:47 +000018960# Extract the first word of "tar", so it can be a program name with args.
18961set dummy tar; ac_word=$2
18962echo "$as_me:$LINENO: checking for $ac_word" >&5
18963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18964if test "${ac_cv_path_TAR+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18966else
18967 case $TAR in
18968 [\\/]* | ?:[\\/]*)
18969 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
18970 ;;
18971 *)
18972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18973for as_dir in $PATH
18974do
18975 IFS=$as_save_IFS
18976 test -z "$as_dir" && as_dir=.
18977 for ac_exec_ext in '' $ac_executable_extensions; do
18978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18979 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
18980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18981 break 2
18982 fi
18983done
18984done
18985
18986 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
18987 ;;
18988esac
18989fi
18990TAR=$ac_cv_path_TAR
18991
18992if test -n "$TAR"; then
18993 echo "$as_me:$LINENO: result: $TAR" >&5
18994echo "${ECHO_T}$TAR" >&6
18995else
18996 echo "$as_me:$LINENO: result: no" >&5
18997echo "${ECHO_T}no" >&6
18998fi
18999
John Criswell47fdd832003-07-14 16:52:07 +000019000
John Criswell7a73b802003-06-30 21:59:07 +000019001# Extract the first word of "dot", so it can be a program name with args.
19002set dummy dot; ac_word=$2
19003echo "$as_me:$LINENO: checking for $ac_word" >&5
19004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19005if test "${ac_cv_path_DOT+set}" = set; then
19006 echo $ECHO_N "(cached) $ECHO_C" >&6
19007else
19008 case $DOT in
19009 [\\/]* | ?:[\\/]*)
19010 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19011 ;;
19012 *)
19013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19014for as_dir in $PATH
19015do
19016 IFS=$as_save_IFS
19017 test -z "$as_dir" && as_dir=.
19018 for ac_exec_ext in '' $ac_executable_extensions; do
19019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19020 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19022 break 2
19023 fi
19024done
19025done
19026
Brian Gaeke26be9c52004-01-13 06:43:16 +000019027 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000019028 ;;
19029esac
19030fi
19031DOT=$ac_cv_path_DOT
19032
19033if test -n "$DOT"; then
19034 echo "$as_me:$LINENO: result: $DOT" >&5
19035echo "${ECHO_T}$DOT" >&6
19036else
19037 echo "$as_me:$LINENO: result: no" >&5
19038echo "${ECHO_T}no" >&6
19039fi
19040
19041# Extract the first word of "etags", so it can be a program name with args.
19042set dummy etags; ac_word=$2
19043echo "$as_me:$LINENO: checking for $ac_word" >&5
19044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19045if test "${ac_cv_path_ETAGS+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047else
19048 case $ETAGS in
19049 [\\/]* | ?:[\\/]*)
19050 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19051 ;;
19052 *)
19053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19054for as_dir in $PATH
19055do
19056 IFS=$as_save_IFS
19057 test -z "$as_dir" && as_dir=.
19058 for ac_exec_ext in '' $ac_executable_extensions; do
19059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19060 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19062 break 2
19063 fi
19064done
19065done
19066
Brian Gaeke26be9c52004-01-13 06:43:16 +000019067 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000019068 ;;
19069esac
19070fi
19071ETAGS=$ac_cv_path_ETAGS
19072
19073if test -n "$ETAGS"; then
19074 echo "$as_me:$LINENO: result: $ETAGS" >&5
19075echo "${ECHO_T}$ETAGS" >&6
19076else
19077 echo "$as_me:$LINENO: result: no" >&5
19078echo "${ECHO_T}no" >&6
19079fi
19080
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000019081etags_version=`$ETAGS --version 2>&1`
19082case "$etags_version" in
19083 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19084 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19085 *) ETAGSFLAGS="" ;;
19086esac
19087ETAGSFLAGS=$ETAGSFLAGS
19088
John Criswellde00db22003-08-25 16:49:54 +000019089# Extract the first word of "python", so it can be a program name with args.
19090set dummy python; ac_word=$2
19091echo "$as_me:$LINENO: checking for $ac_word" >&5
19092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19093if test "${ac_cv_path_PYTHON+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19095else
19096 case $PYTHON in
19097 [\\/]* | ?:[\\/]*)
19098 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19099 ;;
19100 *)
19101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19102for as_dir in $PATH
19103do
19104 IFS=$as_save_IFS
19105 test -z "$as_dir" && as_dir=.
19106 for ac_exec_ext in '' $ac_executable_extensions; do
19107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19108 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19110 break 2
19111 fi
19112done
19113done
19114
Brian Gaeke26be9c52004-01-13 06:43:16 +000019115 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000019116 ;;
19117esac
19118fi
19119PYTHON=$ac_cv_path_PYTHON
19120
19121if test -n "$PYTHON"; then
19122 echo "$as_me:$LINENO: result: $PYTHON" >&5
19123echo "${ECHO_T}$PYTHON" >&6
19124else
19125 echo "$as_me:$LINENO: result: no" >&5
19126echo "${ECHO_T}no" >&6
19127fi
19128
Brian Gaeke26be9c52004-01-13 06:43:16 +000019129if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019130then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019131 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19132echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019133fi
John Criswellde00db22003-08-25 16:49:54 +000019134# Extract the first word of "qmtest", so it can be a program name with args.
19135set dummy qmtest; ac_word=$2
19136echo "$as_me:$LINENO: checking for $ac_word" >&5
19137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19138if test "${ac_cv_path_QMTEST+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19140else
19141 case $QMTEST in
19142 [\\/]* | ?:[\\/]*)
19143 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19144 ;;
19145 *)
19146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19147for as_dir in $PATH
19148do
19149 IFS=$as_save_IFS
19150 test -z "$as_dir" && as_dir=.
19151 for ac_exec_ext in '' $ac_executable_extensions; do
19152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19153 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19155 break 2
19156 fi
19157done
19158done
19159
Brian Gaeke26be9c52004-01-13 06:43:16 +000019160 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000019161 ;;
19162esac
19163fi
19164QMTEST=$ac_cv_path_QMTEST
19165
19166if test -n "$QMTEST"; then
19167 echo "$as_me:$LINENO: result: $QMTEST" >&5
19168echo "${ECHO_T}$QMTEST" >&6
19169else
19170 echo "$as_me:$LINENO: result: no" >&5
19171echo "${ECHO_T}no" >&6
19172fi
19173
Brian Gaeke26be9c52004-01-13 06:43:16 +000019174if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019175then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019176 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19177echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019178fi
John Criswellde00db22003-08-25 16:49:54 +000019179
19180pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19181pymajor=`echo $pyversion | cut -d. -f1`
19182pyminor=`echo $pyversion | cut -d. -f2`
19183
19184if test "$pymajor" -ge "2"
19185then
19186 if test "$pymajor" -eq "2"
19187 then
19188 if test "$pyminor" -lt "2"
19189 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019190 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19191echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019192 fi
19193 fi
19194else
Brian Gaeke26be9c52004-01-13 06:43:16 +000019195 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19196echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019197fi
John Criswell7a73b802003-06-30 21:59:07 +000019198
19199
John Criswell7a73b802003-06-30 21:59:07 +000019200echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19201echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19202if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19204else
19205 ac_check_lib_save_LIBS=$LIBS
19206LIBS="-lelf $LIBS"
19207cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019208/* confdefs.h. */
19209_ACEOF
19210cat confdefs.h >>conftest.$ac_ext
19211cat >>conftest.$ac_ext <<_ACEOF
19212/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019213
19214/* Override any gcc2 internal prototype to avoid an error. */
19215#ifdef __cplusplus
19216extern "C"
19217#endif
19218/* We use char because int might match the return type of a gcc2
19219 builtin and then its argument prototype would still apply. */
19220char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019221int
19222main ()
19223{
19224elf_begin ();
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext conftest$ac_exeext
19230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019231 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019232 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019238 { ac_try='test -z "$ac_c_werror_flag"
19239 || test ! -s conftest.err'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 ac_cv_lib_elf_elf_begin=yes
19252else
19253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019254sed 's/^/| /' conftest.$ac_ext >&5
19255
John Criswell7a73b802003-06-30 21:59:07 +000019256ac_cv_lib_elf_elf_begin=no
19257fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019258rm -f conftest.err conftest.$ac_objext \
19259 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019260LIBS=$ac_check_lib_save_LIBS
19261fi
19262echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19263echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19264if test $ac_cv_lib_elf_elf_begin = yes; then
19265 cat >>confdefs.h <<_ACEOF
19266#define HAVE_LIBELF 1
19267_ACEOF
19268
19269 LIBS="-lelf $LIBS"
19270
19271fi
19272
19273
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019274echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19275echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19276if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19277 echo $ECHO_N "(cached) $ECHO_C" >&6
19278else
19279 ac_check_lib_save_LIBS=$LIBS
19280LIBS="-lbz2 $LIBS"
19281cat >conftest.$ac_ext <<_ACEOF
19282/* confdefs.h. */
19283_ACEOF
19284cat confdefs.h >>conftest.$ac_ext
19285cat >>conftest.$ac_ext <<_ACEOF
19286/* end confdefs.h. */
19287
19288/* Override any gcc2 internal prototype to avoid an error. */
19289#ifdef __cplusplus
19290extern "C"
19291#endif
19292/* We use char because int might match the return type of a gcc2
19293 builtin and then its argument prototype would still apply. */
19294char BZ2_bzCompressInit ();
19295int
19296main ()
19297{
19298BZ2_bzCompressInit ();
19299 ;
19300 return 0;
19301}
19302_ACEOF
19303rm -f conftest.$ac_objext conftest$ac_exeext
19304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305 (eval $ac_link) 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_c_werror_flag"
19313 || test ! -s conftest.err'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try='test -s conftest$ac_exeext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19326else
19327 echo "$as_me: failed program was:" >&5
19328sed 's/^/| /' conftest.$ac_ext >&5
19329
19330ac_cv_lib_bz2_BZ2_bzCompressInit=no
19331fi
19332rm -f conftest.err conftest.$ac_objext \
19333 conftest$ac_exeext conftest.$ac_ext
19334LIBS=$ac_check_lib_save_LIBS
19335fi
19336echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19337echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19338if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19339 bzip2_found=1
19340else
19341 bzip2_found=0
19342fi
19343
Reid Spencer0d98aed2004-10-04 22:05:53 +000019344
19345for ac_header in bzlib.h
19346do
19347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19348if eval "test \"\${$as_ac_Header+set}\" = set"; then
19349 echo "$as_me:$LINENO: checking for $ac_header" >&5
19350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19351if eval "test \"\${$as_ac_Header+set}\" = set"; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19353fi
19354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19356else
19357 # Is the header compilable?
19358echo "$as_me:$LINENO: checking $ac_header usability" >&5
19359echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19360cat >conftest.$ac_ext <<_ACEOF
19361/* confdefs.h. */
19362_ACEOF
19363cat confdefs.h >>conftest.$ac_ext
19364cat >>conftest.$ac_ext <<_ACEOF
19365/* end confdefs.h. */
19366$ac_includes_default
19367#include <$ac_header>
19368_ACEOF
19369rm -f conftest.$ac_objext
19370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19371 (eval $ac_compile) 2>conftest.er1
19372 ac_status=$?
19373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_c_werror_flag"
19379 || test ! -s conftest.err'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 ac_header_compiler=yes
19392else
19393 echo "$as_me: failed program was:" >&5
19394sed 's/^/| /' conftest.$ac_ext >&5
19395
19396ac_header_compiler=no
19397fi
19398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19399echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19400echo "${ECHO_T}$ac_header_compiler" >&6
19401
19402# Is the header present?
19403echo "$as_me:$LINENO: checking $ac_header presence" >&5
19404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19405cat >conftest.$ac_ext <<_ACEOF
19406/* confdefs.h. */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
19410/* end confdefs.h. */
19411#include <$ac_header>
19412_ACEOF
19413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } >/dev/null; then
19421 if test -s conftest.err; then
19422 ac_cpp_err=$ac_c_preproc_warn_flag
19423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19424 else
19425 ac_cpp_err=
19426 fi
19427else
19428 ac_cpp_err=yes
19429fi
19430if test -z "$ac_cpp_err"; then
19431 ac_header_preproc=yes
19432else
19433 echo "$as_me: failed program was:" >&5
19434sed 's/^/| /' conftest.$ac_ext >&5
19435
19436 ac_header_preproc=no
19437fi
19438rm -f conftest.err conftest.$ac_ext
19439echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19440echo "${ECHO_T}$ac_header_preproc" >&6
19441
19442# So? What about this header?
19443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19444 yes:no: )
19445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19449 ac_header_preproc=yes
19450 ;;
19451 no:yes:* )
19452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19455echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19459echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19464 (
19465 cat <<\_ASBOX
19466## ----------------------------------- ##
19467## Report this to llvmbugs@cs.uiuc.edu ##
19468## ----------------------------------- ##
19469_ASBOX
19470 ) |
19471 sed "s/^/$as_me: WARNING: /" >&2
19472 ;;
19473esac
19474echo "$as_me:$LINENO: checking for $ac_header" >&5
19475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19476if eval "test \"\${$as_ac_Header+set}\" = set"; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478else
19479 eval "$as_ac_Header=\$ac_header_preproc"
19480fi
19481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19483
19484fi
19485if test `eval echo '${'$as_ac_Header'}'` = yes; then
19486 cat >>confdefs.h <<_ACEOF
19487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19488_ACEOF
19489 bzlib_h_found=1
19490else
19491 bzlib_h_found=0
19492fi
19493
19494done
19495
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019496echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19497echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19498if test "${ac_cv_lib_z_gzopen+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500else
19501 ac_check_lib_save_LIBS=$LIBS
19502LIBS="-lz $LIBS"
19503cat >conftest.$ac_ext <<_ACEOF
19504/* confdefs.h. */
19505_ACEOF
19506cat confdefs.h >>conftest.$ac_ext
19507cat >>conftest.$ac_ext <<_ACEOF
19508/* end confdefs.h. */
19509
19510/* Override any gcc2 internal prototype to avoid an error. */
19511#ifdef __cplusplus
19512extern "C"
19513#endif
19514/* We use char because int might match the return type of a gcc2
19515 builtin and then its argument prototype would still apply. */
19516char gzopen ();
19517int
19518main ()
19519{
19520gzopen ();
19521 ;
19522 return 0;
19523}
19524_ACEOF
19525rm -f conftest.$ac_objext conftest$ac_exeext
19526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19527 (eval $ac_link) 2>conftest.er1
19528 ac_status=$?
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -z "$ac_c_werror_flag"
19535 || test ! -s conftest.err'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest$ac_exeext'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 ac_cv_lib_z_gzopen=yes
19548else
19549 echo "$as_me: failed program was:" >&5
19550sed 's/^/| /' conftest.$ac_ext >&5
19551
19552ac_cv_lib_z_gzopen=no
19553fi
19554rm -f conftest.err conftest.$ac_objext \
19555 conftest$ac_exeext conftest.$ac_ext
19556LIBS=$ac_check_lib_save_LIBS
19557fi
19558echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19559echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19560if test $ac_cv_lib_z_gzopen = yes; then
19561 zlib_found=1
19562else
19563 zlib_found=0
19564fi
19565
Reid Spencer37130d22004-10-04 07:05:07 +000019566
Reid Spencer0d98aed2004-10-04 22:05:53 +000019567for ac_header in zlib.h
19568do
19569as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19570if eval "test \"\${$as_ac_Header+set}\" = set"; then
19571 echo "$as_me:$LINENO: checking for $ac_header" >&5
19572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19573if eval "test \"\${$as_ac_Header+set}\" = set"; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575fi
19576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19578else
19579 # Is the header compilable?
19580echo "$as_me:$LINENO: checking $ac_header usability" >&5
19581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19582cat >conftest.$ac_ext <<_ACEOF
19583/* confdefs.h. */
19584_ACEOF
19585cat confdefs.h >>conftest.$ac_ext
19586cat >>conftest.$ac_ext <<_ACEOF
19587/* end confdefs.h. */
19588$ac_includes_default
19589#include <$ac_header>
19590_ACEOF
19591rm -f conftest.$ac_objext
19592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19593 (eval $ac_compile) 2>conftest.er1
19594 ac_status=$?
19595 grep -v '^ *+' conftest.er1 >conftest.err
19596 rm -f conftest.er1
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } &&
19600 { ac_try='test -z "$ac_c_werror_flag"
19601 || test ! -s conftest.err'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest.$ac_objext'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_header_compiler=yes
19614else
19615 echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencer37130d22004-10-04 07:05:07 +000019617
Reid Spencer0d98aed2004-10-04 22:05:53 +000019618ac_header_compiler=no
19619fi
19620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19622echo "${ECHO_T}$ac_header_compiler" >&6
19623
19624# Is the header present?
19625echo "$as_me:$LINENO: checking $ac_header presence" >&5
19626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19627cat >conftest.$ac_ext <<_ACEOF
19628/* confdefs.h. */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h. */
19633#include <$ac_header>
19634_ACEOF
19635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19637 ac_status=$?
19638 grep -v '^ *+' conftest.er1 >conftest.err
19639 rm -f conftest.er1
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } >/dev/null; then
19643 if test -s conftest.err; then
19644 ac_cpp_err=$ac_c_preproc_warn_flag
19645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19646 else
19647 ac_cpp_err=
19648 fi
19649else
19650 ac_cpp_err=yes
19651fi
19652if test -z "$ac_cpp_err"; then
19653 ac_header_preproc=yes
19654else
19655 echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658 ac_header_preproc=no
19659fi
19660rm -f conftest.err conftest.$ac_ext
19661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19662echo "${ECHO_T}$ac_header_preproc" >&6
19663
19664# So? What about this header?
19665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19666 yes:no: )
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19671 ac_header_preproc=yes
19672 ;;
19673 no:yes:* )
19674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19686 (
19687 cat <<\_ASBOX
19688## ----------------------------------- ##
19689## Report this to llvmbugs@cs.uiuc.edu ##
19690## ----------------------------------- ##
19691_ASBOX
19692 ) |
19693 sed "s/^/$as_me: WARNING: /" >&2
19694 ;;
19695esac
19696echo "$as_me:$LINENO: checking for $ac_header" >&5
19697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19698if eval "test \"\${$as_ac_Header+set}\" = set"; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19700else
19701 eval "$as_ac_Header=\$ac_header_preproc"
19702fi
19703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19705
19706fi
19707if test `eval echo '${'$as_ac_Header'}'` = yes; then
19708 cat >>confdefs.h <<_ACEOF
19709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19710_ACEOF
19711 zlib_h_found=1
19712else
19713 zlib_h_found=0
19714fi
19715
19716done
19717
19718if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019719
19720cat >>confdefs.h <<\_ACEOF
19721#define HAVE_ZLIB 1
19722_ACEOF
19723
Reid Spencer0d98aed2004-10-04 22:05:53 +000019724 HAVE_ZLIB=1
19725
19726else
19727 HAVE_ZLIB=0
19728
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019729fi
Reid Spencer0d98aed2004-10-04 22:05:53 +000019730if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019731
19732cat >>confdefs.h <<\_ACEOF
19733#define HAVE_BZIP2 1
19734_ACEOF
19735
Reid Spencer0d98aed2004-10-04 22:05:53 +000019736 HAVE_BZIP2=1
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019737
Reid Spencer0d98aed2004-10-04 22:05:53 +000019738else
19739 HAVE_BZIP2=0
19740
19741fi
John Criswell7a73b802003-06-30 21:59:07 +000019742echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19743echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19744if test "${ac_cv_search_dlopen+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19746else
19747 ac_func_search_save_LIBS=$LIBS
19748ac_cv_search_dlopen=no
19749cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019750/* confdefs.h. */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019755
19756/* Override any gcc2 internal prototype to avoid an error. */
19757#ifdef __cplusplus
19758extern "C"
19759#endif
19760/* We use char because int might match the return type of a gcc2
19761 builtin and then its argument prototype would still apply. */
19762char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019763int
19764main ()
19765{
19766dlopen ();
19767 ;
19768 return 0;
19769}
19770_ACEOF
19771rm -f conftest.$ac_objext conftest$ac_exeext
19772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019773 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019774 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019780 { ac_try='test -z "$ac_c_werror_flag"
19781 || test ! -s conftest.err'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; }; then
19793 ac_cv_search_dlopen="none required"
19794else
19795 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019796sed 's/^/| /' conftest.$ac_ext >&5
19797
John Criswell7a73b802003-06-30 21:59:07 +000019798fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019799rm -f conftest.err conftest.$ac_objext \
19800 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019801if test "$ac_cv_search_dlopen" = no; then
19802 for ac_lib in dl; do
19803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19804 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019805/* confdefs.h. */
19806_ACEOF
19807cat confdefs.h >>conftest.$ac_ext
19808cat >>conftest.$ac_ext <<_ACEOF
19809/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019810
19811/* Override any gcc2 internal prototype to avoid an error. */
19812#ifdef __cplusplus
19813extern "C"
19814#endif
19815/* We use char because int might match the return type of a gcc2
19816 builtin and then its argument prototype would still apply. */
19817char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019818int
19819main ()
19820{
19821dlopen ();
19822 ;
19823 return 0;
19824}
19825_ACEOF
19826rm -f conftest.$ac_objext conftest$ac_exeext
19827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019828 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019829 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019830 grep -v '^ *+' conftest.er1 >conftest.err
19831 rm -f conftest.er1
19832 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019835 { ac_try='test -z "$ac_c_werror_flag"
19836 || test ! -s conftest.err'
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19848 ac_cv_search_dlopen="-l$ac_lib"
19849break
19850else
19851 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019852sed 's/^/| /' conftest.$ac_ext >&5
19853
John Criswell7a73b802003-06-30 21:59:07 +000019854fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019855rm -f conftest.err conftest.$ac_objext \
19856 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019857 done
19858fi
19859LIBS=$ac_func_search_save_LIBS
19860fi
19861echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19862echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19863if test "$ac_cv_search_dlopen" != no; then
19864 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019865
19866cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019867#define HAVE_DLOPEN 1
19868_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019869
19870else
Brian Gaekec45be042003-10-07 06:01:34 +000019871 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19872echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019873fi
19874
19875
19876echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19877echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19878if test "${ac_cv_search_mallinfo+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880else
19881 ac_func_search_save_LIBS=$LIBS
19882ac_cv_search_mallinfo=no
19883cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019889
19890/* Override any gcc2 internal prototype to avoid an error. */
19891#ifdef __cplusplus
19892extern "C"
19893#endif
19894/* We use char because int might match the return type of a gcc2
19895 builtin and then its argument prototype would still apply. */
19896char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019897int
19898main ()
19899{
19900mallinfo ();
19901 ;
19902 return 0;
19903}
19904_ACEOF
19905rm -f conftest.$ac_objext conftest$ac_exeext
19906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019907 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019908 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019914 { ac_try='test -z "$ac_c_werror_flag"
19915 || test ! -s conftest.err'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } &&
19921 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_cv_search_mallinfo="none required"
19928else
19929 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019930sed 's/^/| /' conftest.$ac_ext >&5
19931
John Criswell7a73b802003-06-30 21:59:07 +000019932fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019933rm -f conftest.err conftest.$ac_objext \
19934 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019935if test "$ac_cv_search_mallinfo" = no; then
19936 for ac_lib in malloc; do
19937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19938 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019939/* confdefs.h. */
19940_ACEOF
19941cat confdefs.h >>conftest.$ac_ext
19942cat >>conftest.$ac_ext <<_ACEOF
19943/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019944
19945/* Override any gcc2 internal prototype to avoid an error. */
19946#ifdef __cplusplus
19947extern "C"
19948#endif
19949/* We use char because int might match the return type of a gcc2
19950 builtin and then its argument prototype would still apply. */
19951char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019952int
19953main ()
19954{
19955mallinfo ();
19956 ;
19957 return 0;
19958}
19959_ACEOF
19960rm -f conftest.$ac_objext conftest$ac_exeext
19961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019962 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019963 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019964 grep -v '^ *+' conftest.er1 >conftest.err
19965 rm -f conftest.er1
19966 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019969 { ac_try='test -z "$ac_c_werror_flag"
19970 || test ! -s conftest.err'
19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972 (eval $ac_try) 2>&5
19973 ac_status=$?
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); }; } &&
19976 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; }; then
19982 ac_cv_search_mallinfo="-l$ac_lib"
19983break
19984else
19985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019986sed 's/^/| /' conftest.$ac_ext >&5
19987
John Criswell7a73b802003-06-30 21:59:07 +000019988fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019989rm -f conftest.err conftest.$ac_objext \
19990 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019991 done
19992fi
19993LIBS=$ac_func_search_save_LIBS
19994fi
19995echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19996echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19997if test "$ac_cv_search_mallinfo" != no; then
19998 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019999
20000cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020001#define HAVE_MALLINFO 1
20002_ACEOF
20003
20004fi
20005
20006
Brian Gaeke5f268f72003-12-05 19:29:01 +000020007echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
20008echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
20009if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20011else
20012 ac_func_search_save_LIBS=$LIBS
20013ac_cv_search_pthread_mutex_lock=no
20014cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000020015/* confdefs.h. */
20016_ACEOF
20017cat confdefs.h >>conftest.$ac_ext
20018cat >>conftest.$ac_ext <<_ACEOF
20019/* end confdefs.h. */
20020
20021/* Override any gcc2 internal prototype to avoid an error. */
20022#ifdef __cplusplus
20023extern "C"
20024#endif
20025/* We use char because int might match the return type of a gcc2
20026 builtin and then its argument prototype would still apply. */
20027char pthread_mutex_lock ();
20028int
20029main ()
20030{
20031pthread_mutex_lock ();
20032 ;
20033 return 0;
20034}
20035_ACEOF
20036rm -f conftest.$ac_objext conftest$ac_exeext
20037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020038 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000020039 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000020043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020045 { ac_try='test -z "$ac_c_werror_flag"
20046 || test ! -s conftest.err'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000020053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_cv_search_pthread_mutex_lock="none required"
20059else
20060 echo "$as_me: failed program was:" >&5
20061sed 's/^/| /' conftest.$ac_ext >&5
20062
20063fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020064rm -f conftest.err conftest.$ac_objext \
20065 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000020066if test "$ac_cv_search_pthread_mutex_lock" = no; then
20067 for ac_lib in pthread; do
20068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20069 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000020070/* confdefs.h. */
20071_ACEOF
20072cat confdefs.h >>conftest.$ac_ext
20073cat >>conftest.$ac_ext <<_ACEOF
20074/* end confdefs.h. */
20075
20076/* Override any gcc2 internal prototype to avoid an error. */
20077#ifdef __cplusplus
20078extern "C"
20079#endif
20080/* We use char because int might match the return type of a gcc2
20081 builtin and then its argument prototype would still apply. */
20082char pthread_mutex_lock ();
20083int
20084main ()
20085{
20086pthread_mutex_lock ();
20087 ;
20088 return 0;
20089}
20090_ACEOF
20091rm -f conftest.$ac_objext conftest$ac_exeext
20092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020093 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000020094 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000020098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020100 { ac_try='test -z "$ac_c_werror_flag"
20101 || test ! -s conftest.err'
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; } &&
20107 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000020108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
20114break
20115else
20116 echo "$as_me: failed program was:" >&5
20117sed 's/^/| /' conftest.$ac_ext >&5
20118
20119fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020120rm -f conftest.err conftest.$ac_objext \
20121 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000020122 done
20123fi
20124LIBS=$ac_func_search_save_LIBS
20125fi
20126echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20127echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20128if test "$ac_cv_search_pthread_mutex_lock" != no; then
20129 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000020130
John Criswell40468462004-09-24 21:19:06 +000020131cat >>confdefs.h <<\_ACEOF
20132#define HAVE_PTHREAD_MUTEX_LOCK 1
20133_ACEOF
20134
20135fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000020136
Brian Gaekec9a410c2004-02-23 21:30:37 +000020137
John Criswell7a73b802003-06-30 21:59:07 +000020138echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20139echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20140if test "${ac_cv_header_stdc+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20142else
20143 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020144/* confdefs.h. */
20145_ACEOF
20146cat confdefs.h >>conftest.$ac_ext
20147cat >>conftest.$ac_ext <<_ACEOF
20148/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020149#include <stdlib.h>
20150#include <stdarg.h>
20151#include <string.h>
20152#include <float.h>
20153
John Criswell0c38eaf2003-09-10 15:17:25 +000020154int
20155main ()
20156{
20157
20158 ;
20159 return 0;
20160}
John Criswell7a73b802003-06-30 21:59:07 +000020161_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020162rm -f conftest.$ac_objext
20163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020164 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020165 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020170 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020171 { ac_try='test -z "$ac_c_werror_flag"
20172 || test ! -s conftest.err'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; } &&
20178 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000020179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020184 ac_cv_header_stdc=yes
20185else
20186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020187sed 's/^/| /' conftest.$ac_ext >&5
20188
20189ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000020190fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020192
20193if test $ac_cv_header_stdc = yes; then
20194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20195 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020196/* confdefs.h. */
20197_ACEOF
20198cat confdefs.h >>conftest.$ac_ext
20199cat >>conftest.$ac_ext <<_ACEOF
20200/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020201#include <string.h>
20202
20203_ACEOF
20204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020205 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020206 :
20207else
20208 ac_cv_header_stdc=no
20209fi
20210rm -f conftest*
20211
20212fi
20213
20214if test $ac_cv_header_stdc = yes; then
20215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20216 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020217/* confdefs.h. */
20218_ACEOF
20219cat confdefs.h >>conftest.$ac_ext
20220cat >>conftest.$ac_ext <<_ACEOF
20221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020222#include <stdlib.h>
20223
20224_ACEOF
20225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020226 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020227 :
20228else
20229 ac_cv_header_stdc=no
20230fi
20231rm -f conftest*
20232
20233fi
20234
20235if test $ac_cv_header_stdc = yes; then
20236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20237 if test "$cross_compiling" = yes; then
20238 :
20239else
20240 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020241/* confdefs.h. */
20242_ACEOF
20243cat confdefs.h >>conftest.$ac_ext
20244cat >>conftest.$ac_ext <<_ACEOF
20245/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020246#include <ctype.h>
20247#if ((' ' & 0x0FF) == 0x020)
20248# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20249# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20250#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020251# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020252 (('a' <= (c) && (c) <= 'i') \
20253 || ('j' <= (c) && (c) <= 'r') \
20254 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000020255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20256#endif
20257
20258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20259int
20260main ()
20261{
20262 int i;
20263 for (i = 0; i < 256; i++)
20264 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000020265 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000020266 exit(2);
20267 exit (0);
20268}
20269_ACEOF
20270rm -f conftest$ac_exeext
20271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20272 (eval $ac_link) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20278 ac_status=$?
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; }; then
20281 :
20282else
20283 echo "$as_me: program exited with status $ac_status" >&5
20284echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020285sed 's/^/| /' conftest.$ac_ext >&5
20286
John Criswell7a73b802003-06-30 21:59:07 +000020287( exit $ac_status )
20288ac_cv_header_stdc=no
20289fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020290rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020291fi
20292fi
20293fi
20294echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20295echo "${ECHO_T}$ac_cv_header_stdc" >&6
20296if test $ac_cv_header_stdc = yes; then
20297
20298cat >>confdefs.h <<\_ACEOF
20299#define STDC_HEADERS 1
20300_ACEOF
20301
20302fi
20303
20304echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20305echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20306if test "${ac_cv_header_sys_wait_h+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20308else
20309 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020310/* confdefs.h. */
20311_ACEOF
20312cat confdefs.h >>conftest.$ac_ext
20313cat >>conftest.$ac_ext <<_ACEOF
20314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020315#include <sys/types.h>
20316#include <sys/wait.h>
20317#ifndef WEXITSTATUS
20318# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20319#endif
20320#ifndef WIFEXITED
20321# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20322#endif
20323
John Criswell7a73b802003-06-30 21:59:07 +000020324int
20325main ()
20326{
20327 int s;
20328 wait (&s);
20329 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20330 ;
20331 return 0;
20332}
20333_ACEOF
20334rm -f conftest.$ac_objext
20335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020336 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020337 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020343 { ac_try='test -z "$ac_c_werror_flag"
20344 || test ! -s conftest.err'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; } &&
20350 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 ac_cv_header_sys_wait_h=yes
20357else
20358 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020359sed 's/^/| /' conftest.$ac_ext >&5
20360
John Criswell7a73b802003-06-30 21:59:07 +000020361ac_cv_header_sys_wait_h=no
20362fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020364fi
20365echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20366echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20367if test $ac_cv_header_sys_wait_h = yes; then
20368
20369cat >>confdefs.h <<\_ACEOF
20370#define HAVE_SYS_WAIT_H 1
20371_ACEOF
20372
20373fi
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
Brian Gaeke26be9c52004-01-13 06:43:16 +000020384
Brian Gaekef5261472004-02-20 06:40:57 +000020385
John Criswellb2815e02004-05-27 20:40:39 +000020386
20387for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
John Criswell7a73b802003-06-30 21:59:07 +000020388do
20389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20390if eval "test \"\${$as_ac_Header+set}\" = set"; then
20391 echo "$as_me:$LINENO: checking for $ac_header" >&5
20392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20393if eval "test \"\${$as_ac_Header+set}\" = set"; then
20394 echo $ECHO_N "(cached) $ECHO_C" >&6
20395fi
20396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20398else
20399 # Is the header compilable?
20400echo "$as_me:$LINENO: checking $ac_header usability" >&5
20401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20402cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020403/* confdefs.h. */
20404_ACEOF
20405cat confdefs.h >>conftest.$ac_ext
20406cat >>conftest.$ac_ext <<_ACEOF
20407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020408$ac_includes_default
20409#include <$ac_header>
20410_ACEOF
20411rm -f conftest.$ac_objext
20412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020413 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020415 grep -v '^ *+' conftest.er1 >conftest.err
20416 rm -f conftest.er1
20417 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020420 { ac_try='test -z "$ac_c_werror_flag"
20421 || test ! -s conftest.err'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; } &&
20427 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
20433 ac_header_compiler=yes
20434else
20435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020436sed 's/^/| /' conftest.$ac_ext >&5
20437
John Criswell7a73b802003-06-30 21:59:07 +000020438ac_header_compiler=no
20439fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020441echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20442echo "${ECHO_T}$ac_header_compiler" >&6
20443
20444# Is the header present?
20445echo "$as_me:$LINENO: checking $ac_header presence" >&5
20446echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20447cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020448/* confdefs.h. */
20449_ACEOF
20450cat confdefs.h >>conftest.$ac_ext
20451cat >>conftest.$ac_ext <<_ACEOF
20452/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020453#include <$ac_header>
20454_ACEOF
20455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20457 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000020458 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000020459 rm -f conftest.er1
20460 cat conftest.err >&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } >/dev/null; then
20463 if test -s conftest.err; then
20464 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000020466 else
20467 ac_cpp_err=
20468 fi
20469else
20470 ac_cpp_err=yes
20471fi
20472if test -z "$ac_cpp_err"; then
20473 ac_header_preproc=yes
20474else
20475 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020476sed 's/^/| /' conftest.$ac_ext >&5
20477
John Criswell7a73b802003-06-30 21:59:07 +000020478 ac_header_preproc=no
20479fi
20480rm -f conftest.err conftest.$ac_ext
20481echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20482echo "${ECHO_T}$ac_header_preproc" >&6
20483
20484# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20486 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000020487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20488echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20490echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20491 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020492 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020493 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20495echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20497echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20499echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20501echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20505echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020506 (
20507 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020508## ----------------------------------- ##
20509## Report this to llvmbugs@cs.uiuc.edu ##
20510## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000020511_ASBOX
20512 ) |
20513 sed "s/^/$as_me: WARNING: /" >&2
20514 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020515esac
20516echo "$as_me:$LINENO: checking for $ac_header" >&5
20517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20518if eval "test \"\${$as_ac_Header+set}\" = set"; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20520else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020521 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000020522fi
20523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20525
20526fi
20527if test `eval echo '${'$as_ac_Header'}'` = yes; then
20528 cat >>confdefs.h <<_ACEOF
20529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20530_ACEOF
20531
20532fi
20533
20534done
20535
20536
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020537if test "${ac_cv_header_sys_types_h+set}" = set; then
20538 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20539echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20540if test "${ac_cv_header_sys_types_h+set}" = set; then
20541 echo $ECHO_N "(cached) $ECHO_C" >&6
20542fi
20543echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20544echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20545else
20546 # Is the header compilable?
20547echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20548echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20549cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020550/* confdefs.h. */
20551_ACEOF
20552cat confdefs.h >>conftest.$ac_ext
20553cat >>conftest.$ac_ext <<_ACEOF
20554/* end confdefs.h. */
20555$ac_includes_default
20556#include <sys/types.h>
20557_ACEOF
20558rm -f conftest.$ac_objext
20559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020560 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020561 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020562 grep -v '^ *+' conftest.er1 >conftest.err
20563 rm -f conftest.er1
20564 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020567 { ac_try='test -z "$ac_c_werror_flag"
20568 || test ! -s conftest.err'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; } &&
20574 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20577 ac_status=$?
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20580 ac_header_compiler=yes
20581else
20582 echo "$as_me: failed program was:" >&5
20583sed 's/^/| /' conftest.$ac_ext >&5
20584
20585ac_header_compiler=no
20586fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020588echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20589echo "${ECHO_T}$ac_header_compiler" >&6
20590
20591# Is the header present?
20592echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20593echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20594cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020595/* confdefs.h. */
20596_ACEOF
20597cat confdefs.h >>conftest.$ac_ext
20598cat >>conftest.$ac_ext <<_ACEOF
20599/* end confdefs.h. */
20600#include <sys/types.h>
20601_ACEOF
20602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20604 ac_status=$?
20605 grep -v '^ *+' conftest.er1 >conftest.err
20606 rm -f conftest.er1
20607 cat conftest.err >&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } >/dev/null; then
20610 if test -s conftest.err; then
20611 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020613 else
20614 ac_cpp_err=
20615 fi
20616else
20617 ac_cpp_err=yes
20618fi
20619if test -z "$ac_cpp_err"; then
20620 ac_header_preproc=yes
20621else
20622 echo "$as_me: failed program was:" >&5
20623sed 's/^/| /' conftest.$ac_ext >&5
20624
20625 ac_header_preproc=no
20626fi
20627rm -f conftest.err conftest.$ac_ext
20628echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20629echo "${ECHO_T}$ac_header_preproc" >&6
20630
20631# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20633 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020634 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20635echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020636 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20637echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20638 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020639 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020640 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020641 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20642echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020643 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20644echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20646echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20648echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020649 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20650echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020651 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20652echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020653 (
20654 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020655## ----------------------------------- ##
20656## Report this to llvmbugs@cs.uiuc.edu ##
20657## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020658_ASBOX
20659 ) |
20660 sed "s/^/$as_me: WARNING: /" >&2
20661 ;;
20662esac
20663echo "$as_me:$LINENO: checking for sys/types.h" >&5
20664echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20665if test "${ac_cv_header_sys_types_h+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20667else
20668 ac_cv_header_sys_types_h=$ac_header_preproc
20669fi
20670echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20671echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20672
20673fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020674
20675
20676if test "${ac_cv_header_inttypes_h+set}" = set; then
20677 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20678echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20679if test "${ac_cv_header_inttypes_h+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20681fi
20682echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20683echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20684else
20685 # Is the header compilable?
20686echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20687echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20688cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020689/* confdefs.h. */
20690_ACEOF
20691cat confdefs.h >>conftest.$ac_ext
20692cat >>conftest.$ac_ext <<_ACEOF
20693/* end confdefs.h. */
20694$ac_includes_default
20695#include <inttypes.h>
20696_ACEOF
20697rm -f conftest.$ac_objext
20698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020699 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020700 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020706 { ac_try='test -z "$ac_c_werror_flag"
20707 || test ! -s conftest.err'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
20719 ac_header_compiler=yes
20720else
20721 echo "$as_me: failed program was:" >&5
20722sed 's/^/| /' conftest.$ac_ext >&5
20723
20724ac_header_compiler=no
20725fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020727echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20728echo "${ECHO_T}$ac_header_compiler" >&6
20729
20730# Is the header present?
20731echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20732echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20733cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020734/* confdefs.h. */
20735_ACEOF
20736cat confdefs.h >>conftest.$ac_ext
20737cat >>conftest.$ac_ext <<_ACEOF
20738/* end confdefs.h. */
20739#include <inttypes.h>
20740_ACEOF
20741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20743 ac_status=$?
20744 grep -v '^ *+' conftest.er1 >conftest.err
20745 rm -f conftest.er1
20746 cat conftest.err >&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } >/dev/null; then
20749 if test -s conftest.err; then
20750 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020752 else
20753 ac_cpp_err=
20754 fi
20755else
20756 ac_cpp_err=yes
20757fi
20758if test -z "$ac_cpp_err"; then
20759 ac_header_preproc=yes
20760else
20761 echo "$as_me: failed program was:" >&5
20762sed 's/^/| /' conftest.$ac_ext >&5
20763
20764 ac_header_preproc=no
20765fi
20766rm -f conftest.err conftest.$ac_ext
20767echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20768echo "${ECHO_T}$ac_header_preproc" >&6
20769
20770# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20772 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020773 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20774echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020775 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20776echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20777 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020778 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020779 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020780 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20781echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020782 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20783echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20784 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20785echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20787echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020788 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20789echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020790 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20791echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020792 (
20793 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020794## ----------------------------------- ##
20795## Report this to llvmbugs@cs.uiuc.edu ##
20796## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020797_ASBOX
20798 ) |
20799 sed "s/^/$as_me: WARNING: /" >&2
20800 ;;
20801esac
20802echo "$as_me:$LINENO: checking for inttypes.h" >&5
20803echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20804if test "${ac_cv_header_inttypes_h+set}" = set; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
20806else
20807 ac_cv_header_inttypes_h=$ac_header_preproc
20808fi
20809echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20810echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20811
20812fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020813
20814
John Criswell7ed43ad2004-07-19 16:12:29 +000020815if test "${ac_cv_header_stdint_h+set}" = set; then
20816 echo "$as_me:$LINENO: checking for stdint.h" >&5
20817echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20818if test "${ac_cv_header_stdint_h+set}" = set; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20820fi
20821echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20822echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20823else
20824 # Is the header compilable?
20825echo "$as_me:$LINENO: checking stdint.h usability" >&5
20826echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20827cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020828/* confdefs.h. */
20829_ACEOF
20830cat confdefs.h >>conftest.$ac_ext
20831cat >>conftest.$ac_ext <<_ACEOF
20832/* end confdefs.h. */
20833$ac_includes_default
20834#include <stdint.h>
20835_ACEOF
20836rm -f conftest.$ac_objext
20837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020838 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020839 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020840 grep -v '^ *+' conftest.er1 >conftest.err
20841 rm -f conftest.er1
20842 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020845 { ac_try='test -z "$ac_c_werror_flag"
20846 || test ! -s conftest.err'
20847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20848 (eval $ac_try) 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); }; } &&
20852 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ac_header_compiler=yes
20859else
20860 echo "$as_me: failed program was:" >&5
20861sed 's/^/| /' conftest.$ac_ext >&5
20862
20863ac_header_compiler=no
20864fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020866echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20867echo "${ECHO_T}$ac_header_compiler" >&6
20868
20869# Is the header present?
20870echo "$as_me:$LINENO: checking stdint.h presence" >&5
20871echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20872cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020873/* confdefs.h. */
20874_ACEOF
20875cat confdefs.h >>conftest.$ac_ext
20876cat >>conftest.$ac_ext <<_ACEOF
20877/* end confdefs.h. */
20878#include <stdint.h>
20879_ACEOF
20880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20882 ac_status=$?
20883 grep -v '^ *+' conftest.er1 >conftest.err
20884 rm -f conftest.er1
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } >/dev/null; then
20888 if test -s conftest.err; then
20889 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020891 else
20892 ac_cpp_err=
20893 fi
20894else
20895 ac_cpp_err=yes
20896fi
20897if test -z "$ac_cpp_err"; then
20898 ac_header_preproc=yes
20899else
20900 echo "$as_me: failed program was:" >&5
20901sed 's/^/| /' conftest.$ac_ext >&5
20902
20903 ac_header_preproc=no
20904fi
20905rm -f conftest.err conftest.$ac_ext
20906echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20907echo "${ECHO_T}$ac_header_preproc" >&6
20908
20909# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20911 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020912 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20913echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020914 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20915echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20916 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020917 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020918 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020919 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20920echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020921 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20922echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20923 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20924echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20925 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20926echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020927 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20928echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020929 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20930echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020931 (
20932 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020933## ----------------------------------- ##
20934## Report this to llvmbugs@cs.uiuc.edu ##
20935## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020936_ASBOX
20937 ) |
20938 sed "s/^/$as_me: WARNING: /" >&2
20939 ;;
20940esac
20941echo "$as_me:$LINENO: checking for stdint.h" >&5
20942echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20943if test "${ac_cv_header_stdint_h+set}" = set; then
20944 echo $ECHO_N "(cached) $ECHO_C" >&6
20945else
20946 ac_cv_header_stdint_h=$ac_header_preproc
20947fi
20948echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20949echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20950
20951fi
John Criswell7ed43ad2004-07-19 16:12:29 +000020952
20953
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020954
John Criswell7a73b802003-06-30 21:59:07 +000020955echo "$as_me:$LINENO: checking for pid_t" >&5
20956echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20957if test "${ac_cv_type_pid_t+set}" = set; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20959else
20960 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020961/* confdefs.h. */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020966$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020967int
20968main ()
20969{
20970if ((pid_t *) 0)
20971 return 0;
20972if (sizeof (pid_t))
20973 return 0;
20974 ;
20975 return 0;
20976}
20977_ACEOF
20978rm -f conftest.$ac_objext
20979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020980 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020981 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020987 { ac_try='test -z "$ac_c_werror_flag"
20988 || test ! -s conftest.err'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; } &&
20994 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 ac_cv_type_pid_t=yes
21001else
21002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021003sed 's/^/| /' conftest.$ac_ext >&5
21004
John Criswell7a73b802003-06-30 21:59:07 +000021005ac_cv_type_pid_t=no
21006fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021008fi
21009echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21010echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21011if test $ac_cv_type_pid_t = yes; then
21012 :
21013else
21014
21015cat >>confdefs.h <<_ACEOF
21016#define pid_t int
21017_ACEOF
21018
21019fi
21020
21021echo "$as_me:$LINENO: checking for size_t" >&5
21022echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21023if test "${ac_cv_type_size_t+set}" = set; then
21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21025else
21026 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021027/* confdefs.h. */
21028_ACEOF
21029cat confdefs.h >>conftest.$ac_ext
21030cat >>conftest.$ac_ext <<_ACEOF
21031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021032$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000021033int
21034main ()
21035{
21036if ((size_t *) 0)
21037 return 0;
21038if (sizeof (size_t))
21039 return 0;
21040 ;
21041 return 0;
21042}
21043_ACEOF
21044rm -f conftest.$ac_objext
21045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021046 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021047 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021048 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1
21050 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021053 { ac_try='test -z "$ac_c_werror_flag"
21054 || test ! -s conftest.err'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; } &&
21060 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21063 ac_status=$?
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066 ac_cv_type_size_t=yes
21067else
21068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021069sed 's/^/| /' conftest.$ac_ext >&5
21070
John Criswell7a73b802003-06-30 21:59:07 +000021071ac_cv_type_size_t=no
21072fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021074fi
21075echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21076echo "${ECHO_T}$ac_cv_type_size_t" >&6
21077if test $ac_cv_type_size_t = yes; then
21078 :
21079else
21080
21081cat >>confdefs.h <<_ACEOF
21082#define size_t unsigned
21083_ACEOF
21084
21085fi
21086
21087echo "$as_me:$LINENO: checking for int64_t" >&5
21088echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
21089if test "${ac_cv_type_int64_t+set}" = set; then
21090 echo $ECHO_N "(cached) $ECHO_C" >&6
21091else
21092 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021093/* confdefs.h. */
21094_ACEOF
21095cat confdefs.h >>conftest.$ac_ext
21096cat >>conftest.$ac_ext <<_ACEOF
21097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021098$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000021099int
21100main ()
21101{
21102if ((int64_t *) 0)
21103 return 0;
21104if (sizeof (int64_t))
21105 return 0;
21106 ;
21107 return 0;
21108}
21109_ACEOF
21110rm -f conftest.$ac_objext
21111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021112 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021113 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021119 { ac_try='test -z "$ac_c_werror_flag"
21120 || test ! -s conftest.err'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; } &&
21126 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128 (eval $ac_try) 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
21132 ac_cv_type_int64_t=yes
21133else
21134 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021135sed 's/^/| /' conftest.$ac_ext >&5
21136
John Criswell7a73b802003-06-30 21:59:07 +000021137ac_cv_type_int64_t=no
21138fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021140fi
21141echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21142echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21143if test $ac_cv_type_int64_t = yes; then
21144
21145cat >>confdefs.h <<_ACEOF
21146#define HAVE_INT64_T 1
21147_ACEOF
21148
21149
21150else
21151 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21152echo "$as_me: error: Type int64_t required but not found" >&2;}
21153 { (exit 1); exit 1; }; }
21154fi
21155
21156echo "$as_me:$LINENO: checking for uint64_t" >&5
21157echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21158if test "${ac_cv_type_uint64_t+set}" = set; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21160else
21161 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021162/* confdefs.h. */
21163_ACEOF
21164cat confdefs.h >>conftest.$ac_ext
21165cat >>conftest.$ac_ext <<_ACEOF
21166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021167$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000021168int
21169main ()
21170{
21171if ((uint64_t *) 0)
21172 return 0;
21173if (sizeof (uint64_t))
21174 return 0;
21175 ;
21176 return 0;
21177}
21178_ACEOF
21179rm -f conftest.$ac_objext
21180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021181 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021182 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021183 grep -v '^ *+' conftest.er1 >conftest.err
21184 rm -f conftest.er1
21185 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021188 { ac_try='test -z "$ac_c_werror_flag"
21189 || test ! -s conftest.err'
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; } &&
21195 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; }; then
21201 ac_cv_type_uint64_t=yes
21202else
21203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021204sed 's/^/| /' conftest.$ac_ext >&5
21205
John Criswell7a73b802003-06-30 21:59:07 +000021206ac_cv_type_uint64_t=no
21207fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021209fi
21210echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21211echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21212if test $ac_cv_type_uint64_t = yes; then
21213
21214cat >>confdefs.h <<_ACEOF
21215#define HAVE_UINT64_T 1
21216_ACEOF
21217
21218
21219else
Misha Brukmanceca9042004-09-02 23:02:30 +000021220 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000021221echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21222if test "${ac_cv_type_u_int64_t+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21224else
21225 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000021226/* confdefs.h. */
21227_ACEOF
21228cat confdefs.h >>conftest.$ac_ext
21229cat >>conftest.$ac_ext <<_ACEOF
21230/* end confdefs.h. */
21231$ac_includes_default
21232int
21233main ()
21234{
21235if ((u_int64_t *) 0)
21236 return 0;
21237if (sizeof (u_int64_t))
21238 return 0;
21239 ;
21240 return 0;
21241}
21242_ACEOF
21243rm -f conftest.$ac_objext
21244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021245 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000021246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021247 grep -v '^ *+' conftest.er1 >conftest.err
21248 rm -f conftest.er1
21249 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000021250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021252 { ac_try='test -z "$ac_c_werror_flag"
21253 || test ! -s conftest.err'
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; } &&
21259 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000021260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; }; then
21265 ac_cv_type_u_int64_t=yes
21266else
21267 echo "$as_me: failed program was:" >&5
21268sed 's/^/| /' conftest.$ac_ext >&5
21269
21270ac_cv_type_u_int64_t=no
21271fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000021273fi
21274echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21275echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21276if test $ac_cv_type_u_int64_t = yes; then
21277
21278cat >>confdefs.h <<_ACEOF
21279#define HAVE_U_INT64_T 1
21280_ACEOF
21281
21282
Misha Brukmanceca9042004-09-02 23:02:30 +000021283else
21284 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21285echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21286 { (exit 1); exit 1; }; }
21287fi
21288
John Criswell679ff312004-09-02 18:44:44 +000021289fi
21290
John Criswell7a73b802003-06-30 21:59:07 +000021291echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21292echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21293if test "${ac_cv_header_time+set}" = set; then
21294 echo $ECHO_N "(cached) $ECHO_C" >&6
21295else
21296 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021297/* confdefs.h. */
21298_ACEOF
21299cat confdefs.h >>conftest.$ac_ext
21300cat >>conftest.$ac_ext <<_ACEOF
21301/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021302#include <sys/types.h>
21303#include <sys/time.h>
21304#include <time.h>
21305
John Criswell7a73b802003-06-30 21:59:07 +000021306int
21307main ()
21308{
21309if ((struct tm *) 0)
21310return 0;
21311 ;
21312 return 0;
21313}
21314_ACEOF
21315rm -f conftest.$ac_objext
21316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021317 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021318 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021324 { ac_try='test -z "$ac_c_werror_flag"
21325 || test ! -s conftest.err'
21326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327 (eval $ac_try) 2>&5
21328 ac_status=$?
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; } &&
21331 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; }; then
21337 ac_cv_header_time=yes
21338else
21339 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021340sed 's/^/| /' conftest.$ac_ext >&5
21341
John Criswell7a73b802003-06-30 21:59:07 +000021342ac_cv_header_time=no
21343fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021345fi
21346echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21347echo "${ECHO_T}$ac_cv_header_time" >&6
21348if test $ac_cv_header_time = yes; then
21349
21350cat >>confdefs.h <<\_ACEOF
21351#define TIME_WITH_SYS_TIME 1
21352_ACEOF
21353
21354fi
21355
21356echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21357echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21358if test "${ac_cv_struct_tm+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360else
21361 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021362/* confdefs.h. */
21363_ACEOF
21364cat confdefs.h >>conftest.$ac_ext
21365cat >>conftest.$ac_ext <<_ACEOF
21366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021367#include <sys/types.h>
21368#include <time.h>
21369
John Criswell7a73b802003-06-30 21:59:07 +000021370int
21371main ()
21372{
21373struct tm *tp; tp->tm_sec;
21374 ;
21375 return 0;
21376}
21377_ACEOF
21378rm -f conftest.$ac_objext
21379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021380 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021387 { ac_try='test -z "$ac_c_werror_flag"
21388 || test ! -s conftest.err'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21391 ac_status=$?
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; } &&
21394 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; }; then
21400 ac_cv_struct_tm=time.h
21401else
21402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021403sed 's/^/| /' conftest.$ac_ext >&5
21404
John Criswell7a73b802003-06-30 21:59:07 +000021405ac_cv_struct_tm=sys/time.h
21406fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021408fi
21409echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21410echo "${ECHO_T}$ac_cv_struct_tm" >&6
21411if test $ac_cv_struct_tm = sys/time.h; then
21412
21413cat >>confdefs.h <<\_ACEOF
21414#define TM_IN_SYS_TIME 1
21415_ACEOF
21416
21417fi
21418
21419
John Criswella0137d32003-10-13 16:22:01 +000021420
Reid Spencer2706f8c2004-09-19 23:53:36 +000021421 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000021422echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000021423 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000021424ac_cpp='$CPP $CPPFLAGS'
21425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21427ac_compiler_gnu=$ac_cv_c_compiler_gnu
21428
Reid Spencer2706f8c2004-09-19 23:53:36 +000021429 if test "$cross_compiling" = yes; then
21430 ac_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000021431else
21432 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000021433
21434 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000021435_ACEOF
21436cat confdefs.h >>conftest.$ac_ext
21437cat >>conftest.$ac_ext <<_ACEOF
21438/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000021439
John Criswella0137d32003-10-13 16:22:01 +000021440#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000021441#include <stdlib.h>
21442
John Criswella0137d32003-10-13 16:22:01 +000021443int
21444main ()
21445{
21446
Reid Spencer2706f8c2004-09-19 23:53:36 +000021447volatile double A, B;
21448char Buffer[100];
21449A = 1;
21450A /= 10.0;
21451sprintf(Buffer, "%a", A);
21452B = atof(Buffer);
21453if (A != B)
21454 return (1);
21455if (A != 0x1.999999999999ap-4)
21456 return (1);
21457return (0);
John Criswella0137d32003-10-13 16:22:01 +000021458 ;
21459 return 0;
21460}
21461_ACEOF
21462rm -f conftest$ac_exeext
21463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21464 (eval $ac_link) 2>&5
21465 ac_status=$?
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469 (eval $ac_try) 2>&5
21470 ac_status=$?
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; }; then
21473 ac_c_printf_a=yes
21474else
21475 echo "$as_me: program exited with status $ac_status" >&5
21476echo "$as_me: failed program was:" >&5
21477sed 's/^/| /' conftest.$ac_ext >&5
21478
21479( exit $ac_status )
21480ac_c_printf_a=no
21481fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021482rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000021483fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021484 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000021485ac_cpp='$CPP $CPPFLAGS'
21486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488ac_compiler_gnu=$ac_cv_c_compiler_gnu
21489
Reid Spencer2706f8c2004-09-19 23:53:36 +000021490 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000021491echo "${ECHO_T}$ac_c_printf_a" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000021492 if test "$ac_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000021493
21494cat >>confdefs.h <<\_ACEOF
21495#define HAVE_PRINTF_A 1
21496_ACEOF
21497
Reid Spencer2706f8c2004-09-19 23:53:36 +000021498 fi
John Criswella0137d32003-10-13 16:22:01 +000021499
21500
John Criswell0021c312004-02-13 21:57:29 +000021501echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21502echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21503if test "${ac_cv_c_bigendian+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21505else
21506 # See if sys/param.h defines the BYTE_ORDER macro.
21507cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021508/* confdefs.h. */
21509_ACEOF
21510cat confdefs.h >>conftest.$ac_ext
21511cat >>conftest.$ac_ext <<_ACEOF
21512/* end confdefs.h. */
21513#include <sys/types.h>
21514#include <sys/param.h>
21515
21516int
21517main ()
21518{
21519#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21520 bogus endian macros
21521#endif
21522
21523 ;
21524 return 0;
21525}
21526_ACEOF
21527rm -f conftest.$ac_objext
21528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021529 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021530 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021531 grep -v '^ *+' conftest.er1 >conftest.err
21532 rm -f conftest.er1
21533 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021536 { ac_try='test -z "$ac_c_werror_flag"
21537 || test ! -s conftest.err'
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; } &&
21543 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21546 ac_status=$?
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; }; then
21549 # It does; now see whether it defined to BIG_ENDIAN or not.
21550cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021551/* confdefs.h. */
21552_ACEOF
21553cat confdefs.h >>conftest.$ac_ext
21554cat >>conftest.$ac_ext <<_ACEOF
21555/* end confdefs.h. */
21556#include <sys/types.h>
21557#include <sys/param.h>
21558
21559int
21560main ()
21561{
21562#if BYTE_ORDER != BIG_ENDIAN
21563 not big endian
21564#endif
21565
21566 ;
21567 return 0;
21568}
21569_ACEOF
21570rm -f conftest.$ac_objext
21571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021572 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021573 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021574 grep -v '^ *+' conftest.er1 >conftest.err
21575 rm -f conftest.er1
21576 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021579 { ac_try='test -z "$ac_c_werror_flag"
21580 || test ! -s conftest.err'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21583 ac_status=$?
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; } &&
21586 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21589 ac_status=$?
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21592 ac_cv_c_bigendian=yes
21593else
21594 echo "$as_me: failed program was:" >&5
21595sed 's/^/| /' conftest.$ac_ext >&5
21596
21597ac_cv_c_bigendian=no
21598fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021600else
21601 echo "$as_me: failed program was:" >&5
21602sed 's/^/| /' conftest.$ac_ext >&5
21603
21604# It does not; compile a test program.
21605if test "$cross_compiling" = yes; then
21606 # try to guess the endianness by grepping values into an object file
21607 ac_cv_c_bigendian=unknown
21608 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021609/* confdefs.h. */
21610_ACEOF
21611cat confdefs.h >>conftest.$ac_ext
21612cat >>conftest.$ac_ext <<_ACEOF
21613/* end confdefs.h. */
21614short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21615short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21616void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21617short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21618short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21619void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21620int
21621main ()
21622{
21623 _ascii (); _ebcdic ();
21624 ;
21625 return 0;
21626}
21627_ACEOF
21628rm -f conftest.$ac_objext
21629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021630 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021631 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021632 grep -v '^ *+' conftest.er1 >conftest.err
21633 rm -f conftest.er1
21634 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021637 { ac_try='test -z "$ac_c_werror_flag"
21638 || test ! -s conftest.err'
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; } &&
21644 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21651 ac_cv_c_bigendian=yes
21652fi
21653if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21654 if test "$ac_cv_c_bigendian" = unknown; then
21655 ac_cv_c_bigendian=no
21656 else
21657 # finding both strings is unlikely to happen, but who knows?
21658 ac_cv_c_bigendian=unknown
21659 fi
21660fi
21661else
21662 echo "$as_me: failed program was:" >&5
21663sed 's/^/| /' conftest.$ac_ext >&5
21664
21665fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021667else
21668 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021669/* confdefs.h. */
21670_ACEOF
21671cat confdefs.h >>conftest.$ac_ext
21672cat >>conftest.$ac_ext <<_ACEOF
21673/* end confdefs.h. */
21674int
21675main ()
21676{
21677 /* Are we little or big endian? From Harbison&Steele. */
21678 union
21679 {
21680 long l;
21681 char c[sizeof (long)];
21682 } u;
21683 u.l = 1;
21684 exit (u.c[sizeof (long) - 1] == 1);
21685}
21686_ACEOF
21687rm -f conftest$ac_exeext
21688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21689 (eval $ac_link) 2>&5
21690 ac_status=$?
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21698 ac_cv_c_bigendian=no
21699else
21700 echo "$as_me: program exited with status $ac_status" >&5
21701echo "$as_me: failed program was:" >&5
21702sed 's/^/| /' conftest.$ac_ext >&5
21703
21704( exit $ac_status )
21705ac_cv_c_bigendian=yes
21706fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021707rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021708fi
21709fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021711fi
21712echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21713echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21714case $ac_cv_c_bigendian in
21715 yes)
21716 ENDIAN=big
21717 ;;
21718 no)
21719 ENDIAN=little
21720 ;;
21721 *)
21722 { { echo "$as_me:$LINENO: error: unknown endianness
21723presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21724echo "$as_me: error: unknown endianness
21725presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21726 { (exit 1); exit 1; }; } ;;
21727esac
21728
21729
John Criswell7a73b802003-06-30 21:59:07 +000021730echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21731echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21732if test "${ac_cv_cxx_namespaces+set}" = set; then
21733 echo $ECHO_N "(cached) $ECHO_C" >&6
21734else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021735 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000021736ac_cpp='$CXXCPP $CPPFLAGS'
21737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21740
21741 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021742/* confdefs.h. */
21743_ACEOF
21744cat confdefs.h >>conftest.$ac_ext
21745cat >>conftest.$ac_ext <<_ACEOF
21746/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021747namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000021748int
21749main ()
21750{
21751using namespace Outer::Inner; return i;
21752 ;
21753 return 0;
21754}
21755_ACEOF
21756rm -f conftest.$ac_objext
21757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021758 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021760 grep -v '^ *+' conftest.er1 >conftest.err
21761 rm -f conftest.er1
21762 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021765 { ac_try='test -z "$ac_cxx_werror_flag"
21766 || test ! -s conftest.err'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21769 ac_status=$?
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; } &&
21772 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21775 ac_status=$?
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; }; then
21778 ac_cv_cxx_namespaces=yes
21779else
21780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021781sed 's/^/| /' conftest.$ac_ext >&5
21782
John Criswell7a73b802003-06-30 21:59:07 +000021783ac_cv_cxx_namespaces=no
21784fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021786 ac_ext=c
21787ac_cpp='$CPP $CPPFLAGS'
21788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21790ac_compiler_gnu=$ac_cv_c_compiler_gnu
21791
21792
21793fi
21794echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21795echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21796if test "$ac_cv_cxx_namespaces" = yes; then
21797
21798cat >>confdefs.h <<\_ACEOF
21799#define HAVE_NAMESPACES
21800_ACEOF
21801
21802fi
21803
Brian Gaeke90583492003-11-10 03:06:28 +000021804echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21805echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21806if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021807 echo $ECHO_N "(cached) $ECHO_C" >&6
21808else
21809
John Criswell7a73b802003-06-30 21:59:07 +000021810 ac_ext=cc
21811ac_cpp='$CXXCPP $CPPFLAGS'
21812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21815
21816 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021817/* confdefs.h. */
21818_ACEOF
21819cat confdefs.h >>conftest.$ac_ext
21820cat >>conftest.$ac_ext <<_ACEOF
21821/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021822#include <ext/hash_map>
21823#ifdef HAVE_NAMESPACES
21824using namespace std;
21825#endif
John Criswell7a73b802003-06-30 21:59:07 +000021826int
21827main ()
21828{
Brian Gaeke90583492003-11-10 03:06:28 +000021829hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021830 ;
21831 return 0;
21832}
21833_ACEOF
21834rm -f conftest.$ac_objext
21835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021836 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021837 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021838 grep -v '^ *+' conftest.er1 >conftest.err
21839 rm -f conftest.er1
21840 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021843 { ac_try='test -z "$ac_cxx_werror_flag"
21844 || test ! -s conftest.err'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; } &&
21850 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021856 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021857else
21858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021859sed 's/^/| /' conftest.$ac_ext >&5
21860
Brian Gaeke90583492003-11-10 03:06:28 +000021861ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021862fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021864 ac_ext=c
21865ac_cpp='$CPP $CPPFLAGS'
21866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21868ac_compiler_gnu=$ac_cv_c_compiler_gnu
21869
John Criswell7a73b802003-06-30 21:59:07 +000021870fi
Brian Gaeke90583492003-11-10 03:06:28 +000021871echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21872echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021873 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21874 then
John Criswell9f011862004-09-24 18:28:00 +000021875
21876cat >>confdefs.h <<\_ACEOF
21877#define HAVE_STD_EXT_HASH_MAP 1
21878_ACEOF
21879
21880 else
21881
21882cat >>confdefs.h <<\_ACEOF
21883#define HAVE_STD_EXT_HASH_MAP 0
21884_ACEOF
21885
Brian Gaeke90583492003-11-10 03:06:28 +000021886 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021887
Brian Gaeke90583492003-11-10 03:06:28 +000021888 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21889echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21890if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21892else
21893
Brian Gaeke90583492003-11-10 03:06:28 +000021894 ac_ext=cc
21895ac_cpp='$CXXCPP $CPPFLAGS'
21896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21899
21900 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021901/* confdefs.h. */
21902_ACEOF
21903cat confdefs.h >>conftest.$ac_ext
21904cat >>conftest.$ac_ext <<_ACEOF
21905/* end confdefs.h. */
21906#include <ext/hash_map>
21907#ifdef HAVE_NAMESPACES
21908using namespace __gnu_cxx;
21909#endif
21910int
21911main ()
21912{
21913hash_map<int,int> t;
21914 ;
21915 return 0;
21916}
21917_ACEOF
21918rm -f conftest.$ac_objext
21919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021920 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021921 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021922 grep -v '^ *+' conftest.er1 >conftest.err
21923 rm -f conftest.er1
21924 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021927 { ac_try='test -z "$ac_cxx_werror_flag"
21928 || test ! -s conftest.err'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; } &&
21934 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940 ac_cv_cxx_have_gnu_ext_hash_map=yes
21941else
21942 echo "$as_me: failed program was:" >&5
21943sed 's/^/| /' conftest.$ac_ext >&5
21944
21945ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021946fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021948 ac_ext=c
21949ac_cpp='$CPP $CPPFLAGS'
21950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21952ac_compiler_gnu=$ac_cv_c_compiler_gnu
21953
21954fi
21955echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21956echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021957 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21958 then
John Criswell9f011862004-09-24 18:28:00 +000021959
21960cat >>confdefs.h <<\_ACEOF
21961#define HAVE_GNU_EXT_HASH_MAP 1
21962_ACEOF
21963
21964 else
21965
21966cat >>confdefs.h <<\_ACEOF
21967#define HAVE_GNU_EXT_HASH_MAP 0
21968_ACEOF
21969
Brian Gaeke90583492003-11-10 03:06:28 +000021970 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021971
Brian Gaeke90583492003-11-10 03:06:28 +000021972 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21973echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21974if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21976else
John Criswell7a73b802003-06-30 21:59:07 +000021977
Brian Gaeke90583492003-11-10 03:06:28 +000021978 ac_ext=cc
21979ac_cpp='$CXXCPP $CPPFLAGS'
21980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21983
21984 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021985/* confdefs.h. */
21986_ACEOF
21987cat confdefs.h >>conftest.$ac_ext
21988cat >>conftest.$ac_ext <<_ACEOF
21989/* end confdefs.h. */
21990#include <hash_map>
21991int
21992main ()
21993{
21994hash_map<int,int> t;
21995 ;
21996 return 0;
21997}
21998_ACEOF
21999rm -f conftest.$ac_objext
22000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022001 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000022002 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022003 grep -v '^ *+' conftest.er1 >conftest.err
22004 rm -f conftest.er1
22005 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000022006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022008 { ac_try='test -z "$ac_cxx_werror_flag"
22009 || test ! -s conftest.err'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; } &&
22015 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000022016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22018 ac_status=$?
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 ac_cv_cxx_have_global_hash_map=yes
22022else
22023 echo "$as_me: failed program was:" >&5
22024sed 's/^/| /' conftest.$ac_ext >&5
22025
22026ac_cv_cxx_have_global_hash_map=no
22027fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000022029 ac_ext=c
22030ac_cpp='$CPP $CPPFLAGS'
22031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22033ac_compiler_gnu=$ac_cv_c_compiler_gnu
22034
22035fi
22036echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
22037echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022038 if test "$ac_cv_cxx_have_global_hash_map" = yes
22039 then
John Criswell9f011862004-09-24 18:28:00 +000022040
22041cat >>confdefs.h <<\_ACEOF
22042#define HAVE_GLOBAL_HASH_MAP 1
22043_ACEOF
22044
22045 else
22046
22047cat >>confdefs.h <<\_ACEOF
22048#define HAVE_GLOBAL_HASH_MAP 0
22049_ACEOF
22050
Brian Gaeke90583492003-11-10 03:06:28 +000022051 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022052
Brian Gaeke90583492003-11-10 03:06:28 +000022053echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
22054echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
22055if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000022056 echo $ECHO_N "(cached) $ECHO_C" >&6
22057else
22058
John Criswell7a73b802003-06-30 21:59:07 +000022059 ac_ext=cc
22060ac_cpp='$CXXCPP $CPPFLAGS'
22061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22064
22065 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022066/* confdefs.h. */
22067_ACEOF
22068cat confdefs.h >>conftest.$ac_ext
22069cat >>conftest.$ac_ext <<_ACEOF
22070/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022071#include <ext/hash_set>
22072#ifdef HAVE_NAMESPACES
22073using namespace std;
22074#endif
John Criswell7a73b802003-06-30 21:59:07 +000022075int
22076main ()
22077{
Brian Gaeke90583492003-11-10 03:06:28 +000022078hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000022079 ;
22080 return 0;
22081}
22082_ACEOF
22083rm -f conftest.$ac_objext
22084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022085 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022092 { ac_try='test -z "$ac_cxx_werror_flag"
22093 || test ! -s conftest.err'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22096 ac_status=$?
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; } &&
22099 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101 (eval $ac_try) 2>&5
22102 ac_status=$?
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000022105 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000022106else
22107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022108sed 's/^/| /' conftest.$ac_ext >&5
22109
Brian Gaeke90583492003-11-10 03:06:28 +000022110ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000022111fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000022113 ac_ext=c
22114ac_cpp='$CPP $CPPFLAGS'
22115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22117ac_compiler_gnu=$ac_cv_c_compiler_gnu
22118
22119fi
22120echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22121echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022122 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22123 then
John Criswell9f011862004-09-24 18:28:00 +000022124
22125cat >>confdefs.h <<\_ACEOF
22126#define HAVE_STD_EXT_HASH_SET 1
22127_ACEOF
22128
22129 else
22130
22131cat >>confdefs.h <<\_ACEOF
22132#define HAVE_STD_EXT_HASH_SET 0
22133_ACEOF
22134
Brian Gaeke90583492003-11-10 03:06:28 +000022135 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022136
Brian Gaeke90583492003-11-10 03:06:28 +000022137 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22138echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22139if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22140 echo $ECHO_N "(cached) $ECHO_C" >&6
22141else
22142
Brian Gaeke90583492003-11-10 03:06:28 +000022143 ac_ext=cc
22144ac_cpp='$CXXCPP $CPPFLAGS'
22145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22148
John Criswell7a73b802003-06-30 21:59:07 +000022149 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022150/* confdefs.h. */
22151_ACEOF
22152cat confdefs.h >>conftest.$ac_ext
22153cat >>conftest.$ac_ext <<_ACEOF
22154/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022155#include <ext/hash_set>
22156#ifdef HAVE_NAMESPACES
22157using namespace __gnu_cxx;
22158#endif
John Criswell7a73b802003-06-30 21:59:07 +000022159int
22160main ()
22161{
Brian Gaeke90583492003-11-10 03:06:28 +000022162hash_set<int> t;
22163 ;
22164 return 0;
22165}
22166_ACEOF
22167rm -f conftest.$ac_objext
22168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022169 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000022170 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022171 grep -v '^ *+' conftest.er1 >conftest.err
22172 rm -f conftest.er1
22173 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000022174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022176 { ac_try='test -z "$ac_cxx_werror_flag"
22177 || test ! -s conftest.err'
22178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179 (eval $ac_try) 2>&5
22180 ac_status=$?
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; } &&
22183 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000022184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185 (eval $ac_try) 2>&5
22186 ac_status=$?
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); }; }; then
22189 ac_cv_cxx_have_gnu_ext_hash_set=yes
22190else
22191 echo "$as_me: failed program was:" >&5
22192sed 's/^/| /' conftest.$ac_ext >&5
22193
22194ac_cv_cxx_have_gnu_ext_hash_set=no
22195fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000022197 ac_ext=c
22198ac_cpp='$CPP $CPPFLAGS'
22199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22201ac_compiler_gnu=$ac_cv_c_compiler_gnu
22202
22203fi
22204echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22205echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022206 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22207 then
John Criswell9f011862004-09-24 18:28:00 +000022208
22209cat >>confdefs.h <<\_ACEOF
22210#define HAVE_GNU_EXT_HASH_SET 1
22211_ACEOF
22212
22213 else
22214
22215cat >>confdefs.h <<\_ACEOF
22216#define HAVE_GNU_EXT_HASH_SET 0
22217_ACEOF
22218
Brian Gaeke90583492003-11-10 03:06:28 +000022219 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022220
Brian Gaeke90583492003-11-10 03:06:28 +000022221 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22222echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22223if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22225else
22226
Brian Gaeke90583492003-11-10 03:06:28 +000022227 ac_ext=cc
22228ac_cpp='$CXXCPP $CPPFLAGS'
22229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22232
22233 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000022234/* confdefs.h. */
22235_ACEOF
22236cat confdefs.h >>conftest.$ac_ext
22237cat >>conftest.$ac_ext <<_ACEOF
22238/* end confdefs.h. */
22239#include <hash_set>
22240int
22241main ()
22242{
John Criswell7a73b802003-06-30 21:59:07 +000022243hash_set<int> t; return 0;
22244 ;
22245 return 0;
22246}
22247_ACEOF
22248rm -f conftest.$ac_objext
22249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022250 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022251 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022257 { ac_try='test -z "$ac_cxx_werror_flag"
22258 || test ! -s conftest.err'
22259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22260 (eval $ac_try) 2>&5
22261 ac_status=$?
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); }; } &&
22264 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266 (eval $ac_try) 2>&5
22267 ac_status=$?
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000022270 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000022271else
22272 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022273sed 's/^/| /' conftest.$ac_ext >&5
22274
Brian Gaeke90583492003-11-10 03:06:28 +000022275ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000022276fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022278 ac_ext=c
22279ac_cpp='$CPP $CPPFLAGS'
22280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22282ac_compiler_gnu=$ac_cv_c_compiler_gnu
22283
John Criswell7a73b802003-06-30 21:59:07 +000022284fi
Brian Gaeke90583492003-11-10 03:06:28 +000022285echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22286echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022287 if test "$ac_cv_cxx_have_global_hash_set" = yes
22288 then
John Criswell9f011862004-09-24 18:28:00 +000022289
22290cat >>confdefs.h <<\_ACEOF
22291#define HAVE_GLOBAL_HASH_SET 1
22292_ACEOF
22293
22294 else
22295
22296cat >>confdefs.h <<\_ACEOF
22297#define HAVE_GLOBAL_HASH_SET 0
22298_ACEOF
22299
Brian Gaeke90583492003-11-10 03:06:28 +000022300 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022301
John Criswell7a73b802003-06-30 21:59:07 +000022302echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22303echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22304if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22305 echo $ECHO_N "(cached) $ECHO_C" >&6
22306else
22307
John Criswell7a73b802003-06-30 21:59:07 +000022308 ac_ext=cc
22309ac_cpp='$CXXCPP $CPPFLAGS'
22310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22313
22314 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022315/* confdefs.h. */
22316_ACEOF
22317cat confdefs.h >>conftest.$ac_ext
22318cat >>conftest.$ac_ext <<_ACEOF
22319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022320#include <iterator>
22321#ifdef HAVE_NAMESPACES
22322using namespace std;
22323#endif
John Criswell7a73b802003-06-30 21:59:07 +000022324int
22325main ()
22326{
22327iterator<int,int,int> t; return 0;
22328 ;
22329 return 0;
22330}
22331_ACEOF
22332rm -f conftest.$ac_objext
22333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022334 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022335 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022336 grep -v '^ *+' conftest.er1 >conftest.err
22337 rm -f conftest.er1
22338 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022341 { ac_try='test -z "$ac_cxx_werror_flag"
22342 || test ! -s conftest.err'
22343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344 (eval $ac_try) 2>&5
22345 ac_status=$?
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; } &&
22348 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350 (eval $ac_try) 2>&5
22351 ac_status=$?
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; }; then
22354 ac_cv_cxx_have_std_iterator=yes
22355else
22356 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022357sed 's/^/| /' conftest.$ac_ext >&5
22358
John Criswell7a73b802003-06-30 21:59:07 +000022359ac_cv_cxx_have_std_iterator=no
22360fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022362 ac_ext=c
22363ac_cpp='$CPP $CPPFLAGS'
22364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22366ac_compiler_gnu=$ac_cv_c_compiler_gnu
22367
22368
22369fi
22370echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22371echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022372if test "$ac_cv_cxx_have_std_iterator" = yes
22373then
John Criswell40468462004-09-24 21:19:06 +000022374
22375cat >>confdefs.h <<\_ACEOF
22376#define HAVE_STD_ITERATOR 1
22377_ACEOF
22378
22379else
22380
22381cat >>confdefs.h <<\_ACEOF
22382#define HAVE_STD_ITERATOR 0
22383_ACEOF
22384
John Criswell7a73b802003-06-30 21:59:07 +000022385fi
22386
22387echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22388echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22389if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22391else
22392
John Criswell7a73b802003-06-30 21:59:07 +000022393 ac_ext=cc
22394ac_cpp='$CXXCPP $CPPFLAGS'
22395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22398
22399 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022400/* confdefs.h. */
22401_ACEOF
22402cat confdefs.h >>conftest.$ac_ext
22403cat >>conftest.$ac_ext <<_ACEOF
22404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022405#include <iterator>
22406#ifdef HAVE_NAMESPACES
22407using namespace std;
22408#endif
John Criswell7a73b802003-06-30 21:59:07 +000022409int
22410main ()
22411{
John Criswellc78022e2003-07-29 19:11:58 +000022412bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000022413 ;
22414 return 0;
22415}
22416_ACEOF
22417rm -f conftest.$ac_objext
22418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022419 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022420 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022421 grep -v '^ *+' conftest.er1 >conftest.err
22422 rm -f conftest.er1
22423 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022426 { ac_try='test -z "$ac_cxx_werror_flag"
22427 || test ! -s conftest.err'
22428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429 (eval $ac_try) 2>&5
22430 ac_status=$?
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; } &&
22433 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; }; then
22439 ac_cv_cxx_have_bi_iterator=yes
22440else
22441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022442sed 's/^/| /' conftest.$ac_ext >&5
22443
John Criswell7a73b802003-06-30 21:59:07 +000022444ac_cv_cxx_have_bi_iterator=no
22445fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022447 ac_ext=c
22448ac_cpp='$CPP $CPPFLAGS'
22449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451ac_compiler_gnu=$ac_cv_c_compiler_gnu
22452
22453
22454fi
22455echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22456echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022457if test "$ac_cv_cxx_have_bi_iterator" = yes
22458then
John Criswell40468462004-09-24 21:19:06 +000022459
22460cat >>confdefs.h <<\_ACEOF
22461#define HAVE_BI_ITERATOR 1
22462_ACEOF
22463
22464else
22465
22466cat >>confdefs.h <<\_ACEOF
22467#define HAVE_BI_ITERATOR 0
22468_ACEOF
22469
John Criswell7a73b802003-06-30 21:59:07 +000022470fi
22471
22472echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22473echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22474if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22476else
22477
John Criswell7a73b802003-06-30 21:59:07 +000022478 ac_ext=cc
22479ac_cpp='$CXXCPP $CPPFLAGS'
22480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22483
22484 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022485/* confdefs.h. */
22486_ACEOF
22487cat confdefs.h >>conftest.$ac_ext
22488cat >>conftest.$ac_ext <<_ACEOF
22489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022490#include <iterator>
22491#ifdef HAVE_NAMESPACES
22492using namespace std;
22493#endif
John Criswell7a73b802003-06-30 21:59:07 +000022494int
22495main ()
22496{
John Criswellc78022e2003-07-29 19:11:58 +000022497forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000022498 ;
22499 return 0;
22500}
22501_ACEOF
22502rm -f conftest.$ac_objext
22503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022504 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022505 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022506 grep -v '^ *+' conftest.er1 >conftest.err
22507 rm -f conftest.er1
22508 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022511 { ac_try='test -z "$ac_cxx_werror_flag"
22512 || test ! -s conftest.err'
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22515 ac_status=$?
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; } &&
22518 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520 (eval $ac_try) 2>&5
22521 ac_status=$?
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; }; then
22524 ac_cv_cxx_have_fwd_iterator=yes
22525else
22526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022527sed 's/^/| /' conftest.$ac_ext >&5
22528
John Criswell7a73b802003-06-30 21:59:07 +000022529ac_cv_cxx_have_fwd_iterator=no
22530fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022532 ac_ext=c
22533ac_cpp='$CPP $CPPFLAGS'
22534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22536ac_compiler_gnu=$ac_cv_c_compiler_gnu
22537
22538
22539fi
22540echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22541echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022542if test "$ac_cv_cxx_have_fwd_iterator" = yes
22543then
John Criswell40468462004-09-24 21:19:06 +000022544
22545cat >>confdefs.h <<\_ACEOF
22546#define HAVE_FWD_ITERATOR 1
22547_ACEOF
22548
22549else
22550
22551cat >>confdefs.h <<\_ACEOF
22552#define HAVE_FWD_ITERATOR 0
22553_ACEOF
22554
John Criswell7a73b802003-06-30 21:59:07 +000022555fi
22556
22557
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022558
22559echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22560echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22561if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22563else
22564 ac_ext=cc
22565ac_cpp='$CXXCPP $CPPFLAGS'
22566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22569
Reid Spencerabec8f92004-10-27 23:03:44 +000022570 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022571/* confdefs.h. */
22572_ACEOF
22573cat confdefs.h >>conftest.$ac_ext
22574cat >>conftest.$ac_ext <<_ACEOF
22575/* end confdefs.h. */
22576#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000022577int
22578main ()
22579{
22580float f; isnan(f);
22581 ;
22582 return 0;
22583}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022584_ACEOF
22585rm -f conftest.$ac_objext
22586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022587 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022588 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022589 grep -v '^ *+' conftest.er1 >conftest.err
22590 rm -f conftest.er1
22591 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022594 { ac_try='test -z "$ac_cxx_werror_flag"
22595 || test ! -s conftest.err'
22596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597 (eval $ac_try) 2>&5
22598 ac_status=$?
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; } &&
22601 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603 (eval $ac_try) 2>&5
22604 ac_status=$?
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); }; }; then
22607 ac_cv_func_isnan_in_math_h=yes
22608else
22609 echo "$as_me: failed program was:" >&5
22610sed 's/^/| /' conftest.$ac_ext >&5
22611
22612ac_cv_func_isnan_in_math_h=no
22613fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022615 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022616ac_cpp='$CPP $CPPFLAGS'
22617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22619ac_compiler_gnu=$ac_cv_c_compiler_gnu
22620
22621fi
22622echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22623echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022624
22625
22626if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022627
22628cat >>confdefs.h <<\_ACEOF
22629#define HAVE_ISNAN_IN_MATH_H 1
22630_ACEOF
22631
Reid Spencerabec8f92004-10-27 23:03:44 +000022632fi
22633
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022634echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22635echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22636if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
22638else
22639 ac_ext=cc
22640ac_cpp='$CXXCPP $CPPFLAGS'
22641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22644
Reid Spencerabec8f92004-10-27 23:03:44 +000022645 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022646/* confdefs.h. */
22647_ACEOF
22648cat confdefs.h >>conftest.$ac_ext
22649cat >>conftest.$ac_ext <<_ACEOF
22650/* end confdefs.h. */
22651#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000022652int
22653main ()
22654{
22655float f; isnan(f);
22656 ;
22657 return 0;
22658}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022659_ACEOF
22660rm -f conftest.$ac_objext
22661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022662 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022664 grep -v '^ *+' conftest.er1 >conftest.err
22665 rm -f conftest.er1
22666 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022669 { ac_try='test -z "$ac_cxx_werror_flag"
22670 || test ! -s conftest.err'
22671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672 (eval $ac_try) 2>&5
22673 ac_status=$?
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; } &&
22676 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678 (eval $ac_try) 2>&5
22679 ac_status=$?
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; }; then
22682 ac_cv_func_isnan_in_cmath=yes
22683else
22684 echo "$as_me: failed program was:" >&5
22685sed 's/^/| /' conftest.$ac_ext >&5
22686
22687ac_cv_func_isnan_in_cmath=no
22688fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022690 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022691ac_cpp='$CPP $CPPFLAGS'
22692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22694ac_compiler_gnu=$ac_cv_c_compiler_gnu
22695
22696fi
22697echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22698echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022699
22700if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022701
22702cat >>confdefs.h <<\_ACEOF
22703#define HAVE_ISNAN_IN_CMATH 1
22704_ACEOF
22705
Reid Spencerabec8f92004-10-27 23:03:44 +000022706fi
22707
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022708echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22709echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22710if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22711 echo $ECHO_N "(cached) $ECHO_C" >&6
22712else
22713 ac_ext=cc
22714ac_cpp='$CXXCPP $CPPFLAGS'
22715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22718
Reid Spencerabec8f92004-10-27 23:03:44 +000022719 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022720/* confdefs.h. */
22721_ACEOF
22722cat confdefs.h >>conftest.$ac_ext
22723cat >>conftest.$ac_ext <<_ACEOF
22724/* end confdefs.h. */
22725#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000022726int
22727main ()
22728{
22729float f; std::isnan(f);
22730 ;
22731 return 0;
22732}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022733_ACEOF
22734rm -f conftest.$ac_objext
22735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022736 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022738 grep -v '^ *+' conftest.er1 >conftest.err
22739 rm -f conftest.er1
22740 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022743 { ac_try='test -z "$ac_cxx_werror_flag"
22744 || test ! -s conftest.err'
22745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22747 ac_status=$?
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); }; } &&
22750 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22753 ac_status=$?
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 ac_cv_func_std_isnan_in_cmath=yes
22757else
22758 echo "$as_me: failed program was:" >&5
22759sed 's/^/| /' conftest.$ac_ext >&5
22760
22761ac_cv_func_std_isnan_in_cmath=no
22762fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022764 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022765ac_cpp='$CPP $CPPFLAGS'
22766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22768ac_compiler_gnu=$ac_cv_c_compiler_gnu
22769
22770fi
22771echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22772echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022773
22774if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022775
22776cat >>confdefs.h <<\_ACEOF
22777#define HAVE_STD_ISNAN_IN_CMATH 1
22778_ACEOF
22779
Reid Spencerabec8f92004-10-27 23:03:44 +000022780fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022781
22782
Brian Gaeke52a551d2004-07-21 03:14:12 +000022783echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22784echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22785if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22786 echo $ECHO_N "(cached) $ECHO_C" >&6
22787else
22788 ac_ext=cc
22789ac_cpp='$CXXCPP $CPPFLAGS'
22790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22793
Reid Spencerabec8f92004-10-27 23:03:44 +000022794 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022795/* confdefs.h. */
22796_ACEOF
22797cat confdefs.h >>conftest.$ac_ext
22798cat >>conftest.$ac_ext <<_ACEOF
22799/* end confdefs.h. */
22800#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000022801int
22802main ()
22803{
22804float f; isinf(f);
22805 ;
22806 return 0;
22807}
Brian Gaeke52a551d2004-07-21 03:14:12 +000022808_ACEOF
22809rm -f conftest.$ac_objext
22810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022811 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022812 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022813 grep -v '^ *+' conftest.er1 >conftest.err
22814 rm -f conftest.er1
22815 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022818 { ac_try='test -z "$ac_cxx_werror_flag"
22819 || test ! -s conftest.err'
22820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821 (eval $ac_try) 2>&5
22822 ac_status=$?
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); }; } &&
22825 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22827 (eval $ac_try) 2>&5
22828 ac_status=$?
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); }; }; then
22831 ac_cv_func_isinf_in_math_h=yes
22832else
22833 echo "$as_me: failed program was:" >&5
22834sed 's/^/| /' conftest.$ac_ext >&5
22835
22836ac_cv_func_isinf_in_math_h=no
22837fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022839 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000022840ac_cpp='$CPP $CPPFLAGS'
22841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22843ac_compiler_gnu=$ac_cv_c_compiler_gnu
22844
22845fi
22846echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22847echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022848
22849if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000022850
22851cat >>confdefs.h <<\_ACEOF
22852#define HAVE_ISINF_IN_MATH_H 1
22853_ACEOF
22854
Reid Spencerabec8f92004-10-27 23:03:44 +000022855fi
22856
Brian Gaeke52a551d2004-07-21 03:14:12 +000022857echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22858echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22859if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22860 echo $ECHO_N "(cached) $ECHO_C" >&6
22861else
22862 ac_ext=cc
22863ac_cpp='$CXXCPP $CPPFLAGS'
22864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22867
Reid Spencerabec8f92004-10-27 23:03:44 +000022868 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022869/* confdefs.h. */
22870_ACEOF
22871cat confdefs.h >>conftest.$ac_ext
22872cat >>conftest.$ac_ext <<_ACEOF
22873/* end confdefs.h. */
22874#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000022875int
22876main ()
22877{
22878float f; isinf(f);
22879 ;
22880 return 0;
22881}
Brian Gaeke52a551d2004-07-21 03:14:12 +000022882_ACEOF
22883rm -f conftest.$ac_objext
22884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022885 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022886 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022887 grep -v '^ *+' conftest.er1 >conftest.err
22888 rm -f conftest.er1
22889 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022892 { ac_try='test -z "$ac_cxx_werror_flag"
22893 || test ! -s conftest.err'
22894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895 (eval $ac_try) 2>&5
22896 ac_status=$?
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); }; } &&
22899 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22901 (eval $ac_try) 2>&5
22902 ac_status=$?
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); }; }; then
22905 ac_cv_func_isinf_in_cmath=yes
22906else
22907 echo "$as_me: failed program was:" >&5
22908sed 's/^/| /' conftest.$ac_ext >&5
22909
22910ac_cv_func_isinf_in_cmath=no
22911fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022913 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000022914ac_cpp='$CPP $CPPFLAGS'
22915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22917ac_compiler_gnu=$ac_cv_c_compiler_gnu
22918
22919fi
22920echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22921echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022922
22923if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000022924
22925cat >>confdefs.h <<\_ACEOF
22926#define HAVE_ISINF_IN_CMATH 1
22927_ACEOF
22928
Reid Spencerabec8f92004-10-27 23:03:44 +000022929fi
22930
Brian Gaeke52a551d2004-07-21 03:14:12 +000022931echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22932echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22933if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22935else
22936 ac_ext=cc
22937ac_cpp='$CXXCPP $CPPFLAGS'
22938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22941
Reid Spencerabec8f92004-10-27 23:03:44 +000022942 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022943/* confdefs.h. */
22944_ACEOF
22945cat confdefs.h >>conftest.$ac_ext
22946cat >>conftest.$ac_ext <<_ACEOF
22947/* end confdefs.h. */
22948#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000022949int
22950main ()
22951{
22952float f; std::isinf(f)}
22953 ;
22954 return 0;
22955}
Brian Gaeke52a551d2004-07-21 03:14:12 +000022956_ACEOF
22957rm -f conftest.$ac_objext
22958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022959 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022960 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022961 grep -v '^ *+' conftest.er1 >conftest.err
22962 rm -f conftest.er1
22963 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022966 { ac_try='test -z "$ac_cxx_werror_flag"
22967 || test ! -s conftest.err'
22968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969 (eval $ac_try) 2>&5
22970 ac_status=$?
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; } &&
22973 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22975 (eval $ac_try) 2>&5
22976 ac_status=$?
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); }; }; then
22979 ac_cv_func_std_isinf_in_cmath=yes
22980else
22981 echo "$as_me: failed program was:" >&5
22982sed 's/^/| /' conftest.$ac_ext >&5
22983
22984ac_cv_func_std_isinf_in_cmath=no
22985fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022987 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000022988ac_cpp='$CPP $CPPFLAGS'
22989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22991ac_compiler_gnu=$ac_cv_c_compiler_gnu
22992
22993fi
22994echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22995echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022996
22997if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000022998
22999cat >>confdefs.h <<\_ACEOF
23000#define HAVE_STD_ISINF_IN_CMATH 1
23001_ACEOF
23002
Reid Spencerabec8f92004-10-27 23:03:44 +000023003fi
23004
Brian Gaeked59a6472004-07-21 03:33:58 +000023005echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
23006echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
23007if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
23008 echo $ECHO_N "(cached) $ECHO_C" >&6
23009else
23010 ac_ext=cc
23011ac_cpp='$CXXCPP $CPPFLAGS'
23012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23015
Reid Spencerabec8f92004-10-27 23:03:44 +000023016 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000023017/* confdefs.h. */
23018_ACEOF
23019cat confdefs.h >>conftest.$ac_ext
23020cat >>conftest.$ac_ext <<_ACEOF
23021/* end confdefs.h. */
23022#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000023023int
23024main ()
23025{
23026float f; finite(f);
23027 ;
23028 return 0;
23029}
Brian Gaeked59a6472004-07-21 03:33:58 +000023030_ACEOF
23031rm -f conftest.$ac_objext
23032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023033 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000023034 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023035 grep -v '^ *+' conftest.er1 >conftest.err
23036 rm -f conftest.er1
23037 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000023038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023040 { ac_try='test -z "$ac_cxx_werror_flag"
23041 || test ! -s conftest.err'
23042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); }; } &&
23047 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000023048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049 (eval $ac_try) 2>&5
23050 ac_status=$?
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; }; then
23053 ac_cv_func_finite_in_ieeefp_h=yes
23054else
23055 echo "$as_me: failed program was:" >&5
23056sed 's/^/| /' conftest.$ac_ext >&5
23057
23058ac_cv_func_finite_in_ieeefp_h=no
23059fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000023061 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000023062ac_cpp='$CPP $CPPFLAGS'
23063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23065ac_compiler_gnu=$ac_cv_c_compiler_gnu
23066
23067fi
23068echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
23069echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000023070
Brian Gaeke6802b552004-10-28 05:06:45 +000023071if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000023072
23073cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000023074#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000023075_ACEOF
23076
Reid Spencerabec8f92004-10-27 23:03:44 +000023077fi
23078
23079
23080
23081echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
23082echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
23083if test "${ac_cv_func_rand48+set}" = set; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23085else
23086 ac_ext=cc
23087ac_cpp='$CXXCPP $CPPFLAGS'
23088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23091
23092 cat >conftest.$ac_ext <<_ACEOF
23093/* confdefs.h. */
23094_ACEOF
23095cat confdefs.h >>conftest.$ac_ext
23096cat >>conftest.$ac_ext <<_ACEOF
23097/* end confdefs.h. */
23098#include <stdlib.h>
23099int
23100main ()
23101{
23102srand48(0);lrand48();drand48();
23103 ;
23104 return 0;
23105}
23106_ACEOF
23107rm -f conftest.$ac_objext
23108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23109 (eval $ac_compile) 2>conftest.er1
23110 ac_status=$?
23111 grep -v '^ *+' conftest.er1 >conftest.err
23112 rm -f conftest.er1
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } &&
23116 { ac_try='test -z "$ac_cxx_werror_flag"
23117 || test ! -s conftest.err'
23118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119 (eval $ac_try) 2>&5
23120 ac_status=$?
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); }; } &&
23123 { ac_try='test -s conftest.$ac_objext'
23124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125 (eval $ac_try) 2>&5
23126 ac_status=$?
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); }; }; then
23129 ac_cv_func_rand48=yes
23130else
23131 echo "$as_me: failed program was:" >&5
23132sed 's/^/| /' conftest.$ac_ext >&5
23133
23134ac_cv_func_rand48=no
23135fi
23136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23137 ac_ext=c
23138ac_cpp='$CPP $CPPFLAGS'
23139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23141ac_compiler_gnu=$ac_cv_c_compiler_gnu
23142
23143fi
23144echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
23145echo "${ECHO_T}$ac_cv_func_rand48" >&6
23146
23147if test "$ac_cv_func_rand48" = "yes" ; then
23148
23149cat >>confdefs.h <<\_ACEOF
23150#define HAVE_RAND48 1
23151_ACEOF
23152
23153fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000023154
23155
John Criswell7a73b802003-06-30 21:59:07 +000023156# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23157# for constant arguments. Useless!
23158echo "$as_me:$LINENO: checking for working alloca.h" >&5
23159echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23160if test "${ac_cv_working_alloca_h+set}" = set; then
23161 echo $ECHO_N "(cached) $ECHO_C" >&6
23162else
23163 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023164/* confdefs.h. */
23165_ACEOF
23166cat confdefs.h >>conftest.$ac_ext
23167cat >>conftest.$ac_ext <<_ACEOF
23168/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023169#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000023170int
23171main ()
23172{
23173char *p = (char *) alloca (2 * sizeof (int));
23174 ;
23175 return 0;
23176}
23177_ACEOF
23178rm -f conftest.$ac_objext conftest$ac_exeext
23179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023180 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023181 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023182 grep -v '^ *+' conftest.er1 >conftest.err
23183 rm -f conftest.er1
23184 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023187 { ac_try='test -z "$ac_c_werror_flag"
23188 || test ! -s conftest.err'
23189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190 (eval $ac_try) 2>&5
23191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; } &&
23194 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196 (eval $ac_try) 2>&5
23197 ac_status=$?
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); }; }; then
23200 ac_cv_working_alloca_h=yes
23201else
23202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023203sed 's/^/| /' conftest.$ac_ext >&5
23204
John Criswell7a73b802003-06-30 21:59:07 +000023205ac_cv_working_alloca_h=no
23206fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023207rm -f conftest.err conftest.$ac_objext \
23208 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023209fi
23210echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23211echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23212if test $ac_cv_working_alloca_h = yes; then
23213
23214cat >>confdefs.h <<\_ACEOF
23215#define HAVE_ALLOCA_H 1
23216_ACEOF
23217
23218fi
23219
23220echo "$as_me:$LINENO: checking for alloca" >&5
23221echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23222if test "${ac_cv_func_alloca_works+set}" = set; then
23223 echo $ECHO_N "(cached) $ECHO_C" >&6
23224else
23225 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023226/* confdefs.h. */
23227_ACEOF
23228cat confdefs.h >>conftest.$ac_ext
23229cat >>conftest.$ac_ext <<_ACEOF
23230/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023231#ifdef __GNUC__
23232# define alloca __builtin_alloca
23233#else
23234# ifdef _MSC_VER
23235# include <malloc.h>
23236# define alloca _alloca
23237# else
23238# if HAVE_ALLOCA_H
23239# include <alloca.h>
23240# else
23241# ifdef _AIX
23242 #pragma alloca
23243# else
23244# ifndef alloca /* predefined by HP cc +Olibcalls */
23245char *alloca ();
23246# endif
23247# endif
23248# endif
23249# endif
23250#endif
23251
John Criswell7a73b802003-06-30 21:59:07 +000023252int
23253main ()
23254{
23255char *p = (char *) alloca (1);
23256 ;
23257 return 0;
23258}
23259_ACEOF
23260rm -f conftest.$ac_objext conftest$ac_exeext
23261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023262 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023263 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023264 grep -v '^ *+' conftest.er1 >conftest.err
23265 rm -f conftest.er1
23266 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023269 { ac_try='test -z "$ac_c_werror_flag"
23270 || test ! -s conftest.err'
23271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272 (eval $ac_try) 2>&5
23273 ac_status=$?
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); }; } &&
23276 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278 (eval $ac_try) 2>&5
23279 ac_status=$?
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); }; }; then
23282 ac_cv_func_alloca_works=yes
23283else
23284 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023285sed 's/^/| /' conftest.$ac_ext >&5
23286
John Criswell7a73b802003-06-30 21:59:07 +000023287ac_cv_func_alloca_works=no
23288fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023289rm -f conftest.err conftest.$ac_objext \
23290 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023291fi
23292echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23293echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23294
23295if test $ac_cv_func_alloca_works = yes; then
23296
23297cat >>confdefs.h <<\_ACEOF
23298#define HAVE_ALLOCA 1
23299_ACEOF
23300
23301else
23302 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23303# that cause trouble. Some versions do not even contain alloca or
23304# contain a buggy version. If you still want to use their alloca,
23305# use ar to extract alloca.o from them instead of compiling alloca.c.
23306
23307ALLOCA=alloca.$ac_objext
23308
23309cat >>confdefs.h <<\_ACEOF
23310#define C_ALLOCA 1
23311_ACEOF
23312
23313
23314echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23315echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23316if test "${ac_cv_os_cray+set}" = set; then
23317 echo $ECHO_N "(cached) $ECHO_C" >&6
23318else
23319 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023320/* confdefs.h. */
23321_ACEOF
23322cat confdefs.h >>conftest.$ac_ext
23323cat >>conftest.$ac_ext <<_ACEOF
23324/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023325#if defined(CRAY) && ! defined(CRAY2)
23326webecray
23327#else
23328wenotbecray
23329#endif
23330
23331_ACEOF
23332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000023333 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023334 ac_cv_os_cray=yes
23335else
23336 ac_cv_os_cray=no
23337fi
23338rm -f conftest*
23339
23340fi
23341echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23342echo "${ECHO_T}$ac_cv_os_cray" >&6
23343if test $ac_cv_os_cray = yes; then
23344 for ac_func in _getb67 GETB67 getb67; do
23345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23346echo "$as_me:$LINENO: checking for $ac_func" >&5
23347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23348if eval "test \"\${$as_ac_var+set}\" = set"; then
23349 echo $ECHO_N "(cached) $ECHO_C" >&6
23350else
23351 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023352/* confdefs.h. */
23353_ACEOF
23354cat confdefs.h >>conftest.$ac_ext
23355cat >>conftest.$ac_ext <<_ACEOF
23356/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23359#define $ac_func innocuous_$ac_func
23360
John Criswell7a73b802003-06-30 21:59:07 +000023361/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023362 which can conflict with char $ac_func (); below.
23363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23364 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023365
John Criswell0c38eaf2003-09-10 15:17:25 +000023366#ifdef __STDC__
23367# include <limits.h>
23368#else
23369# include <assert.h>
23370#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023371
23372#undef $ac_func
23373
John Criswell7a73b802003-06-30 21:59:07 +000023374/* Override any gcc2 internal prototype to avoid an error. */
23375#ifdef __cplusplus
23376extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023377{
John Criswell7a73b802003-06-30 21:59:07 +000023378#endif
23379/* We use char because int might match the return type of a gcc2
23380 builtin and then its argument prototype would still apply. */
23381char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023382/* The GNU C library defines this for functions which it implements
23383 to always fail with ENOSYS. Some functions are actually named
23384 something starting with __ and the normal name is an alias. */
23385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23386choke me
23387#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023388char (*f) () = $ac_func;
23389#endif
23390#ifdef __cplusplus
23391}
John Criswell7a73b802003-06-30 21:59:07 +000023392#endif
23393
John Criswell0c38eaf2003-09-10 15:17:25 +000023394int
23395main ()
23396{
23397return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023398 ;
23399 return 0;
23400}
23401_ACEOF
23402rm -f conftest.$ac_objext conftest$ac_exeext
23403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023404 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023405 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023406 grep -v '^ *+' conftest.er1 >conftest.err
23407 rm -f conftest.er1
23408 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023411 { ac_try='test -z "$ac_c_werror_flag"
23412 || test ! -s conftest.err'
23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; } &&
23418 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; }; then
23424 eval "$as_ac_var=yes"
23425else
23426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023427sed 's/^/| /' conftest.$ac_ext >&5
23428
John Criswell7a73b802003-06-30 21:59:07 +000023429eval "$as_ac_var=no"
23430fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023431rm -f conftest.err conftest.$ac_objext \
23432 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023433fi
23434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23435echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23436if test `eval echo '${'$as_ac_var'}'` = yes; then
23437
23438cat >>confdefs.h <<_ACEOF
23439#define CRAY_STACKSEG_END $ac_func
23440_ACEOF
23441
23442 break
23443fi
23444
23445 done
23446fi
23447
23448echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23449echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23450if test "${ac_cv_c_stack_direction+set}" = set; then
23451 echo $ECHO_N "(cached) $ECHO_C" >&6
23452else
23453 if test "$cross_compiling" = yes; then
23454 ac_cv_c_stack_direction=0
23455else
23456 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023457/* confdefs.h. */
23458_ACEOF
23459cat confdefs.h >>conftest.$ac_ext
23460cat >>conftest.$ac_ext <<_ACEOF
23461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023462int
23463find_stack_direction ()
23464{
23465 static char *addr = 0;
23466 auto char dummy;
23467 if (addr == 0)
23468 {
23469 addr = &dummy;
23470 return find_stack_direction ();
23471 }
23472 else
23473 return (&dummy > addr) ? 1 : -1;
23474}
23475
23476int
23477main ()
23478{
23479 exit (find_stack_direction () < 0);
23480}
23481_ACEOF
23482rm -f conftest$ac_exeext
23483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23484 (eval $ac_link) 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489 (eval $ac_try) 2>&5
23490 ac_status=$?
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; }; then
23493 ac_cv_c_stack_direction=1
23494else
23495 echo "$as_me: program exited with status $ac_status" >&5
23496echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023497sed 's/^/| /' conftest.$ac_ext >&5
23498
John Criswell7a73b802003-06-30 21:59:07 +000023499( exit $ac_status )
23500ac_cv_c_stack_direction=-1
23501fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023503fi
23504fi
23505echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23506echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23507
23508cat >>confdefs.h <<_ACEOF
23509#define STACK_DIRECTION $ac_cv_c_stack_direction
23510_ACEOF
23511
23512
23513fi
23514
John Criswell7a73b802003-06-30 21:59:07 +000023515
23516
23517for ac_header in stdlib.h unistd.h
23518do
23519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23520if eval "test \"\${$as_ac_Header+set}\" = set"; then
23521 echo "$as_me:$LINENO: checking for $ac_header" >&5
23522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23523if eval "test \"\${$as_ac_Header+set}\" = set"; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23525fi
23526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23528else
23529 # Is the header compilable?
23530echo "$as_me:$LINENO: checking $ac_header usability" >&5
23531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23532cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023533/* confdefs.h. */
23534_ACEOF
23535cat confdefs.h >>conftest.$ac_ext
23536cat >>conftest.$ac_ext <<_ACEOF
23537/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023538$ac_includes_default
23539#include <$ac_header>
23540_ACEOF
23541rm -f conftest.$ac_objext
23542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023543 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023544 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023545 grep -v '^ *+' conftest.er1 >conftest.err
23546 rm -f conftest.er1
23547 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023550 { ac_try='test -z "$ac_c_werror_flag"
23551 || test ! -s conftest.err'
23552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23553 (eval $ac_try) 2>&5
23554 ac_status=$?
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); }; } &&
23557 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23559 (eval $ac_try) 2>&5
23560 ac_status=$?
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); }; }; then
23563 ac_header_compiler=yes
23564else
23565 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023566sed 's/^/| /' conftest.$ac_ext >&5
23567
John Criswell7a73b802003-06-30 21:59:07 +000023568ac_header_compiler=no
23569fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23572echo "${ECHO_T}$ac_header_compiler" >&6
23573
23574# Is the header present?
23575echo "$as_me:$LINENO: checking $ac_header presence" >&5
23576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23577cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023578/* confdefs.h. */
23579_ACEOF
23580cat confdefs.h >>conftest.$ac_ext
23581cat >>conftest.$ac_ext <<_ACEOF
23582/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023583#include <$ac_header>
23584_ACEOF
23585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23587 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000023588 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000023589 rm -f conftest.er1
23590 cat conftest.err >&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } >/dev/null; then
23593 if test -s conftest.err; then
23594 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000023595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000023596 else
23597 ac_cpp_err=
23598 fi
23599else
23600 ac_cpp_err=yes
23601fi
23602if test -z "$ac_cpp_err"; then
23603 ac_header_preproc=yes
23604else
23605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023606sed 's/^/| /' conftest.$ac_ext >&5
23607
John Criswell7a73b802003-06-30 21:59:07 +000023608 ac_header_preproc=no
23609fi
23610rm -f conftest.err conftest.$ac_ext
23611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23612echo "${ECHO_T}$ac_header_preproc" >&6
23613
23614# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23616 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000023617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23621 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000023622 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023623 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000023624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23627echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23631echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000023632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000023636 (
23637 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000023638## ----------------------------------- ##
23639## Report this to llvmbugs@cs.uiuc.edu ##
23640## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000023641_ASBOX
23642 ) |
23643 sed "s/^/$as_me: WARNING: /" >&2
23644 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023645esac
23646echo "$as_me:$LINENO: checking for $ac_header" >&5
23647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23648if eval "test \"\${$as_ac_Header+set}\" = set"; then
23649 echo $ECHO_N "(cached) $ECHO_C" >&6
23650else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023651 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000023652fi
23653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23655
23656fi
23657if test `eval echo '${'$as_ac_Header'}'` = yes; then
23658 cat >>confdefs.h <<_ACEOF
23659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23660_ACEOF
23661
23662fi
23663
23664done
23665
23666
23667for ac_func in getpagesize
23668do
23669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23670echo "$as_me:$LINENO: checking for $ac_func" >&5
23671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23672if eval "test \"\${$as_ac_var+set}\" = set"; then
23673 echo $ECHO_N "(cached) $ECHO_C" >&6
23674else
23675 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023676/* confdefs.h. */
23677_ACEOF
23678cat confdefs.h >>conftest.$ac_ext
23679cat >>conftest.$ac_ext <<_ACEOF
23680/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23683#define $ac_func innocuous_$ac_func
23684
John Criswell7a73b802003-06-30 21:59:07 +000023685/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023686 which can conflict with char $ac_func (); below.
23687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23688 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023689
John Criswell0c38eaf2003-09-10 15:17:25 +000023690#ifdef __STDC__
23691# include <limits.h>
23692#else
23693# include <assert.h>
23694#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023695
23696#undef $ac_func
23697
John Criswell7a73b802003-06-30 21:59:07 +000023698/* Override any gcc2 internal prototype to avoid an error. */
23699#ifdef __cplusplus
23700extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023701{
John Criswell7a73b802003-06-30 21:59:07 +000023702#endif
23703/* We use char because int might match the return type of a gcc2
23704 builtin and then its argument prototype would still apply. */
23705char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023706/* The GNU C library defines this for functions which it implements
23707 to always fail with ENOSYS. Some functions are actually named
23708 something starting with __ and the normal name is an alias. */
23709#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23710choke me
23711#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023712char (*f) () = $ac_func;
23713#endif
23714#ifdef __cplusplus
23715}
John Criswell7a73b802003-06-30 21:59:07 +000023716#endif
23717
John Criswell0c38eaf2003-09-10 15:17:25 +000023718int
23719main ()
23720{
23721return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023722 ;
23723 return 0;
23724}
23725_ACEOF
23726rm -f conftest.$ac_objext conftest$ac_exeext
23727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023728 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023729 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023730 grep -v '^ *+' conftest.er1 >conftest.err
23731 rm -f conftest.er1
23732 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023735 { ac_try='test -z "$ac_c_werror_flag"
23736 || test ! -s conftest.err'
23737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738 (eval $ac_try) 2>&5
23739 ac_status=$?
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); }; } &&
23742 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744 (eval $ac_try) 2>&5
23745 ac_status=$?
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); }; }; then
23748 eval "$as_ac_var=yes"
23749else
23750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023751sed 's/^/| /' conftest.$ac_ext >&5
23752
John Criswell7a73b802003-06-30 21:59:07 +000023753eval "$as_ac_var=no"
23754fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023755rm -f conftest.err conftest.$ac_objext \
23756 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023757fi
23758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23759echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23760if test `eval echo '${'$as_ac_var'}'` = yes; then
23761 cat >>confdefs.h <<_ACEOF
23762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23763_ACEOF
23764
23765fi
23766done
23767
23768echo "$as_me:$LINENO: checking for working mmap" >&5
23769echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23770if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23771 echo $ECHO_N "(cached) $ECHO_C" >&6
23772else
23773 if test "$cross_compiling" = yes; then
23774 ac_cv_func_mmap_fixed_mapped=no
23775else
23776 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023777/* confdefs.h. */
23778_ACEOF
23779cat confdefs.h >>conftest.$ac_ext
23780cat >>conftest.$ac_ext <<_ACEOF
23781/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023782$ac_includes_default
23783/* malloc might have been renamed as rpl_malloc. */
23784#undef malloc
23785
23786/* Thanks to Mike Haertel and Jim Avera for this test.
23787 Here is a matrix of mmap possibilities:
23788 mmap private not fixed
23789 mmap private fixed at somewhere currently unmapped
23790 mmap private fixed at somewhere already mapped
23791 mmap shared not fixed
23792 mmap shared fixed at somewhere currently unmapped
23793 mmap shared fixed at somewhere already mapped
23794 For private mappings, we should verify that changes cannot be read()
23795 back from the file, nor mmap's back from the file at a different
23796 address. (There have been systems where private was not correctly
23797 implemented like the infamous i386 svr4.0, and systems where the
23798 VM page cache was not coherent with the file system buffer cache
23799 like early versions of FreeBSD and possibly contemporary NetBSD.)
23800 For shared mappings, we should conversely verify that changes get
23801 propagated back to all the places they're supposed to be.
23802
23803 Grep wants private fixed already mapped.
23804 The main things grep needs to know about mmap are:
23805 * does it exist and is it safe to write into the mmap'd area
23806 * how to use it (BSD variants) */
23807
23808#include <fcntl.h>
23809#include <sys/mman.h>
23810
23811#if !STDC_HEADERS && !HAVE_STDLIB_H
23812char *malloc ();
23813#endif
23814
23815/* This mess was copied from the GNU getpagesize.h. */
23816#if !HAVE_GETPAGESIZE
23817/* Assume that all systems that can run configure have sys/param.h. */
23818# if !HAVE_SYS_PARAM_H
23819# define HAVE_SYS_PARAM_H 1
23820# endif
23821
23822# ifdef _SC_PAGESIZE
23823# define getpagesize() sysconf(_SC_PAGESIZE)
23824# else /* no _SC_PAGESIZE */
23825# if HAVE_SYS_PARAM_H
23826# include <sys/param.h>
23827# ifdef EXEC_PAGESIZE
23828# define getpagesize() EXEC_PAGESIZE
23829# else /* no EXEC_PAGESIZE */
23830# ifdef NBPG
23831# define getpagesize() NBPG * CLSIZE
23832# ifndef CLSIZE
23833# define CLSIZE 1
23834# endif /* no CLSIZE */
23835# else /* no NBPG */
23836# ifdef NBPC
23837# define getpagesize() NBPC
23838# else /* no NBPC */
23839# ifdef PAGESIZE
23840# define getpagesize() PAGESIZE
23841# endif /* PAGESIZE */
23842# endif /* no NBPC */
23843# endif /* no NBPG */
23844# endif /* no EXEC_PAGESIZE */
23845# else /* no HAVE_SYS_PARAM_H */
23846# define getpagesize() 8192 /* punt totally */
23847# endif /* no HAVE_SYS_PARAM_H */
23848# endif /* no _SC_PAGESIZE */
23849
23850#endif /* no HAVE_GETPAGESIZE */
23851
23852int
23853main ()
23854{
23855 char *data, *data2, *data3;
23856 int i, pagesize;
23857 int fd;
23858
23859 pagesize = getpagesize ();
23860
23861 /* First, make a file with some known garbage in it. */
23862 data = (char *) malloc (pagesize);
23863 if (!data)
23864 exit (1);
23865 for (i = 0; i < pagesize; ++i)
23866 *(data + i) = rand ();
23867 umask (0);
23868 fd = creat ("conftest.mmap", 0600);
23869 if (fd < 0)
23870 exit (1);
23871 if (write (fd, data, pagesize) != pagesize)
23872 exit (1);
23873 close (fd);
23874
23875 /* Next, try to mmap the file at a fixed address which already has
23876 something else allocated at it. If we can, also make sure that
23877 we see the same garbage. */
23878 fd = open ("conftest.mmap", O_RDWR);
23879 if (fd < 0)
23880 exit (1);
23881 data2 = (char *) malloc (2 * pagesize);
23882 if (!data2)
23883 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000023884 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000023885 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000023886 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000023887 exit (1);
23888 for (i = 0; i < pagesize; ++i)
23889 if (*(data + i) != *(data2 + i))
23890 exit (1);
23891
23892 /* Finally, make sure that changes to the mapped area do not
23893 percolate back to the file as seen by read(). (This is a bug on
23894 some variants of i386 svr4.0.) */
23895 for (i = 0; i < pagesize; ++i)
23896 *(data2 + i) = *(data2 + i) + 1;
23897 data3 = (char *) malloc (pagesize);
23898 if (!data3)
23899 exit (1);
23900 if (read (fd, data3, pagesize) != pagesize)
23901 exit (1);
23902 for (i = 0; i < pagesize; ++i)
23903 if (*(data + i) != *(data3 + i))
23904 exit (1);
23905 close (fd);
23906 exit (0);
23907}
23908_ACEOF
23909rm -f conftest$ac_exeext
23910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23911 (eval $ac_link) 2>&5
23912 ac_status=$?
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23916 (eval $ac_try) 2>&5
23917 ac_status=$?
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; }; then
23920 ac_cv_func_mmap_fixed_mapped=yes
23921else
23922 echo "$as_me: program exited with status $ac_status" >&5
23923echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023924sed 's/^/| /' conftest.$ac_ext >&5
23925
John Criswell7a73b802003-06-30 21:59:07 +000023926( exit $ac_status )
23927ac_cv_func_mmap_fixed_mapped=no
23928fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023929rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023930fi
23931fi
23932echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23933echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23934if test $ac_cv_func_mmap_fixed_mapped = yes; then
23935
23936cat >>confdefs.h <<\_ACEOF
23937#define HAVE_MMAP 1
23938_ACEOF
23939
23940fi
23941rm -f conftest.mmap
23942
Brian Gaeke26be9c52004-01-13 06:43:16 +000023943if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23944then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023945 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23946echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000023947fi
John Criswell7a73b802003-06-30 21:59:07 +000023948echo "$as_me:$LINENO: checking for mmap of files" >&5
23949echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23950if test "${ac_cv_func_mmap_file+set}" = set; then
23951 echo $ECHO_N "(cached) $ECHO_C" >&6
23952else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023953 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023954ac_cpp='$CPP $CPPFLAGS'
23955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23957ac_compiler_gnu=$ac_cv_c_compiler_gnu
23958
23959 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023960 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000023961else
23962 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023963
Reid Spencer777ce172004-09-20 04:09:56 +000023964 /* confdefs.h. */
23965_ACEOF
23966cat confdefs.h >>conftest.$ac_ext
23967cat >>conftest.$ac_ext <<_ACEOF
23968/* end confdefs.h. */
23969
John Criswell7a73b802003-06-30 21:59:07 +000023970#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000023971#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000023972#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000023973
23974int
23975main ()
23976{
John Criswell7a73b802003-06-30 21:59:07 +000023977
23978 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000023979 fd = creat ("foo",0777);
23980 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23981 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023982 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000023983 ;
23984 return 0;
23985}
John Criswell7a73b802003-06-30 21:59:07 +000023986_ACEOF
23987rm -f conftest$ac_exeext
23988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23989 (eval $ac_link) 2>&5
23990 ac_status=$?
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994 (eval $ac_try) 2>&5
23995 ac_status=$?
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); }; }; then
23998 ac_cv_func_mmap_file=yes
23999else
24000 echo "$as_me: program exited with status $ac_status" >&5
24001echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024002sed 's/^/| /' conftest.$ac_ext >&5
24003
John Criswell7a73b802003-06-30 21:59:07 +000024004( exit $ac_status )
24005ac_cv_func_mmap_file=no
24006fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024007rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024008fi
24009 ac_ext=c
24010ac_cpp='$CPP $CPPFLAGS'
24011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24013ac_compiler_gnu=$ac_cv_c_compiler_gnu
24014
24015
24016fi
24017echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
24018echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
24019if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000024020
24021cat >>confdefs.h <<\_ACEOF
24022#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000024023_ACEOF
24024
24025 MMAP_FILE=yes
24026
24027fi
24028
Brian Gaeke26be9c52004-01-13 06:43:16 +000024029if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000024030then
John Criswellf3ecf3a2004-05-27 00:57:50 +000024031 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
24032echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000024033fi
24034echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
24035echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
24036if test "${ac_cv_header_mmap_anon+set}" = set; then
24037 echo $ECHO_N "(cached) $ECHO_C" >&6
24038else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024039 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000024040ac_cpp='$CPP $CPPFLAGS'
24041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24043ac_compiler_gnu=$ac_cv_c_compiler_gnu
24044
24045 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024046/* confdefs.h. */
24047_ACEOF
24048cat confdefs.h >>conftest.$ac_ext
24049cat >>conftest.$ac_ext <<_ACEOF
24050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024051#include <sys/mman.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000024052#include <unistd.h>
24053#include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000024054int
24055main ()
24056{
24057mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
24058 ;
24059 return 0;
24060}
24061_ACEOF
24062rm -f conftest.$ac_objext
24063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024064 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024065 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024066 grep -v '^ *+' conftest.er1 >conftest.err
24067 rm -f conftest.er1
24068 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024071 { ac_try='test -z "$ac_c_werror_flag"
24072 || test ! -s conftest.err'
24073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074 (eval $ac_try) 2>&5
24075 ac_status=$?
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; } &&
24078 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080 (eval $ac_try) 2>&5
24081 ac_status=$?
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); }; }; then
24084 ac_cv_header_mmap_anon=yes
24085else
24086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024087sed 's/^/| /' conftest.$ac_ext >&5
24088
John Criswell7a73b802003-06-30 21:59:07 +000024089ac_cv_header_mmap_anon=no
24090fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024092 ac_ext=c
24093ac_cpp='$CPP $CPPFLAGS'
24094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24096ac_compiler_gnu=$ac_cv_c_compiler_gnu
24097
24098
24099fi
24100echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
24101echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
24102if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000024103
24104cat >>confdefs.h <<\_ACEOF
24105#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000024106_ACEOF
24107
24108fi
24109
24110echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24111echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
24112if test "${ac_cv_type_signal+set}" = set; then
24113 echo $ECHO_N "(cached) $ECHO_C" >&6
24114else
24115 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024116/* confdefs.h. */
24117_ACEOF
24118cat confdefs.h >>conftest.$ac_ext
24119cat >>conftest.$ac_ext <<_ACEOF
24120/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024121#include <sys/types.h>
24122#include <signal.h>
24123#ifdef signal
24124# undef signal
24125#endif
24126#ifdef __cplusplus
24127extern "C" void (*signal (int, void (*)(int)))(int);
24128#else
24129void (*signal ()) ();
24130#endif
24131
John Criswell7a73b802003-06-30 21:59:07 +000024132int
24133main ()
24134{
24135int i;
24136 ;
24137 return 0;
24138}
24139_ACEOF
24140rm -f conftest.$ac_objext
24141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024142 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024143 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024144 grep -v '^ *+' conftest.er1 >conftest.err
24145 rm -f conftest.er1
24146 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024149 { ac_try='test -z "$ac_c_werror_flag"
24150 || test ! -s conftest.err'
24151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152 (eval $ac_try) 2>&5
24153 ac_status=$?
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; } &&
24156 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158 (eval $ac_try) 2>&5
24159 ac_status=$?
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); }; }; then
24162 ac_cv_type_signal=void
24163else
24164 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024165sed 's/^/| /' conftest.$ac_ext >&5
24166
John Criswell7a73b802003-06-30 21:59:07 +000024167ac_cv_type_signal=int
24168fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024170fi
24171echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24172echo "${ECHO_T}$ac_cv_type_signal" >&6
24173
24174cat >>confdefs.h <<_ACEOF
24175#define RETSIGTYPE $ac_cv_type_signal
24176_ACEOF
24177
24178
24179
24180
24181
24182
24183
Brian Gaekef5261472004-02-20 06:40:57 +000024184
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000024185
John Criswelld6621562004-06-07 14:26:24 +000024186
24187
John Criswell7ed43ad2004-07-19 16:12:29 +000024188for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000024189do
24190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24191echo "$as_me:$LINENO: checking for $ac_func" >&5
24192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24193if eval "test \"\${$as_ac_var+set}\" = set"; then
24194 echo $ECHO_N "(cached) $ECHO_C" >&6
24195else
24196 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024197/* confdefs.h. */
24198_ACEOF
24199cat confdefs.h >>conftest.$ac_ext
24200cat >>conftest.$ac_ext <<_ACEOF
24201/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24204#define $ac_func innocuous_$ac_func
24205
John Criswell7a73b802003-06-30 21:59:07 +000024206/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000024207 which can conflict with char $ac_func (); below.
24208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24209 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024210
John Criswell0c38eaf2003-09-10 15:17:25 +000024211#ifdef __STDC__
24212# include <limits.h>
24213#else
24214# include <assert.h>
24215#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000024216
24217#undef $ac_func
24218
John Criswell7a73b802003-06-30 21:59:07 +000024219/* Override any gcc2 internal prototype to avoid an error. */
24220#ifdef __cplusplus
24221extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000024222{
John Criswell7a73b802003-06-30 21:59:07 +000024223#endif
24224/* We use char because int might match the return type of a gcc2
24225 builtin and then its argument prototype would still apply. */
24226char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000024227/* The GNU C library defines this for functions which it implements
24228 to always fail with ENOSYS. Some functions are actually named
24229 something starting with __ and the normal name is an alias. */
24230#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24231choke me
24232#else
John Criswell0c38eaf2003-09-10 15:17:25 +000024233char (*f) () = $ac_func;
24234#endif
24235#ifdef __cplusplus
24236}
John Criswell7a73b802003-06-30 21:59:07 +000024237#endif
24238
John Criswell0c38eaf2003-09-10 15:17:25 +000024239int
24240main ()
24241{
24242return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000024243 ;
24244 return 0;
24245}
24246_ACEOF
24247rm -f conftest.$ac_objext conftest$ac_exeext
24248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024249 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024250 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024251 grep -v '^ *+' conftest.er1 >conftest.err
24252 rm -f conftest.er1
24253 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024256 { ac_try='test -z "$ac_c_werror_flag"
24257 || test ! -s conftest.err'
24258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); }; } &&
24263 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265 (eval $ac_try) 2>&5
24266 ac_status=$?
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; }; then
24269 eval "$as_ac_var=yes"
24270else
24271 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024272sed 's/^/| /' conftest.$ac_ext >&5
24273
John Criswell7a73b802003-06-30 21:59:07 +000024274eval "$as_ac_var=no"
24275fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024276rm -f conftest.err conftest.$ac_objext \
24277 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024278fi
24279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24281if test `eval echo '${'$as_ac_var'}'` = yes; then
24282 cat >>confdefs.h <<_ACEOF
24283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24284_ACEOF
24285
24286fi
24287done
24288
John Criswell7a73b802003-06-30 21:59:07 +000024289echo "$as_me:$LINENO: checking for mprotect" >&5
24290echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24291if test "${ac_cv_func_mprotect+set}" = set; then
24292 echo $ECHO_N "(cached) $ECHO_C" >&6
24293else
24294 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024295/* confdefs.h. */
24296_ACEOF
24297cat confdefs.h >>conftest.$ac_ext
24298cat >>conftest.$ac_ext <<_ACEOF
24299/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024300/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24302#define mprotect innocuous_mprotect
24303
John Criswell7a73b802003-06-30 21:59:07 +000024304/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000024305 which can conflict with char mprotect (); below.
24306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24307 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024308
John Criswell0c38eaf2003-09-10 15:17:25 +000024309#ifdef __STDC__
24310# include <limits.h>
24311#else
24312# include <assert.h>
24313#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000024314
24315#undef mprotect
24316
John Criswell7a73b802003-06-30 21:59:07 +000024317/* Override any gcc2 internal prototype to avoid an error. */
24318#ifdef __cplusplus
24319extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000024320{
John Criswell7a73b802003-06-30 21:59:07 +000024321#endif
24322/* We use char because int might match the return type of a gcc2
24323 builtin and then its argument prototype would still apply. */
24324char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000024325/* The GNU C library defines this for functions which it implements
24326 to always fail with ENOSYS. Some functions are actually named
24327 something starting with __ and the normal name is an alias. */
24328#if defined (__stub_mprotect) || defined (__stub___mprotect)
24329choke me
24330#else
John Criswell0c38eaf2003-09-10 15:17:25 +000024331char (*f) () = mprotect;
24332#endif
24333#ifdef __cplusplus
24334}
John Criswell7a73b802003-06-30 21:59:07 +000024335#endif
24336
John Criswell0c38eaf2003-09-10 15:17:25 +000024337int
24338main ()
24339{
24340return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000024341 ;
24342 return 0;
24343}
24344_ACEOF
24345rm -f conftest.$ac_objext conftest$ac_exeext
24346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024347 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024348 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024349 grep -v '^ *+' conftest.er1 >conftest.err
24350 rm -f conftest.er1
24351 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024354 { ac_try='test -z "$ac_c_werror_flag"
24355 || test ! -s conftest.err'
24356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24357 (eval $ac_try) 2>&5
24358 ac_status=$?
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); }; } &&
24361 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24363 (eval $ac_try) 2>&5
24364 ac_status=$?
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); }; }; then
24367 ac_cv_func_mprotect=yes
24368else
24369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024370sed 's/^/| /' conftest.$ac_ext >&5
24371
John Criswell7a73b802003-06-30 21:59:07 +000024372ac_cv_func_mprotect=no
24373fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024374rm -f conftest.err conftest.$ac_objext \
24375 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024376fi
24377echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24378echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24379if test $ac_cv_func_mprotect = yes; then
24380 :
24381else
24382 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24383echo "$as_me: error: Function mprotect() required but not found" >&2;}
24384 { (exit 1); exit 1; }; }
24385fi
24386
24387
John Criswellb13092b2003-07-22 21:00:24 +000024388
Brian Gaekeadfe28d2004-07-21 03:50:25 +000024389 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24390echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000024391 ac_ext=c
24392ac_cpp='$CPP $CPPFLAGS'
24393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24395ac_compiler_gnu=$ac_cv_c_compiler_gnu
24396
Brian Gaekef91a15c2003-11-18 06:20:41 +000024397 oldcflags="$CFLAGS"
24398 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000024399 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000024400/* confdefs.h. */
24401_ACEOF
24402cat confdefs.h >>conftest.$ac_ext
24403cat >>conftest.$ac_ext <<_ACEOF
24404/* end confdefs.h. */
24405
24406int
24407main ()
24408{
Brian Gaekef91a15c2003-11-18 06:20:41 +000024409int main() { return 0; }
Reid Spencer777ce172004-09-20 04:09:56 +000024410 ;
24411 return 0;
24412}
John Criswellcb7a1eb2003-11-17 19:46:02 +000024413_ACEOF
24414rm -f conftest.$ac_objext conftest$ac_exeext
24415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024416 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000024417 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024418 grep -v '^ *+' conftest.er1 >conftest.err
24419 rm -f conftest.er1
24420 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000024421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024423 { ac_try='test -z "$ac_c_werror_flag"
24424 || test ! -s conftest.err'
24425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; } &&
24430 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000024431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24432 (eval $ac_try) 2>&5
24433 ac_status=$?
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); }; }; then
24436 ac_cv_link_use_r=yes
24437else
24438 echo "$as_me: failed program was:" >&5
24439sed 's/^/| /' conftest.$ac_ext >&5
24440
Brian Gaekef91a15c2003-11-18 06:20:41 +000024441ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000024442fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024443rm -f conftest.err conftest.$ac_objext \
24444 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000024445 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000024446 ac_ext=c
24447ac_cpp='$CPP $CPPFLAGS'
24448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24450ac_compiler_gnu=$ac_cv_c_compiler_gnu
24451
Brian Gaekeadfe28d2004-07-21 03:50:25 +000024452 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24453echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000024454 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000024455 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000024456
24457cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000024458#define HAVE_LINK_R 1
24459_ACEOF
24460
24461 fi
24462
24463
John Criswell7a73b802003-06-30 21:59:07 +000024464# Check whether --enable-optimized or --disable-optimized was given.
24465if test "${enable_optimized+set}" = set; then
24466 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000024467
24468else
John Criswellb13092b2003-07-22 21:00:24 +000024469 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000024470fi;
John Criswellb13092b2003-07-22 21:00:24 +000024471if test ${enableval} = "no"
24472then
24473 ENABLE_OPTIMIZED=
24474
24475else
24476 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24477
24478fi
24479
John Criswellb13092b2003-07-22 21:00:24 +000024480# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000024481if test "${enable_jit+set}" = set; then
24482 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000024483
24484else
John Criswellc78022e2003-07-29 19:11:58 +000024485 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000024486fi;
John Criswellb13092b2003-07-22 21:00:24 +000024487if test ${enableval} = "no"
24488then
24489 JIT=
24490
24491else
John Criswellc78022e2003-07-29 19:11:58 +000024492 case $target in
24493 *i*86*)
24494 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000024495
John Criswellc78022e2003-07-29 19:11:58 +000024496 ;;
24497 *sparc*)
24498 JIT=TARGET_HAS_JIT=1
24499
24500 ;;
24501 *)
24502 JIT=
24503
24504 ;;
24505 esac
John Criswellb13092b2003-07-22 21:00:24 +000024506fi
John Criswell7a73b802003-06-30 21:59:07 +000024507
24508
John Criswell7a73b802003-06-30 21:59:07 +000024509# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24510if test "${with_llvmgccdir+set}" = set; then
24511 withval="$with_llvmgccdir"
24512 LLVMGCCDIR=$withval
24513
24514fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000024515echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24516echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24517LLVM_GCC_CHECK=no
24518if test -d "$LLVMGCCDIR"
24519then
24520 if test -x "$LLVMGCCDIR/bin/gcc"
24521 then
24522 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24523 fi
24524fi
24525llvmgccwarn=no
24526echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24527echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24528if test "$LLVM_GCC_CHECK" = "no"
24529then
24530 llvmgccwarn=yes
24531fi
Brian Gaekef3b24102003-11-16 18:38:14 +000024532echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24533echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24534LLVM_GCC_SANE=no
24535if test -x "$LLVM_GCC_CHECK"
24536then
24537 cp /dev/null conftest.c
24538 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24539 if test $? -eq 0
24540 then
24541 LLVM_GCC_SANE=yes
24542 fi
24543 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000024544 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000024545 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000024546
24547 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000024548 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000024549
Brian Gaekef3b24102003-11-16 18:38:14 +000024550fi
24551echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24552echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24553if test "$LLVM_GCC_SANE" = "no"
24554then
24555 llvmgccwarn=yes
24556fi
24557
Brian Gaeke554831c2004-01-21 19:39:29 +000024558echo "$as_me:$LINENO: checking for shared library suffix" >&5
24559echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
Reid Spencer2e89ae22004-09-20 03:06:28 +000024560eval "SHLIBEXT=$shrext_cmds"
Brian Gaeke554831c2004-01-21 19:39:29 +000024561echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24562echo "${ECHO_T}$SHLIBEXT" >&6
24563SHLIBEXT=$SHLIBEXT
24564
24565
24566cat >>confdefs.h <<_ACEOF
24567#define SHLIBEXT "$SHLIBEXT"
24568_ACEOF
24569
24570
Reid Spencere9de0912004-08-20 09:03:57 +000024571# Translate the various configuration directories and other basic
24572# information into substitutions that will end up in config.h.in so
24573# that these configured values can be hard-wired into a program.
24574eval LLVM_PREFIX="${prefix}";
24575eval LLVM_BINDIR="${prefix}/bin";
24576eval LLVM_LIBDIR="${prefix}/lib";
24577eval LLVM_DATADIR="${prefix}/data";
24578eval LLVM_DOCSDIR="${prefix}/docs";
24579eval LLVM_ETCDIR="${prefix}/etc";
24580eval LLVM_INCLUDEDIR="${prefix}/include";
24581eval LLVM_INFODIR="${prefix}/info";
24582eval LLVM_MANDIR="${prefix}/man";
24583LLVM_CONFIGTIME=`date`
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595cat >>confdefs.h <<_ACEOF
24596#define LLVM_PREFIX "$LLVM_PREFIX"
24597_ACEOF
24598
24599
24600cat >>confdefs.h <<_ACEOF
24601#define LLVM_BINDIR "$LLVM_BINDIR"
24602_ACEOF
24603
24604
24605cat >>confdefs.h <<_ACEOF
24606#define LLVM_LIBDIR "$LLVM_LIBDIR"
24607_ACEOF
24608
24609
24610cat >>confdefs.h <<_ACEOF
24611#define LLVM_DATADIR "$LLVM_DATADIR"
24612_ACEOF
24613
24614
24615cat >>confdefs.h <<_ACEOF
24616#define LLVM_DATADIR "$LLVM_DOCSDIR"
24617_ACEOF
24618
24619
24620cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000024621#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000024622_ACEOF
24623
24624
24625cat >>confdefs.h <<_ACEOF
24626#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24627_ACEOF
24628
24629
24630cat >>confdefs.h <<_ACEOF
24631#define LLVM_INFODIR "$LLVM_INFODIR"
24632_ACEOF
24633
24634
24635cat >>confdefs.h <<_ACEOF
24636#define LLVM_MANDIR "$LLVM_MANDIR"
24637_ACEOF
24638
24639
24640cat >>confdefs.h <<_ACEOF
24641#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24642_ACEOF
24643
24644
John Criswell7a73b802003-06-30 21:59:07 +000024645cat >confcache <<\_ACEOF
24646# This file is a shell script that caches the results of configure
24647# tests run on this system so they can be shared between configure
24648# scripts and configure runs, see configure's option --config-cache.
24649# It is not useful on other systems. If it contains results you don't
24650# want to keep, you may remove or edit it.
24651#
24652# config.status only pays attention to the cache file if you give it
24653# the --recheck option to rerun configure.
24654#
John Criswell0c38eaf2003-09-10 15:17:25 +000024655# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000024656# loading this file, other *unset* `ac_cv_foo' will be assigned the
24657# following values.
24658
24659_ACEOF
24660
24661# The following way of writing the cache mishandles newlines in values,
24662# but we know of no workaround that is simple, portable, and efficient.
24663# So, don't put newlines in cache variables' values.
24664# Ultrix sh set writes to stderr and can't be redirected directly,
24665# and sets the high bit in the cache file unless we assign to the vars.
24666{
24667 (set) 2>&1 |
24668 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24669 *ac_space=\ *)
24670 # `set' does not quote correctly, so add quotes (double-quote
24671 # substitution turns \\\\ into \\, and sed turns \\ into \).
24672 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024673 "s/'/'\\\\''/g;
24674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000024675 ;;
24676 *)
24677 # `set' quotes correctly as required by POSIX, so do not add quotes.
24678 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024679 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000024680 ;;
24681 esac;
24682} |
24683 sed '
24684 t clear
24685 : clear
24686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24687 t end
24688 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24689 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000024690if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000024691 if test -w $cache_file; then
24692 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24693 cat confcache >$cache_file
24694 else
24695 echo "not updating unwritable cache $cache_file"
24696 fi
24697fi
24698rm -f confcache
24699
24700test "x$prefix" = xNONE && prefix=$ac_default_prefix
24701# Let make expand exec_prefix.
24702test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24703
24704# VPATH may cause trouble with some makes, so we remove $(srcdir),
24705# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24706# trailing colons and then remove the whole line if VPATH becomes empty
24707# (actually we leave an empty line to preserve line numbers).
24708if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024709 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000024710s/:*\$(srcdir):*/:/;
24711s/:*\${srcdir}:*/:/;
24712s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024713s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000024714s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024715s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000024716}'
24717fi
24718
24719DEFS=-DHAVE_CONFIG_H
24720
John Criswell0c38eaf2003-09-10 15:17:25 +000024721ac_libobjs=
24722ac_ltlibobjs=
24723for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24724 # 1. Remove the extension, and $U if already installed.
24725 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000024726 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024727 # 2. Add them.
24728 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24729 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24730done
24731LIBOBJS=$ac_libobjs
24732
24733LTLIBOBJS=$ac_ltlibobjs
24734
24735
John Criswell7a73b802003-06-30 21:59:07 +000024736
24737: ${CONFIG_STATUS=./config.status}
24738ac_clean_files_save=$ac_clean_files
24739ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24740{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24741echo "$as_me: creating $CONFIG_STATUS" >&6;}
24742cat >$CONFIG_STATUS <<_ACEOF
24743#! $SHELL
24744# Generated by $as_me.
24745# Run this file to recreate the current configuration.
24746# Compiler output produced by configure, useful for debugging
24747# configure, is in config.log if it exists.
24748
24749debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000024750ac_cs_recheck=false
24751ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000024752SHELL=\${CONFIG_SHELL-$SHELL}
24753_ACEOF
24754
24755cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024756## --------------------- ##
24757## M4sh Initialization. ##
24758## --------------------- ##
24759
24760# Be Bourne compatible
24761if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24762 emulate sh
24763 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024764 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24765 # is contrary to our usage. Disable this feature.
24766 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000024767elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24768 set -o posix
24769fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024770DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000024771
John Criswell7a73b802003-06-30 21:59:07 +000024772# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024773if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024774 as_unset=unset
24775else
24776 as_unset=false
24777fi
24778
John Criswell0c38eaf2003-09-10 15:17:25 +000024779
24780# Work around bugs in pre-3.0 UWIN ksh.
24781$as_unset ENV MAIL MAILPATH
24782PS1='$ '
24783PS2='> '
24784PS4='+ '
24785
24786# NLS nuisances.
24787for as_var in \
24788 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24789 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24790 LC_TELEPHONE LC_TIME
24791do
Reid Spencer2706f8c2004-09-19 23:53:36 +000024792 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000024793 eval $as_var=C; export $as_var
24794 else
24795 $as_unset $as_var
24796 fi
24797done
24798
24799# Required to use basename.
24800if expr a : '\(a\)' >/dev/null 2>&1; then
24801 as_expr=expr
24802else
24803 as_expr=false
24804fi
24805
24806if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24807 as_basename=basename
24808else
24809 as_basename=false
24810fi
John Criswell7a73b802003-06-30 21:59:07 +000024811
24812
24813# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000024814as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000024815$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24816 X"$0" : 'X\(//\)$' \| \
24817 X"$0" : 'X\(/\)$' \| \
24818 . : '\(.\)' 2>/dev/null ||
24819echo X/"$0" |
24820 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24821 /^X\/\(\/\/\)$/{ s//\1/; q; }
24822 /^X\/\(\/\).*/{ s//\1/; q; }
24823 s/.*/./; q'`
24824
John Criswell0c38eaf2003-09-10 15:17:25 +000024825
John Criswell7a73b802003-06-30 21:59:07 +000024826# PATH needs CR, and LINENO needs CR and PATH.
24827# Avoid depending upon Character Ranges.
24828as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24829as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24830as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24831as_cr_digits='0123456789'
24832as_cr_alnum=$as_cr_Letters$as_cr_digits
24833
24834# The user is always right.
24835if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024836 echo "#! /bin/sh" >conf$$.sh
24837 echo "exit 0" >>conf$$.sh
24838 chmod +x conf$$.sh
24839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024840 PATH_SEPARATOR=';'
24841 else
24842 PATH_SEPARATOR=:
24843 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024844 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024845fi
24846
24847
24848 as_lineno_1=$LINENO
24849 as_lineno_2=$LINENO
24850 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24851 test "x$as_lineno_1" != "x$as_lineno_2" &&
24852 test "x$as_lineno_3" = "x$as_lineno_2" || {
24853 # Find who we are. Look in the path if we contain no path at all
24854 # relative or not.
24855 case $0 in
24856 *[\\/]* ) as_myself=$0 ;;
24857 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24858for as_dir in $PATH
24859do
24860 IFS=$as_save_IFS
24861 test -z "$as_dir" && as_dir=.
24862 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24863done
24864
24865 ;;
24866 esac
24867 # We did not find ourselves, most probably we were run as `sh COMMAND'
24868 # in which case we are not to be found in the path.
24869 if test "x$as_myself" = x; then
24870 as_myself=$0
24871 fi
24872 if test ! -f "$as_myself"; then
24873 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24874echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24875 { (exit 1); exit 1; }; }
24876 fi
24877 case $CONFIG_SHELL in
24878 '')
24879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24880for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24881do
24882 IFS=$as_save_IFS
24883 test -z "$as_dir" && as_dir=.
24884 for as_base in sh bash ksh sh5; do
24885 case $as_dir in
24886 /*)
24887 if ("$as_dir/$as_base" -c '
24888 as_lineno_1=$LINENO
24889 as_lineno_2=$LINENO
24890 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24891 test "x$as_lineno_1" != "x$as_lineno_2" &&
24892 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024893 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24894 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024895 CONFIG_SHELL=$as_dir/$as_base
24896 export CONFIG_SHELL
24897 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24898 fi;;
24899 esac
24900 done
24901done
24902;;
24903 esac
24904
24905 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24906 # uniformly replaced by the line number. The first 'sed' inserts a
24907 # line-number line before each line; the second 'sed' does the real
24908 # work. The second script uses 'N' to pair each line-number line
24909 # with the numbered line, and appends trailing '-' during
24910 # substitution so that $LINENO is not a special case at line end.
24911 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24912 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24913 sed '=' <$as_myself |
24914 sed '
24915 N
24916 s,$,-,
24917 : loop
24918 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24919 t loop
24920 s,-$,,
24921 s,^['$as_cr_digits']*\n,,
24922 ' >$as_me.lineno &&
24923 chmod +x $as_me.lineno ||
24924 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24925echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24926 { (exit 1); exit 1; }; }
24927
24928 # Don't try to exec as it changes $[0], causing all sort of problems
24929 # (the dirname of $[0] is not the place where we might find the
24930 # original and so on. Autoconf is especially sensible to this).
24931 . ./$as_me.lineno
24932 # Exit status is that of the last command.
24933 exit
24934}
24935
24936
24937case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24938 *c*,-n*) ECHO_N= ECHO_C='
24939' ECHO_T=' ' ;;
24940 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24941 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24942esac
24943
24944if expr a : '\(a\)' >/dev/null 2>&1; then
24945 as_expr=expr
24946else
24947 as_expr=false
24948fi
24949
24950rm -f conf$$ conf$$.exe conf$$.file
24951echo >conf$$.file
24952if ln -s conf$$.file conf$$ 2>/dev/null; then
24953 # We could just check for DJGPP; but this test a) works b) is more generic
24954 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24955 if test -f conf$$.exe; then
24956 # Don't use ln at all; we don't have any links
24957 as_ln_s='cp -p'
24958 else
24959 as_ln_s='ln -s'
24960 fi
24961elif ln conf$$.file conf$$ 2>/dev/null; then
24962 as_ln_s=ln
24963else
24964 as_ln_s='cp -p'
24965fi
24966rm -f conf$$ conf$$.exe conf$$.file
24967
John Criswell0c38eaf2003-09-10 15:17:25 +000024968if mkdir -p . 2>/dev/null; then
24969 as_mkdir_p=:
24970else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024971 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024972 as_mkdir_p=false
24973fi
24974
John Criswell7a73b802003-06-30 21:59:07 +000024975as_executable_p="test -f"
24976
24977# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024978as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024979
24980# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024981as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024982
24983
24984# IFS
24985# We need space, tab and new line, in precisely that order.
24986as_nl='
24987'
24988IFS=" $as_nl"
24989
24990# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024991$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024992
24993exec 6>&1
24994
24995# Open the log real soon, to keep \$[0] and so on meaningful, and to
24996# report actual input values of CONFIG_FILES etc. instead of their
24997# values after options handling. Logging --version etc. is OK.
24998exec 5>>config.log
24999{
25000 echo
25001 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25002## Running $as_me. ##
25003_ASBOX
25004} >&5
25005cat >&5 <<_CSEOF
25006
Reid Spencerabec8f92004-10-27 23:03:44 +000025007This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000025008generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000025009
25010 CONFIG_FILES = $CONFIG_FILES
25011 CONFIG_HEADERS = $CONFIG_HEADERS
25012 CONFIG_LINKS = $CONFIG_LINKS
25013 CONFIG_COMMANDS = $CONFIG_COMMANDS
25014 $ $0 $@
25015
25016_CSEOF
25017echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25018echo >&5
25019_ACEOF
25020
25021# Files that config.status was made for.
25022if test -n "$ac_config_files"; then
25023 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25024fi
25025
25026if test -n "$ac_config_headers"; then
25027 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25028fi
25029
25030if test -n "$ac_config_links"; then
25031 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25032fi
25033
25034if test -n "$ac_config_commands"; then
25035 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25036fi
25037
25038cat >>$CONFIG_STATUS <<\_ACEOF
25039
25040ac_cs_usage="\
25041\`$as_me' instantiates files from templates according to the
25042current configuration.
25043
25044Usage: $0 [OPTIONS] [FILE]...
25045
25046 -h, --help print this help, then exit
25047 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000025048 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000025049 -d, --debug don't remove temporary files
25050 --recheck update $as_me by reconfiguring in the same conditions
25051 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000025052 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000025053 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000025054 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000025055
25056Configuration files:
25057$config_files
25058
25059Configuration headers:
25060$config_headers
25061
Reid Spencerde8c47f2004-08-29 19:35:28 +000025062Configuration links:
25063$config_links
25064
John Criswellc764fbc2003-09-06 15:17:13 +000025065Configuration commands:
25066$config_commands
25067
John Criswell7a73b802003-06-30 21:59:07 +000025068Report bugs to <bug-autoconf@gnu.org>."
25069_ACEOF
25070
25071cat >>$CONFIG_STATUS <<_ACEOF
25072ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000025073llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000025074configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000025075 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25076
Reid Spencer2706f8c2004-09-19 23:53:36 +000025077Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000025078This config.status script is free software; the Free Software Foundation
25079gives unlimited permission to copy, distribute and modify it."
25080srcdir=$srcdir
25081INSTALL="$INSTALL"
25082_ACEOF
25083
25084cat >>$CONFIG_STATUS <<\_ACEOF
25085# If no file are specified by the user, then we need to provide default
25086# value. By we need to know if files were specified by the user.
25087ac_need_defaults=:
25088while test $# != 0
25089do
25090 case $1 in
25091 --*=*)
25092 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25093 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025094 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000025095 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000025096 -*)
25097 ac_option=$1
25098 ac_optarg=$2
25099 ac_shift=shift
25100 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025101 *) # This is not an option, so the user has probably given explicit
25102 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000025103 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000025104 ac_need_defaults=false;;
25105 esac
25106
John Criswell0c38eaf2003-09-10 15:17:25 +000025107 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000025108 # Handling of the options.
25109_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000025110cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25112 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000025113 --version | --vers* | -V )
25114 echo "$ac_cs_version"; exit 0 ;;
25115 --he | --h)
25116 # Conflict between --help and --header
25117 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25118Try \`$0 --help' for more information." >&5
25119echo "$as_me: error: ambiguous option: $1
25120Try \`$0 --help' for more information." >&2;}
25121 { (exit 1); exit 1; }; };;
25122 --help | --hel | -h )
25123 echo "$ac_cs_usage"; exit 0 ;;
25124 --debug | --d* | -d )
25125 debug=: ;;
25126 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000025127 $ac_shift
25128 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000025129 ac_need_defaults=false;;
25130 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000025131 $ac_shift
25132 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000025133 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000025134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25135 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25136 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000025137
25138 # This is an error.
25139 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25140Try \`$0 --help' for more information." >&5
25141echo "$as_me: error: unrecognized option: $1
25142Try \`$0 --help' for more information." >&2;}
25143 { (exit 1); exit 1; }; } ;;
25144
25145 *) ac_config_targets="$ac_config_targets $1" ;;
25146
25147 esac
25148 shift
25149done
25150
John Criswell0c38eaf2003-09-10 15:17:25 +000025151ac_configure_extra_args=
25152
25153if $ac_cs_silent; then
25154 exec 6>/dev/null
25155 ac_configure_extra_args="$ac_configure_extra_args --silent"
25156fi
25157
25158_ACEOF
25159cat >>$CONFIG_STATUS <<_ACEOF
25160if \$ac_cs_recheck; then
25161 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25162 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25163fi
25164
John Criswell7a73b802003-06-30 21:59:07 +000025165_ACEOF
25166
John Criswellc764fbc2003-09-06 15:17:13 +000025167cat >>$CONFIG_STATUS <<_ACEOF
25168#
25169# INIT-COMMANDS section.
25170#
John Criswell7a73b802003-06-30 21:59:07 +000025171
John Criswellc764fbc2003-09-06 15:17:13 +000025172${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25173${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000025174${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025175${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025176${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025177${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25178${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000025179${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25180${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000025181${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Misha Brukman591edc62004-10-14 18:59:42 +000025182${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
Brian Gaekec45be042003-10-07 06:01:34 +000025183${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025184${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025185
25186_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025187
25188
25189
25190cat >>$CONFIG_STATUS <<\_ACEOF
25191for ac_config_target in $ac_config_targets
25192do
25193 case "$ac_config_target" in
25194 # Handling of arguments.
25195 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000025196 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025197 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25198 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025199 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025200 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025201 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025202 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25203 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000025204 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25205 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025206 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Misha Brukman591edc62004-10-14 18:59:42 +000025207 "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025208 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025209 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000025210 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000025211 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000025212 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25213 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000025214 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25215 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000025216 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25217echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25218 { (exit 1); exit 1; }; };;
25219 esac
25220done
25221
25222# If the user did not use the arguments to specify the items to instantiate,
25223# then the envvar interface is used. Set only those that are not.
25224# We use the long form for the default assignment because of an extremely
25225# bizarre bug on SunOS 4.1.3.
25226if $ac_need_defaults; then
25227 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25228 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000025229 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000025230 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000025231fi
25232
John Criswell0c38eaf2003-09-10 15:17:25 +000025233# Have a temporary directory for convenience. Make it in the build tree
25234# simply because there is no reason to put it here, and in addition,
25235# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000025236# Create a temporary directory, and hook for its removal unless debugging.
25237$debug ||
25238{
25239 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25240 trap '{ (exit 1); exit 1; }' 1 2 13 15
25241}
25242
25243# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000025244
John Criswell7a73b802003-06-30 21:59:07 +000025245{
John Criswell0c38eaf2003-09-10 15:17:25 +000025246 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000025247 test -n "$tmp" && test -d "$tmp"
25248} ||
25249{
John Criswell0c38eaf2003-09-10 15:17:25 +000025250 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000025251 (umask 077 && mkdir $tmp)
25252} ||
25253{
John Criswell0c38eaf2003-09-10 15:17:25 +000025254 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000025255 { (exit 1); exit 1; }
25256}
25257
25258_ACEOF
25259
25260cat >>$CONFIG_STATUS <<_ACEOF
25261
25262#
25263# CONFIG_FILES section.
25264#
25265
25266# No need to generate the scripts if there are no CONFIG_FILES.
25267# This happens for instance when ./config.status config.h
25268if test -n "\$CONFIG_FILES"; then
25269 # Protect against being on the right side of a sed subst in config.status.
25270 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25271 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25272s,@SHELL@,$SHELL,;t t
25273s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25274s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25275s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25276s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25277s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25278s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25279s,@exec_prefix@,$exec_prefix,;t t
25280s,@prefix@,$prefix,;t t
25281s,@program_transform_name@,$program_transform_name,;t t
25282s,@bindir@,$bindir,;t t
25283s,@sbindir@,$sbindir,;t t
25284s,@libexecdir@,$libexecdir,;t t
25285s,@datadir@,$datadir,;t t
25286s,@sysconfdir@,$sysconfdir,;t t
25287s,@sharedstatedir@,$sharedstatedir,;t t
25288s,@localstatedir@,$localstatedir,;t t
25289s,@libdir@,$libdir,;t t
25290s,@includedir@,$includedir,;t t
25291s,@oldincludedir@,$oldincludedir,;t t
25292s,@infodir@,$infodir,;t t
25293s,@mandir@,$mandir,;t t
25294s,@build_alias@,$build_alias,;t t
25295s,@host_alias@,$host_alias,;t t
25296s,@target_alias@,$target_alias,;t t
25297s,@DEFS@,$DEFS,;t t
25298s,@ECHO_C@,$ECHO_C,;t t
25299s,@ECHO_N@,$ECHO_N,;t t
25300s,@ECHO_T@,$ECHO_T,;t t
25301s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000025302s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025303s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25304s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25305s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25306s,@build@,$build,;t t
25307s,@build_cpu@,$build_cpu,;t t
25308s,@build_vendor@,$build_vendor,;t t
25309s,@build_os@,$build_os,;t t
25310s,@host@,$host,;t t
25311s,@host_cpu@,$host_cpu,;t t
25312s,@host_vendor@,$host_vendor,;t t
25313s,@host_os@,$host_os,;t t
25314s,@target@,$target,;t t
25315s,@target_cpu@,$target_cpu,;t t
25316s,@target_vendor@,$target_vendor,;t t
25317s,@target_os@,$target_os,;t t
25318s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025319s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000025320s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025321s,@CXX@,$CXX,;t t
25322s,@CXXFLAGS@,$CXXFLAGS,;t t
25323s,@LDFLAGS@,$LDFLAGS,;t t
25324s,@CPPFLAGS@,$CPPFLAGS,;t t
25325s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25326s,@EXEEXT@,$EXEEXT,;t t
25327s,@OBJEXT@,$OBJEXT,;t t
25328s,@CC@,$CC,;t t
25329s,@CFLAGS@,$CFLAGS,;t t
25330s,@ac_ct_CC@,$ac_ct_CC,;t t
25331s,@CPP@,$CPP,;t t
25332s,@ifGNUmake@,$ifGNUmake,;t t
25333s,@LEX@,$LEX,;t t
25334s,@LEXLIB@,$LEXLIB,;t t
25335s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000025336s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025337s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000025338s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025339s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025340s,@LN_S@,$LN_S,;t t
25341s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025342s,@AR@,$AR,;t t
25343s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025344s,@RANLIB@,$RANLIB,;t t
25345s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25346s,@STRIP@,$STRIP,;t t
25347s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025348s,@CXXCPP@,$CXXCPP,;t t
25349s,@F77@,$F77,;t t
25350s,@FFLAGS@,$FFLAGS,;t t
25351s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025352s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000025353s,@TAR@,$TAR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025354s,@DOT@,$DOT,;t t
25355s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000025356s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000025357s,@PYTHON@,$PYTHON,;t t
25358s,@QMTEST@,$QMTEST,;t t
Reid Spencer37130d22004-10-04 07:05:07 +000025359s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25360s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
John Criswell0021c312004-02-13 21:57:29 +000025361s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025362s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025363s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025364s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025365s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000025366s,@LLVMCC1@,$LLVMCC1,;t t
25367s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000025368s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000025369s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25370s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25371s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25372s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25373s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25374s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25375s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25376s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25377s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25378s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000025379s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000025380s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025381CEOF
25382
25383_ACEOF
25384
25385 cat >>$CONFIG_STATUS <<\_ACEOF
25386 # Split the substitutions into bite-sized pieces for seds with
25387 # small command number limits, like on Digital OSF/1 and HP-UX.
25388 ac_max_sed_lines=48
25389 ac_sed_frag=1 # Number of current file.
25390 ac_beg=1 # First line for current file.
25391 ac_end=$ac_max_sed_lines # Line after last line for current file.
25392 ac_more_lines=:
25393 ac_sed_cmds=
25394 while $ac_more_lines; do
25395 if test $ac_beg -gt 1; then
25396 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25397 else
25398 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25399 fi
25400 if test ! -s $tmp/subs.frag; then
25401 ac_more_lines=false
25402 else
25403 # The purpose of the label and of the branching condition is to
25404 # speed up the sed processing (if there are no `@' at all, there
25405 # is no need to browse any of the substitutions).
25406 # These are the two extra sed commands mentioned above.
25407 (echo ':t
25408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25409 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000025410 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000025411 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025412 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000025413 fi
25414 ac_sed_frag=`expr $ac_sed_frag + 1`
25415 ac_beg=$ac_end
25416 ac_end=`expr $ac_end + $ac_max_sed_lines`
25417 fi
25418 done
25419 if test -z "$ac_sed_cmds"; then
25420 ac_sed_cmds=cat
25421 fi
25422fi # test -n "$CONFIG_FILES"
25423
25424_ACEOF
25425cat >>$CONFIG_STATUS <<\_ACEOF
25426for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25427 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25428 case $ac_file in
25429 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000025430 cat >$tmp/stdin
25431 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025433 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025434 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025435 * ) ac_file_in=$ac_file.in ;;
25436 esac
25437
25438 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25439 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25440$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025441 X"$ac_file" : 'X\(//\)[^/]' \| \
25442 X"$ac_file" : 'X\(//\)$' \| \
25443 X"$ac_file" : 'X\(/\)' \| \
25444 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025445echo X"$ac_file" |
25446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25448 /^X\(\/\/\)$/{ s//\1/; q; }
25449 /^X\(\/\).*/{ s//\1/; q; }
25450 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025451 { if $as_mkdir_p; then
25452 mkdir -p "$ac_dir"
25453 else
25454 as_dir="$ac_dir"
25455 as_dirs=
25456 while test ! -d "$as_dir"; do
25457 as_dirs="$as_dir $as_dirs"
25458 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25459$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025460 X"$as_dir" : 'X\(//\)[^/]' \| \
25461 X"$as_dir" : 'X\(//\)$' \| \
25462 X"$as_dir" : 'X\(/\)' \| \
25463 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025464echo X"$as_dir" |
25465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25467 /^X\(\/\/\)$/{ s//\1/; q; }
25468 /^X\(\/\).*/{ s//\1/; q; }
25469 s/.*/./; q'`
25470 done
25471 test ! -n "$as_dirs" || mkdir $as_dirs
25472 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25473echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25474 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025475
25476 ac_builddir=.
25477
25478if test "$ac_dir" != .; then
25479 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25480 # A "../" for each directory in $ac_dir_suffix.
25481 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25482else
25483 ac_dir_suffix= ac_top_builddir=
25484fi
25485
25486case $srcdir in
25487 .) # No --srcdir option. We are building in place.
25488 ac_srcdir=.
25489 if test -z "$ac_top_builddir"; then
25490 ac_top_srcdir=.
25491 else
25492 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25493 fi ;;
25494 [\\/]* | ?:[\\/]* ) # Absolute path.
25495 ac_srcdir=$srcdir$ac_dir_suffix;
25496 ac_top_srcdir=$srcdir ;;
25497 *) # Relative path.
25498 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25499 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25500esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025501
25502# Do not use `cd foo && pwd` to compute absolute paths, because
25503# the directories may not exist.
25504case `pwd` in
25505.) ac_abs_builddir="$ac_dir";;
25506*)
25507 case "$ac_dir" in
25508 .) ac_abs_builddir=`pwd`;;
25509 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25510 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25511 esac;;
25512esac
25513case $ac_abs_builddir in
25514.) ac_abs_top_builddir=${ac_top_builddir}.;;
25515*)
25516 case ${ac_top_builddir}. in
25517 .) ac_abs_top_builddir=$ac_abs_builddir;;
25518 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25519 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25520 esac;;
25521esac
25522case $ac_abs_builddir in
25523.) ac_abs_srcdir=$ac_srcdir;;
25524*)
25525 case $ac_srcdir in
25526 .) ac_abs_srcdir=$ac_abs_builddir;;
25527 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25528 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25529 esac;;
25530esac
25531case $ac_abs_builddir in
25532.) ac_abs_top_srcdir=$ac_top_srcdir;;
25533*)
25534 case $ac_top_srcdir in
25535 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25536 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25537 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25538 esac;;
25539esac
John Criswell7a73b802003-06-30 21:59:07 +000025540
25541
25542 case $INSTALL in
25543 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25544 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25545 esac
25546
25547 if test x"$ac_file" != x-; then
25548 { echo "$as_me:$LINENO: creating $ac_file" >&5
25549echo "$as_me: creating $ac_file" >&6;}
25550 rm -f "$ac_file"
25551 fi
25552 # Let's still pretend it is `configure' which instantiates (i.e., don't
25553 # use $as_me), people would be surprised to read:
25554 # /* config.h. Generated by config.status. */
25555 if test x"$ac_file" = x-; then
25556 configure_input=
25557 else
25558 configure_input="$ac_file. "
25559 fi
25560 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000025561 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000025562
25563 # First look for the input files in the build tree, otherwise in the
25564 # src tree.
25565 ac_file_inputs=`IFS=:
25566 for f in $ac_file_in; do
25567 case $f in
25568 -) echo $tmp/stdin ;;
25569 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025570 # Absolute (can't be DOS-style, as IFS=:)
25571 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025572echo "$as_me: error: cannot find input file: $f" >&2;}
25573 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025574 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000025575 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000025576 if test -f "$f"; then
25577 # Build tree
25578 echo "$f"
25579 elif test -f "$srcdir/$f"; then
25580 # Source tree
25581 echo "$srcdir/$f"
25582 else
25583 # /dev/null tree
25584 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025585echo "$as_me: error: cannot find input file: $f" >&2;}
25586 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025587 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000025588 esac
25589 done` || { (exit 1); exit 1; }
25590_ACEOF
25591cat >>$CONFIG_STATUS <<_ACEOF
25592 sed "$ac_vpsub
25593$extrasub
25594_ACEOF
25595cat >>$CONFIG_STATUS <<\_ACEOF
25596:t
25597/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25598s,@configure_input@,$configure_input,;t t
25599s,@srcdir@,$ac_srcdir,;t t
25600s,@abs_srcdir@,$ac_abs_srcdir,;t t
25601s,@top_srcdir@,$ac_top_srcdir,;t t
25602s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25603s,@builddir@,$ac_builddir,;t t
25604s,@abs_builddir@,$ac_abs_builddir,;t t
25605s,@top_builddir@,$ac_top_builddir,;t t
25606s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25607s,@INSTALL@,$ac_INSTALL,;t t
25608" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25609 rm -f $tmp/stdin
25610 if test x"$ac_file" != x-; then
25611 mv $tmp/out $ac_file
25612 else
25613 cat $tmp/out
25614 rm -f $tmp/out
25615 fi
25616
25617done
25618_ACEOF
25619cat >>$CONFIG_STATUS <<\_ACEOF
25620
25621#
25622# CONFIG_HEADER section.
25623#
25624
25625# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25626# NAME is the cpp macro being defined and VALUE is the value it is being given.
25627#
25628# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025629ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25630ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000025631ac_dC=' '
25632ac_dD=',;t'
25633# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000025634ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000025635ac_uB='$,\1#\2define\3'
25636ac_uC=' '
25637ac_uD=',;t'
25638
25639for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25640 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25641 case $ac_file in
25642 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000025643 cat >$tmp/stdin
25644 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025646 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025647 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025648 * ) ac_file_in=$ac_file.in ;;
25649 esac
25650
25651 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25652echo "$as_me: creating $ac_file" >&6;}
25653
25654 # First look for the input files in the build tree, otherwise in the
25655 # src tree.
25656 ac_file_inputs=`IFS=:
25657 for f in $ac_file_in; do
25658 case $f in
25659 -) echo $tmp/stdin ;;
25660 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025661 # Absolute (can't be DOS-style, as IFS=:)
25662 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025663echo "$as_me: error: cannot find input file: $f" >&2;}
25664 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025665 # Do quote $f, to prevent DOS paths from being IFS'd.
25666 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000025667 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000025668 if test -f "$f"; then
25669 # Build tree
25670 echo "$f"
25671 elif test -f "$srcdir/$f"; then
25672 # Source tree
25673 echo "$srcdir/$f"
25674 else
25675 # /dev/null tree
25676 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025677echo "$as_me: error: cannot find input file: $f" >&2;}
25678 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025679 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000025680 esac
25681 done` || { (exit 1); exit 1; }
25682 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025683 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000025684
25685_ACEOF
25686
25687# Transform confdefs.h into two sed scripts, `conftest.defines' and
25688# `conftest.undefs', that substitutes the proper values into
25689# config.h.in to produce config.h. The first handles `#define'
25690# templates, and the second `#undef' templates.
25691# And first: Protect against being on the right side of a sed subst in
25692# config.status. Protect against being in an unquoted here document
25693# in config.status.
25694rm -f conftest.defines conftest.undefs
25695# Using a here document instead of a string reduces the quoting nightmare.
25696# Putting comments in sed scripts is not portable.
25697#
25698# `end' is used to avoid that the second main sed command (meant for
25699# 0-ary CPP macros) applies to n-ary macro definitions.
25700# See the Autoconf documentation for `clear'.
25701cat >confdef2sed.sed <<\_ACEOF
25702s/[\\&,]/\\&/g
25703s,[\\$`],\\&,g
25704t clear
25705: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000025706s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025707t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000025708s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025709: end
25710_ACEOF
25711# If some macros were called several times there might be several times
25712# the same #defines, which is useless. Nevertheless, we may not want to
25713# sort them, since we want the *last* AC-DEFINE to be honored.
25714uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25715sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25716rm -f confdef2sed.sed
25717
25718# This sed command replaces #undef with comments. This is necessary, for
25719# example, in the case of _POSIX_SOURCE, which is predefined and required
25720# on some systems where configure will not decide to define it.
25721cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000025722s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000025723_ACEOF
25724
25725# Break up conftest.defines because some shells have a limit on the size
25726# of here documents, and old seds have small limits too (100 cmds).
25727echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000025728echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025729echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25730echo ' :' >>$CONFIG_STATUS
25731rm -f conftest.tail
25732while grep . conftest.defines >/dev/null
25733do
25734 # Write a limited-size here document to $tmp/defines.sed.
25735 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25736 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025737 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025738 # Work around the forget-to-reset-the-flag bug.
25739 echo 't clr' >>$CONFIG_STATUS
25740 echo ': clr' >>$CONFIG_STATUS
25741 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25742 echo 'CEOF
25743 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25744 rm -f $tmp/in
25745 mv $tmp/out $tmp/in
25746' >>$CONFIG_STATUS
25747 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25748 rm -f conftest.defines
25749 mv conftest.tail conftest.defines
25750done
25751rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000025752echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025753echo >>$CONFIG_STATUS
25754
25755# Break up conftest.undefs because some shells have a limit on the size
25756# of here documents, and old seds have small limits too (100 cmds).
25757echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25758rm -f conftest.tail
25759while grep . conftest.undefs >/dev/null
25760do
25761 # Write a limited-size here document to $tmp/undefs.sed.
25762 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25763 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025764 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025765 # Work around the forget-to-reset-the-flag bug.
25766 echo 't clr' >>$CONFIG_STATUS
25767 echo ': clr' >>$CONFIG_STATUS
25768 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25769 echo 'CEOF
25770 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25771 rm -f $tmp/in
25772 mv $tmp/out $tmp/in
25773' >>$CONFIG_STATUS
25774 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25775 rm -f conftest.undefs
25776 mv conftest.tail conftest.undefs
25777done
25778rm -f conftest.undefs
25779
25780cat >>$CONFIG_STATUS <<\_ACEOF
25781 # Let's still pretend it is `configure' which instantiates (i.e., don't
25782 # use $as_me), people would be surprised to read:
25783 # /* config.h. Generated by config.status. */
25784 if test x"$ac_file" = x-; then
25785 echo "/* Generated by configure. */" >$tmp/config.h
25786 else
25787 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25788 fi
25789 cat $tmp/in >>$tmp/config.h
25790 rm -f $tmp/in
25791 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025792 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025793 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25794echo "$as_me: $ac_file is unchanged" >&6;}
25795 else
25796 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25797$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025798 X"$ac_file" : 'X\(//\)[^/]' \| \
25799 X"$ac_file" : 'X\(//\)$' \| \
25800 X"$ac_file" : 'X\(/\)' \| \
25801 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025802echo X"$ac_file" |
25803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25805 /^X\(\/\/\)$/{ s//\1/; q; }
25806 /^X\(\/\).*/{ s//\1/; q; }
25807 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025808 { if $as_mkdir_p; then
25809 mkdir -p "$ac_dir"
25810 else
25811 as_dir="$ac_dir"
25812 as_dirs=
25813 while test ! -d "$as_dir"; do
25814 as_dirs="$as_dir $as_dirs"
25815 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25816$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025817 X"$as_dir" : 'X\(//\)[^/]' \| \
25818 X"$as_dir" : 'X\(//\)$' \| \
25819 X"$as_dir" : 'X\(/\)' \| \
25820 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025821echo X"$as_dir" |
25822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25824 /^X\(\/\/\)$/{ s//\1/; q; }
25825 /^X\(\/\).*/{ s//\1/; q; }
25826 s/.*/./; q'`
25827 done
25828 test ! -n "$as_dirs" || mkdir $as_dirs
25829 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25830echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25831 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025832
25833 rm -f $ac_file
25834 mv $tmp/config.h $ac_file
25835 fi
25836 else
25837 cat $tmp/config.h
25838 rm -f $tmp/config.h
25839 fi
25840done
25841_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025842cat >>$CONFIG_STATUS <<\_ACEOF
25843
25844#
Reid Spencerde8c47f2004-08-29 19:35:28 +000025845# CONFIG_LINKS section.
25846#
25847
25848for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25849 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25850 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25851
25852 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25853echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25854
25855 if test ! -r $srcdir/$ac_source; then
25856 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25857echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25858 { (exit 1); exit 1; }; }
25859 fi
25860 rm -f $ac_dest
25861
25862 # Make relative symlinks.
25863 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25864$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025865 X"$ac_dest" : 'X\(//\)[^/]' \| \
25866 X"$ac_dest" : 'X\(//\)$' \| \
25867 X"$ac_dest" : 'X\(/\)' \| \
25868 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025869echo X"$ac_dest" |
25870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25872 /^X\(\/\/\)$/{ s//\1/; q; }
25873 /^X\(\/\).*/{ s//\1/; q; }
25874 s/.*/./; q'`
25875 { if $as_mkdir_p; then
25876 mkdir -p "$ac_dest_dir"
25877 else
25878 as_dir="$ac_dest_dir"
25879 as_dirs=
25880 while test ! -d "$as_dir"; do
25881 as_dirs="$as_dir $as_dirs"
25882 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25883$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025884 X"$as_dir" : 'X\(//\)[^/]' \| \
25885 X"$as_dir" : 'X\(//\)$' \| \
25886 X"$as_dir" : 'X\(/\)' \| \
25887 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025888echo X"$as_dir" |
25889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25891 /^X\(\/\/\)$/{ s//\1/; q; }
25892 /^X\(\/\).*/{ s//\1/; q; }
25893 s/.*/./; q'`
25894 done
25895 test ! -n "$as_dirs" || mkdir $as_dirs
25896 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25897echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25898 { (exit 1); exit 1; }; }; }
25899
25900 ac_builddir=.
25901
25902if test "$ac_dest_dir" != .; then
25903 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25904 # A "../" for each directory in $ac_dir_suffix.
25905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25906else
25907 ac_dir_suffix= ac_top_builddir=
25908fi
25909
25910case $srcdir in
25911 .) # No --srcdir option. We are building in place.
25912 ac_srcdir=.
25913 if test -z "$ac_top_builddir"; then
25914 ac_top_srcdir=.
25915 else
25916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25917 fi ;;
25918 [\\/]* | ?:[\\/]* ) # Absolute path.
25919 ac_srcdir=$srcdir$ac_dir_suffix;
25920 ac_top_srcdir=$srcdir ;;
25921 *) # Relative path.
25922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25924esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025925
25926# Do not use `cd foo && pwd` to compute absolute paths, because
25927# the directories may not exist.
25928case `pwd` in
25929.) ac_abs_builddir="$ac_dest_dir";;
25930*)
25931 case "$ac_dest_dir" in
25932 .) ac_abs_builddir=`pwd`;;
25933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25934 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25935 esac;;
25936esac
25937case $ac_abs_builddir in
25938.) ac_abs_top_builddir=${ac_top_builddir}.;;
25939*)
25940 case ${ac_top_builddir}. in
25941 .) ac_abs_top_builddir=$ac_abs_builddir;;
25942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25944 esac;;
25945esac
25946case $ac_abs_builddir in
25947.) ac_abs_srcdir=$ac_srcdir;;
25948*)
25949 case $ac_srcdir in
25950 .) ac_abs_srcdir=$ac_abs_builddir;;
25951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25953 esac;;
25954esac
25955case $ac_abs_builddir in
25956.) ac_abs_top_srcdir=$ac_top_srcdir;;
25957*)
25958 case $ac_top_srcdir in
25959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25962 esac;;
25963esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000025964
25965
25966 case $srcdir in
25967 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25968 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25969 esac
25970
25971 # Try a symlink, then a hard link, then a copy.
25972 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25973 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25974 cp -p $srcdir/$ac_source $ac_dest ||
25975 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25976echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25977 { (exit 1); exit 1; }; }
25978done
25979_ACEOF
25980cat >>$CONFIG_STATUS <<\_ACEOF
25981
25982#
John Criswellc764fbc2003-09-06 15:17:13 +000025983# CONFIG_COMMANDS section.
25984#
25985for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25986 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25987 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25988 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25989$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025990 X"$ac_dest" : 'X\(//\)[^/]' \| \
25991 X"$ac_dest" : 'X\(//\)$' \| \
25992 X"$ac_dest" : 'X\(/\)' \| \
25993 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025994echo X"$ac_dest" |
25995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25997 /^X\(\/\/\)$/{ s//\1/; q; }
25998 /^X\(\/\).*/{ s//\1/; q; }
25999 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000026000 { if $as_mkdir_p; then
26001 mkdir -p "$ac_dir"
26002 else
26003 as_dir="$ac_dir"
26004 as_dirs=
26005 while test ! -d "$as_dir"; do
26006 as_dirs="$as_dir $as_dirs"
26007 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26008$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26009 X"$as_dir" : 'X\(//\)[^/]' \| \
26010 X"$as_dir" : 'X\(//\)$' \| \
26011 X"$as_dir" : 'X\(/\)' \| \
26012 . : '\(.\)' 2>/dev/null ||
26013echo X"$as_dir" |
26014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26016 /^X\(\/\/\)$/{ s//\1/; q; }
26017 /^X\(\/\).*/{ s//\1/; q; }
26018 s/.*/./; q'`
26019 done
26020 test ! -n "$as_dirs" || mkdir $as_dirs
26021 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26022echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26023 { (exit 1); exit 1; }; }; }
26024
John Criswellc764fbc2003-09-06 15:17:13 +000026025 ac_builddir=.
26026
26027if test "$ac_dir" != .; then
26028 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26029 # A "../" for each directory in $ac_dir_suffix.
26030 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26031else
26032 ac_dir_suffix= ac_top_builddir=
26033fi
26034
26035case $srcdir in
26036 .) # No --srcdir option. We are building in place.
26037 ac_srcdir=.
26038 if test -z "$ac_top_builddir"; then
26039 ac_top_srcdir=.
26040 else
26041 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26042 fi ;;
26043 [\\/]* | ?:[\\/]* ) # Absolute path.
26044 ac_srcdir=$srcdir$ac_dir_suffix;
26045 ac_top_srcdir=$srcdir ;;
26046 *) # Relative path.
26047 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26048 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26049esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000026050
26051# Do not use `cd foo && pwd` to compute absolute paths, because
26052# the directories may not exist.
26053case `pwd` in
26054.) ac_abs_builddir="$ac_dir";;
26055*)
26056 case "$ac_dir" in
26057 .) ac_abs_builddir=`pwd`;;
26058 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26059 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26060 esac;;
26061esac
26062case $ac_abs_builddir in
26063.) ac_abs_top_builddir=${ac_top_builddir}.;;
26064*)
26065 case ${ac_top_builddir}. in
26066 .) ac_abs_top_builddir=$ac_abs_builddir;;
26067 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26068 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26069 esac;;
26070esac
26071case $ac_abs_builddir in
26072.) ac_abs_srcdir=$ac_srcdir;;
26073*)
26074 case $ac_srcdir in
26075 .) ac_abs_srcdir=$ac_abs_builddir;;
26076 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26077 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26078 esac;;
26079esac
26080case $ac_abs_builddir in
26081.) ac_abs_top_srcdir=$ac_top_srcdir;;
26082*)
26083 case $ac_top_srcdir in
26084 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26085 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26086 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26087 esac;;
26088esac
John Criswellc764fbc2003-09-06 15:17:13 +000026089
26090
26091 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26092echo "$as_me: executing $ac_dest commands" >&6;}
26093 case $ac_dest in
26094 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
26095 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000026096 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026097 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026098 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026099 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
26100 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000026101 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
26102 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026103 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Misha Brukman591edc62004-10-14 18:59:42 +000026104 tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
Brian Gaekec45be042003-10-07 06:01:34 +000026105 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026106 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026107 esac
26108done
26109_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026110
26111cat >>$CONFIG_STATUS <<\_ACEOF
26112
26113{ (exit 0); exit 0; }
26114_ACEOF
26115chmod +x $CONFIG_STATUS
26116ac_clean_files=$ac_clean_files_save
26117
26118
26119# configure is writing to config.log, and then calls config.status.
26120# config.status does its own redirection, appending to config.log.
26121# Unfortunately, on DOS this fails, as config.log is still kept open
26122# by configure, so config.status won't be able to write to it; its
26123# output is simply discarded. So we exec the FD to /dev/null,
26124# effectively closing config.log, so it can be properly (re)opened and
26125# appended to by config.status. When coming back to configure, we
26126# need to make the FD available again.
26127if test "$no_create" != yes; then
26128 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000026129 ac_config_status_args=
26130 test "$silent" = yes &&
26131 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000026132 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000026133 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000026134 exec 5>>config.log
26135 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26136 # would make configure fail if this is the last instruction.
26137 $ac_cs_success || { (exit 1); exit 1; }
26138fi
26139
John Criswell12399a12003-09-30 15:55:44 +000026140#
26141# CONFIG_SUBDIRS section.
26142#
26143if test "$no_recursion" != yes; then
26144
26145 # Remove --cache-file and --srcdir arguments so they do not pile up.
26146 ac_sub_configure_args=
26147 ac_prev=
26148 for ac_arg in $ac_configure_args; do
26149 if test -n "$ac_prev"; then
26150 ac_prev=
26151 continue
26152 fi
26153 case $ac_arg in
26154 -cache-file | --cache-file | --cache-fil | --cache-fi \
26155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26156 ac_prev=cache_file ;;
26157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26159 | --c=*)
26160 ;;
26161 --config-cache | -C)
26162 ;;
26163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26164 ac_prev=srcdir ;;
26165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26166 ;;
26167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26168 ac_prev=prefix ;;
26169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26170 ;;
26171 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26172 esac
26173 done
26174
26175 # Always prepend --prefix to ensure using the same prefix
26176 # in subdir configurations.
26177 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26178
26179 ac_popdir=`pwd`
26180 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26181
26182 # Do not complain, so a configure script can configure whichever
26183 # parts of a large source tree are present.
26184 test -d $srcdir/$ac_dir || continue
26185
26186 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26187echo "$as_me: configuring in $ac_dir" >&6;}
26188 { if $as_mkdir_p; then
26189 mkdir -p "$ac_dir"
26190 else
26191 as_dir="$ac_dir"
26192 as_dirs=
26193 while test ! -d "$as_dir"; do
26194 as_dirs="$as_dir $as_dirs"
26195 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26196$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026197 X"$as_dir" : 'X\(//\)[^/]' \| \
26198 X"$as_dir" : 'X\(//\)$' \| \
26199 X"$as_dir" : 'X\(/\)' \| \
26200 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000026201echo X"$as_dir" |
26202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26204 /^X\(\/\/\)$/{ s//\1/; q; }
26205 /^X\(\/\).*/{ s//\1/; q; }
26206 s/.*/./; q'`
26207 done
26208 test ! -n "$as_dirs" || mkdir $as_dirs
26209 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26210echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26211 { (exit 1); exit 1; }; }; }
26212
26213 ac_builddir=.
26214
26215if test "$ac_dir" != .; then
26216 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26217 # A "../" for each directory in $ac_dir_suffix.
26218 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26219else
26220 ac_dir_suffix= ac_top_builddir=
26221fi
26222
26223case $srcdir in
26224 .) # No --srcdir option. We are building in place.
26225 ac_srcdir=.
26226 if test -z "$ac_top_builddir"; then
26227 ac_top_srcdir=.
26228 else
26229 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26230 fi ;;
26231 [\\/]* | ?:[\\/]* ) # Absolute path.
26232 ac_srcdir=$srcdir$ac_dir_suffix;
26233 ac_top_srcdir=$srcdir ;;
26234 *) # Relative path.
26235 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26236 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26237esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000026238
26239# Do not use `cd foo && pwd` to compute absolute paths, because
26240# the directories may not exist.
26241case `pwd` in
26242.) ac_abs_builddir="$ac_dir";;
26243*)
26244 case "$ac_dir" in
26245 .) ac_abs_builddir=`pwd`;;
26246 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26247 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26248 esac;;
26249esac
26250case $ac_abs_builddir in
26251.) ac_abs_top_builddir=${ac_top_builddir}.;;
26252*)
26253 case ${ac_top_builddir}. in
26254 .) ac_abs_top_builddir=$ac_abs_builddir;;
26255 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26256 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26257 esac;;
26258esac
26259case $ac_abs_builddir in
26260.) ac_abs_srcdir=$ac_srcdir;;
26261*)
26262 case $ac_srcdir in
26263 .) ac_abs_srcdir=$ac_abs_builddir;;
26264 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26265 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26266 esac;;
26267esac
26268case $ac_abs_builddir in
26269.) ac_abs_top_srcdir=$ac_top_srcdir;;
26270*)
26271 case $ac_top_srcdir in
26272 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26273 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26274 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26275 esac;;
26276esac
John Criswell12399a12003-09-30 15:55:44 +000026277
26278
26279 cd $ac_dir
26280
26281 # Check for guested configure; otherwise get Cygnus style configure.
26282 if test -f $ac_srcdir/configure.gnu; then
26283 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26284 elif test -f $ac_srcdir/configure; then
26285 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26286 elif test -f $ac_srcdir/configure.in; then
26287 ac_sub_configure=$ac_configure
26288 else
26289 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26290echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26291 ac_sub_configure=
26292 fi
26293
26294 # The recursion is here.
26295 if test -n "$ac_sub_configure"; then
26296 # Make the cache file name correct relative to the subdirectory.
26297 case $cache_file in
26298 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26299 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026300 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000026301 esac
26302
26303 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26304echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26305 # The eval makes quoting arguments work.
26306 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026307 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26308 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000026309echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26310 { (exit 1); exit 1; }; }
26311 fi
26312
26313 cd $ac_popdir
26314 done
26315fi
26316
Brian Gaekef3b24102003-11-16 18:38:14 +000026317
Reid Spencer0d98aed2004-10-04 22:05:53 +000026318if test $bzip2_found -ne 1 ; then
26319 if test $zlib_found -ne 1 ; then
26320 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26321echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26322 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26323echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26324 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26325echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26326 fi
26327fi
26328
Brian Gaekef3b24102003-11-16 18:38:14 +000026329if test $llvmgccwarn = yes
26330then
26331 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26332echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26333 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26334echo "$as_me: WARNING: ***** appear to be working." >&2;}
26335 { echo "$as_me:$LINENO: WARNING: ***** " >&5
26336echo "$as_me: WARNING: ***** " >&2;}
26337 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26338echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26339 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26340echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26341 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26342echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
26343fi
Brian Gaeke554831c2004-01-21 19:39:29 +000026344