blob: 948517019d26d5571867198839418825aaf0e0bd [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer78ba11d2005-02-16 16:21:00 +00003# Generated by GNU Autoconf 2.59 for llvm 1.5cvs.
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.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
11# $LLVM_COPYRIGHT
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencer78ba11d2005-02-16 16:21:00 +0000428PACKAGE_VERSION='1.5cvs'
429PACKAGE_STRING='llvm 1.5cvs'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000440ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000441# Factoring default headers for most tests.
442ac_includes_default="\
443#include <stdio.h>
444#if HAVE_SYS_TYPES_H
445# include <sys/types.h>
446#endif
447#if HAVE_SYS_STAT_H
448# include <sys/stat.h>
449#endif
450#if STDC_HEADERS
451# include <stdlib.h>
452# include <stddef.h>
453#else
454# if HAVE_STDLIB_H
455# include <stdlib.h>
456# endif
457#endif
458#if HAVE_STRING_H
459# if !STDC_HEADERS && HAVE_MEMORY_H
460# include <memory.h>
461# endif
462# include <string.h>
463#endif
464#if HAVE_STRINGS_H
465# include <strings.h>
466#endif
467#if HAVE_INTTYPES_H
468# include <inttypes.h>
469#else
470# if HAVE_STDINT_H
471# include <stdint.h>
472# endif
473#endif
474#if HAVE_UNISTD_H
475# include <unistd.h>
476#endif"
477
Reid Spencer945de9b2005-04-22 07:27:28 +0000478ac_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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR 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 +0000479ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000480
481# Initialize some variables set by options.
482ac_init_help=
483ac_init_version=false
484# The variables have the same names as the options, with
485# dashes changed to underlines.
486cache_file=/dev/null
487exec_prefix=NONE
488no_create=
489no_recursion=
490prefix=NONE
491program_prefix=NONE
492program_suffix=NONE
493program_transform_name=s,x,x,
494silent=
495site=
496srcdir=
497verbose=
498x_includes=NONE
499x_libraries=NONE
500
501# Installation directory options.
502# These are left unexpanded so users can "make install exec_prefix=/foo"
503# and all the variables that are supposed to be based on exec_prefix
504# by default will actually change.
505# Use braces instead of parens because sh, perl, etc. also accept them.
506bindir='${exec_prefix}/bin'
507sbindir='${exec_prefix}/sbin'
508libexecdir='${exec_prefix}/libexec'
509datadir='${prefix}/share'
510sysconfdir='${prefix}/etc'
511sharedstatedir='${prefix}/com'
512localstatedir='${prefix}/var'
513libdir='${exec_prefix}/lib'
514includedir='${prefix}/include'
515oldincludedir='/usr/include'
516infodir='${prefix}/info'
517mandir='${prefix}/man'
518
519ac_prev=
520for ac_option
521do
522 # If the previous option needs an argument, assign it.
523 if test -n "$ac_prev"; then
524 eval "$ac_prev=\$ac_option"
525 ac_prev=
526 continue
527 fi
528
529 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530
531 # Accept the important Cygnus configure options, so we can diagnose typos.
532
533 case $ac_option in
534
535 -bindir | --bindir | --bindi | --bind | --bin | --bi)
536 ac_prev=bindir ;;
537 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538 bindir=$ac_optarg ;;
539
540 -build | --build | --buil | --bui | --bu)
541 ac_prev=build_alias ;;
542 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
543 build_alias=$ac_optarg ;;
544
545 -cache-file | --cache-file | --cache-fil | --cache-fi \
546 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
547 ac_prev=cache_file ;;
548 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
549 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
550 cache_file=$ac_optarg ;;
551
552 --config-cache | -C)
553 cache_file=config.cache ;;
554
555 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556 ac_prev=datadir ;;
557 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558 | --da=*)
559 datadir=$ac_optarg ;;
560
561 -disable-* | --disable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 eval "enable_$ac_feature=no" ;;
569
570 -enable-* | --enable-*)
571 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575 { (exit 1); exit 1; }; }
576 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577 case $ac_option in
578 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579 *) ac_optarg=yes ;;
580 esac
581 eval "enable_$ac_feature='$ac_optarg'" ;;
582
583 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
584 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
585 | --exec | --exe | --ex)
586 ac_prev=exec_prefix ;;
587 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
588 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
589 | --exec=* | --exe=* | --ex=*)
590 exec_prefix=$ac_optarg ;;
591
592 -gas | --gas | --ga | --g)
593 # Obsolete; use --with-gas.
594 with_gas=yes ;;
595
596 -help | --help | --hel | --he | -h)
597 ac_init_help=long ;;
598 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
599 ac_init_help=recursive ;;
600 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
601 ac_init_help=short ;;
602
603 -host | --host | --hos | --ho)
604 ac_prev=host_alias ;;
605 -host=* | --host=* | --hos=* | --ho=*)
606 host_alias=$ac_optarg ;;
607
608 -includedir | --includedir | --includedi | --included | --include \
609 | --includ | --inclu | --incl | --inc)
610 ac_prev=includedir ;;
611 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
612 | --includ=* | --inclu=* | --incl=* | --inc=*)
613 includedir=$ac_optarg ;;
614
615 -infodir | --infodir | --infodi | --infod | --info | --inf)
616 ac_prev=infodir ;;
617 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
618 infodir=$ac_optarg ;;
619
620 -libdir | --libdir | --libdi | --libd)
621 ac_prev=libdir ;;
622 -libdir=* | --libdir=* | --libdi=* | --libd=*)
623 libdir=$ac_optarg ;;
624
625 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
626 | --libexe | --libex | --libe)
627 ac_prev=libexecdir ;;
628 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
629 | --libexe=* | --libex=* | --libe=*)
630 libexecdir=$ac_optarg ;;
631
632 -localstatedir | --localstatedir | --localstatedi | --localstated \
633 | --localstate | --localstat | --localsta | --localst \
634 | --locals | --local | --loca | --loc | --lo)
635 ac_prev=localstatedir ;;
636 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
637 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
638 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
639 localstatedir=$ac_optarg ;;
640
641 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642 ac_prev=mandir ;;
643 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
644 mandir=$ac_optarg ;;
645
646 -nfp | --nfp | --nf)
647 # Obsolete; use --without-fp.
648 with_fp=no ;;
649
650 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
651 | --no-cr | --no-c | -n)
652 no_create=yes ;;
653
654 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656 no_recursion=yes ;;
657
658 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
659 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
660 | --oldin | --oldi | --old | --ol | --o)
661 ac_prev=oldincludedir ;;
662 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
663 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
664 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
665 oldincludedir=$ac_optarg ;;
666
667 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668 ac_prev=prefix ;;
669 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670 prefix=$ac_optarg ;;
671
672 -program-prefix | --program-prefix | --program-prefi | --program-pref \
673 | --program-pre | --program-pr | --program-p)
674 ac_prev=program_prefix ;;
675 -program-prefix=* | --program-prefix=* | --program-prefi=* \
676 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
677 program_prefix=$ac_optarg ;;
678
679 -program-suffix | --program-suffix | --program-suffi | --program-suff \
680 | --program-suf | --program-su | --program-s)
681 ac_prev=program_suffix ;;
682 -program-suffix=* | --program-suffix=* | --program-suffi=* \
683 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
684 program_suffix=$ac_optarg ;;
685
686 -program-transform-name | --program-transform-name \
687 | --program-transform-nam | --program-transform-na \
688 | --program-transform-n | --program-transform- \
689 | --program-transform | --program-transfor \
690 | --program-transfo | --program-transf \
691 | --program-trans | --program-tran \
692 | --progr-tra | --program-tr | --program-t)
693 ac_prev=program_transform_name ;;
694 -program-transform-name=* | --program-transform-name=* \
695 | --program-transform-nam=* | --program-transform-na=* \
696 | --program-transform-n=* | --program-transform-=* \
697 | --program-transform=* | --program-transfor=* \
698 | --program-transfo=* | --program-transf=* \
699 | --program-trans=* | --program-tran=* \
700 | --progr-tra=* | --program-tr=* | --program-t=*)
701 program_transform_name=$ac_optarg ;;
702
703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
704 | -silent | --silent | --silen | --sile | --sil)
705 silent=yes ;;
706
707 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708 ac_prev=sbindir ;;
709 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710 | --sbi=* | --sb=*)
711 sbindir=$ac_optarg ;;
712
713 -sharedstatedir | --sharedstatedir | --sharedstatedi \
714 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
715 | --sharedst | --shareds | --shared | --share | --shar \
716 | --sha | --sh)
717 ac_prev=sharedstatedir ;;
718 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
719 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
720 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721 | --sha=* | --sh=*)
722 sharedstatedir=$ac_optarg ;;
723
724 -site | --site | --sit)
725 ac_prev=site ;;
726 -site=* | --site=* | --sit=*)
727 site=$ac_optarg ;;
728
729 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730 ac_prev=srcdir ;;
731 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732 srcdir=$ac_optarg ;;
733
734 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
735 | --syscon | --sysco | --sysc | --sys | --sy)
736 ac_prev=sysconfdir ;;
737 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
738 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
739 sysconfdir=$ac_optarg ;;
740
741 -target | --target | --targe | --targ | --tar | --ta | --t)
742 ac_prev=target_alias ;;
743 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
744 target_alias=$ac_optarg ;;
745
746 -v | -verbose | --verbose | --verbos | --verbo | --verb)
747 verbose=yes ;;
748
749 -version | --version | --versio | --versi | --vers | -V)
750 ac_init_version=: ;;
751
752 -with-* | --with-*)
753 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package| sed 's/-/_/g'`
759 case $ac_option in
760 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761 *) ac_optarg=yes ;;
762 esac
763 eval "with_$ac_package='$ac_optarg'" ;;
764
765 -without-* | --without-*)
766 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
767 # Reject names that are not valid shell variable names.
768 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769 { echo "$as_me: error: invalid package name: $ac_package" >&2
770 { (exit 1); exit 1; }; }
771 ac_package=`echo $ac_package | sed 's/-/_/g'`
772 eval "with_$ac_package=no" ;;
773
774 --x)
775 # Obsolete; use --with-x.
776 with_x=yes ;;
777
778 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
779 | --x-incl | --x-inc | --x-in | --x-i)
780 ac_prev=x_includes ;;
781 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
782 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
783 x_includes=$ac_optarg ;;
784
785 -x-libraries | --x-libraries | --x-librarie | --x-librari \
786 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
787 ac_prev=x_libraries ;;
788 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
789 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
790 x_libraries=$ac_optarg ;;
791
792 -*) { echo "$as_me: error: unrecognized option: $ac_option
793Try \`$0 --help' for more information." >&2
794 { (exit 1); exit 1; }; }
795 ;;
796
797 *=*)
798 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
799 # Reject names that are not valid shell variable names.
800 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
801 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
802 { (exit 1); exit 1; }; }
803 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
804 eval "$ac_envvar='$ac_optarg'"
805 export $ac_envvar ;;
806
807 *)
808 # FIXME: should be removed in autoconf 3.0.
809 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
810 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
812 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813 ;;
814
815 esac
816done
817
818if test -n "$ac_prev"; then
819 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
820 { echo "$as_me: error: missing argument to $ac_option" >&2
821 { (exit 1); exit 1; }; }
822fi
823
824# Be sure to have absolute paths.
825for ac_var in exec_prefix prefix
826do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833done
834
835# Be sure to have absolute paths.
836for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000837 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000838do
839 eval ac_val=$`echo $ac_var`
840 case $ac_val in
841 [\\/$]* | ?:[\\/]* ) ;;
842 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843 { (exit 1); exit 1; }; };;
844 esac
845done
846
847# There might be people who depend on the old broken behavior: `$host'
848# used to hold the argument of --host etc.
849# FIXME: To remove some day.
850build=$build_alias
851host=$host_alias
852target=$target_alias
853
854# FIXME: To remove some day.
855if test "x$host_alias" != x; then
856 if test "x$build_alias" = x; then
857 cross_compiling=maybe
858 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
859 If a cross compiler is detected then cross compile mode will be used." >&2
860 elif test "x$build_alias" != "x$host_alias"; then
861 cross_compiling=yes
862 fi
863fi
864
865ac_tool_prefix=
866test -n "$host_alias" && ac_tool_prefix=$host_alias-
867
868test "$silent" = yes && exec 6>/dev/null
869
870
871# Find the source files, if location was not specified.
872if test -z "$srcdir"; then
873 ac_srcdir_defaulted=yes
874 # Try the directory containing this script, then its parent.
875 ac_confdir=`(dirname "$0") 2>/dev/null ||
876$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000877 X"$0" : 'X\(//\)[^/]' \| \
878 X"$0" : 'X\(//\)$' \| \
879 X"$0" : 'X\(/\)' \| \
880 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000881echo X"$0" |
882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
884 /^X\(\/\/\)$/{ s//\1/; q; }
885 /^X\(\/\).*/{ s//\1/; q; }
886 s/.*/./; q'`
887 srcdir=$ac_confdir
888 if test ! -r $srcdir/$ac_unique_file; then
889 srcdir=..
890 fi
891else
892 ac_srcdir_defaulted=no
893fi
894if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
897 { (exit 1); exit 1; }; }
898 else
899 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
900 { (exit 1); exit 1; }; }
901 fi
902fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000903(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
904 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
905 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000906srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
907ac_env_build_alias_set=${build_alias+set}
908ac_env_build_alias_value=$build_alias
909ac_cv_env_build_alias_set=${build_alias+set}
910ac_cv_env_build_alias_value=$build_alias
911ac_env_host_alias_set=${host_alias+set}
912ac_env_host_alias_value=$host_alias
913ac_cv_env_host_alias_set=${host_alias+set}
914ac_cv_env_host_alias_value=$host_alias
915ac_env_target_alias_set=${target_alias+set}
916ac_env_target_alias_value=$target_alias
917ac_cv_env_target_alias_set=${target_alias+set}
918ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000919ac_env_CC_set=${CC+set}
920ac_env_CC_value=$CC
921ac_cv_env_CC_set=${CC+set}
922ac_cv_env_CC_value=$CC
923ac_env_CFLAGS_set=${CFLAGS+set}
924ac_env_CFLAGS_value=$CFLAGS
925ac_cv_env_CFLAGS_set=${CFLAGS+set}
926ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000927ac_env_LDFLAGS_set=${LDFLAGS+set}
928ac_env_LDFLAGS_value=$LDFLAGS
929ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
930ac_cv_env_LDFLAGS_value=$LDFLAGS
931ac_env_CPPFLAGS_set=${CPPFLAGS+set}
932ac_env_CPPFLAGS_value=$CPPFLAGS
933ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000939ac_env_CXX_set=${CXX+set}
940ac_env_CXX_value=$CXX
941ac_cv_env_CXX_set=${CXX+set}
942ac_cv_env_CXX_value=$CXX
943ac_env_CXXFLAGS_set=${CXXFLAGS+set}
944ac_env_CXXFLAGS_value=$CXXFLAGS
945ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
946ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000947ac_env_CXXCPP_set=${CXXCPP+set}
948ac_env_CXXCPP_value=$CXXCPP
949ac_cv_env_CXXCPP_set=${CXXCPP+set}
950ac_cv_env_CXXCPP_value=$CXXCPP
951ac_env_F77_set=${F77+set}
952ac_env_F77_value=$F77
953ac_cv_env_F77_set=${F77+set}
954ac_cv_env_F77_value=$F77
955ac_env_FFLAGS_set=${FFLAGS+set}
956ac_env_FFLAGS_value=$FFLAGS
957ac_cv_env_FFLAGS_set=${FFLAGS+set}
958ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000959
960#
961# Report the --help message.
962#
963if test "$ac_init_help" = "long"; then
964 # Omit some internal or obsolete options to make the list less imposing.
965 # This message is too long to be a string in the A/UX 3.1 sh.
966 cat <<_ACEOF
Reid Spencer78ba11d2005-02-16 16:21:00 +0000967\`configure' configures llvm 1.5cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000968
969Usage: $0 [OPTION]... [VAR=VALUE]...
970
971To assign environment variables (e.g., CC, CFLAGS...), specify them as
972VAR=VALUE. See below for descriptions of some of the useful variables.
973
974Defaults for the options are specified in brackets.
975
976Configuration:
977 -h, --help display this help and exit
978 --help=short display options specific to this package
979 --help=recursive display the short help of all the included packages
980 -V, --version display version information and exit
981 -q, --quiet, --silent do not print \`checking...' messages
982 --cache-file=FILE cache test results in FILE [disabled]
983 -C, --config-cache alias for \`--cache-file=config.cache'
984 -n, --no-create do not create output files
985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
986
987_ACEOF
988
989 cat <<_ACEOF
990Installation directories:
991 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000992 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000993 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000994 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000995
996By default, \`make install' will install all the files in
997\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
998an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999for instance \`--prefix=\$HOME'.
1000
1001For better control, use the options below.
1002
1003Fine tuning of the installation directories:
1004 --bindir=DIR user executables [EPREFIX/bin]
1005 --sbindir=DIR system admin executables [EPREFIX/sbin]
1006 --libexecdir=DIR program executables [EPREFIX/libexec]
1007 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1011 --libdir=DIR object code libraries [EPREFIX/lib]
1012 --includedir=DIR C header files [PREFIX/include]
1013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1014 --infodir=DIR info documentation [PREFIX/info]
1015 --mandir=DIR man documentation [PREFIX/man]
1016_ACEOF
1017
1018 cat <<\_ACEOF
1019
1020System types:
1021 --build=BUILD configure for building on BUILD [guessed]
1022 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1023 --target=TARGET configure for building compilers for TARGET [HOST]
1024_ACEOF
1025fi
1026
1027if test -n "$ac_init_help"; then
1028 case $ac_init_help in
Reid Spencer78ba11d2005-02-16 16:21:00 +00001029 short | recursive ) echo "Configuration of llvm 1.5cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001030 esac
1031 cat <<\_ACEOF
1032
1033Optional Features:
1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001036 --enable-optimized
1037 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001038 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001039 --enable-target Build specific host targets:
1040 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001041 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001042 --enable-shared[=PKGS]
1043 build shared libraries [default=yes]
1044 --enable-static[=PKGS]
1045 build static libraries [default=yes]
1046 --enable-fast-install[=PKGS]
1047 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001048 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001049
1050Optional Packages:
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001053 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1054 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001055 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001056 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057 --with-pic try to use only PIC/non-PIC objects [default=use
1058 both]
1059 --with-tags[=TAGS]
1060 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001061
1062Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001063 CC C compiler command
1064 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001069 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001070 CXX C++ compiler command
1071 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001072 CXXCPP C++ preprocessor
1073 F77 Fortran 77 compiler command
1074 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001075
1076Use these variables to override the choices made by `configure' or to help
1077it to find libraries and programs with nonstandard names/locations.
1078
1079Report bugs to <llvmbugs@cs.uiuc.edu>.
1080_ACEOF
1081fi
1082
1083if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1085 ac_popdir=`pwd`
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1088 ac_builddir=.
1089
1090if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094else
1095 ac_dir_suffix= ac_top_builddir=
1096fi
1097
1098case $srcdir in
1099 .) # No --srcdir option. We are building in place.
1100 ac_srcdir=.
1101 if test -z "$ac_top_builddir"; then
1102 ac_top_srcdir=.
1103 else
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 fi ;;
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1109 *) # Relative path.
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001113
1114# Do not use `cd foo && pwd` to compute absolute paths, because
1115# the directories may not exist.
1116case `pwd` in
1117.) ac_abs_builddir="$ac_dir";;
1118*)
1119 case "$ac_dir" in
1120 .) ac_abs_builddir=`pwd`;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_top_builddir=${ac_top_builddir}.;;
1127*)
1128 case ${ac_top_builddir}. in
1129 .) ac_abs_top_builddir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_srcdir=$ac_srcdir;;
1136*)
1137 case $ac_srcdir in
1138 .) ac_abs_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_srcdir=$ac_top_srcdir;;
1145*)
1146 case $ac_top_srcdir in
1147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150 esac;;
1151esac
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 cd $ac_dir
1154 # Check for guested configure; otherwise get Cygnus style configure.
1155 if test -f $ac_srcdir/configure.gnu; then
1156 echo
1157 $SHELL $ac_srcdir/configure.gnu --help=recursive
1158 elif test -f $ac_srcdir/configure; then
1159 echo
1160 $SHELL $ac_srcdir/configure --help=recursive
1161 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001162 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001163 echo
1164 $ac_configure --help
1165 else
1166 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167 fi
1168 cd $ac_popdir
1169 done
1170fi
1171
1172test -n "$ac_init_help" && exit 0
1173if $ac_init_version; then
1174 cat <<\_ACEOF
Reid Spencer78ba11d2005-02-16 16:21:00 +00001175llvm configure 1.5cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001176generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001177
Reid Spencer2706f8c2004-09-19 23:53:36 +00001178Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001179This configure script is free software; the Free Software Foundation
1180gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001181
1182$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001183_ACEOF
1184 exit 0
1185fi
1186exec 5>config.log
1187cat >&5 <<_ACEOF
1188This file contains any messages produced by compilers while
1189running configure, to aid debugging if configure makes a mistake.
1190
Reid Spencer78ba11d2005-02-16 16:21:00 +00001191It was created by llvm $as_me 1.5cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001192generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001193
1194 $ $0 $@
1195
1196_ACEOF
1197{
1198cat <<_ASUNAME
1199## --------- ##
1200## Platform. ##
1201## --------- ##
1202
1203hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211
1212/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1213/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1214/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1216/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1217/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1218/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219
1220_ASUNAME
1221
1222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223for as_dir in $PATH
1224do
1225 IFS=$as_save_IFS
1226 test -z "$as_dir" && as_dir=.
1227 echo "PATH: $as_dir"
1228done
1229
1230} >&5
1231
1232cat >&5 <<_ACEOF
1233
1234
1235## ----------- ##
1236## Core tests. ##
1237## ----------- ##
1238
1239_ACEOF
1240
1241
1242# Keep a trace of the command line.
1243# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001244# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001245# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001246# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001247ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001248ac_configure_args0=
1249ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001250ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001251ac_must_keep_next=false
1252for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001253do
John Criswell0c38eaf2003-09-10 15:17:25 +00001254 for ac_arg
1255 do
1256 case $ac_arg in
1257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 continue ;;
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263 esac
1264 case $ac_pass in
1265 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266 2)
1267 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001269 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001270 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001271 case $ac_arg in
1272 *=* | --config-cache | -C | -disable-* | --disable-* \
1273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275 | -with-* | --with-* | -without-* | --without-* | --x)
1276 case "$ac_configure_args0 " in
1277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278 esac
1279 ;;
1280 -* ) ac_must_keep_next=true ;;
1281 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001282 fi
1283 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284 # Get rid of the leading space.
1285 ac_sep=" "
1286 ;;
1287 esac
1288 done
John Criswell7a73b802003-06-30 21:59:07 +00001289done
John Criswell0c38eaf2003-09-10 15:17:25 +00001290$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291$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 +00001292
1293# When interrupted or exit'd, cleanup temporary files, and complete
1294# config.log. We remove comments because anyway the quotes in there
1295# would cause problems or look ugly.
1296# WARNING: Be sure not to use single quotes in there, as some shells,
1297# such as our DU 5.0 friend, will then `close' the trap.
1298trap 'exit_status=$?
1299 # Save into config.log some information that might help in debugging.
1300 {
1301 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001302
John Criswell7a73b802003-06-30 21:59:07 +00001303 cat <<\_ASBOX
1304## ---------------- ##
1305## Cache variables. ##
1306## ---------------- ##
1307_ASBOX
1308 echo
1309 # The following way of writing the cache mishandles newlines in values,
1310{
1311 (set) 2>&1 |
1312 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313 *ac_space=\ *)
1314 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001315 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001317 ;;
1318 *)
1319 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001321 ;;
1322 esac;
1323}
1324 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001325
1326 cat <<\_ASBOX
1327## ----------------- ##
1328## Output variables. ##
1329## ----------------- ##
1330_ASBOX
1331 echo
1332 for ac_var in $ac_subst_vars
1333 do
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1336 done | sort
1337 echo
1338
1339 if test -n "$ac_subst_files"; then
1340 cat <<\_ASBOX
1341## ------------- ##
1342## Output files. ##
1343## ------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_files
1347 do
1348 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001349 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001350 done | sort
1351 echo
1352 fi
1353
John Criswell7a73b802003-06-30 21:59:07 +00001354 if test -s confdefs.h; then
1355 cat <<\_ASBOX
1356## ----------- ##
1357## confdefs.h. ##
1358## ----------- ##
1359_ASBOX
1360 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001361 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001362 echo
1363 fi
1364 test "$ac_signal" != 0 &&
1365 echo "$as_me: caught signal $ac_signal"
1366 echo "$as_me: exit $exit_status"
1367 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001368 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001369 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370 exit $exit_status
1371 ' 0
1372for ac_signal in 1 2 13 15; do
1373 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374done
1375ac_signal=0
1376
1377# confdefs.h avoids OS command line length limits that DEFS can exceed.
1378rm -rf conftest* confdefs.h
1379# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380echo >confdefs.h
1381
1382# Predefined preprocessor variables.
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_NAME "$PACKAGE_NAME"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_VERSION "$PACKAGE_VERSION"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_STRING "$PACKAGE_STRING"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406_ACEOF
1407
1408
1409# Let the site file select an alternate cache file if it wants to.
1410# Prefer explicitly selected file to automatically selected ones.
1411if test -z "$CONFIG_SITE"; then
1412 if test "x$prefix" != xNONE; then
1413 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414 else
1415 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416 fi
1417fi
1418for ac_site_file in $CONFIG_SITE; do
1419 if test -r "$ac_site_file"; then
1420 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421echo "$as_me: loading site script $ac_site_file" >&6;}
1422 sed 's/^/| /' "$ac_site_file" >&5
1423 . "$ac_site_file"
1424 fi
1425done
1426
1427if test -r "$cache_file"; then
1428 # Some versions of bash will fail to source /dev/null (special
1429 # files actually), so we avoid doing that.
1430 if test -f "$cache_file"; then
1431 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432echo "$as_me: loading cache $cache_file" >&6;}
1433 case $cache_file in
1434 [\\/]* | ?:[\\/]* ) . $cache_file;;
1435 *) . ./$cache_file;;
1436 esac
1437 fi
1438else
1439 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440echo "$as_me: creating cache $cache_file" >&6;}
1441 >$cache_file
1442fi
1443
1444# Check that the precious variables saved in the cache have kept the same
1445# value.
1446ac_cache_corrupted=false
1447for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001448 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450 eval ac_new_set=\$ac_env_${ac_var}_set
1451 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452 eval ac_new_val="\$ac_env_${ac_var}_value"
1453 case $ac_old_set,$ac_new_set in
1454 set,)
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1458 ,set)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,);;
1463 *)
1464 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001465 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001466echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001467 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001468echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001470echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001472 fi;;
1473 esac
1474 # Pass precious variables to config.status.
1475 if test "$ac_new_set" = set; then
1476 case $ac_new_val in
1477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 *) ac_arg=$ac_var=$ac_new_val ;;
1480 esac
1481 case " $ac_configure_args " in
1482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1483 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 esac
1485 fi
1486done
1487if $ac_cache_corrupted; then
1488 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492 { (exit 1); exit 1; }; }
1493fi
1494
1495ac_ext=c
1496ac_cpp='$CPP $CPPFLAGS'
1497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
John Criswell0c38eaf2003-09-10 15:17:25 +00001527
Misha Brukman19098e52005-05-12 22:15:34 +00001528LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001529
1530
1531
1532
1533
1534
1535
John Criswell7a73b802003-06-30 21:59:07 +00001536ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001537for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001538 if test -f $ac_dir/install-sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install-sh -c"
1541 break
1542 elif test -f $ac_dir/install.sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install.sh -c"
1545 break
1546 elif test -f $ac_dir/shtool; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/shtool install -c"
1549 break
1550 fi
1551done
1552if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1554echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001555 { (exit 1); exit 1; }; }
1556fi
1557ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
John Criswell392aaa32003-07-22 19:18:09 +00001561
Reid Spencer2706f8c2004-09-19 23:53:36 +00001562if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1564 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001565echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1566 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001567 fi
John Criswell93e1c722003-09-15 17:04:06 +00001568fi
1569
John Criswell33a911a2003-11-25 20:36:46 +00001570for i in `ls ${srcdir}/projects`
1571do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001572 if test -d ${srcdir}/projects/${i} ; then
1573 case ${i} in
1574 "CVS") ;;
1575 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001576
Reid Spencer4d68ba22004-09-07 16:35:45 +00001577subdirs="$subdirs projects/sample"
1578 ;;
1579 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001580
Reid Spencer4d68ba22004-09-07 16:35:45 +00001581subdirs="$subdirs projects/Stacker"
1582 ;;
1583 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001584
Reid Spencer4d68ba22004-09-07 16:35:45 +00001585subdirs="$subdirs projects/llvm-test"
1586 ;;
1587 "llvm-reopt")
1588
1589subdirs="$subdirs projects/llvm-reopt"
1590;;
1591 "llvm-gcc")
1592
1593subdirs="$subdirs projects/llvm-gcc"
1594 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001595 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001596
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001597subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001598 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001599 "llvm-tv")
1600
1601subdirs="$subdirs projects/llvm-tv"
1602 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001603 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001604
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001605subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001606 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001607 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001608 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001610 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001611 esac
John Criswell33a911a2003-11-25 20:36:46 +00001612 fi
1613done
John Criswell559a6c12003-09-30 16:31:48 +00001614
John Criswell7a73b802003-06-30 21:59:07 +00001615
1616# Make sure we can run config.sub.
1617$ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1621
1622echo "$as_me:$LINENO: checking build system type" >&5
1623echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 ac_cv_build_alias=$build_alias
1628test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639fi
1640echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641echo "${ECHO_T}$ac_cv_build" >&6
1642build=$ac_cv_build
1643build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648echo "$as_me:$LINENO: checking host system type" >&5
1649echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 ac_cv_host_alias=$host_alias
1654test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1660
1661fi
1662echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663echo "${ECHO_T}$ac_cv_host" >&6
1664host=$ac_cv_host
1665host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670echo "$as_me:$LINENO: checking target system type" >&5
1671echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 ac_cv_target_alias=$target_alias
1676test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1682
1683fi
1684echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685echo "${ECHO_T}$ac_cv_target" >&6
1686target=$ac_cv_target
1687target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692# The aliases save the names the user supplied, while $host etc.
1693# will get canonicalized.
1694test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1696 NONENONEs,x,x, &&
1697 program_prefix=${target_alias}-
1698
Reid Spencer7b3e8512004-12-24 06:29:05 +00001699echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1700echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1701if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001705 *-*-aix*)
1706 llvm_cv_os_type="AIX"
1707 llvm_cv_platform_type="Unix" ;;
1708 *-*-cygwin*)
1709 llvm_cv_os_type="Cygwin"
1710 llvm_cv_platform_type="Unix" ;;
1711 *-*-darwin*)
1712 llvm_cv_os_type="Darwin"
1713 llvm_cv_platform_type="Unix" ;;
1714 *-*-freebsd*)
1715 llvm_cv_os_type="FreeBSD"
1716 llvm_cv_platform_type="Unix" ;;
1717 *-*-interix*)
1718 llvm_cv_os_type="Interix"
1719 llvm_cv_platform_type="Unix" ;;
1720 *-*-linux*)
1721 llvm_cv_os_type="Linux"
1722 llvm_cv_platform_type="Unix" ;;
1723 *-*-solaris*)
1724 llvm_cv_os_type="SunOS"
1725 llvm_cv_platform_type="Unix" ;;
1726 *-*-win32*)
1727 llvm_cv_os_type="Win32"
1728 llvm_cv_platform_type="Win32" ;;
1729 *-*-mingw*)
1730 llvm_cv_os_type="MingW"
1731 llvm_cv_platform_type="Win32" ;;
1732 *)
1733 llvm_cv_os_type="Unknown"
1734 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001735esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001736fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001737echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1738echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001739
Reid Spencer7b3e8512004-12-24 06:29:05 +00001740if test "$llvm_cv_os_type" = "Unknown" ; then
1741 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1742echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001743 { (exit 1); exit 1; }; }
1744fi
1745
Reid Spencer7b3e8512004-12-24 06:29:05 +00001746OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001747
1748
Reid Spencer7b3e8512004-12-24 06:29:05 +00001749case $llvm_cv_platform_type in
1750 Unix)
1751
1752cat >>confdefs.h <<\_ACEOF
1753#define LLVM_ON_UNIX 1
1754_ACEOF
1755
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001756 LLVM_ON_UNIX=1
1757
1758 LLVM_ON_WIN32=0
1759
Reid Spencer7b3e8512004-12-24 06:29:05 +00001760 ;;
1761 Win32)
1762
1763cat >>confdefs.h <<\_ACEOF
1764#define LLVM_ON_WIN32 1
1765_ACEOF
1766
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001767 LLVM_ON_UNIX=0
1768
1769 LLVM_ON_WIN32=1
1770
Reid Spencer7b3e8512004-12-24 06:29:05 +00001771 ;;
1772esac
1773
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001774case $target in
1775 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1776
1777 ;;
1778esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001779
1780echo "$as_me:$LINENO: checking target architecture" >&5
1781echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001782if test "${llvm_cv_target_arch+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784else
1785 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001786 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001787 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001788 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1789 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001790 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001791 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001792 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001793esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001794fi
1795echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1796echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001797
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001798if test "$llvm_cv_target_arch" = "Unknown" ; then
1799 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1800echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1801fi
John Criswell76595452003-07-01 22:07:39 +00001802
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001803ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001804
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001805
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001806ac_ext=c
1807ac_cpp='$CPP $CPPFLAGS'
1808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001811if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1813set dummy ${ac_tool_prefix}gcc; ac_word=$2
1814echo "$as_me:$LINENO: checking for $ac_word" >&5
1815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816if test "${ac_cv_prog_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC="$CC" # Let the user override the test.
1821else
1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823for as_dir in $PATH
1824do
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 break 2
1832 fi
1833done
1834done
1835
1836fi
1837fi
1838CC=$ac_cv_prog_CC
1839if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841echo "${ECHO_T}$CC" >&6
1842else
1843 echo "$as_me:$LINENO: result: no" >&5
1844echo "${ECHO_T}no" >&6
1845fi
1846
1847fi
1848if test -z "$ac_cv_prog_CC"; then
1849 ac_ct_CC=$CC
1850 # Extract the first word of "gcc", so it can be a program name with args.
1851set dummy gcc; ac_word=$2
1852echo "$as_me:$LINENO: checking for $ac_word" >&5
1853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856else
1857 if test -n "$ac_ct_CC"; then
1858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859else
1860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861for as_dir in $PATH
1862do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_CC="gcc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1870 fi
1871done
1872done
1873
1874fi
1875fi
1876ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877if test -n "$ac_ct_CC"; then
1878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879echo "${ECHO_T}$ac_ct_CC" >&6
1880else
1881 echo "$as_me:$LINENO: result: no" >&5
1882echo "${ECHO_T}no" >&6
1883fi
1884
1885 CC=$ac_ct_CC
1886else
1887 CC="$ac_cv_prog_CC"
1888fi
1889
1890if test -z "$CC"; then
1891 if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1893set dummy ${ac_tool_prefix}cc; ac_word=$2
1894echo "$as_me:$LINENO: checking for $ac_word" >&5
1895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896if test "${ac_cv_prog_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898else
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC="$CC" # Let the user override the test.
1901else
1902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903for as_dir in $PATH
1904do
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_CC="${ac_tool_prefix}cc"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1912 fi
1913done
1914done
1915
1916fi
1917fi
1918CC=$ac_cv_prog_CC
1919if test -n "$CC"; then
1920 echo "$as_me:$LINENO: result: $CC" >&5
1921echo "${ECHO_T}$CC" >&6
1922else
1923 echo "$as_me:$LINENO: result: no" >&5
1924echo "${ECHO_T}no" >&6
1925fi
1926
1927fi
1928if test -z "$ac_cv_prog_CC"; then
1929 ac_ct_CC=$CC
1930 # Extract the first word of "cc", so it can be a program name with args.
1931set dummy cc; ac_word=$2
1932echo "$as_me:$LINENO: checking for $ac_word" >&5
1933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936else
1937 if test -n "$ac_ct_CC"; then
1938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1939else
1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_ac_ct_CC="cc"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 break 2
1950 fi
1951done
1952done
1953
1954fi
1955fi
1956ac_ct_CC=$ac_cv_prog_ac_ct_CC
1957if test -n "$ac_ct_CC"; then
1958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959echo "${ECHO_T}$ac_ct_CC" >&6
1960else
1961 echo "$as_me:$LINENO: result: no" >&5
1962echo "${ECHO_T}no" >&6
1963fi
1964
1965 CC=$ac_ct_CC
1966else
1967 CC="$ac_cv_prog_CC"
1968fi
1969
1970fi
1971if test -z "$CC"; then
1972 # Extract the first word of "cc", so it can be a program name with args.
1973set dummy cc; ac_word=$2
1974echo "$as_me:$LINENO: checking for $ac_word" >&5
1975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1981else
1982 ac_prog_rejected=no
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991 ac_prog_rejected=yes
1992 continue
1993 fi
1994 ac_cv_prog_CC="cc"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1997 fi
1998done
1999done
2000
2001if test $ac_prog_rejected = yes; then
2002 # We found a bogon in the path, so make sure we never use it.
2003 set dummy $ac_cv_prog_CC
2004 shift
2005 if test $# != 0; then
2006 # We chose a different compiler from the bogus one.
2007 # However, it has the same basename, so the bogon will be chosen
2008 # first if we set CC to just the basename; use the full file name.
2009 shift
2010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2011 fi
2012fi
2013fi
2014fi
2015CC=$ac_cv_prog_CC
2016if test -n "$CC"; then
2017 echo "$as_me:$LINENO: result: $CC" >&5
2018echo "${ECHO_T}$CC" >&6
2019else
2020 echo "$as_me:$LINENO: result: no" >&5
2021echo "${ECHO_T}no" >&6
2022fi
2023
2024fi
2025if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2027 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002028 do
2029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2031echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002038else
2039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040for as_dir in $PATH
2041do
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2049 fi
2050done
2051done
2052
2053fi
2054fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002055CC=$ac_cv_prog_CC
2056if test -n "$CC"; then
2057 echo "$as_me:$LINENO: result: $CC" >&5
2058echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002059else
2060 echo "$as_me:$LINENO: result: no" >&5
2061echo "${ECHO_T}no" >&6
2062fi
2063
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002064 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002065 done
2066fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002067if test -z "$CC"; then
2068 ac_ct_CC=$CC
2069 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002070do
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072set dummy $ac_prog; ac_word=$2
2073echo "$as_me:$LINENO: checking for $ac_word" >&5
2074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078 if test -n "$ac_ct_CC"; then
2079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002080else
2081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082for as_dir in $PATH
2083do
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002088 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2091 fi
2092done
2093done
2094
2095fi
2096fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002097ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098if test -n "$ac_ct_CC"; then
2099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002101else
2102 echo "$as_me:$LINENO: result: no" >&5
2103echo "${ECHO_T}no" >&6
2104fi
2105
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002106 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002107done
John Criswell7a73b802003-06-30 21:59:07 +00002108
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002109 CC=$ac_ct_CC
2110fi
2111
John Criswell7a73b802003-06-30 21:59:07 +00002112fi
2113
2114
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002115test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116See \`config.log' for more details." >&5
2117echo "$as_me: error: no acceptable C compiler found in \$PATH
2118See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2120
John Criswell7a73b802003-06-30 21:59:07 +00002121# Provide some information about the compiler.
2122echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002123 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002124ac_compiler=`set X $ac_compile; echo $2`
2125{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2126 (eval $ac_compiler --version </dev/null >&5) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2131 (eval $ac_compiler -v </dev/null >&5) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2136 (eval $ac_compiler -V </dev/null >&5) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140
2141cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002142/* confdefs.h. */
2143_ACEOF
2144cat confdefs.h >>conftest.$ac_ext
2145cat >>conftest.$ac_ext <<_ACEOF
2146/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002147
John Criswell7a73b802003-06-30 21:59:07 +00002148int
2149main ()
2150{
2151
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002157ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002158# Try to create an executable without -o first, disregard a.out.
2159# It will help us diagnose broken compilers, and finding out an intuition
2160# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002161echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002163ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2165 (eval $ac_link_default) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # Find the output, starting from the most likely. This scheme is
2170# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2171# resort.
2172
2173# Be careful to initialize this variable, since it used to be cached.
2174# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2175ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002176# b.out is created by i960 compilers.
2177for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2178do
2179 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002180 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002182 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002183 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002184 # This is the source file.
2185 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 # We found the default executable, but exeext='' is most
2188 # certainly right.
2189 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002190 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # FIXME: I believe we export ac_cv_exeext for Libtool,
2193 # but it would be cool to find out if it's true. Does anybody
2194 # maintain Libtool? --akim.
2195 export ac_cv_exeext
2196 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002197 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002198 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002199 esac
2200done
2201else
2202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002203sed 's/^/| /' conftest.$ac_ext >&5
2204
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002205{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002206See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002207echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002208See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002209 { (exit 77); exit 77; }; }
2210fi
2211
2212ac_exeext=$ac_cv_exeext
2213echo "$as_me:$LINENO: result: $ac_file" >&5
2214echo "${ECHO_T}$ac_file" >&6
2215
2216# Check the compiler produces executables we can run. If not, either
2217# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002218echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002220# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221# If not cross compiling, check that we can run a simple program.
2222if test "$cross_compiling" != yes; then
2223 if { ac_try='./$ac_file'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 (eval $ac_try) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 cross_compiling=no
2230 else
2231 if test "$cross_compiling" = maybe; then
2232 cross_compiling=yes
2233 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002235If you meant to cross compile, use \`--host'.
2236See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002237echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002240 { (exit 1); exit 1; }; }
2241 fi
2242 fi
2243fi
2244echo "$as_me:$LINENO: result: yes" >&5
2245echo "${ECHO_T}yes" >&6
2246
John Criswell0c38eaf2003-09-10 15:17:25 +00002247rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002248ac_clean_files=$ac_clean_files_save
2249# Check the compiler produces executables we can run. If not, either
2250# the compiler is broken, or we cross compile.
2251echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2252echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2253echo "$as_me:$LINENO: result: $cross_compiling" >&5
2254echo "${ECHO_T}$cross_compiling" >&6
2255
2256echo "$as_me:$LINENO: checking for suffix of executables" >&5
2257echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2259 (eval $ac_link) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
2263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2265# work properly (i.e., refer to `conftest.exe'), while it won't with
2266# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002267for ac_file in conftest.exe conftest conftest.*; do
2268 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002269 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002272 export ac_cv_exeext
2273 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002274 * ) break;;
2275 esac
2276done
2277else
John Criswell0c38eaf2003-09-10 15:17:25 +00002278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279See \`config.log' for more details." >&5
2280echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002282 { (exit 1); exit 1; }; }
2283fi
2284
2285rm -f conftest$ac_cv_exeext
2286echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287echo "${ECHO_T}$ac_cv_exeext" >&6
2288
2289rm -f conftest.$ac_ext
2290EXEEXT=$ac_cv_exeext
2291ac_exeext=$EXEEXT
2292echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2294if test "${ac_cv_objext+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002298/* confdefs.h. */
2299_ACEOF
2300cat confdefs.h >>conftest.$ac_ext
2301cat >>conftest.$ac_ext <<_ACEOF
2302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002303
John Criswell7a73b802003-06-30 21:59:07 +00002304int
2305main ()
2306{
2307
2308 ;
2309 return 0;
2310}
2311_ACEOF
2312rm -f conftest.o conftest.obj
2313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2319 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2322 break;;
2323 esac
2324done
2325else
2326 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2330See \`config.log' for more details." >&5
2331echo "$as_me: error: cannot compute suffix of object files: cannot compile
2332See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002333 { (exit 1); exit 1; }; }
2334fi
2335
2336rm -f conftest.$ac_cv_objext conftest.$ac_ext
2337fi
2338echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2339echo "${ECHO_T}$ac_cv_objext" >&6
2340OBJEXT=$ac_cv_objext
2341ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002342echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2343echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2344if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002348/* confdefs.h. */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002353
John Criswell7a73b802003-06-30 21:59:07 +00002354int
2355main ()
2356{
2357#ifndef __GNUC__
2358 choke me
2359#endif
2360
2361 ;
2362 return 0;
2363}
2364_ACEOF
2365rm -f conftest.$ac_objext
2366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002367 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002368 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002369 grep -v '^ *+' conftest.er1 >conftest.err
2370 rm -f conftest.er1
2371 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002375 || test ! -s conftest.err'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 (eval $ac_try) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; } &&
2381 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 (eval $ac_try) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; }; then
2387 ac_compiler_gnu=yes
2388else
2389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002390sed 's/^/| /' conftest.$ac_ext >&5
2391
John Criswell7a73b802003-06-30 21:59:07 +00002392ac_compiler_gnu=no
2393fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002396
2397fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2399echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2400GCC=`test $ac_compiler_gnu = yes && echo yes`
2401ac_test_CFLAGS=${CFLAGS+set}
2402ac_save_CFLAGS=$CFLAGS
2403CFLAGS="-g"
2404echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2405echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2406if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002410/* confdefs.h. */
2411_ACEOF
2412cat confdefs.h >>conftest.$ac_ext
2413cat >>conftest.$ac_ext <<_ACEOF
2414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002415
John Criswell7a73b802003-06-30 21:59:07 +00002416int
2417main ()
2418{
2419
2420 ;
2421 return 0;
2422}
2423_ACEOF
2424rm -f conftest.$ac_objext
2425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002426 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002428 grep -v '^ *+' conftest.er1 >conftest.err
2429 rm -f conftest.er1
2430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002434 || test ! -s conftest.err'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; } &&
2440 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002447else
2448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002449sed 's/^/| /' conftest.$ac_ext >&5
2450
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002452fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002454fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2456echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2457if test "$ac_test_CFLAGS" = set; then
2458 CFLAGS=$ac_save_CFLAGS
2459elif test $ac_cv_prog_cc_g = yes; then
2460 if test "$GCC" = yes; then
2461 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002462 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002464 fi
2465else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466 if test "$GCC" = yes; then
2467 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002468 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002470 fi
2471fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2473echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2474if test "${ac_cv_prog_cc_stdc+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477 ac_cv_prog_cc_stdc=no
2478ac_save_CC=$CC
2479cat >conftest.$ac_ext <<_ACEOF
2480/* confdefs.h. */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h. */
2485#include <stdarg.h>
2486#include <stdio.h>
2487#include <sys/types.h>
2488#include <sys/stat.h>
2489/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2490struct buf { int x; };
2491FILE * (*rcsopen) (struct buf *, struct stat *, int);
2492static char *e (p, i)
2493 char **p;
2494 int i;
2495{
2496 return p[i];
2497}
2498static char *f (char * (*g) (char **, int), char **p, ...)
2499{
2500 char *s;
2501 va_list v;
2502 va_start (v,p);
2503 s = g (p, va_arg (v,int));
2504 va_end (v);
2505 return s;
2506}
2507
2508/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2509 function prototypes and stuff, but not '\xHH' hex character constants.
2510 These don't provoke an error unfortunately, instead are silently treated
2511 as 'x'. The following induces an error, until -std1 is added to get
2512 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2513 array size at least. It's necessary to write '\x00'==0 to get something
2514 that's true only with -std1. */
2515int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2516
2517int test (int i, double x);
2518struct s1 {int (*f) (int a);};
2519struct s2 {int (*f) (double a);};
2520int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2521int argc;
2522char **argv;
2523int
2524main ()
2525{
2526return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2527 ;
2528 return 0;
2529}
2530_ACEOF
2531# Don't try gcc -ansi; that turns off useful extensions and
2532# breaks some systems' header files.
2533# AIX -qlanglvl=ansi
2534# Ultrix and OSF/1 -std1
2535# HP-UX 10.20 and later -Ae
2536# HP-UX older versions -Aa -D_HPUX_SOURCE
2537# SVR4 -Xc -D__EXTENSIONS__
2538for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2539do
2540 CC="$ac_save_CC $ac_arg"
2541 rm -f conftest.$ac_objext
2542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>conftest.er1
2544 ac_status=$?
2545 grep -v '^ *+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag"
2551 || test ! -s conftest.err'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; } &&
2557 { ac_try='test -s conftest.$ac_objext'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 (eval $ac_try) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2563 ac_cv_prog_cc_stdc=$ac_arg
2564break
2565else
2566 echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
2569fi
2570rm -f conftest.err conftest.$ac_objext
2571done
2572rm -f conftest.$ac_ext conftest.$ac_objext
2573CC=$ac_save_CC
2574
2575fi
2576
2577case "x$ac_cv_prog_cc_stdc" in
2578 x|xno)
2579 echo "$as_me:$LINENO: result: none needed" >&5
2580echo "${ECHO_T}none needed" >&6 ;;
2581 *)
2582 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2583echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2584 CC="$CC $ac_cv_prog_cc_stdc" ;;
2585esac
2586
2587# Some people use a C++ compiler to compile C. Since we use `exit',
2588# in C++ we need to declare it. In case someone uses the same compiler
2589# for both compiling C and C++ we need to have the C++ compiler decide
2590# the declaration of exit, since it's the most demanding environment.
2591cat >conftest.$ac_ext <<_ACEOF
2592#ifndef __cplusplus
2593 choke me
2594#endif
2595_ACEOF
2596rm -f conftest.$ac_objext
2597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2599 ac_status=$?
2600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002619 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002620 'extern "C" void std::exit (int) throw (); using std::exit;' \
2621 'extern "C" void std::exit (int); using std::exit;' \
2622 'extern "C" void exit (int) throw ();' \
2623 'extern "C" void exit (int);' \
2624 'void exit (int);'
2625do
2626 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002627/* confdefs.h. */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002632$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002633#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002634int
2635main ()
2636{
2637exit (42);
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002644 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002645 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002646 grep -v '^ *+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002652 || test ! -s conftest.err'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; } &&
2658 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 (eval $ac_try) 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2664 :
2665else
2666 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002667sed 's/^/| /' conftest.$ac_ext >&5
2668
John Criswell7a73b802003-06-30 21:59:07 +00002669continue
2670fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002672 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002673/* confdefs.h. */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002678$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002679int
2680main ()
2681{
2682exit (42);
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687rm -f conftest.$ac_objext
2688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002689 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002690 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002691 grep -v '^ *+' conftest.er1 >conftest.err
2692 rm -f conftest.er1
2693 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002697 || test ! -s conftest.err'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 (eval $ac_try) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; } &&
2703 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2709 break
2710else
2711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002712sed 's/^/| /' conftest.$ac_ext >&5
2713
John Criswell7a73b802003-06-30 21:59:07 +00002714fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002716done
2717rm -f conftest*
2718if test -n "$ac_declaration"; then
2719 echo '#ifdef __cplusplus' >>confdefs.h
2720 echo $ac_declaration >>confdefs.h
2721 echo '#endif' >>confdefs.h
2722fi
2723
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002724else
2725 echo "$as_me: failed program was:" >&5
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
2728fi
2729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730ac_ext=c
2731ac_cpp='$CPP $CPPFLAGS'
2732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735
2736
2737echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2738echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2739if test "${ac_cv_c_bigendian+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741else
2742 # See if sys/param.h defines the BYTE_ORDER macro.
2743cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
2749#include <sys/types.h>
2750#include <sys/param.h>
2751
2752int
2753main ()
2754{
2755#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2756 bogus endian macros
2757#endif
2758
2759 ;
2760 return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 # It does; now see whether it defined to BIG_ENDIAN or not.
2786cat >conftest.$ac_ext <<_ACEOF
2787/* confdefs.h. */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h. */
2792#include <sys/types.h>
2793#include <sys/param.h>
2794
2795int
2796main ()
2797{
2798#if BYTE_ORDER != BIG_ENDIAN
2799 not big endian
2800#endif
2801
2802 ;
2803 return 0;
2804}
2805_ACEOF
2806rm -f conftest.$ac_objext
2807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808 (eval $ac_compile) 2>conftest.er1
2809 ac_status=$?
2810 grep -v '^ *+' conftest.er1 >conftest.err
2811 rm -f conftest.er1
2812 cat conftest.err >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try='test -z "$ac_c_werror_flag"
2816 || test ! -s conftest.err'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; } &&
2822 { ac_try='test -s conftest.$ac_objext'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 (eval $ac_try) 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; }; then
2828 ac_cv_c_bigendian=yes
2829else
2830 echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833ac_cv_c_bigendian=no
2834fi
2835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2836else
2837 echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840# It does not; compile a test program.
2841if test "$cross_compiling" = yes; then
2842 # try to guess the endianness by grepping values into an object file
2843 ac_cv_c_bigendian=unknown
2844 cat >conftest.$ac_ext <<_ACEOF
2845/* confdefs.h. */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h. */
2850short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2851short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2852void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2853short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2854short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2855void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2856int
2857main ()
2858{
2859 _ascii (); _ebcdic ();
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864rm -f conftest.$ac_objext
2865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>conftest.er1
2867 ac_status=$?
2868 grep -v '^ *+' conftest.er1 >conftest.err
2869 rm -f conftest.er1
2870 cat conftest.err >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } &&
2873 { ac_try='test -z "$ac_c_werror_flag"
2874 || test ! -s conftest.err'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 (eval $ac_try) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; } &&
2880 { ac_try='test -s conftest.$ac_objext'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882 (eval $ac_try) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2886 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2887 ac_cv_c_bigendian=yes
2888fi
2889if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2890 if test "$ac_cv_c_bigendian" = unknown; then
2891 ac_cv_c_bigendian=no
2892 else
2893 # finding both strings is unlikely to happen, but who knows?
2894 ac_cv_c_bigendian=unknown
2895 fi
2896fi
2897else
2898 echo "$as_me: failed program was:" >&5
2899sed 's/^/| /' conftest.$ac_ext >&5
2900
2901fi
2902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903else
2904 cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
2910int
2911main ()
2912{
2913 /* Are we little or big endian? From Harbison&Steele. */
2914 union
2915 {
2916 long l;
2917 char c[sizeof (long)];
2918 } u;
2919 u.l = 1;
2920 exit (u.c[sizeof (long) - 1] == 1);
2921}
2922_ACEOF
2923rm -f conftest$ac_exeext
2924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2925 (eval $ac_link) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 ac_cv_c_bigendian=no
2935else
2936 echo "$as_me: program exited with status $ac_status" >&5
2937echo "$as_me: failed program was:" >&5
2938sed 's/^/| /' conftest.$ac_ext >&5
2939
2940( exit $ac_status )
2941ac_cv_c_bigendian=yes
2942fi
2943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2944fi
2945fi
2946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947fi
2948echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2949echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2950case $ac_cv_c_bigendian in
2951 yes)
2952 ENDIAN=big
2953 ;;
2954 no)
2955 ENDIAN=little
2956 ;;
2957 *)
2958 { { echo "$as_me:$LINENO: error: unknown endianness
2959presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2960echo "$as_me: error: unknown endianness
2961presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2962 { (exit 1); exit 1; }; } ;;
2963esac
2964
2965
2966
2967# Check whether --enable-optimized or --disable-optimized was given.
2968if test "${enable_optimized+set}" = set; then
2969 enableval="$enable_optimized"
2970
2971else
2972 enableval=no
2973fi;
2974if test ${enableval} = "no" ; then
2975 ENABLE_OPTIMIZED=
2976
2977else
2978 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2979
2980fi
2981
2982# Check whether --enable-jit or --disable-jit was given.
2983if test "${enable_jit+set}" = set; then
2984 enableval="$enable_jit"
2985
2986else
2987 enableval=default
2988fi;
2989if test ${enableval} = "no"
2990then
2991 JIT=
2992
2993else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002994 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002995 x86) JIT=TARGET_HAS_JIT=1
2996 ;;
2997 Sparc) JIT=TARGET_HAS_JIT=1
2998 ;;
2999 PowerPC) JIT=TARGET_HAS_JIT=1
3000 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00003001 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00003002 ;;
Reid Spencer945de9b2005-04-22 07:27:28 +00003003 Alpha) JIT=
3004 ;;
3005 IA64) JIT=
3006 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003007 *) JIT=
3008 ;;
3009 esac
3010fi
3011
Reid Spencer1f319422004-11-29 04:56:35 +00003012# Check whether --enable-doxygen or --disable-doxygen was given.
3013if test "${enable_doxygen+set}" = set; then
3014 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003015
Reid Spencer1f319422004-11-29 04:56:35 +00003016else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003017 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003018fi;
3019case "$enableval" in
3020 yes) ENABLE_DOXYGEN=1
3021 ;;
3022 no) ENABLE_DOXYGEN=0
3023 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003024 default) ENABLE_DOXYGEN=0
3025 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003026 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3027echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3028 { (exit 1); exit 1; }; } ;;
3029esac
3030
Reid Spencer945de9b2005-04-22 07:27:28 +00003031TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003032# Check whether --enable-targets or --disable-targets was given.
3033if test "${enable_targets+set}" = set; then
3034 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003035
3036else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003037 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003038fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003039case "$enableval" in
Misha Brukmanccc1c162005-04-22 18:00:34 +00003040 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003041 host-only)
3042 case "$llvm_cv_target_arch" in
3043 x86) TARGETS_TO_BUILD="X86" ;;
3044 x86_64) TARGETS_TO_BUILD="X86" ;;
3045 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3046 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3047 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3048 IA64) TARGETS_TO_BUILD="IA64" ;;
3049 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003050echo "$as_me: error: Can not set target to build" >&2;}
3051 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003052 esac
3053 ;;
3054 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3055 case "$a_target" in
3056 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3057 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3058 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3059 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3060 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3061 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3062 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3063 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3064echo "$as_me: error: Unrecognized target $a_target" >&2;}
3065 { (exit 1); exit 1; }; } ;;
3066 esac
3067 done
3068 ;;
3069esac
Reid Spencer675f0922005-04-22 17:06:18 +00003070TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003071TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3072
3073
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003074
Reid Spencer59473af2004-12-25 07:31:29 +00003075# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3076if test "${with_llvmgccdir+set}" = set; then
3077 withval="$with_llvmgccdir"
3078
3079else
3080 withval=default
3081fi;
3082case "$withval" in
3083 default) WITH_LLVMGCCDIR=default ;;
3084 /*) WITH_LLVMGCCDIR=$withval ;;
3085 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3086echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3087 { (exit 1); exit 1; }; } ;;
3088esac
3089
3090
Reid Spencer945de9b2005-04-22 07:27:28 +00003091
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003092ac_ext=c
3093ac_cpp='$CPP $CPPFLAGS'
3094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3098echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3099# On Suns, sometimes $CPP names a directory.
3100if test -n "$CPP" && test -d "$CPP"; then
3101 CPP=
3102fi
3103if test -z "$CPP"; then
3104 if test "${ac_cv_prog_CPP+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106else
3107 # Double quotes because CPP needs to be expanded
3108 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3109 do
3110 ac_preproc_ok=false
3111for ac_c_preproc_warn_flag in '' yes
3112do
3113 # Use a header file that comes with gcc, so configuring glibc
3114 # with a fresh cross-compiler works.
3115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3116 # <limits.h> exists even on freestanding compilers.
3117 # On the NeXT, cc -E runs the code through the compiler's parser,
3118 # not just through cpp. "Syntax error" is here to catch this case.
3119 cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125#ifdef __STDC__
3126# include <limits.h>
3127#else
3128# include <assert.h>
3129#endif
3130 Syntax error
3131_ACEOF
3132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3143 else
3144 ac_cpp_err=
3145 fi
3146else
3147 ac_cpp_err=yes
3148fi
3149if test -z "$ac_cpp_err"; then
3150 :
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 # Broken: fails on valid input.
3156continue
3157fi
3158rm -f conftest.err conftest.$ac_ext
3159
3160 # OK, works on sane cases. Now check whether non-existent headers
3161 # can be detected and how.
3162 cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h. */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h. */
3168#include <ac_nonexistent.h>
3169_ACEOF
3170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } >/dev/null; then
3178 if test -s conftest.err; then
3179 ac_cpp_err=$ac_c_preproc_warn_flag
3180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3181 else
3182 ac_cpp_err=
3183 fi
3184else
3185 ac_cpp_err=yes
3186fi
3187if test -z "$ac_cpp_err"; then
3188 # Broken: success on invalid input.
3189continue
3190else
3191 echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194 # Passes both tests.
3195ac_preproc_ok=:
3196break
3197fi
3198rm -f conftest.err conftest.$ac_ext
3199
3200done
3201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3202rm -f conftest.err conftest.$ac_ext
3203if $ac_preproc_ok; then
3204 break
3205fi
3206
3207 done
3208 ac_cv_prog_CPP=$CPP
3209
3210fi
3211 CPP=$ac_cv_prog_CPP
3212else
3213 ac_cv_prog_CPP=$CPP
3214fi
3215echo "$as_me:$LINENO: result: $CPP" >&5
3216echo "${ECHO_T}$CPP" >&6
3217ac_preproc_ok=false
3218for ac_c_preproc_warn_flag in '' yes
3219do
3220 # Use a header file that comes with gcc, so configuring glibc
3221 # with a fresh cross-compiler works.
3222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3223 # <limits.h> exists even on freestanding compilers.
3224 # On the NeXT, cc -E runs the code through the compiler's parser,
3225 # not just through cpp. "Syntax error" is here to catch this case.
3226 cat >conftest.$ac_ext <<_ACEOF
3227/* confdefs.h. */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h. */
3232#ifdef __STDC__
3233# include <limits.h>
3234#else
3235# include <assert.h>
3236#endif
3237 Syntax error
3238_ACEOF
3239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250 else
3251 ac_cpp_err=
3252 fi
3253else
3254 ac_cpp_err=yes
3255fi
3256if test -z "$ac_cpp_err"; then
3257 :
3258else
3259 echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 # Broken: fails on valid input.
3263continue
3264fi
3265rm -f conftest.err conftest.$ac_ext
3266
3267 # OK, works on sane cases. Now check whether non-existent headers
3268 # can be detected and how.
3269 cat >conftest.$ac_ext <<_ACEOF
3270/* confdefs.h. */
3271_ACEOF
3272cat confdefs.h >>conftest.$ac_ext
3273cat >>conftest.$ac_ext <<_ACEOF
3274/* end confdefs.h. */
3275#include <ac_nonexistent.h>
3276_ACEOF
3277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3279 ac_status=$?
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } >/dev/null; then
3285 if test -s conftest.err; then
3286 ac_cpp_err=$ac_c_preproc_warn_flag
3287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3288 else
3289 ac_cpp_err=
3290 fi
3291else
3292 ac_cpp_err=yes
3293fi
3294if test -z "$ac_cpp_err"; then
3295 # Broken: success on invalid input.
3296continue
3297else
3298 echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301 # Passes both tests.
3302ac_preproc_ok=:
3303break
3304fi
3305rm -f conftest.err conftest.$ac_ext
3306
3307done
3308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309rm -f conftest.err conftest.$ac_ext
3310if $ac_preproc_ok; then
3311 :
3312else
3313 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3314See \`config.log' for more details." >&5
3315echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3316See \`config.log' for more details." >&2;}
3317 { (exit 1); exit 1; }; }
3318fi
3319
John Criswell7a73b802003-06-30 21:59:07 +00003320ac_ext=c
3321ac_cpp='$CPP $CPPFLAGS'
3322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325
3326ac_ext=c
3327ac_cpp='$CPP $CPPFLAGS'
3328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331if test -n "$ac_tool_prefix"; then
3332 for ac_prog in gcc
3333 do
3334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336echo "$as_me:$LINENO: checking for $ac_word" >&5
3337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338if test "${ac_cv_prog_CC+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340else
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3343else
3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345for as_dir in $PATH
3346do
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3354 fi
3355done
3356done
3357
3358fi
3359fi
3360CC=$ac_cv_prog_CC
3361if test -n "$CC"; then
3362 echo "$as_me:$LINENO: result: $CC" >&5
3363echo "${ECHO_T}$CC" >&6
3364else
3365 echo "$as_me:$LINENO: result: no" >&5
3366echo "${ECHO_T}no" >&6
3367fi
3368
3369 test -n "$CC" && break
3370 done
3371fi
3372if test -z "$CC"; then
3373 ac_ct_CC=$CC
3374 for ac_prog in gcc
3375do
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377set dummy $ac_prog; ac_word=$2
3378echo "$as_me:$LINENO: checking for $ac_word" >&5
3379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385else
3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH
3388do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_CC="$ac_prog"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397done
3398done
3399
3400fi
3401fi
3402ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403if test -n "$ac_ct_CC"; then
3404 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3405echo "${ECHO_T}$ac_ct_CC" >&6
3406else
3407 echo "$as_me:$LINENO: result: no" >&5
3408echo "${ECHO_T}no" >&6
3409fi
3410
3411 test -n "$ac_ct_CC" && break
3412done
3413
3414 CC=$ac_ct_CC
3415fi
3416
3417
John Criswell0c38eaf2003-09-10 15:17:25 +00003418test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3419See \`config.log' for more details." >&5
3420echo "$as_me: error: no acceptable C compiler found in \$PATH
3421See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003422 { (exit 1); exit 1; }; }
3423
3424# Provide some information about the compiler.
3425echo "$as_me:$LINENO:" \
3426 "checking for C compiler version" >&5
3427ac_compiler=`set X $ac_compile; echo $2`
3428{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3429 (eval $ac_compiler --version </dev/null >&5) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }
3433{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3434 (eval $ac_compiler -v </dev/null >&5) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }
3438{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3439 (eval $ac_compiler -V </dev/null >&5) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }
3443
3444echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3445echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3446if test "${ac_cv_c_compiler_gnu+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003450/* confdefs.h. */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003455
John Criswell7a73b802003-06-30 21:59:07 +00003456int
3457main ()
3458{
3459#ifndef __GNUC__
3460 choke me
3461#endif
3462
3463 ;
3464 return 0;
3465}
3466_ACEOF
3467rm -f conftest.$ac_objext
3468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003469 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003470 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003471 grep -v '^ *+' conftest.er1 >conftest.err
3472 rm -f conftest.er1
3473 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003476 { ac_try='test -z "$ac_c_werror_flag"
3477 || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_compiler_gnu=yes
3490else
3491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003492sed 's/^/| /' conftest.$ac_ext >&5
3493
John Criswell7a73b802003-06-30 21:59:07 +00003494ac_compiler_gnu=no
3495fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003497ac_cv_c_compiler_gnu=$ac_compiler_gnu
3498
3499fi
3500echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3501echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3502GCC=`test $ac_compiler_gnu = yes && echo yes`
3503ac_test_CFLAGS=${CFLAGS+set}
3504ac_save_CFLAGS=$CFLAGS
3505CFLAGS="-g"
3506echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3507echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3508if test "${ac_cv_prog_cc_g+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003517
John Criswell7a73b802003-06-30 21:59:07 +00003518int
3519main ()
3520{
3521
3522 ;
3523 return 0;
3524}
3525_ACEOF
3526rm -f conftest.$ac_objext
3527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003528 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003529 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003535 { ac_try='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 (eval $ac_try) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 ac_cv_prog_cc_g=yes
3549else
3550 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003551sed 's/^/| /' conftest.$ac_ext >&5
3552
John Criswell7a73b802003-06-30 21:59:07 +00003553ac_cv_prog_cc_g=no
3554fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003556fi
3557echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3558echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3559if test "$ac_test_CFLAGS" = set; then
3560 CFLAGS=$ac_save_CFLAGS
3561elif test $ac_cv_prog_cc_g = yes; then
3562 if test "$GCC" = yes; then
3563 CFLAGS="-g -O2"
3564 else
3565 CFLAGS="-g"
3566 fi
3567else
3568 if test "$GCC" = yes; then
3569 CFLAGS="-O2"
3570 else
3571 CFLAGS=
3572 fi
3573fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003574echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3575echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3576if test "${ac_cv_prog_cc_stdc+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 ac_cv_prog_cc_stdc=no
3580ac_save_CC=$CC
3581cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
3586/* end confdefs.h. */
3587#include <stdarg.h>
3588#include <stdio.h>
3589#include <sys/types.h>
3590#include <sys/stat.h>
3591/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3592struct buf { int x; };
3593FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594static char *e (p, i)
3595 char **p;
3596 int i;
3597{
3598 return p[i];
3599}
3600static char *f (char * (*g) (char **, int), char **p, ...)
3601{
3602 char *s;
3603 va_list v;
3604 va_start (v,p);
3605 s = g (p, va_arg (v,int));
3606 va_end (v);
3607 return s;
3608}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003609
3610/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3611 function prototypes and stuff, but not '\xHH' hex character constants.
3612 These don't provoke an error unfortunately, instead are silently treated
3613 as 'x'. The following induces an error, until -std1 is added to get
3614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3615 array size at least. It's necessary to write '\x00'==0 to get something
3616 that's true only with -std1. */
3617int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3618
John Criswell0c38eaf2003-09-10 15:17:25 +00003619int test (int i, double x);
3620struct s1 {int (*f) (int a);};
3621struct s2 {int (*f) (double a);};
3622int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623int argc;
3624char **argv;
3625int
3626main ()
3627{
3628return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3629 ;
3630 return 0;
3631}
3632_ACEOF
3633# Don't try gcc -ansi; that turns off useful extensions and
3634# breaks some systems' header files.
3635# AIX -qlanglvl=ansi
3636# Ultrix and OSF/1 -std1
3637# HP-UX 10.20 and later -Ae
3638# HP-UX older versions -Aa -D_HPUX_SOURCE
3639# SVR4 -Xc -D__EXTENSIONS__
3640for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3641do
3642 CC="$ac_save_CC $ac_arg"
3643 rm -f conftest.$ac_objext
3644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003645 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003652 { ac_try='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_prog_cc_stdc=$ac_arg
3666break
3667else
3668 echo "$as_me: failed program was:" >&5
3669sed 's/^/| /' conftest.$ac_ext >&5
3670
3671fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003672rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003673done
3674rm -f conftest.$ac_ext conftest.$ac_objext
3675CC=$ac_save_CC
3676
3677fi
3678
3679case "x$ac_cv_prog_cc_stdc" in
3680 x|xno)
3681 echo "$as_me:$LINENO: result: none needed" >&5
3682echo "${ECHO_T}none needed" >&6 ;;
3683 *)
3684 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3685echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3686 CC="$CC $ac_cv_prog_cc_stdc" ;;
3687esac
3688
John Criswell7a73b802003-06-30 21:59:07 +00003689# Some people use a C++ compiler to compile C. Since we use `exit',
3690# in C++ we need to declare it. In case someone uses the same compiler
3691# for both compiling C and C++ we need to have the C++ compiler decide
3692# the declaration of exit, since it's the most demanding environment.
3693cat >conftest.$ac_ext <<_ACEOF
3694#ifndef __cplusplus
3695 choke me
3696#endif
3697_ACEOF
3698rm -f conftest.$ac_objext
3699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003700 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003701 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003707 { ac_try='test -z "$ac_c_werror_flag"
3708 || test ! -s conftest.err'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } &&
3714 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003721 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003722 'extern "C" void std::exit (int) throw (); using std::exit;' \
3723 'extern "C" void std::exit (int); using std::exit;' \
3724 'extern "C" void exit (int) throw ();' \
3725 'extern "C" void exit (int);' \
3726 'void exit (int);'
3727do
3728 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003729/* confdefs.h. */
3730_ACEOF
3731cat confdefs.h >>conftest.$ac_ext
3732cat >>conftest.$ac_ext <<_ACEOF
3733/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003734$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003735#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003736int
3737main ()
3738{
3739exit (42);
3740 ;
3741 return 0;
3742}
3743_ACEOF
3744rm -f conftest.$ac_objext
3745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003746 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003747 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003753 { ac_try='test -z "$ac_c_werror_flag"
3754 || test ! -s conftest.err'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; } &&
3760 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 (eval $ac_try) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 :
3767else
3768 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003769sed 's/^/| /' conftest.$ac_ext >&5
3770
John Criswell7a73b802003-06-30 21:59:07 +00003771continue
3772fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003774 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003775/* confdefs.h. */
3776_ACEOF
3777cat confdefs.h >>conftest.$ac_ext
3778cat >>conftest.$ac_ext <<_ACEOF
3779/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003780$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003781int
3782main ()
3783{
3784exit (42);
3785 ;
3786 return 0;
3787}
3788_ACEOF
3789rm -f conftest.$ac_objext
3790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003791 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003792 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003798 { ac_try='test -z "$ac_c_werror_flag"
3799 || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 break
3812else
3813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003814sed 's/^/| /' conftest.$ac_ext >&5
3815
John Criswell7a73b802003-06-30 21:59:07 +00003816fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003818done
3819rm -f conftest*
3820if test -n "$ac_declaration"; then
3821 echo '#ifdef __cplusplus' >>confdefs.h
3822 echo $ac_declaration >>confdefs.h
3823 echo '#endif' >>confdefs.h
3824fi
3825
3826else
3827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003828sed 's/^/| /' conftest.$ac_ext >&5
3829
John Criswell7a73b802003-06-30 21:59:07 +00003830fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003832ac_ext=c
3833ac_cpp='$CPP $CPPFLAGS'
3834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836ac_compiler_gnu=$ac_cv_c_compiler_gnu
3837
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003838ac_ext=cc
3839ac_cpp='$CXXCPP $CPPFLAGS'
3840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3843if test -n "$ac_tool_prefix"; then
3844 for ac_prog in $CCC g++
3845 do
3846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3847set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3848echo "$as_me:$LINENO: checking for $ac_word" >&5
3849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003853 if test -n "$CXX"; then
3854 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3855else
3856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003858do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 break 2
3866 fi
3867done
3868done
3869
3870fi
3871fi
3872CXX=$ac_cv_prog_CXX
3873if test -n "$CXX"; then
3874 echo "$as_me:$LINENO: result: $CXX" >&5
3875echo "${ECHO_T}$CXX" >&6
3876else
3877 echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6
3879fi
3880
3881 test -n "$CXX" && break
3882 done
3883fi
3884if test -z "$CXX"; then
3885 ac_ct_CXX=$CXX
3886 for ac_prog in $CCC g++
3887do
3888 # Extract the first word of "$ac_prog", so it can be a program name with args.
3889set dummy $ac_prog; ac_word=$2
3890echo "$as_me:$LINENO: checking for $ac_word" >&5
3891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894else
3895 if test -n "$ac_ct_CXX"; then
3896 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3897else
3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH
3900do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_ac_ct_CXX="$ac_prog"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3908 fi
3909done
3910done
3911
3912fi
3913fi
3914ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3915if test -n "$ac_ct_CXX"; then
3916 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3917echo "${ECHO_T}$ac_ct_CXX" >&6
3918else
3919 echo "$as_me:$LINENO: result: no" >&5
3920echo "${ECHO_T}no" >&6
3921fi
3922
3923 test -n "$ac_ct_CXX" && break
3924done
3925test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3926
3927 CXX=$ac_ct_CXX
3928fi
3929
3930
3931# Provide some information about the compiler.
3932echo "$as_me:$LINENO:" \
3933 "checking for C++ compiler version" >&5
3934ac_compiler=`set X $ac_compile; echo $2`
3935{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3936 (eval $ac_compiler --version </dev/null >&5) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }
3940{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3941 (eval $ac_compiler -v </dev/null >&5) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }
3945{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3946 (eval $ac_compiler -V </dev/null >&5) 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }
3950
3951echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3952echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3953if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
John Criswell7a73b802003-06-30 21:59:07 +00003956 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003957/* confdefs.h. */
3958_ACEOF
3959cat confdefs.h >>conftest.$ac_ext
3960cat >>conftest.$ac_ext <<_ACEOF
3961/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003962
3963int
3964main ()
3965{
3966#ifndef __GNUC__
3967 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003968#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003969
3970 ;
3971 return 0;
3972}
John Criswell7a73b802003-06-30 21:59:07 +00003973_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003974rm -f conftest.$ac_objext
3975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003977 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003978 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003982 (exit $ac_status); } &&
3983 { ac_try='test -z "$ac_cxx_werror_flag"
3984 || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_compiler_gnu=yes
3997else
3998 echo "$as_me: failed program was:" >&5
3999sed 's/^/| /' conftest.$ac_ext >&5
4000
4001ac_compiler_gnu=no
4002fi
4003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4004ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4005
4006fi
4007echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4008echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4009GXX=`test $ac_compiler_gnu = yes && echo yes`
4010ac_test_CXXFLAGS=${CXXFLAGS+set}
4011ac_save_CXXFLAGS=$CXXFLAGS
4012CXXFLAGS="-g"
4013echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4014echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4015if test "${ac_cv_prog_cxx_g+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018 cat >conftest.$ac_ext <<_ACEOF
4019/* confdefs.h. */
4020_ACEOF
4021cat confdefs.h >>conftest.$ac_ext
4022cat >>conftest.$ac_ext <<_ACEOF
4023/* end confdefs.h. */
4024
4025int
4026main ()
4027{
4028
4029 ;
4030 return 0;
4031}
4032_ACEOF
4033rm -f conftest.$ac_objext
4034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_cxx_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 ac_cv_prog_cxx_g=yes
4056else
4057 echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060ac_cv_prog_cxx_g=no
4061fi
4062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063fi
4064echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4065echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4066if test "$ac_test_CXXFLAGS" = set; then
4067 CXXFLAGS=$ac_save_CXXFLAGS
4068elif test $ac_cv_prog_cxx_g = yes; then
4069 if test "$GXX" = yes; then
4070 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004071 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004072 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004073 fi
4074else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004075 if test "$GXX" = yes; then
4076 CXXFLAGS="-O2"
4077 else
4078 CXXFLAGS=
4079 fi
John Criswell7a73b802003-06-30 21:59:07 +00004080fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004081for ac_declaration in \
4082 '' \
4083 'extern "C" void std::exit (int) throw (); using std::exit;' \
4084 'extern "C" void std::exit (int); using std::exit;' \
4085 'extern "C" void exit (int) throw ();' \
4086 'extern "C" void exit (int);' \
4087 'void exit (int);'
4088do
4089 cat >conftest.$ac_ext <<_ACEOF
4090/* confdefs.h. */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
4094/* end confdefs.h. */
4095$ac_declaration
4096#include <stdlib.h>
4097int
4098main ()
4099{
4100exit (42);
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105rm -f conftest.$ac_objext
4106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try='test -z "$ac_cxx_werror_flag"
4115 || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004127 :
4128else
4129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004130sed 's/^/| /' conftest.$ac_ext >&5
4131
John Criswell7a73b802003-06-30 21:59:07 +00004132continue
4133fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004135 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004141$ac_declaration
4142int
4143main ()
4144{
4145exit (42);
4146 ;
4147 return 0;
4148}
John Criswell7a73b802003-06-30 21:59:07 +00004149_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004150rm -f conftest.$ac_objext
4151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004153 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004154 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_cxx_werror_flag"
4160 || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004172 break
John Criswell7a73b802003-06-30 21:59:07 +00004173else
4174 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004175sed 's/^/| /' conftest.$ac_ext >&5
4176
John Criswell7a73b802003-06-30 21:59:07 +00004177fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004179done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004180rm -f conftest*
4181if test -n "$ac_declaration"; then
4182 echo '#ifdef __cplusplus' >>confdefs.h
4183 echo $ac_declaration >>confdefs.h
4184 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004185fi
4186
4187ac_ext=c
4188ac_cpp='$CPP $CPPFLAGS'
4189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
John Criswell7a73b802003-06-30 21:59:07 +00004193echo "$as_me:$LINENO: checking " >&5
4194echo $ECHO_N "checking ... $ECHO_C" >&6
4195if test "${ac_cv_has_flex+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197else
4198 for ac_prog in flex lex
4199do
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201set dummy $ac_prog; ac_word=$2
4202echo "$as_me:$LINENO: checking for $ac_word" >&5
4203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204if test "${ac_cv_prog_LEX+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207 if test -n "$LEX"; then
4208 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4209else
4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH
4212do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_LEX="$ac_prog"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4220 fi
4221done
4222done
4223
4224fi
4225fi
4226LEX=$ac_cv_prog_LEX
4227if test -n "$LEX"; then
4228 echo "$as_me:$LINENO: result: $LEX" >&5
4229echo "${ECHO_T}$LEX" >&6
4230else
4231 echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6
4233fi
4234
4235 test -n "$LEX" && break
4236done
4237test -n "$LEX" || LEX=":"
4238
4239if test -z "$LEXLIB"
4240then
4241 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4242echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4243if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246 ac_check_lib_save_LIBS=$LIBS
4247LIBS="-lfl $LIBS"
4248cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004249/* confdefs.h. */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004254
4255/* Override any gcc2 internal prototype to avoid an error. */
4256#ifdef __cplusplus
4257extern "C"
4258#endif
4259/* We use char because int might match the return type of a gcc2
4260 builtin and then its argument prototype would still apply. */
4261char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004262int
4263main ()
4264{
4265yywrap ();
4266 ;
4267 return 0;
4268}
4269_ACEOF
4270rm -f conftest.$ac_objext conftest$ac_exeext
4271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004272 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004273 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004279 { ac_try='test -z "$ac_c_werror_flag"
4280 || test ! -s conftest.err'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_lib_fl_yywrap=yes
4293else
4294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004295sed 's/^/| /' conftest.$ac_ext >&5
4296
John Criswell7a73b802003-06-30 21:59:07 +00004297ac_cv_lib_fl_yywrap=no
4298fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004299rm -f conftest.err conftest.$ac_objext \
4300 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004301LIBS=$ac_check_lib_save_LIBS
4302fi
4303echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4304echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4305if test $ac_cv_lib_fl_yywrap = yes; then
4306 LEXLIB="-lfl"
4307else
4308 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4309echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4310if test "${ac_cv_lib_l_yywrap+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312else
4313 ac_check_lib_save_LIBS=$LIBS
4314LIBS="-ll $LIBS"
4315cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004316/* confdefs.h. */
4317_ACEOF
4318cat confdefs.h >>conftest.$ac_ext
4319cat >>conftest.$ac_ext <<_ACEOF
4320/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004321
4322/* Override any gcc2 internal prototype to avoid an error. */
4323#ifdef __cplusplus
4324extern "C"
4325#endif
4326/* We use char because int might match the return type of a gcc2
4327 builtin and then its argument prototype would still apply. */
4328char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004329int
4330main ()
4331{
4332yywrap ();
4333 ;
4334 return 0;
4335}
4336_ACEOF
4337rm -f conftest.$ac_objext conftest$ac_exeext
4338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004339 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004340 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004346 { ac_try='test -z "$ac_c_werror_flag"
4347 || test ! -s conftest.err'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 (eval $ac_try) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; } &&
4353 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_lib_l_yywrap=yes
4360else
4361 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004362sed 's/^/| /' conftest.$ac_ext >&5
4363
John Criswell7a73b802003-06-30 21:59:07 +00004364ac_cv_lib_l_yywrap=no
4365fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004366rm -f conftest.err conftest.$ac_objext \
4367 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004368LIBS=$ac_check_lib_save_LIBS
4369fi
4370echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4371echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4372if test $ac_cv_lib_l_yywrap = yes; then
4373 LEXLIB="-ll"
4374fi
4375
4376fi
4377
4378fi
4379
4380if test "x$LEX" != "x:"; then
4381 echo "$as_me:$LINENO: checking lex output file root" >&5
4382echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4383if test "${ac_cv_prog_lex_root+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386 # The minimal lex program is just a single line: %%. But some broken lexes
4387# (Solaris, I think it was) want two %% lines, so accommodate them.
4388cat >conftest.l <<_ACEOF
4389%%
4390%%
4391_ACEOF
4392{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4393 (eval $LEX conftest.l) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }
4397if test -f lex.yy.c; then
4398 ac_cv_prog_lex_root=lex.yy
4399elif test -f lexyy.c; then
4400 ac_cv_prog_lex_root=lexyy
4401else
4402 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4403echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4404 { (exit 1); exit 1; }; }
4405fi
4406fi
4407echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4408echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4409rm -f conftest.l
4410LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4411
4412echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4413echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4414if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416else
4417 # POSIX says lex can declare yytext either as a pointer or an array; the
4418# default is implementation-dependent. Figure out which it is, since
4419# not all implementations provide the %pointer and %array declarations.
4420ac_cv_prog_lex_yytext_pointer=no
4421echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4422ac_save_LIBS=$LIBS
4423LIBS="$LIBS $LEXLIB"
4424cat >conftest.$ac_ext <<_ACEOF
4425`cat $LEX_OUTPUT_ROOT.c`
4426_ACEOF
4427rm -f conftest.$ac_objext conftest$ac_exeext
4428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004429 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004430 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004436 { ac_try='test -z "$ac_c_werror_flag"
4437 || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 (eval $ac_try) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 ac_cv_prog_lex_yytext_pointer=yes
4450else
4451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004452sed 's/^/| /' conftest.$ac_ext >&5
4453
John Criswell7a73b802003-06-30 21:59:07 +00004454fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004455rm -f conftest.err conftest.$ac_objext \
4456 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004457LIBS=$ac_save_LIBS
4458rm -f "${LEX_OUTPUT_ROOT}.c"
4459
4460fi
4461echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4462echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4463if test $ac_cv_prog_lex_yytext_pointer = yes; then
4464
4465cat >>confdefs.h <<\_ACEOF
4466#define YYTEXT_POINTER 1
4467_ACEOF
4468
4469fi
4470
4471fi
4472
4473fi
4474echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4475echo "${ECHO_T}$ac_cv_has_flex" >&6
4476if test "$LEX" != "flex"; then
4477 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4478echo "$as_me: error: flex not found but required" >&2;}
4479 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004480else
4481 FLEX=flex
4482
John Criswell7a73b802003-06-30 21:59:07 +00004483fi
4484
4485echo "$as_me:$LINENO: checking " >&5
4486echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004487if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489else
4490 for ac_prog in 'bison -y' byacc
4491do
4492 # Extract the first word of "$ac_prog", so it can be a program name with args.
4493set dummy $ac_prog; ac_word=$2
4494echo "$as_me:$LINENO: checking for $ac_word" >&5
4495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496if test "${ac_cv_prog_YACC+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499 if test -n "$YACC"; then
4500 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4501else
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509 ac_cv_prog_YACC="$ac_prog"
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4512 fi
4513done
4514done
4515
4516fi
4517fi
4518YACC=$ac_cv_prog_YACC
4519if test -n "$YACC"; then
4520 echo "$as_me:$LINENO: result: $YACC" >&5
4521echo "${ECHO_T}$YACC" >&6
4522else
4523 echo "$as_me:$LINENO: result: no" >&5
4524echo "${ECHO_T}no" >&6
4525fi
4526
4527 test -n "$YACC" && break
4528done
4529test -n "$YACC" || YACC="yacc"
4530
John Criswell7a73b802003-06-30 21:59:07 +00004531fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004532echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4533echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004534if test "$YACC" != "bison -y"; then
4535 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4536echo "$as_me: error: bison not found but required" >&2;}
4537 { (exit 1); exit 1; }; }
4538else
Brian Gaeke12810632004-01-13 06:52:10 +00004539 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004540
4541fi
4542
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004543echo "$as_me:$LINENO: checking for GNU make" >&5
4544echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4545if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004548 llvm_cv_gnu_make_command=''
4549 for a in "$MAKE" make gmake gnumake ; do
4550 if test -z "$a" ; then continue ; fi ;
4551 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4552 then
4553 llvm_cv_gnu_make_command=$a ;
4554 break;
John Criswell47fdd832003-07-14 16:52:07 +00004555 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004556 done
John Criswell7a73b802003-06-30 21:59:07 +00004557fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004558echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4559echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4560 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4561 ifGNUmake='' ;
4562 else
4563 ifGNUmake='#' ;
4564 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4565echo "${ECHO_T}\"Not found\"" >&6;
4566 fi
John Criswell7a73b802003-06-30 21:59:07 +00004567
John Criswell7a73b802003-06-30 21:59:07 +00004568
4569echo "$as_me:$LINENO: checking whether ln -s works" >&5
4570echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4571LN_S=$as_ln_s
4572if test "$LN_S" = "ln -s"; then
4573 echo "$as_me:$LINENO: result: yes" >&5
4574echo "${ECHO_T}yes" >&6
4575else
4576 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4577echo "${ECHO_T}no, using $LN_S" >&6
4578fi
4579
Reid Spencer8a2d4712004-12-16 17:48:14 +00004580# Extract the first word of "cmp", so it can be a program name with args.
4581set dummy cmp; ac_word=$2
4582echo "$as_me:$LINENO: checking for $ac_word" >&5
4583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584if test "${ac_cv_path_CMP+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587 case $CMP in
4588 [\\/]* | ?:[\\/]*)
4589 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4590 ;;
4591 *)
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
4604done
4605
4606 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4607 ;;
4608esac
4609fi
4610CMP=$ac_cv_path_CMP
4611
4612if test -n "$CMP"; then
4613 echo "$as_me:$LINENO: result: $CMP" >&5
4614echo "${ECHO_T}$CMP" >&6
4615else
4616 echo "$as_me:$LINENO: result: no" >&5
4617echo "${ECHO_T}no" >&6
4618fi
4619
4620# Extract the first word of "cp", so it can be a program name with args.
4621set dummy cp; ac_word=$2
4622echo "$as_me:$LINENO: checking for $ac_word" >&5
4623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4624if test "${ac_cv_path_CP+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627 case $CP in
4628 [\\/]* | ?:[\\/]*)
4629 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4630 ;;
4631 *)
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4642 fi
4643done
4644done
4645
4646 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4647 ;;
4648esac
4649fi
4650CP=$ac_cv_path_CP
4651
4652if test -n "$CP"; then
4653 echo "$as_me:$LINENO: result: $CP" >&5
4654echo "${ECHO_T}$CP" >&6
4655else
4656 echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6
4658fi
4659
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004660# Extract the first word of "date", so it can be a program name with args.
4661set dummy date; ac_word=$2
4662echo "$as_me:$LINENO: checking for $ac_word" >&5
4663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004667 case $DATE in
4668 [\\/]* | ?:[\\/]*)
4669 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004670 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004671 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673for as_dir in $PATH
4674do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004682 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004683done
4684done
John Criswell7a73b802003-06-30 21:59:07 +00004685
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004686 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004687 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004688esac
John Criswell7a73b802003-06-30 21:59:07 +00004689fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004690DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004691
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004692if test -n "$DATE"; then
4693 echo "$as_me:$LINENO: result: $DATE" >&5
4694echo "${ECHO_T}$DATE" >&6
4695else
4696 echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6
4698fi
John Criswell7a73b802003-06-30 21:59:07 +00004699
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004700# Extract the first word of "find", so it can be a program name with args.
4701set dummy find; ac_word=$2
4702echo "$as_me:$LINENO: checking for $ac_word" >&5
4703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004707 case $FIND in
4708 [\\/]* | ?:[\\/]*)
4709 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4710 ;;
4711 *)
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713for as_dir in $PATH
4714do
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 break 2
4722 fi
4723done
4724done
4725
4726 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4727 ;;
4728esac
4729fi
4730FIND=$ac_cv_path_FIND
4731
4732if test -n "$FIND"; then
4733 echo "$as_me:$LINENO: result: $FIND" >&5
4734echo "${ECHO_T}$FIND" >&6
4735else
4736 echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
4738fi
4739
4740# Extract the first word of "grep", so it can be a program name with args.
4741set dummy grep; ac_word=$2
4742echo "$as_me:$LINENO: checking for $ac_word" >&5
4743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744if test "${ac_cv_path_GREP+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746else
4747 case $GREP in
4748 [\\/]* | ?:[\\/]*)
4749 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4750 ;;
4751 *)
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763done
4764done
4765
4766 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4767 ;;
4768esac
4769fi
4770GREP=$ac_cv_path_GREP
4771
4772if test -n "$GREP"; then
4773 echo "$as_me:$LINENO: result: $GREP" >&5
4774echo "${ECHO_T}$GREP" >&6
4775else
4776 echo "$as_me:$LINENO: result: no" >&5
4777echo "${ECHO_T}no" >&6
4778fi
4779
4780# Extract the first word of "mkdir", so it can be a program name with args.
4781set dummy mkdir; ac_word=$2
4782echo "$as_me:$LINENO: checking for $ac_word" >&5
4783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784if test "${ac_cv_path_MKDIR+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787 case $MKDIR in
4788 [\\/]* | ?:[\\/]*)
4789 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4790 ;;
4791 *)
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4802 fi
4803done
4804done
4805
4806 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4807 ;;
4808esac
4809fi
4810MKDIR=$ac_cv_path_MKDIR
4811
4812if test -n "$MKDIR"; then
4813 echo "$as_me:$LINENO: result: $MKDIR" >&5
4814echo "${ECHO_T}$MKDIR" >&6
4815else
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
4818fi
4819
4820# Extract the first word of "mv", so it can be a program name with args.
4821set dummy mv; ac_word=$2
4822echo "$as_me:$LINENO: checking for $ac_word" >&5
4823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824if test "${ac_cv_path_MV+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827 case $MV in
4828 [\\/]* | ?:[\\/]*)
4829 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4830 ;;
4831 *)
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH
4834do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4839 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843done
4844done
4845
4846 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4847 ;;
4848esac
4849fi
4850MV=$ac_cv_path_MV
4851
4852if test -n "$MV"; then
4853 echo "$as_me:$LINENO: result: $MV" >&5
4854echo "${ECHO_T}$MV" >&6
4855else
4856 echo "$as_me:$LINENO: result: no" >&5
4857echo "${ECHO_T}no" >&6
4858fi
4859
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004860if test -n "$ac_tool_prefix"; then
4861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4862set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4863echo "$as_me:$LINENO: checking for $ac_word" >&5
4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865if test "${ac_cv_prog_RANLIB+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868 if test -n "$RANLIB"; then
4869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4881 fi
4882done
4883done
4884
4885fi
4886fi
4887RANLIB=$ac_cv_prog_RANLIB
4888if test -n "$RANLIB"; then
4889 echo "$as_me:$LINENO: result: $RANLIB" >&5
4890echo "${ECHO_T}$RANLIB" >&6
4891else
4892 echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6
4894fi
4895
4896fi
4897if test -z "$ac_cv_prog_RANLIB"; then
4898 ac_ct_RANLIB=$RANLIB
4899 # Extract the first word of "ranlib", so it can be a program name with args.
4900set dummy ranlib; ac_word=$2
4901echo "$as_me:$LINENO: checking for $ac_word" >&5
4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4903if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906 if test -n "$ac_ct_RANLIB"; then
4907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4908else
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_prog_ac_ct_RANLIB="ranlib"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
4921done
4922
4923 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4924fi
4925fi
4926ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4927if test -n "$ac_ct_RANLIB"; then
4928 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4929echo "${ECHO_T}$ac_ct_RANLIB" >&6
4930else
4931 echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
4933fi
4934
4935 RANLIB=$ac_ct_RANLIB
4936else
4937 RANLIB="$ac_cv_prog_RANLIB"
4938fi
4939
4940# Extract the first word of "rm", so it can be a program name with args.
4941set dummy rm; ac_word=$2
4942echo "$as_me:$LINENO: checking for $ac_word" >&5
4943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944if test "${ac_cv_path_RM+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947 case $RM in
4948 [\\/]* | ?:[\\/]*)
4949 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4950 ;;
4951 *)
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953for as_dir in $PATH
4954do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963done
4964done
4965
4966 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4967 ;;
4968esac
4969fi
4970RM=$ac_cv_path_RM
4971
4972if test -n "$RM"; then
4973 echo "$as_me:$LINENO: result: $RM" >&5
4974echo "${ECHO_T}$RM" >&6
4975else
4976 echo "$as_me:$LINENO: result: no" >&5
4977echo "${ECHO_T}no" >&6
4978fi
4979
4980# Extract the first word of "sed", so it can be a program name with args.
4981set dummy sed; 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_path_SED+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987 case $SED in
4988 [\\/]* | ?:[\\/]*)
4989 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4990 ;;
4991 *)
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH
4994do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003done
5004done
5005
5006 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5007 ;;
5008esac
5009fi
5010SED=$ac_cv_path_SED
5011
5012if test -n "$SED"; then
5013 echo "$as_me:$LINENO: result: $SED" >&5
5014echo "${ECHO_T}$SED" >&6
5015else
5016 echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
5018fi
5019
5020# Extract the first word of "tar", so it can be a program name with args.
5021set dummy tar; ac_word=$2
5022echo "$as_me:$LINENO: checking for $ac_word" >&5
5023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024if test "${ac_cv_path_TAR+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026else
5027 case $TAR in
5028 [\\/]* | ?:[\\/]*)
5029 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5030 ;;
5031 *)
5032 as_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_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043done
5044done
5045
5046 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5047 ;;
5048esac
5049fi
5050TAR=$ac_cv_path_TAR
5051
5052if test -n "$TAR"; then
5053 echo "$as_me:$LINENO: result: $TAR" >&5
5054echo "${ECHO_T}$TAR" >&6
5055else
5056 echo "$as_me:$LINENO: result: no" >&5
5057echo "${ECHO_T}no" >&6
5058fi
5059
5060
5061# Find a good install program. We prefer a C program (faster),
5062# so one script is as good as another. But avoid the broken or
5063# incompatible versions:
5064# SysV /etc/install, /usr/sbin/install
5065# SunOS /usr/etc/install
5066# IRIX /sbin/install
5067# AIX /bin/install
5068# AmigaOS /C/install, which installs bootblocks on floppy discs
5069# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5070# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5071# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5072# OS/2's system install, which has a completely different semantic
5073# ./install, which can be erroneously created by make from ./install.sh.
5074echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5075echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5076if test -z "$INSTALL"; then
5077if test "${ac_cv_path_install+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5079else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 # Account for people who put trailing slashes in PATH elements.
5086case $as_dir/ in
5087 ./ | .// | /cC/* | \
5088 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5089 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5090 /usr/ucb/* ) ;;
5091 *)
5092 # OSF1 and SCO ODT 3.0 have their own names for install.
5093 # Don't use installbsd from OSF since it installs stuff as root
5094 # by default.
5095 for ac_prog in ginstall scoinst install; do
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5098 if test $ac_prog = install &&
5099 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5100 # AIX install. It has an incompatible calling convention.
5101 :
5102 elif test $ac_prog = install &&
5103 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5104 # program-specific install script used by HP pwplus--don't use.
5105 :
5106 else
5107 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5108 break 3
5109 fi
5110 fi
5111 done
5112 done
5113 ;;
5114esac
5115done
5116
5117
5118fi
5119 if test "${ac_cv_path_install+set}" = set; then
5120 INSTALL=$ac_cv_path_install
5121 else
5122 # As a last resort, use the slow shell script. We don't cache a
5123 # path for INSTALL within a source directory, because that will
5124 # break other packages using the cache if that directory is
5125 # removed, or if the path is relative.
5126 INSTALL=$ac_install_sh
5127 fi
5128fi
5129echo "$as_me:$LINENO: result: $INSTALL" >&5
5130echo "${ECHO_T}$INSTALL" >&6
5131
5132# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5133# It thinks the first close brace ends the variable substitution.
5134test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5135
5136test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5137
5138test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5139
5140
5141# Extract the first word of "bzip2", so it can be a program name with args.
5142set dummy bzip2; ac_word=$2
5143echo "$as_me:$LINENO: checking for $ac_word" >&5
5144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145if test "${ac_cv_path_BZIP2+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148 case $BZIP2 in
5149 [\\/]* | ?:[\\/]*)
5150 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5151 ;;
5152 *)
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164done
5165done
5166
5167 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5168 ;;
5169esac
5170fi
5171BZIP2=$ac_cv_path_BZIP2
5172
5173if test -n "$BZIP2"; then
5174 echo "$as_me:$LINENO: result: $BZIP2" >&5
5175echo "${ECHO_T}$BZIP2" >&6
5176else
5177 echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
5179fi
5180
5181# Extract the first word of "dot", so it can be a program name with args.
5182set dummy dot; ac_word=$2
5183echo "$as_me:$LINENO: checking for $ac_word" >&5
5184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185if test "${ac_cv_path_DOT+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188 case $DOT in
5189 [\\/]* | ?:[\\/]*)
5190 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5191 ;;
5192 *)
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204done
5205done
5206
5207 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5208 ;;
5209esac
5210fi
5211DOT=$ac_cv_path_DOT
5212
5213if test -n "$DOT"; then
5214 echo "$as_me:$LINENO: result: $DOT" >&5
5215echo "${ECHO_T}$DOT" >&6
5216else
5217 echo "$as_me:$LINENO: result: no" >&5
5218echo "${ECHO_T}no" >&6
5219fi
5220
5221# Extract the first word of "doxygen", so it can be a program name with args.
5222set dummy doxygen; ac_word=$2
5223echo "$as_me:$LINENO: checking for $ac_word" >&5
5224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225if test "${ac_cv_path_DOXYGEN+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228 case $DOXYGEN in
5229 [\\/]* | ?:[\\/]*)
5230 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5231 ;;
5232 *)
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244done
5245done
5246
5247 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5248 ;;
5249esac
5250fi
5251DOXYGEN=$ac_cv_path_DOXYGEN
5252
5253if test -n "$DOXYGEN"; then
5254 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5255echo "${ECHO_T}$DOXYGEN" >&6
5256else
5257 echo "$as_me:$LINENO: result: no" >&5
5258echo "${ECHO_T}no" >&6
5259fi
5260
5261# Extract the first word of "etags", so it can be a program name with args.
5262set dummy etags; ac_word=$2
5263echo "$as_me:$LINENO: checking for $ac_word" >&5
5264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5265if test "${ac_cv_path_ETAGS+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268 case $ETAGS in
5269 [\\/]* | ?:[\\/]*)
5270 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5271 ;;
5272 *)
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284done
5285done
5286
5287 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5288 ;;
5289esac
5290fi
5291ETAGS=$ac_cv_path_ETAGS
5292
5293if test -n "$ETAGS"; then
5294 echo "$as_me:$LINENO: result: $ETAGS" >&5
5295echo "${ECHO_T}$ETAGS" >&6
5296else
5297 echo "$as_me:$LINENO: result: no" >&5
5298echo "${ECHO_T}no" >&6
5299fi
5300
5301# Extract the first word of "groff", so it can be a program name with args.
5302set dummy groff; ac_word=$2
5303echo "$as_me:$LINENO: checking for $ac_word" >&5
5304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5305if test "${ac_cv_path_GROFF+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308 case $GROFF in
5309 [\\/]* | ?:[\\/]*)
5310 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5311 ;;
5312 *)
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314for as_dir in $PATH
5315do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5323 fi
5324done
5325done
5326
5327 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5328 ;;
5329esac
5330fi
5331GROFF=$ac_cv_path_GROFF
5332
5333if test -n "$GROFF"; then
5334 echo "$as_me:$LINENO: result: $GROFF" >&5
5335echo "${ECHO_T}$GROFF" >&6
5336else
5337 echo "$as_me:$LINENO: result: no" >&5
5338echo "${ECHO_T}no" >&6
5339fi
5340
5341# Extract the first word of "gzip", so it can be a program name with args.
5342set dummy gzip; ac_word=$2
5343echo "$as_me:$LINENO: checking for $ac_word" >&5
5344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345if test "${ac_cv_path_GZIP+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347else
5348 case $GZIP in
5349 [\\/]* | ?:[\\/]*)
5350 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5351 ;;
5352 *)
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5363 fi
5364done
5365done
5366
5367 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5368 ;;
5369esac
5370fi
5371GZIP=$ac_cv_path_GZIP
5372
5373if test -n "$GZIP"; then
5374 echo "$as_me:$LINENO: result: $GZIP" >&5
5375echo "${ECHO_T}$GZIP" >&6
5376else
5377 echo "$as_me:$LINENO: result: no" >&5
5378echo "${ECHO_T}no" >&6
5379fi
5380
5381# Extract the first word of "pod2html", so it can be a program name with args.
5382set dummy pod2html; ac_word=$2
5383echo "$as_me:$LINENO: checking for $ac_word" >&5
5384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385if test "${ac_cv_path_POD2HTML+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388 case $POD2HTML in
5389 [\\/]* | ?:[\\/]*)
5390 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5391 ;;
5392 *)
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394for as_dir in $PATH
5395do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5403 fi
5404done
5405done
5406
5407 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5408 ;;
5409esac
5410fi
5411POD2HTML=$ac_cv_path_POD2HTML
5412
5413if test -n "$POD2HTML"; then
5414 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5415echo "${ECHO_T}$POD2HTML" >&6
5416else
5417 echo "$as_me:$LINENO: result: no" >&5
5418echo "${ECHO_T}no" >&6
5419fi
5420
5421# Extract the first word of "pod2man", so it can be a program name with args.
5422set dummy pod2man; ac_word=$2
5423echo "$as_me:$LINENO: checking for $ac_word" >&5
5424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425if test "${ac_cv_path_POD2MAN+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428 case $POD2MAN in
5429 [\\/]* | ?:[\\/]*)
5430 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5431 ;;
5432 *)
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5443 fi
5444done
5445done
5446
5447 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5448 ;;
5449esac
5450fi
5451POD2MAN=$ac_cv_path_POD2MAN
5452
5453if test -n "$POD2MAN"; then
5454 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5455echo "${ECHO_T}$POD2MAN" >&6
5456else
5457 echo "$as_me:$LINENO: result: no" >&5
5458echo "${ECHO_T}no" >&6
5459fi
5460
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005461# Extract the first word of "runtest", so it can be a program name with args.
5462set dummy runtest; ac_word=$2
5463echo "$as_me:$LINENO: checking for $ac_word" >&5
5464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465if test "${ac_cv_path_RUNTEST+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468 case $RUNTEST in
5469 [\\/]* | ?:[\\/]*)
5470 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5471 ;;
5472 *)
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5483 fi
5484done
5485done
5486
5487 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5488 ;;
5489esac
5490fi
5491RUNTEST=$ac_cv_path_RUNTEST
5492
5493if test -n "$RUNTEST"; then
5494 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5495echo "${ECHO_T}$RUNTEST" >&6
5496else
5497 echo "$as_me:$LINENO: result: no" >&5
5498echo "${ECHO_T}no" >&6
5499fi
5500
Reid Spencer0fcb9412004-11-30 08:11:54 +00005501
Reid Spencer0fcb9412004-11-30 08:11:54 +00005502no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005503echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5504echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005505
5506# Check whether --with-tclinclude or --without-tclinclude was given.
5507if test "${with_tclinclude+set}" = set; then
5508 withval="$with_tclinclude"
5509 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005510else
5511 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005512fi;
5513if test "${ac_cv_path_tclsh+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516
5517if test x"${with_tclinclude}" != x ; then
5518 if test -f ${with_tclinclude}/tclsh ; then
5519 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5520 elif test -f ${with_tclinclude}/src/tclsh ; then
5521 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5522 else
5523 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5524echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5525 { (exit 1); exit 1; }; }
5526 fi
5527fi
5528
Reid Spencer0fcb9412004-11-30 08:11:54 +00005529if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005530 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005531echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005532 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
Reid Spencercda35f82004-12-02 04:17:20 +00005533do
5534 # Extract the first word of "$ac_prog", so it can be a program name with args.
5535set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005536echo "$as_me:$LINENO: checking for $ac_word" >&5
5537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005538if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
Reid Spencercda35f82004-12-02 04:17:20 +00005541 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005542 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005543 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005544 ;;
5545 *)
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005553 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5556 fi
5557done
5558done
5559
5560 ;;
5561esac
5562fi
Reid Spencercda35f82004-12-02 04:17:20 +00005563TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005564
Reid Spencercda35f82004-12-02 04:17:20 +00005565if test -n "$TCLSH"; then
5566 echo "$as_me:$LINENO: result: $TCLSH" >&5
5567echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005568else
5569 echo "$as_me:$LINENO: result: no" >&5
5570echo "${ECHO_T}no" >&6
5571fi
5572
Reid Spencercda35f82004-12-02 04:17:20 +00005573 test -n "$TCLSH" && break
5574done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005575
Reid Spencercda35f82004-12-02 04:17:20 +00005576 if test x"${TCLSH}" = x ; then
5577 ac_cv_path_tclsh='';
5578 else
5579 ac_cv_path_tclsh="${TCLSH}";
5580 fi
5581else
5582 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5583echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5584 TCLSH="${ac_cv_path_tclsh}"
5585
5586fi
5587
5588fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005589
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005590# Extract the first word of "zip", so it can be a program name with args.
5591set dummy zip; ac_word=$2
5592echo "$as_me:$LINENO: checking for $ac_word" >&5
5593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594if test "${ac_cv_path_ZIP+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597 case $ZIP in
5598 [\\/]* | ?:[\\/]*)
5599 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5600 ;;
5601 *)
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613done
5614done
5615
5616 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5617 ;;
5618esac
5619fi
5620ZIP=$ac_cv_path_ZIP
5621
5622if test -n "$ZIP"; then
5623 echo "$as_me:$LINENO: result: $ZIP" >&5
5624echo "${ECHO_T}$ZIP" >&6
5625else
5626 echo "$as_me:$LINENO: result: no" >&5
5627echo "${ECHO_T}no" >&6
5628fi
5629
5630
5631echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5632echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5633if test "${llvm_cv_link_use_r+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005637ac_cpp='$CPP $CPPFLAGS'
5638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005642 oldcflags="$CFLAGS"
5643 CFLAGS="$CFLAGS -Wl,-R."
5644 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005645/* confdefs.h. */
5646_ACEOF
5647cat confdefs.h >>conftest.$ac_ext
5648cat >>conftest.$ac_ext <<_ACEOF
5649/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005650
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005651int
5652main ()
5653{
5654int main() { return 0; }
5655 ;
5656 return 0;
5657}
John Criswell47fdd832003-07-14 16:52:07 +00005658_ACEOF
5659rm -f conftest.$ac_objext conftest$ac_exeext
5660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005661 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005662 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005667 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005668 { ac_try='test -z "$ac_c_werror_flag"
5669 || test ! -s conftest.err'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005681 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005682else
John Criswell47fdd832003-07-14 16:52:07 +00005683 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005684sed 's/^/| /' conftest.$ac_ext >&5
5685
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005686llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005687fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005688rm -f conftest.err conftest.$ac_objext \
5689 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005690 CFLAGS="$oldcflags"
5691 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005692ac_cpp='$CPP $CPPFLAGS'
5693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005697
John Criswell7a73b802003-06-30 21:59:07 +00005698fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005699echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5700echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5701if test "$llvm_cv_link_use_r" = yes ; then
5702
5703cat >>confdefs.h <<\_ACEOF
5704#define HAVE_LINK_R 1
5705_ACEOF
5706
John Criswell47fdd832003-07-14 16:52:07 +00005707 fi
John Criswell47fdd832003-07-14 16:52:07 +00005708
John Criswell47fdd832003-07-14 16:52:07 +00005709
John Criswell47fdd832003-07-14 16:52:07 +00005710
John Criswell7a73b802003-06-30 21:59:07 +00005711
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005712echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5713echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5714if test "${ac_cv_c_const+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723
5724int
5725main ()
5726{
5727/* FIXME: Include the comments suggested by Paul. */
5728#ifndef __cplusplus
5729 /* Ultrix mips cc rejects this. */
5730 typedef int charset[2];
5731 const charset x;
5732 /* SunOS 4.1.1 cc rejects this. */
5733 char const *const *ccp;
5734 char **p;
5735 /* NEC SVR4.0.2 mips cc rejects this. */
5736 struct point {int x, y;};
5737 static struct point const zero = {0,0};
5738 /* AIX XL C 1.02.0.0 rejects this.
5739 It does not let you subtract one const X* pointer from another in
5740 an arm of an if-expression whose if-part is not a constant
5741 expression */
5742 const char *g = "string";
5743 ccp = &g + (g ? g-g : 0);
5744 /* HPUX 7.0 cc rejects these. */
5745 ++ccp;
5746 p = (char**) ccp;
5747 ccp = (char const *const *) p;
5748 { /* SCO 3.2v4 cc rejects this. */
5749 char *t;
5750 char const *s = 0 ? (char *) 0 : (char const *) 0;
5751
5752 *t++ = 0;
5753 }
5754 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5755 int x[] = {25, 17};
5756 const int *foo = &x[0];
5757 ++foo;
5758 }
5759 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5760 typedef const int *iptr;
5761 iptr p = 0;
5762 ++p;
5763 }
5764 { /* AIX XL C 1.02.0.0 rejects this saying
5765 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5766 struct s { int j; const int *ap[3]; };
5767 struct s *b; b->j = 5;
5768 }
5769 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5770 const int foo = 10;
5771 }
5772#endif
5773
5774 ;
5775 return 0;
5776}
5777_ACEOF
5778rm -f conftest.$ac_objext
5779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -z "$ac_c_werror_flag"
5788 || test ! -s conftest.err'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 (eval $ac_try) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; } &&
5794 { ac_try='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_cv_c_const=yes
5801else
5802 echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805ac_cv_c_const=no
5806fi
5807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5808fi
5809echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5810echo "${ECHO_T}$ac_cv_c_const" >&6
5811if test $ac_cv_c_const = no; then
5812
5813cat >>confdefs.h <<\_ACEOF
5814#define const
5815_ACEOF
5816
5817fi
5818
5819
5820echo "$as_me:$LINENO: checking for egrep" >&5
5821echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5822if test "${ac_cv_prog_egrep+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5826 then ac_cv_prog_egrep='grep -E'
5827 else ac_cv_prog_egrep='egrep'
5828 fi
5829fi
5830echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5831echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5832 EGREP=$ac_cv_prog_egrep
5833
John Criswell7a73b802003-06-30 21:59:07 +00005834
5835echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5836echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5837if test "${ac_cv_header_stdc+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005841/* confdefs.h. */
5842_ACEOF
5843cat confdefs.h >>conftest.$ac_ext
5844cat >>conftest.$ac_ext <<_ACEOF
5845/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005846#include <stdlib.h>
5847#include <stdarg.h>
5848#include <string.h>
5849#include <float.h>
5850
John Criswell0c38eaf2003-09-10 15:17:25 +00005851int
5852main ()
5853{
5854
5855 ;
5856 return 0;
5857}
John Criswell7a73b802003-06-30 21:59:07 +00005858_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005859rm -f conftest.$ac_objext
5860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005861 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005862 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005863 grep -v '^ *+' conftest.er1 >conftest.err
5864 rm -f conftest.er1
5865 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005867 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005868 { ac_try='test -z "$ac_c_werror_flag"
5869 || test ! -s conftest.err'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005881 ac_cv_header_stdc=yes
5882else
5883 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005884sed 's/^/| /' conftest.$ac_ext >&5
5885
5886ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005887fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005889
5890if test $ac_cv_header_stdc = yes; then
5891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5892 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005898#include <string.h>
5899
5900_ACEOF
5901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005902 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005903 :
5904else
5905 ac_cv_header_stdc=no
5906fi
5907rm -f conftest*
5908
5909fi
5910
5911if test $ac_cv_header_stdc = yes; then
5912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5913 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005914/* confdefs.h. */
5915_ACEOF
5916cat confdefs.h >>conftest.$ac_ext
5917cat >>conftest.$ac_ext <<_ACEOF
5918/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005919#include <stdlib.h>
5920
5921_ACEOF
5922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005923 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005924 :
5925else
5926 ac_cv_header_stdc=no
5927fi
5928rm -f conftest*
5929
5930fi
5931
5932if test $ac_cv_header_stdc = yes; then
5933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5934 if test "$cross_compiling" = yes; then
5935 :
5936else
5937 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005938/* confdefs.h. */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005943#include <ctype.h>
5944#if ((' ' & 0x0FF) == 0x020)
5945# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5946# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5947#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005948# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005949 (('a' <= (c) && (c) <= 'i') \
5950 || ('j' <= (c) && (c) <= 'r') \
5951 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005952# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5953#endif
5954
5955#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5956int
5957main ()
5958{
5959 int i;
5960 for (i = 0; i < 256; i++)
5961 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005962 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005963 exit(2);
5964 exit (0);
5965}
5966_ACEOF
5967rm -f conftest$ac_exeext
5968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5969 (eval $ac_link) 2>&5
5970 ac_status=$?
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 :
5979else
5980 echo "$as_me: program exited with status $ac_status" >&5
5981echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005982sed 's/^/| /' conftest.$ac_ext >&5
5983
John Criswell7a73b802003-06-30 21:59:07 +00005984( exit $ac_status )
5985ac_cv_header_stdc=no
5986fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005987rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005988fi
5989fi
5990fi
5991echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5992echo "${ECHO_T}$ac_cv_header_stdc" >&6
5993if test $ac_cv_header_stdc = yes; then
5994
5995cat >>confdefs.h <<\_ACEOF
5996#define STDC_HEADERS 1
5997_ACEOF
5998
5999fi
6000
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006001
6002
6003
6004
6005
6006ac_header_dirent=no
6007for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6008 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6009echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6010echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6011if eval "test \"\${$as_ac_Header+set}\" = set"; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013else
6014 cat >conftest.$ac_ext <<_ACEOF
6015/* confdefs.h. */
6016_ACEOF
6017cat confdefs.h >>conftest.$ac_ext
6018cat >>conftest.$ac_ext <<_ACEOF
6019/* end confdefs.h. */
6020#include <sys/types.h>
6021#include <$ac_hdr>
6022
6023int
6024main ()
6025{
6026if ((DIR *) 0)
6027return 0;
6028 ;
6029 return 0;
6030}
6031_ACEOF
6032rm -f conftest.$ac_objext
6033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034 (eval $ac_compile) 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try='test -z "$ac_c_werror_flag"
6042 || test ! -s conftest.err'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 (eval $ac_try) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; } &&
6048 { ac_try='test -s conftest.$ac_objext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 (eval $ac_try) 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 eval "$as_ac_Header=yes"
6055else
6056 echo "$as_me: failed program was:" >&5
6057sed 's/^/| /' conftest.$ac_ext >&5
6058
6059eval "$as_ac_Header=no"
6060fi
6061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6062fi
6063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6065if test `eval echo '${'$as_ac_Header'}'` = yes; then
6066 cat >>confdefs.h <<_ACEOF
6067#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6068_ACEOF
6069
6070ac_header_dirent=$ac_hdr; break
6071fi
6072
6073done
6074# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6075if test $ac_header_dirent = dirent.h; then
6076 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6077echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6078if test "${ac_cv_search_opendir+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081 ac_func_search_save_LIBS=$LIBS
6082ac_cv_search_opendir=no
6083cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h. */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h. */
6089
6090/* Override any gcc2 internal prototype to avoid an error. */
6091#ifdef __cplusplus
6092extern "C"
6093#endif
6094/* We use char because int might match the return type of a gcc2
6095 builtin and then its argument prototype would still apply. */
6096char opendir ();
6097int
6098main ()
6099{
6100opendir ();
6101 ;
6102 return 0;
6103}
6104_ACEOF
6105rm -f conftest.$ac_objext conftest$ac_exeext
6106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107 (eval $ac_link) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest$ac_exeext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_search_opendir="none required"
6128else
6129 echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132fi
6133rm -f conftest.err conftest.$ac_objext \
6134 conftest$ac_exeext conftest.$ac_ext
6135if test "$ac_cv_search_opendir" = no; then
6136 for ac_lib in dir; do
6137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6138 cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
6144
6145/* Override any gcc2 internal prototype to avoid an error. */
6146#ifdef __cplusplus
6147extern "C"
6148#endif
6149/* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6151char opendir ();
6152int
6153main ()
6154{
6155opendir ();
6156 ;
6157 return 0;
6158}
6159_ACEOF
6160rm -f conftest.$ac_objext conftest$ac_exeext
6161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162 (eval $ac_link) 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_search_opendir="-l$ac_lib"
6183break
6184else
6185 echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
6188fi
6189rm -f conftest.err conftest.$ac_objext \
6190 conftest$ac_exeext conftest.$ac_ext
6191 done
6192fi
6193LIBS=$ac_func_search_save_LIBS
6194fi
6195echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6196echo "${ECHO_T}$ac_cv_search_opendir" >&6
6197if test "$ac_cv_search_opendir" != no; then
6198 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6199
6200fi
6201
6202else
6203 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6204echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6205if test "${ac_cv_search_opendir+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207else
6208 ac_func_search_save_LIBS=$LIBS
6209ac_cv_search_opendir=no
6210cat >conftest.$ac_ext <<_ACEOF
6211/* confdefs.h. */
6212_ACEOF
6213cat confdefs.h >>conftest.$ac_ext
6214cat >>conftest.$ac_ext <<_ACEOF
6215/* end confdefs.h. */
6216
6217/* Override any gcc2 internal prototype to avoid an error. */
6218#ifdef __cplusplus
6219extern "C"
6220#endif
6221/* We use char because int might match the return type of a gcc2
6222 builtin and then its argument prototype would still apply. */
6223char opendir ();
6224int
6225main ()
6226{
6227opendir ();
6228 ;
6229 return 0;
6230}
6231_ACEOF
6232rm -f conftest.$ac_objext conftest$ac_exeext
6233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6234 (eval $ac_link) 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -z "$ac_c_werror_flag"
6242 || test ! -s conftest.err'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try='test -s conftest$ac_exeext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_search_opendir="none required"
6255else
6256 echo "$as_me: failed program was:" >&5
6257sed 's/^/| /' conftest.$ac_ext >&5
6258
6259fi
6260rm -f conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6262if test "$ac_cv_search_opendir" = no; then
6263 for ac_lib in x; do
6264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6265 cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h. */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
6271
6272/* Override any gcc2 internal prototype to avoid an error. */
6273#ifdef __cplusplus
6274extern "C"
6275#endif
6276/* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6278char opendir ();
6279int
6280main ()
6281{
6282opendir ();
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287rm -f conftest.$ac_objext conftest$ac_exeext
6288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289 (eval $ac_link) 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } &&
6296 { ac_try='test -z "$ac_c_werror_flag"
6297 || test ! -s conftest.err'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; } &&
6303 { ac_try='test -s conftest$ac_exeext'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 ac_cv_search_opendir="-l$ac_lib"
6310break
6311else
6312 echo "$as_me: failed program was:" >&5
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
6315fi
6316rm -f conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6318 done
6319fi
6320LIBS=$ac_func_search_save_LIBS
6321fi
6322echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6323echo "${ECHO_T}$ac_cv_search_opendir" >&6
6324if test "$ac_cv_search_opendir" != no; then
6325 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6326
6327fi
6328
6329fi
6330
John Criswell7a73b802003-06-30 21:59:07 +00006331# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006342 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006343do
6344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6345echo "$as_me:$LINENO: checking for $ac_header" >&5
6346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6347if eval "test \"\${$as_ac_Header+set}\" = set"; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006351/* confdefs.h. */
6352_ACEOF
6353cat confdefs.h >>conftest.$ac_ext
6354cat >>conftest.$ac_ext <<_ACEOF
6355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006356$ac_includes_default
6357
6358#include <$ac_header>
6359_ACEOF
6360rm -f conftest.$ac_objext
6361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006362 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006364 grep -v '^ *+' conftest.er1 >conftest.err
6365 rm -f conftest.er1
6366 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006369 { ac_try='test -z "$ac_c_werror_flag"
6370 || test ! -s conftest.err'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 eval "$as_ac_Header=yes"
6383else
6384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006385sed 's/^/| /' conftest.$ac_ext >&5
6386
John Criswell7a73b802003-06-30 21:59:07 +00006387eval "$as_ac_Header=no"
6388fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006390fi
6391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6393if test `eval echo '${'$as_ac_Header'}'` = yes; then
6394 cat >>confdefs.h <<_ACEOF
6395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6396_ACEOF
6397
6398fi
6399
6400done
6401
6402
6403
6404for ac_header in dlfcn.h
6405do
6406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006407if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006412fi
6413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006415else
Brian Gaeke0a621332004-09-08 20:38:05 +00006416 # Is the header compilable?
6417echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006420/* confdefs.h. */
6421_ACEOF
6422cat confdefs.h >>conftest.$ac_ext
6423cat >>conftest.$ac_ext <<_ACEOF
6424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006425$ac_includes_default
6426#include <$ac_header>
6427_ACEOF
6428rm -f conftest.$ac_objext
6429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006430 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006450 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006451else
6452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006453sed 's/^/| /' conftest.$ac_ext >&5
6454
Brian Gaeke0a621332004-09-08 20:38:05 +00006455ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006456fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459echo "${ECHO_T}$ac_header_compiler" >&6
6460
6461# Is the header present?
6462echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006465/* confdefs.h. */
6466_ACEOF
6467cat confdefs.h >>conftest.$ac_ext
6468cat >>conftest.$ac_ext <<_ACEOF
6469/* end confdefs.h. */
6470#include <$ac_header>
6471_ACEOF
6472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev/null; then
6480 if test -s conftest.err; then
6481 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006483 else
6484 ac_cpp_err=
6485 fi
6486else
6487 ac_cpp_err=yes
6488fi
6489if test -z "$ac_cpp_err"; then
6490 ac_header_preproc=yes
6491else
6492 echo "$as_me: failed program was:" >&5
6493sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 ac_header_preproc=no
6496fi
6497rm -f conftest.err conftest.$ac_ext
6498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499echo "${ECHO_T}$ac_header_preproc" >&6
6500
6501# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6503 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6508 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006509 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006510 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006523 (
6524 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006525## ----------------------------------- ##
6526## Report this to llvmbugs@cs.uiuc.edu ##
6527## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006528_ASBOX
6529 ) |
6530 sed "s/^/$as_me: WARNING: /" >&2
6531 ;;
6532esac
6533echo "$as_me:$LINENO: checking for $ac_header" >&5
6534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6535if eval "test \"\${$as_ac_Header+set}\" = set"; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006538 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006539fi
6540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006542
6543fi
John Criswell7a73b802003-06-30 21:59:07 +00006544if test `eval echo '${'$as_ac_Header'}'` = yes; then
6545 cat >>confdefs.h <<_ACEOF
6546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547_ACEOF
6548
6549fi
6550
6551done
6552
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006553# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6554if test "${enable_ltdl_install+set}" = set; then
6555 enableval="$enable_ltdl_install"
6556
6557fi;
6558
6559
6560
6561if test x"${enable_ltdl_install-no}" != xno; then
6562 INSTALL_LTDL_TRUE=
6563 INSTALL_LTDL_FALSE='#'
6564else
6565 INSTALL_LTDL_TRUE='#'
6566 INSTALL_LTDL_FALSE=
6567fi
6568
6569
6570
6571if test x"${enable_ltdl_convenience-no}" != xno; then
6572 CONVENIENCE_LTDL_TRUE=
6573 CONVENIENCE_LTDL_FALSE='#'
6574else
6575 CONVENIENCE_LTDL_TRUE='#'
6576 CONVENIENCE_LTDL_FALSE=
6577fi
6578
6579
6580echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6581echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6582library_names_spec=
6583libname_spec='lib$name'
6584soname_spec=
6585shrext_cmds=".so"
6586postinstall_cmds=
6587postuninstall_cmds=
6588finish_cmds=
6589finish_eval=
6590shlibpath_var=
6591shlibpath_overrides_runpath=unknown
6592version_type=none
6593dynamic_linker="$host_os ld.so"
6594sys_lib_dlsearch_path_spec="/lib /usr/lib"
6595if test "$GCC" = yes; then
6596 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6597 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6598 # if the path contains ";" then we assume it to be the separator
6599 # otherwise default to the standard path separator (i.e. ":") - it is
6600 # assumed that no part of a normal pathname contains ";" but that should
6601 # okay in the real world where ";" in dirpaths is itself problematic.
6602 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6603 else
6604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6605 fi
6606else
6607 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6608fi
6609need_lib_prefix=unknown
6610hardcode_into_libs=no
6611
6612# when you set need_version to no, make sure it does not cause -set_version
6613# flags to be left without arguments
6614need_version=unknown
6615
6616case $host_os in
6617aix3*)
6618 version_type=linux
6619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6620 shlibpath_var=LIBPATH
6621
6622 # AIX 3 has no versioning support, so we append a major version to the name.
6623 soname_spec='${libname}${release}${shared_ext}$major'
6624 ;;
6625
6626aix4* | aix5*)
6627 version_type=linux
6628 need_lib_prefix=no
6629 need_version=no
6630 hardcode_into_libs=yes
6631 if test "$host_cpu" = ia64; then
6632 # AIX 5 supports IA64
6633 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6634 shlibpath_var=LD_LIBRARY_PATH
6635 else
6636 # With GCC up to 2.95.x, collect2 would create an import file
6637 # for dependence libraries. The import file would start with
6638 # the line `#! .'. This would cause the generated library to
6639 # depend on `.', always an invalid library. This was fixed in
6640 # development snapshots of GCC prior to 3.0.
6641 case $host_os in
6642 aix4 | aix4.[01] | aix4.[01].*)
6643 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6644 echo ' yes '
6645 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6646 :
6647 else
6648 can_build_shared=no
6649 fi
6650 ;;
6651 esac
6652 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6653 # soname into executable. Probably we can add versioning support to
6654 # collect2, so additional links can be useful in future.
6655 if test "$aix_use_runtimelinking" = yes; then
6656 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6657 # instead of lib<name>.a to let people know that these are not
6658 # typical AIX shared libraries.
6659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6660 else
6661 # We preserve .a as extension for shared libraries through AIX4.2
6662 # and later when we are not doing run time linking.
6663 library_names_spec='${libname}${release}.a $libname.a'
6664 soname_spec='${libname}${release}${shared_ext}$major'
6665 fi
6666 shlibpath_var=LIBPATH
6667 fi
6668 ;;
6669
6670amigaos*)
6671 library_names_spec='$libname.ixlibrary $libname.a'
6672 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6673 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'
6674 ;;
6675
6676beos*)
6677 library_names_spec='${libname}${shared_ext}'
6678 dynamic_linker="$host_os ld.so"
6679 shlibpath_var=LIBRARY_PATH
6680 ;;
6681
6682bsdi[45]*)
6683 version_type=linux
6684 need_version=no
6685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6686 soname_spec='${libname}${release}${shared_ext}$major'
6687 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6688 shlibpath_var=LD_LIBRARY_PATH
6689 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6690 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6691 # the default ld.so.conf also contains /usr/contrib/lib and
6692 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6693 # libtool to hard-code these into programs
6694 ;;
6695
6696cygwin* | mingw* | pw32*)
6697 version_type=windows
6698 shrext_cmds=".dll"
6699 need_version=no
6700 need_lib_prefix=no
6701
6702 case $GCC,$host_os in
6703 yes,cygwin* | yes,mingw* | yes,pw32*)
6704 library_names_spec='$libname.dll.a'
6705 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6706 postinstall_cmds='base_file=`basename \${file}`~
6707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6708 dldir=$destdir/`dirname \$dlpath`~
6709 test -d \$dldir || mkdir -p \$dldir~
6710 $install_prog $dir/$dlname \$dldir/$dlname'
6711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6712 dlpath=$dir/\$dldll~
6713 $rm \$dlpath'
6714 shlibpath_overrides_runpath=yes
6715
6716 case $host_os in
6717 cygwin*)
6718 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6720 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6721 ;;
6722 mingw*)
6723 # MinGW DLLs use traditional 'lib' prefix
6724 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6725 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6726 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6727 # It is most probably a Windows format PATH printed by
6728 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6729 # path with ; separators, and with drive letters. We can handle the
6730 # drive letters (cygwin fileutils understands them), so leave them,
6731 # especially as we might pass files found there to a mingw objdump,
6732 # which wouldn't understand a cygwinified path. Ahh.
6733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6734 else
6735 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6736 fi
6737 ;;
6738 pw32*)
6739 # pw32 DLLs use 'pw' prefix rather than 'lib'
6740 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6741 ;;
6742 esac
6743 ;;
6744
6745 *)
6746 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6747 ;;
6748 esac
6749 dynamic_linker='Win32 ld.exe'
6750 # FIXME: first we should search . and the directory the executable is in
6751 shlibpath_var=PATH
6752 ;;
6753
6754darwin* | rhapsody*)
6755 dynamic_linker="$host_os dyld"
6756 version_type=darwin
6757 need_lib_prefix=no
6758 need_version=no
6759 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6760 soname_spec='${libname}${release}${major}$shared_ext'
6761 shlibpath_overrides_runpath=yes
6762 shlibpath_var=DYLD_LIBRARY_PATH
6763 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6764 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6765 if test "$GCC" = yes; then
6766 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"`
6767 else
6768 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6769 fi
6770 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6771 ;;
6772
6773dgux*)
6774 version_type=linux
6775 need_lib_prefix=no
6776 need_version=no
6777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6778 soname_spec='${libname}${release}${shared_ext}$major'
6779 shlibpath_var=LD_LIBRARY_PATH
6780 ;;
6781
6782freebsd1*)
6783 dynamic_linker=no
6784 ;;
6785
6786kfreebsd*-gnu)
6787 version_type=linux
6788 need_lib_prefix=no
6789 need_version=no
6790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6791 soname_spec='${libname}${release}${shared_ext}$major'
6792 shlibpath_var=LD_LIBRARY_PATH
6793 shlibpath_overrides_runpath=no
6794 hardcode_into_libs=yes
6795 dynamic_linker='GNU ld.so'
6796 ;;
6797
6798freebsd*)
6799 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6800 version_type=freebsd-$objformat
6801 case $version_type in
6802 freebsd-elf*)
6803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6804 need_version=no
6805 need_lib_prefix=no
6806 ;;
6807 freebsd-*)
6808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6809 need_version=yes
6810 ;;
6811 esac
6812 shlibpath_var=LD_LIBRARY_PATH
6813 case $host_os in
6814 freebsd2*)
6815 shlibpath_overrides_runpath=yes
6816 ;;
6817 freebsd3.01* | freebsdelf3.01*)
6818 shlibpath_overrides_runpath=yes
6819 hardcode_into_libs=yes
6820 ;;
6821 *) # from 3.2 on
6822 shlibpath_overrides_runpath=no
6823 hardcode_into_libs=yes
6824 ;;
6825 esac
6826 ;;
6827
6828gnu*)
6829 version_type=linux
6830 need_lib_prefix=no
6831 need_version=no
6832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6833 soname_spec='${libname}${release}${shared_ext}$major'
6834 shlibpath_var=LD_LIBRARY_PATH
6835 hardcode_into_libs=yes
6836 ;;
6837
6838hpux9* | hpux10* | hpux11*)
6839 # Give a soname corresponding to the major version so that dld.sl refuses to
6840 # link against other versions.
6841 version_type=sunos
6842 need_lib_prefix=no
6843 need_version=no
6844 case "$host_cpu" in
6845 ia64*)
6846 shrext_cmds='.so'
6847 hardcode_into_libs=yes
6848 dynamic_linker="$host_os dld.so"
6849 shlibpath_var=LD_LIBRARY_PATH
6850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6852 soname_spec='${libname}${release}${shared_ext}$major'
6853 if test "X$HPUX_IA64_MODE" = X32; then
6854 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6855 else
6856 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6857 fi
6858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6859 ;;
6860 hppa*64*)
6861 shrext_cmds='.sl'
6862 hardcode_into_libs=yes
6863 dynamic_linker="$host_os dld.sl"
6864 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6867 soname_spec='${libname}${release}${shared_ext}$major'
6868 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6870 ;;
6871 *)
6872 shrext_cmds='.sl'
6873 dynamic_linker="$host_os dld.sl"
6874 shlibpath_var=SHLIB_PATH
6875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6877 soname_spec='${libname}${release}${shared_ext}$major'
6878 ;;
6879 esac
6880 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6881 postinstall_cmds='chmod 555 $lib'
6882 ;;
6883
6884irix5* | irix6* | nonstopux*)
6885 case $host_os in
6886 nonstopux*) version_type=nonstopux ;;
6887 *)
6888 if test "$lt_cv_prog_gnu_ld" = yes; then
6889 version_type=linux
6890 else
6891 version_type=irix
6892 fi ;;
6893 esac
6894 need_lib_prefix=no
6895 need_version=no
6896 soname_spec='${libname}${release}${shared_ext}$major'
6897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6898 case $host_os in
6899 irix5* | nonstopux*)
6900 libsuff= shlibsuff=
6901 ;;
6902 *)
6903 case $LD in # libtool.m4 will add one of these switches to LD
6904 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6905 libsuff= shlibsuff= libmagic=32-bit;;
6906 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6907 libsuff=32 shlibsuff=N32 libmagic=N32;;
6908 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6909 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6910 *) libsuff= shlibsuff= libmagic=never-match;;
6911 esac
6912 ;;
6913 esac
6914 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6915 shlibpath_overrides_runpath=no
6916 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6917 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6918 hardcode_into_libs=yes
6919 ;;
6920
6921# No shared lib support for Linux oldld, aout, or coff.
6922linux*oldld* | linux*aout* | linux*coff*)
6923 dynamic_linker=no
6924 ;;
6925
6926# This must be Linux ELF.
6927linux*)
6928 version_type=linux
6929 need_lib_prefix=no
6930 need_version=no
6931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6932 soname_spec='${libname}${release}${shared_ext}$major'
6933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6934 shlibpath_var=LD_LIBRARY_PATH
6935 shlibpath_overrides_runpath=no
6936 # This implies no fast_install, which is unacceptable.
6937 # Some rework will be needed to allow for fast_install
6938 # before this can be enabled.
6939 hardcode_into_libs=yes
6940
6941 # Append ld.so.conf contents to the search path
6942 if test -f /etc/ld.so.conf; then
6943 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6944 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6945 fi
6946
6947 # We used to test for /lib/ld.so.1 and disable shared libraries on
6948 # powerpc, because MkLinux only supported shared libraries with the
6949 # GNU dynamic linker. Since this was broken with cross compilers,
6950 # most powerpc-linux boxes support dynamic linking these days and
6951 # people can always --disable-shared, the test was removed, and we
6952 # assume the GNU/Linux dynamic linker is in use.
6953 dynamic_linker='GNU/Linux ld.so'
6954 ;;
6955
6956knetbsd*-gnu)
6957 version_type=linux
6958 need_lib_prefix=no
6959 need_version=no
6960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6961 soname_spec='${libname}${release}${shared_ext}$major'
6962 shlibpath_var=LD_LIBRARY_PATH
6963 shlibpath_overrides_runpath=no
6964 hardcode_into_libs=yes
6965 dynamic_linker='GNU ld.so'
6966 ;;
6967
6968netbsd*)
6969 version_type=sunos
6970 need_lib_prefix=no
6971 need_version=no
6972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6975 dynamic_linker='NetBSD (a.out) ld.so'
6976 else
6977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6978 soname_spec='${libname}${release}${shared_ext}$major'
6979 dynamic_linker='NetBSD ld.elf_so'
6980 fi
6981 shlibpath_var=LD_LIBRARY_PATH
6982 shlibpath_overrides_runpath=yes
6983 hardcode_into_libs=yes
6984 ;;
6985
6986newsos6)
6987 version_type=linux
6988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6989 shlibpath_var=LD_LIBRARY_PATH
6990 shlibpath_overrides_runpath=yes
6991 ;;
6992
6993nto-qnx*)
6994 version_type=linux
6995 need_lib_prefix=no
6996 need_version=no
6997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6998 soname_spec='${libname}${release}${shared_ext}$major'
6999 shlibpath_var=LD_LIBRARY_PATH
7000 shlibpath_overrides_runpath=yes
7001 ;;
7002
7003openbsd*)
7004 version_type=sunos
7005 need_lib_prefix=no
7006 need_version=no
7007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7009 shlibpath_var=LD_LIBRARY_PATH
7010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7011 case $host_os in
7012 openbsd2.[89] | openbsd2.[89].*)
7013 shlibpath_overrides_runpath=no
7014 ;;
7015 *)
7016 shlibpath_overrides_runpath=yes
7017 ;;
7018 esac
7019 else
7020 shlibpath_overrides_runpath=yes
7021 fi
7022 ;;
7023
7024os2*)
7025 libname_spec='$name'
7026 shrext_cmds=".dll"
7027 need_lib_prefix=no
7028 library_names_spec='$libname${shared_ext} $libname.a'
7029 dynamic_linker='OS/2 ld.exe'
7030 shlibpath_var=LIBPATH
7031 ;;
7032
7033osf3* | osf4* | osf5*)
7034 version_type=osf
7035 need_lib_prefix=no
7036 need_version=no
7037 soname_spec='${libname}${release}${shared_ext}$major'
7038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7039 shlibpath_var=LD_LIBRARY_PATH
7040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7042 ;;
7043
7044sco3.2v5*)
7045 version_type=osf
7046 soname_spec='${libname}${release}${shared_ext}$major'
7047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7048 shlibpath_var=LD_LIBRARY_PATH
7049 ;;
7050
7051solaris*)
7052 version_type=linux
7053 need_lib_prefix=no
7054 need_version=no
7055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7056 soname_spec='${libname}${release}${shared_ext}$major'
7057 shlibpath_var=LD_LIBRARY_PATH
7058 shlibpath_overrides_runpath=yes
7059 hardcode_into_libs=yes
7060 # ldd complains unless libraries are executable
7061 postinstall_cmds='chmod +x $lib'
7062 ;;
7063
7064sunos4*)
7065 version_type=sunos
7066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7068 shlibpath_var=LD_LIBRARY_PATH
7069 shlibpath_overrides_runpath=yes
7070 if test "$with_gnu_ld" = yes; then
7071 need_lib_prefix=no
7072 fi
7073 need_version=yes
7074 ;;
7075
7076sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7077 version_type=linux
7078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7079 soname_spec='${libname}${release}${shared_ext}$major'
7080 shlibpath_var=LD_LIBRARY_PATH
7081 case $host_vendor in
7082 sni)
7083 shlibpath_overrides_runpath=no
7084 need_lib_prefix=no
7085 export_dynamic_flag_spec='${wl}-Blargedynsym'
7086 runpath_var=LD_RUN_PATH
7087 ;;
7088 siemens)
7089 need_lib_prefix=no
7090 ;;
7091 motorola)
7092 need_lib_prefix=no
7093 need_version=no
7094 shlibpath_overrides_runpath=no
7095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7096 ;;
7097 esac
7098 ;;
7099
7100sysv4*MP*)
7101 if test -d /usr/nec ;then
7102 version_type=linux
7103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7104 soname_spec='$libname${shared_ext}.$major'
7105 shlibpath_var=LD_LIBRARY_PATH
7106 fi
7107 ;;
7108
7109uts4*)
7110 version_type=linux
7111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7112 soname_spec='${libname}${release}${shared_ext}$major'
7113 shlibpath_var=LD_LIBRARY_PATH
7114 ;;
7115
7116*)
7117 dynamic_linker=no
7118 ;;
7119esac
7120echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7121echo "${ECHO_T}$dynamic_linker" >&6
7122test "$dynamic_linker" = no && can_build_shared=no
7123
7124
7125echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7126echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7127if test "${libltdl_cv_shlibext+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129else
7130
7131module=yes
7132eval libltdl_cv_shlibext=$shrext_cmds
7133
7134fi
7135echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7136echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7137if test -n "$libltdl_cv_shlibext"; then
7138
7139cat >>confdefs.h <<_ACEOF
7140#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7141_ACEOF
7142
7143fi
7144
7145
7146echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7147echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7148if test "${libltdl_cv_shlibpath_var+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151 libltdl_cv_shlibpath_var="$shlibpath_var"
7152fi
7153echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7154echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7155if test -n "$libltdl_cv_shlibpath_var"; then
7156
7157cat >>confdefs.h <<_ACEOF
7158#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7159_ACEOF
7160
7161fi
7162
7163
7164echo "$as_me:$LINENO: checking for the default library search path" >&5
7165echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7166if test "${libltdl_cv_sys_search_path+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168else
7169 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7170fi
7171echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7172echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7173if test -n "$libltdl_cv_sys_search_path"; then
7174 sys_search_path=
7175 for dir in $libltdl_cv_sys_search_path; do
7176 if test -z "$sys_search_path"; then
7177 sys_search_path="$dir"
7178 else
7179 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7180 fi
7181 done
7182
7183cat >>confdefs.h <<_ACEOF
7184#define LTDL_SYSSEARCHPATH "$sys_search_path"
7185_ACEOF
7186
7187fi
7188
7189echo "$as_me:$LINENO: checking for objdir" >&5
7190echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7191if test "${libltdl_cv_objdir+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194 libltdl_cv_objdir="$objdir"
7195 if test -n "$objdir"; then
7196 :
7197 else
7198 rm -f .libs 2>/dev/null
7199 mkdir .libs 2>/dev/null
7200 if test -d .libs; then
7201 libltdl_cv_objdir=.libs
7202 else
7203 # MS-DOS does not allow filenames that begin with a dot.
7204 libltdl_cv_objdir=_libs
7205 fi
7206 rmdir .libs 2>/dev/null
7207 fi
7208
7209fi
7210echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7211echo "${ECHO_T}$libltdl_cv_objdir" >&6
7212
7213cat >>confdefs.h <<_ACEOF
7214#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7215_ACEOF
7216
7217
7218echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7219echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7220if test "${lt_cv_path_NM+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 if test -n "$NM"; then
7224 # Let the user override the test.
7225 lt_cv_path_NM="$NM"
7226else
7227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7228 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7229 IFS="$lt_save_ifs"
7230 test -z "$ac_dir" && ac_dir=.
7231 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7232 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7233 # Check to see if the nm accepts a BSD-compat flag.
7234 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7235 # nm: unknown option "B" ignored
7236 # Tru64's nm complains that /dev/null is an invalid object file
7237 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7238 */dev/null* | *'Invalid file or object type'*)
7239 lt_cv_path_NM="$tmp_nm -B"
7240 break
7241 ;;
7242 *)
7243 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7244 */dev/null*)
7245 lt_cv_path_NM="$tmp_nm -p"
7246 break
7247 ;;
7248 *)
7249 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7250 continue # so that we can try to find one that supports BSD flags
7251 ;;
7252 esac
7253 esac
7254 fi
7255 done
7256 IFS="$lt_save_ifs"
7257 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7258fi
7259fi
7260echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7261echo "${ECHO_T}$lt_cv_path_NM" >&6
7262NM="$lt_cv_path_NM"
7263
7264
7265
7266
7267
7268# Check for command to grab the raw symbol name followed by C symbol from nm.
7269echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7270echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7271if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273else
7274
7275# These are sane defaults that work on at least a few old systems.
7276# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7277
7278# Character class describing NM global symbol codes.
7279symcode='[BCDEGRST]'
7280
7281# Regexp to match symbols that can be accessed directly from C.
7282sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7283
7284# Transform the above into a raw symbol and a C symbol.
7285symxfrm='\1 \2\3 \3'
7286
7287# Transform an extracted symbol line into a proper C declaration
7288lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7289
7290# Transform an extracted symbol line into symbol name and symbol address
7291lt_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'"
7292
7293# Define system-specific variables.
7294case $host_os in
7295aix*)
7296 symcode='[BCDT]'
7297 ;;
7298cygwin* | mingw* | pw32*)
7299 symcode='[ABCDGISTW]'
7300 ;;
7301hpux*) # Its linker distinguishes data from code symbols
7302 if test "$host_cpu" = ia64; then
7303 symcode='[ABCDEGRST]'
7304 fi
7305 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7306 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'"
7307 ;;
7308linux*)
7309 if test "$host_cpu" = ia64; then
7310 symcode='[ABCDGIRSTW]'
7311 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7312 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'"
7313 fi
7314 ;;
7315irix* | nonstopux*)
7316 symcode='[BCDEGRST]'
7317 ;;
7318osf*)
7319 symcode='[BCDEGQRST]'
7320 ;;
7321solaris* | sysv5*)
7322 symcode='[BDRT]'
7323 ;;
7324sysv4)
7325 symcode='[DFNSTU]'
7326 ;;
7327esac
7328
7329# Handle CRLF in mingw tool chain
7330opt_cr=
7331case $build_os in
7332mingw*)
7333 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7334 ;;
7335esac
7336
7337# If we're using GNU nm, then use its standard symbol codes.
7338case `$NM -V 2>&1` in
7339*GNU* | *'with BFD'*)
7340 symcode='[ABCDGIRSTW]' ;;
7341esac
7342
7343# Try without a prefix undercore, then with it.
7344for ac_symprfx in "" "_"; do
7345
7346 # Write the raw and C identifiers.
7347 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7348
7349 # Check to see that the pipe works correctly.
7350 pipe_works=no
7351
7352 rm -f conftest*
7353 cat > conftest.$ac_ext <<EOF
7354#ifdef __cplusplus
7355extern "C" {
7356#endif
7357char nm_test_var;
7358void nm_test_func(){}
7359#ifdef __cplusplus
7360}
7361#endif
7362int main(){nm_test_var='a';nm_test_func();return(0);}
7363EOF
7364
7365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7366 (eval $ac_compile) 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; then
7370 # Now try to grab the symbols.
7371 nlist=conftest.nm
7372 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7373 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && test -s "$nlist"; then
7377 # Try sorting and uniquifying the output.
7378 if sort "$nlist" | uniq > "$nlist"T; then
7379 mv -f "$nlist"T "$nlist"
7380 else
7381 rm -f "$nlist"T
7382 fi
7383
7384 # Make sure that we snagged all the symbols we need.
7385 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7386 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7387 cat <<EOF > conftest.$ac_ext
7388#ifdef __cplusplus
7389extern "C" {
7390#endif
7391
7392EOF
7393 # Now generate the symbol file.
7394 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7395
7396 cat <<EOF >> conftest.$ac_ext
7397#if defined (__STDC__) && __STDC__
7398# define lt_ptr_t void *
7399#else
7400# define lt_ptr_t char *
7401# define const
7402#endif
7403
7404/* The mapping between symbol names and symbols. */
7405const struct {
7406 const char *name;
7407 lt_ptr_t address;
7408}
7409lt_preloaded_symbols[] =
7410{
7411EOF
7412 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7413 cat <<\EOF >> conftest.$ac_ext
7414 {0, (lt_ptr_t) 0}
7415};
7416
7417#ifdef __cplusplus
7418}
7419#endif
7420EOF
7421 # Now try linking the two files.
7422 mv conftest.$ac_objext conftstm.$ac_objext
7423 lt_save_LIBS="$LIBS"
7424 lt_save_CFLAGS="$CFLAGS"
7425 LIBS="conftstm.$ac_objext"
7426 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428 (eval $ac_link) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7432 pipe_works=yes
7433 fi
7434 LIBS="$lt_save_LIBS"
7435 CFLAGS="$lt_save_CFLAGS"
7436 else
7437 echo "cannot find nm_test_func in $nlist" >&5
7438 fi
7439 else
7440 echo "cannot find nm_test_var in $nlist" >&5
7441 fi
7442 else
7443 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7444 fi
7445 else
7446 echo "$progname: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 fi
7449 rm -f conftest* conftst*
7450
7451 # Do not use the global_symbol_pipe unless it works.
7452 if test "$pipe_works" = yes; then
7453 break
7454 else
7455 lt_cv_sys_global_symbol_pipe=
7456 fi
7457done
7458
7459fi
7460
7461if test -z "$lt_cv_sys_global_symbol_pipe"; then
7462 lt_cv_sys_global_symbol_to_cdecl=
7463fi
7464if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7465 echo "$as_me:$LINENO: result: failed" >&5
7466echo "${ECHO_T}failed" >&6
7467else
7468 echo "$as_me:$LINENO: result: ok" >&5
7469echo "${ECHO_T}ok" >&6
7470fi
7471
7472
7473echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7474echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7475if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477else
7478 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7479 libltdl_cv_preloaded_symbols=yes
7480 else
7481 libltdl_cv_preloaded_symbols=no
7482 fi
7483
7484fi
7485echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7486echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7487if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7488
7489cat >>confdefs.h <<\_ACEOF
7490#define HAVE_PRELOADED_SYMBOLS 1
7491_ACEOF
7492
7493fi
7494
7495LIBADD_DL=
7496
7497ac_ext=c
7498ac_cpp='$CPP $CPPFLAGS'
7499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502
7503
7504echo "$as_me:$LINENO: checking for shl_load" >&5
7505echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7506if test "${ac_cv_func_shl_load+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509 cat >conftest.$ac_ext <<_ACEOF
7510/* confdefs.h. */
7511_ACEOF
7512cat confdefs.h >>conftest.$ac_ext
7513cat >>conftest.$ac_ext <<_ACEOF
7514/* end confdefs.h. */
7515/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7517#define shl_load innocuous_shl_load
7518
7519/* System header to define __stub macros and hopefully few prototypes,
7520 which can conflict with char shl_load (); below.
7521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7522 <limits.h> exists even on freestanding compilers. */
7523
7524#ifdef __STDC__
7525# include <limits.h>
7526#else
7527# include <assert.h>
7528#endif
7529
7530#undef shl_load
7531
7532/* Override any gcc2 internal prototype to avoid an error. */
7533#ifdef __cplusplus
7534extern "C"
7535{
7536#endif
7537/* We use char because int might match the return type of a gcc2
7538 builtin and then its argument prototype would still apply. */
7539char shl_load ();
7540/* The GNU C library defines this for functions which it implements
7541 to always fail with ENOSYS. Some functions are actually named
7542 something starting with __ and the normal name is an alias. */
7543#if defined (__stub_shl_load) || defined (__stub___shl_load)
7544choke me
7545#else
7546char (*f) () = shl_load;
7547#endif
7548#ifdef __cplusplus
7549}
7550#endif
7551
7552int
7553main ()
7554{
7555return f != shl_load;
7556 ;
7557 return 0;
7558}
7559_ACEOF
7560rm -f conftest.$ac_objext conftest$ac_exeext
7561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7562 (eval $ac_link) 2>conftest.er1
7563 ac_status=$?
7564 grep -v '^ *+' conftest.er1 >conftest.err
7565 rm -f conftest.er1
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } &&
7569 { ac_try='test -z "$ac_c_werror_flag"
7570 || test ! -s conftest.err'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572 (eval $ac_try) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; } &&
7576 { ac_try='test -s conftest$ac_exeext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 ac_cv_func_shl_load=yes
7583else
7584 echo "$as_me: failed program was:" >&5
7585sed 's/^/| /' conftest.$ac_ext >&5
7586
7587ac_cv_func_shl_load=no
7588fi
7589rm -f conftest.err conftest.$ac_objext \
7590 conftest$ac_exeext conftest.$ac_ext
7591fi
7592echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7593echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7594if test $ac_cv_func_shl_load = yes; then
7595
7596cat >>confdefs.h <<\_ACEOF
7597#define HAVE_SHL_LOAD 1
7598_ACEOF
7599
7600else
7601 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7602echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7603if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606 ac_check_lib_save_LIBS=$LIBS
7607LIBS="-ldld $LIBS"
7608cat >conftest.$ac_ext <<_ACEOF
7609/* confdefs.h. */
7610_ACEOF
7611cat confdefs.h >>conftest.$ac_ext
7612cat >>conftest.$ac_ext <<_ACEOF
7613/* end confdefs.h. */
7614
7615/* Override any gcc2 internal prototype to avoid an error. */
7616#ifdef __cplusplus
7617extern "C"
7618#endif
7619/* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7621char shl_load ();
7622int
7623main ()
7624{
7625shl_load ();
7626 ;
7627 return 0;
7628}
7629_ACEOF
7630rm -f conftest.$ac_objext conftest$ac_exeext
7631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632 (eval $ac_link) 2>conftest.er1
7633 ac_status=$?
7634 grep -v '^ *+' conftest.er1 >conftest.err
7635 rm -f conftest.er1
7636 cat conftest.err >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } &&
7639 { ac_try='test -z "$ac_c_werror_flag"
7640 || test ! -s conftest.err'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 (eval $ac_try) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; } &&
7646 { ac_try='test -s conftest$ac_exeext'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 (eval $ac_try) 2>&5
7649 ac_status=$?
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; }; then
7652 ac_cv_lib_dld_shl_load=yes
7653else
7654 echo "$as_me: failed program was:" >&5
7655sed 's/^/| /' conftest.$ac_ext >&5
7656
7657ac_cv_lib_dld_shl_load=no
7658fi
7659rm -f conftest.err conftest.$ac_objext \
7660 conftest$ac_exeext conftest.$ac_ext
7661LIBS=$ac_check_lib_save_LIBS
7662fi
7663echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7664echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7665if test $ac_cv_lib_dld_shl_load = yes; then
7666
7667cat >>confdefs.h <<\_ACEOF
7668#define HAVE_SHL_LOAD 1
7669_ACEOF
7670
7671 LIBADD_DL="$LIBADD_DL -ldld"
7672else
7673 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7674echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7675if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678 ac_check_lib_save_LIBS=$LIBS
7679LIBS="-ldl $LIBS"
7680cat >conftest.$ac_ext <<_ACEOF
7681/* confdefs.h. */
7682_ACEOF
7683cat confdefs.h >>conftest.$ac_ext
7684cat >>conftest.$ac_ext <<_ACEOF
7685/* end confdefs.h. */
7686
7687/* Override any gcc2 internal prototype to avoid an error. */
7688#ifdef __cplusplus
7689extern "C"
7690#endif
7691/* We use char because int might match the return type of a gcc2
7692 builtin and then its argument prototype would still apply. */
7693char dlopen ();
7694int
7695main ()
7696{
7697dlopen ();
7698 ;
7699 return 0;
7700}
7701_ACEOF
7702rm -f conftest.$ac_objext conftest$ac_exeext
7703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7704 (eval $ac_link) 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try='test -z "$ac_c_werror_flag"
7712 || test ! -s conftest.err'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; } &&
7718 { ac_try='test -s conftest$ac_exeext'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 ac_cv_lib_dl_dlopen=yes
7725else
7726 echo "$as_me: failed program was:" >&5
7727sed 's/^/| /' conftest.$ac_ext >&5
7728
7729ac_cv_lib_dl_dlopen=no
7730fi
7731rm -f conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
7733LIBS=$ac_check_lib_save_LIBS
7734fi
7735echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7736echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7737if test $ac_cv_lib_dl_dlopen = yes; then
7738
7739cat >>confdefs.h <<\_ACEOF
7740#define HAVE_LIBDL 1
7741_ACEOF
7742
7743 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7744else
7745 cat >conftest.$ac_ext <<_ACEOF
7746/* confdefs.h. */
7747_ACEOF
7748cat confdefs.h >>conftest.$ac_ext
7749cat >>conftest.$ac_ext <<_ACEOF
7750/* end confdefs.h. */
7751#if HAVE_DLFCN_H
7752# include <dlfcn.h>
7753#endif
7754
7755int
7756main ()
7757{
7758dlopen(0, 0);
7759 ;
7760 return 0;
7761}
7762_ACEOF
7763rm -f conftest.$ac_objext conftest$ac_exeext
7764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765 (eval $ac_link) 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785
7786cat >>confdefs.h <<\_ACEOF
7787#define HAVE_LIBDL 1
7788_ACEOF
7789 libltdl_cv_func_dlopen="yes"
7790else
7791 echo "$as_me: failed program was:" >&5
7792sed 's/^/| /' conftest.$ac_ext >&5
7793
7794echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7795echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7796if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 ac_check_lib_save_LIBS=$LIBS
7800LIBS="-lsvld $LIBS"
7801cat >conftest.$ac_ext <<_ACEOF
7802/* confdefs.h. */
7803_ACEOF
7804cat confdefs.h >>conftest.$ac_ext
7805cat >>conftest.$ac_ext <<_ACEOF
7806/* end confdefs.h. */
7807
7808/* Override any gcc2 internal prototype to avoid an error. */
7809#ifdef __cplusplus
7810extern "C"
7811#endif
7812/* We use char because int might match the return type of a gcc2
7813 builtin and then its argument prototype would still apply. */
7814char dlopen ();
7815int
7816main ()
7817{
7818dlopen ();
7819 ;
7820 return 0;
7821}
7822_ACEOF
7823rm -f conftest.$ac_objext conftest$ac_exeext
7824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>conftest.er1
7826 ac_status=$?
7827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_c_werror_flag"
7833 || test ! -s conftest.err'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_lib_svld_dlopen=yes
7846else
7847 echo "$as_me: failed program was:" >&5
7848sed 's/^/| /' conftest.$ac_ext >&5
7849
7850ac_cv_lib_svld_dlopen=no
7851fi
7852rm -f conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854LIBS=$ac_check_lib_save_LIBS
7855fi
7856echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7857echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7858if test $ac_cv_lib_svld_dlopen = yes; then
7859
7860cat >>confdefs.h <<\_ACEOF
7861#define HAVE_LIBDL 1
7862_ACEOF
7863
7864 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7865else
7866 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7867echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7868if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870else
7871 ac_check_lib_save_LIBS=$LIBS
7872LIBS="-ldld $LIBS"
7873cat >conftest.$ac_ext <<_ACEOF
7874/* confdefs.h. */
7875_ACEOF
7876cat confdefs.h >>conftest.$ac_ext
7877cat >>conftest.$ac_ext <<_ACEOF
7878/* end confdefs.h. */
7879
7880/* Override any gcc2 internal prototype to avoid an error. */
7881#ifdef __cplusplus
7882extern "C"
7883#endif
7884/* We use char because int might match the return type of a gcc2
7885 builtin and then its argument prototype would still apply. */
7886char dld_link ();
7887int
7888main ()
7889{
7890dld_link ();
7891 ;
7892 return 0;
7893}
7894_ACEOF
7895rm -f conftest.$ac_objext conftest$ac_exeext
7896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7897 (eval $ac_link) 2>conftest.er1
7898 ac_status=$?
7899 grep -v '^ *+' conftest.er1 >conftest.err
7900 rm -f conftest.er1
7901 cat conftest.err >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -z "$ac_c_werror_flag"
7905 || test ! -s conftest.err'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; } &&
7911 { ac_try='test -s conftest$ac_exeext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 ac_cv_lib_dld_dld_link=yes
7918else
7919 echo "$as_me: failed program was:" >&5
7920sed 's/^/| /' conftest.$ac_ext >&5
7921
7922ac_cv_lib_dld_dld_link=no
7923fi
7924rm -f conftest.err conftest.$ac_objext \
7925 conftest$ac_exeext conftest.$ac_ext
7926LIBS=$ac_check_lib_save_LIBS
7927fi
7928echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7929echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7930if test $ac_cv_lib_dld_dld_link = yes; then
7931
7932cat >>confdefs.h <<\_ACEOF
7933#define HAVE_DLD 1
7934_ACEOF
7935
7936 LIBADD_DL="$LIBADD_DL -ldld"
7937else
7938 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7939echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7940if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943 cat >conftest.$ac_ext <<_ACEOF
7944/* confdefs.h. */
7945_ACEOF
7946cat confdefs.h >>conftest.$ac_ext
7947cat >>conftest.$ac_ext <<_ACEOF
7948/* end confdefs.h. */
7949/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7951#define _dyld_func_lookup innocuous__dyld_func_lookup
7952
7953/* System header to define __stub macros and hopefully few prototypes,
7954 which can conflict with char _dyld_func_lookup (); below.
7955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7956 <limits.h> exists even on freestanding compilers. */
7957
7958#ifdef __STDC__
7959# include <limits.h>
7960#else
7961# include <assert.h>
7962#endif
7963
7964#undef _dyld_func_lookup
7965
7966/* Override any gcc2 internal prototype to avoid an error. */
7967#ifdef __cplusplus
7968extern "C"
7969{
7970#endif
7971/* We use char because int might match the return type of a gcc2
7972 builtin and then its argument prototype would still apply. */
7973char _dyld_func_lookup ();
7974/* The GNU C library defines this for functions which it implements
7975 to always fail with ENOSYS. Some functions are actually named
7976 something starting with __ and the normal name is an alias. */
7977#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7978choke me
7979#else
7980char (*f) () = _dyld_func_lookup;
7981#endif
7982#ifdef __cplusplus
7983}
7984#endif
7985
7986int
7987main ()
7988{
7989return f != _dyld_func_lookup;
7990 ;
7991 return 0;
7992}
7993_ACEOF
7994rm -f conftest.$ac_objext conftest$ac_exeext
7995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7996 (eval $ac_link) 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
8003 { ac_try='test -z "$ac_c_werror_flag"
8004 || test ! -s conftest.err'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_cv_func__dyld_func_lookup=yes
8017else
8018 echo "$as_me: failed program was:" >&5
8019sed 's/^/| /' conftest.$ac_ext >&5
8020
8021ac_cv_func__dyld_func_lookup=no
8022fi
8023rm -f conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8025fi
8026echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8027echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8028if test $ac_cv_func__dyld_func_lookup = yes; then
8029
8030cat >>confdefs.h <<\_ACEOF
8031#define HAVE_DYLD 1
8032_ACEOF
8033
8034fi
8035
8036
8037fi
8038
8039
8040fi
8041
8042
8043fi
8044rm -f conftest.err conftest.$ac_objext \
8045 conftest$ac_exeext conftest.$ac_ext
8046
8047fi
8048
8049
8050fi
8051
8052
8053fi
8054
8055
8056if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8057then
8058 lt_save_LIBS="$LIBS"
8059 LIBS="$LIBS $LIBADD_DL"
8060
8061for ac_func in dlerror
8062do
8063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8064echo "$as_me:$LINENO: checking for $ac_func" >&5
8065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8066if eval "test \"\${$as_ac_var+set}\" = set"; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8068else
8069 cat >conftest.$ac_ext <<_ACEOF
8070/* confdefs.h. */
8071_ACEOF
8072cat confdefs.h >>conftest.$ac_ext
8073cat >>conftest.$ac_ext <<_ACEOF
8074/* end confdefs.h. */
8075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8077#define $ac_func innocuous_$ac_func
8078
8079/* System header to define __stub macros and hopefully few prototypes,
8080 which can conflict with char $ac_func (); below.
8081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8082 <limits.h> exists even on freestanding compilers. */
8083
8084#ifdef __STDC__
8085# include <limits.h>
8086#else
8087# include <assert.h>
8088#endif
8089
8090#undef $ac_func
8091
8092/* Override any gcc2 internal prototype to avoid an error. */
8093#ifdef __cplusplus
8094extern "C"
8095{
8096#endif
8097/* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8099char $ac_func ();
8100/* The GNU C library defines this for functions which it implements
8101 to always fail with ENOSYS. Some functions are actually named
8102 something starting with __ and the normal name is an alias. */
8103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8104choke me
8105#else
8106char (*f) () = $ac_func;
8107#endif
8108#ifdef __cplusplus
8109}
8110#endif
8111
8112int
8113main ()
8114{
8115return f != $ac_func;
8116 ;
8117 return 0;
8118}
8119_ACEOF
8120rm -f conftest.$ac_objext conftest$ac_exeext
8121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8122 (eval $ac_link) 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -z "$ac_c_werror_flag"
8130 || test ! -s conftest.err'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; } &&
8136 { ac_try='test -s conftest$ac_exeext'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 eval "$as_ac_var=yes"
8143else
8144 echo "$as_me: failed program was:" >&5
8145sed 's/^/| /' conftest.$ac_ext >&5
8146
8147eval "$as_ac_var=no"
8148fi
8149rm -f conftest.err conftest.$ac_objext \
8150 conftest$ac_exeext conftest.$ac_ext
8151fi
8152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8154if test `eval echo '${'$as_ac_var'}'` = yes; then
8155 cat >>confdefs.h <<_ACEOF
8156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8157_ACEOF
8158
8159fi
8160done
8161
8162 LIBS="$lt_save_LIBS"
8163fi
8164ac_ext=c
8165ac_cpp='$CPP $CPPFLAGS'
8166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168ac_compiler_gnu=$ac_cv_c_compiler_gnu
8169
8170
8171
8172echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8173echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8174if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177 ac_cv_sys_symbol_underscore=no
8178 cat > conftest.$ac_ext <<EOF
8179void nm_test_func(){}
8180int main(){nm_test_func;return 0;}
8181EOF
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; then
8187 # Now try to grab the symbols.
8188 ac_nlist=conftest.nm
8189 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8190 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } && test -s "$ac_nlist"; then
8194 # See whether the symbols have a leading underscore.
8195 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8196 ac_cv_sys_symbol_underscore=yes
8197 else
8198 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8199 :
8200 else
8201 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8202 fi
8203 fi
8204 else
8205 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8206 fi
8207 else
8208 echo "configure: failed program was:" >&5
8209 cat conftest.c >&5
8210 fi
8211 rm -rf conftest*
8212
8213fi
8214echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8215echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8216
8217
8218if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8219 if test x"$libltdl_cv_func_dlopen" = xyes ||
8220 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8221 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8222echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8223if test "${libltdl_cv_need_uscore+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226 libltdl_cv_need_uscore=unknown
8227 save_LIBS="$LIBS"
8228 LIBS="$LIBS $LIBADD_DL"
8229 if test "$cross_compiling" = yes; then :
8230 libltdl_cv_need_uscore=cross
8231else
8232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8233 lt_status=$lt_dlunknown
8234 cat > conftest.$ac_ext <<EOF
Misha Brukman19098e52005-05-12 22:15:34 +00008235#line 8235 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008236#include "confdefs.h"
8237
8238#if HAVE_DLFCN_H
8239#include <dlfcn.h>
8240#endif
8241
8242#include <stdio.h>
8243
8244#ifdef RTLD_GLOBAL
8245# define LT_DLGLOBAL RTLD_GLOBAL
8246#else
8247# ifdef DL_GLOBAL
8248# define LT_DLGLOBAL DL_GLOBAL
8249# else
8250# define LT_DLGLOBAL 0
8251# endif
8252#endif
8253
8254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8255 find out it does not work in some platform. */
8256#ifndef LT_DLLAZY_OR_NOW
8257# ifdef RTLD_LAZY
8258# define LT_DLLAZY_OR_NOW RTLD_LAZY
8259# else
8260# ifdef DL_LAZY
8261# define LT_DLLAZY_OR_NOW DL_LAZY
8262# else
8263# ifdef RTLD_NOW
8264# define LT_DLLAZY_OR_NOW RTLD_NOW
8265# else
8266# ifdef DL_NOW
8267# define LT_DLLAZY_OR_NOW DL_NOW
8268# else
8269# define LT_DLLAZY_OR_NOW 0
8270# endif
8271# endif
8272# endif
8273# endif
8274#endif
8275
8276#ifdef __cplusplus
8277extern "C" void exit (int);
8278#endif
8279
8280void fnord() { int i=42;}
8281int main ()
8282{
8283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8284 int status = $lt_dlunknown;
8285
8286 if (self)
8287 {
8288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8289 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8290 /* dlclose (self); */
8291 }
8292
8293 exit (status);
8294}
8295EOF
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297 (eval $ac_link) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8301 (./conftest; exit; ) 2>/dev/null
8302 lt_status=$?
8303 case x$lt_status in
8304 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8305 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8306 x$lt_unknown|x*) ;;
8307 esac
8308 else :
8309 # compilation failed
8310
8311 fi
8312fi
8313rm -fr conftest*
8314
8315 LIBS="$save_LIBS"
8316
8317fi
8318echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8319echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8320 fi
8321fi
8322
8323if test x"$libltdl_cv_need_uscore" = xyes; then
8324
8325cat >>confdefs.h <<\_ACEOF
8326#define NEED_USCORE 1
8327_ACEOF
8328
8329fi
8330
8331
8332echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8333echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8334if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336else
8337 # PORTME does your system automatically load deplibs for dlopen?
8338 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8339 # For now, we just catch OSes we know something about -- in the
8340 # future, we'll try test this programmatically.
8341 libltdl_cv_sys_dlopen_deplibs=unknown
8342 case "$host_os" in
8343 aix3*|aix4.1.*|aix4.2.*)
8344 # Unknown whether this is true for these versions of AIX, but
8345 # we want this `case' here to explicitly catch those versions.
8346 libltdl_cv_sys_dlopen_deplibs=unknown
8347 ;;
8348 aix[45]*)
8349 libltdl_cv_sys_dlopen_deplibs=yes
8350 ;;
8351 darwin*)
8352 # Assuming the user has installed a libdl from somewhere, this is true
8353 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8354 libltdl_cv_sys_dlopen_deplibs=yes
8355 ;;
8356 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8357 # GNU and its variants, using gnu ld.so (Glibc)
8358 libltdl_cv_sys_dlopen_deplibs=yes
8359 ;;
8360 hpux10*|hpux11*)
8361 libltdl_cv_sys_dlopen_deplibs=yes
8362 ;;
8363 irix[12345]*|irix6.[01]*)
8364 # Catch all versions of IRIX before 6.2, and indicate that we don't
8365 # know how it worked for any of those versions.
8366 libltdl_cv_sys_dlopen_deplibs=unknown
8367 ;;
8368 irix*)
8369 # The case above catches anything before 6.2, and it's known that
8370 # at 6.2 and later dlopen does load deplibs.
8371 libltdl_cv_sys_dlopen_deplibs=yes
8372 ;;
8373 netbsd*)
8374 libltdl_cv_sys_dlopen_deplibs=yes
8375 ;;
8376 openbsd*)
8377 libltdl_cv_sys_dlopen_deplibs=yes
8378 ;;
8379 osf[1234]*)
8380 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8381 # it did *not* use an RPATH in a shared library to find objects the
8382 # library depends on, so we explictly say `no'.
8383 libltdl_cv_sys_dlopen_deplibs=no
8384 ;;
8385 osf5.0|osf5.0a|osf5.1)
8386 # dlopen *does* load deplibs and with the right loader patch applied
8387 # it even uses RPATH in a shared library to search for shared objects
8388 # that the library depends on, but there's no easy way to know if that
8389 # patch is installed. Since this is the case, all we can really
8390 # say is unknown -- it depends on the patch being installed. If
8391 # it is, this changes to `yes'. Without it, it would be `no'.
8392 libltdl_cv_sys_dlopen_deplibs=unknown
8393 ;;
8394 osf*)
8395 # the two cases above should catch all versions of osf <= 5.1. Read
8396 # the comments above for what we know about them.
8397 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8398 # is used to find them so we can finally say `yes'.
8399 libltdl_cv_sys_dlopen_deplibs=yes
8400 ;;
8401 solaris*)
8402 libltdl_cv_sys_dlopen_deplibs=yes
8403 ;;
8404 esac
8405
8406fi
8407echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8408echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8409if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8410
8411cat >>confdefs.h <<\_ACEOF
8412#define LTDL_DLOPEN_DEPLIBS 1
8413_ACEOF
8414
8415fi
8416
8417
8418for ac_header in argz.h
8419do
8420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8421if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422 echo "$as_me:$LINENO: checking for $ac_header" >&5
8423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8424if eval "test \"\${$as_ac_Header+set}\" = set"; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426fi
8427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8429else
8430 # Is the header compilable?
8431echo "$as_me:$LINENO: checking $ac_header usability" >&5
8432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8433cat >conftest.$ac_ext <<_ACEOF
8434/* confdefs.h. */
8435_ACEOF
8436cat confdefs.h >>conftest.$ac_ext
8437cat >>conftest.$ac_ext <<_ACEOF
8438/* end confdefs.h. */
8439$ac_includes_default
8440#include <$ac_header>
8441_ACEOF
8442rm -f conftest.$ac_objext
8443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag"
8452 || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest.$ac_objext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_header_compiler=yes
8465else
8466 echo "$as_me: failed program was:" >&5
8467sed 's/^/| /' conftest.$ac_ext >&5
8468
8469ac_header_compiler=no
8470fi
8471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8472echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8473echo "${ECHO_T}$ac_header_compiler" >&6
8474
8475# Is the header present?
8476echo "$as_me:$LINENO: checking $ac_header presence" >&5
8477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8478cat >conftest.$ac_ext <<_ACEOF
8479/* confdefs.h. */
8480_ACEOF
8481cat confdefs.h >>conftest.$ac_ext
8482cat >>conftest.$ac_ext <<_ACEOF
8483/* end confdefs.h. */
8484#include <$ac_header>
8485_ACEOF
8486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8488 ac_status=$?
8489 grep -v '^ *+' conftest.er1 >conftest.err
8490 rm -f conftest.er1
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } >/dev/null; then
8494 if test -s conftest.err; then
8495 ac_cpp_err=$ac_c_preproc_warn_flag
8496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8497 else
8498 ac_cpp_err=
8499 fi
8500else
8501 ac_cpp_err=yes
8502fi
8503if test -z "$ac_cpp_err"; then
8504 ac_header_preproc=yes
8505else
8506 echo "$as_me: failed program was:" >&5
8507sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_header_preproc=no
8510fi
8511rm -f conftest.err conftest.$ac_ext
8512echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8513echo "${ECHO_T}$ac_header_preproc" >&6
8514
8515# So? What about this header?
8516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8517 yes:no: )
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8519echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8521echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8522 ac_header_preproc=yes
8523 ;;
8524 no:yes:* )
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8528echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8530echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8532echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8536echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8537 (
8538 cat <<\_ASBOX
8539## ----------------------------------- ##
8540## Report this to llvmbugs@cs.uiuc.edu ##
8541## ----------------------------------- ##
8542_ASBOX
8543 ) |
8544 sed "s/^/$as_me: WARNING: /" >&2
8545 ;;
8546esac
8547echo "$as_me:$LINENO: checking for $ac_header" >&5
8548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8549if eval "test \"\${$as_ac_Header+set}\" = set"; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551else
8552 eval "$as_ac_Header=\$ac_header_preproc"
8553fi
8554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8556
8557fi
8558if test `eval echo '${'$as_ac_Header'}'` = yes; then
8559 cat >>confdefs.h <<_ACEOF
8560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8561_ACEOF
8562
8563fi
8564
8565done
8566
8567
8568echo "$as_me:$LINENO: checking for error_t" >&5
8569echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8570if test "${ac_cv_type_error_t+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8572else
8573 cat >conftest.$ac_ext <<_ACEOF
8574/* confdefs.h. */
8575_ACEOF
8576cat confdefs.h >>conftest.$ac_ext
8577cat >>conftest.$ac_ext <<_ACEOF
8578/* end confdefs.h. */
8579#if HAVE_ARGZ_H
8580# include <argz.h>
8581#endif
8582
8583int
8584main ()
8585{
8586if ((error_t *) 0)
8587 return 0;
8588if (sizeof (error_t))
8589 return 0;
8590 ;
8591 return 0;
8592}
8593_ACEOF
8594rm -f conftest.$ac_objext
8595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8596 (eval $ac_compile) 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
8603 { ac_try='test -z "$ac_c_werror_flag"
8604 || test ! -s conftest.err'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 (eval $ac_try) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; } &&
8610 { ac_try='test -s conftest.$ac_objext'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; }; then
8616 ac_cv_type_error_t=yes
8617else
8618 echo "$as_me: failed program was:" >&5
8619sed 's/^/| /' conftest.$ac_ext >&5
8620
8621ac_cv_type_error_t=no
8622fi
8623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8624fi
8625echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8626echo "${ECHO_T}$ac_cv_type_error_t" >&6
8627if test $ac_cv_type_error_t = yes; then
8628
8629cat >>confdefs.h <<_ACEOF
8630#define HAVE_ERROR_T 1
8631_ACEOF
8632
8633
8634else
8635
8636cat >>confdefs.h <<\_ACEOF
8637#define error_t int
8638_ACEOF
8639
8640fi
8641
8642
8643
8644
8645
8646
8647
8648for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8649do
8650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8651echo "$as_me:$LINENO: checking for $ac_func" >&5
8652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8653if eval "test \"\${$as_ac_var+set}\" = set"; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8655else
8656 cat >conftest.$ac_ext <<_ACEOF
8657/* confdefs.h. */
8658_ACEOF
8659cat confdefs.h >>conftest.$ac_ext
8660cat >>conftest.$ac_ext <<_ACEOF
8661/* end confdefs.h. */
8662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8664#define $ac_func innocuous_$ac_func
8665
8666/* System header to define __stub macros and hopefully few prototypes,
8667 which can conflict with char $ac_func (); below.
8668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669 <limits.h> exists even on freestanding compilers. */
8670
8671#ifdef __STDC__
8672# include <limits.h>
8673#else
8674# include <assert.h>
8675#endif
8676
8677#undef $ac_func
8678
8679/* Override any gcc2 internal prototype to avoid an error. */
8680#ifdef __cplusplus
8681extern "C"
8682{
8683#endif
8684/* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8686char $ac_func ();
8687/* The GNU C library defines this for functions which it implements
8688 to always fail with ENOSYS. Some functions are actually named
8689 something starting with __ and the normal name is an alias. */
8690#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8691choke me
8692#else
8693char (*f) () = $ac_func;
8694#endif
8695#ifdef __cplusplus
8696}
8697#endif
8698
8699int
8700main ()
8701{
8702return f != $ac_func;
8703 ;
8704 return 0;
8705}
8706_ACEOF
8707rm -f conftest.$ac_objext conftest$ac_exeext
8708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709 (eval $ac_link) 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag"
8717 || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 eval "$as_ac_var=yes"
8730else
8731 echo "$as_me: failed program was:" >&5
8732sed 's/^/| /' conftest.$ac_ext >&5
8733
8734eval "$as_ac_var=no"
8735fi
8736rm -f conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8738fi
8739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8740echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8741if test `eval echo '${'$as_ac_var'}'` = yes; then
8742 cat >>confdefs.h <<_ACEOF
8743#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8744_ACEOF
8745
8746fi
8747done
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8777 stdio.h unistd.h
8778do
8779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8780if eval "test \"\${$as_ac_Header+set}\" = set"; then
8781 echo "$as_me:$LINENO: checking for $ac_header" >&5
8782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8783if eval "test \"\${$as_ac_Header+set}\" = set"; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785fi
8786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8788else
8789 # Is the header compilable?
8790echo "$as_me:$LINENO: checking $ac_header usability" >&5
8791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8792cat >conftest.$ac_ext <<_ACEOF
8793/* confdefs.h. */
8794_ACEOF
8795cat confdefs.h >>conftest.$ac_ext
8796cat >>conftest.$ac_ext <<_ACEOF
8797/* end confdefs.h. */
8798$ac_includes_default
8799#include <$ac_header>
8800_ACEOF
8801rm -f conftest.$ac_objext
8802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8803 (eval $ac_compile) 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -z "$ac_c_werror_flag"
8811 || test ! -s conftest.err'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; } &&
8817 { ac_try='test -s conftest.$ac_objext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_header_compiler=yes
8824else
8825 echo "$as_me: failed program was:" >&5
8826sed 's/^/| /' conftest.$ac_ext >&5
8827
8828ac_header_compiler=no
8829fi
8830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8831echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8832echo "${ECHO_T}$ac_header_compiler" >&6
8833
8834# Is the header present?
8835echo "$as_me:$LINENO: checking $ac_header presence" >&5
8836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8837cat >conftest.$ac_ext <<_ACEOF
8838/* confdefs.h. */
8839_ACEOF
8840cat confdefs.h >>conftest.$ac_ext
8841cat >>conftest.$ac_ext <<_ACEOF
8842/* end confdefs.h. */
8843#include <$ac_header>
8844_ACEOF
8845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } >/dev/null; then
8853 if test -s conftest.err; then
8854 ac_cpp_err=$ac_c_preproc_warn_flag
8855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8856 else
8857 ac_cpp_err=
8858 fi
8859else
8860 ac_cpp_err=yes
8861fi
8862if test -z "$ac_cpp_err"; then
8863 ac_header_preproc=yes
8864else
8865 echo "$as_me: failed program was:" >&5
8866sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 ac_header_preproc=no
8869fi
8870rm -f conftest.err conftest.$ac_ext
8871echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8872echo "${ECHO_T}$ac_header_preproc" >&6
8873
8874# So? What about this header?
8875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8876 yes:no: )
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8880echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8881 ac_header_preproc=yes
8882 ;;
8883 no:yes:* )
8884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8889echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8891echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8895echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8896 (
8897 cat <<\_ASBOX
8898## ----------------------------------- ##
8899## Report this to llvmbugs@cs.uiuc.edu ##
8900## ----------------------------------- ##
8901_ASBOX
8902 ) |
8903 sed "s/^/$as_me: WARNING: /" >&2
8904 ;;
8905esac
8906echo "$as_me:$LINENO: checking for $ac_header" >&5
8907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8908if eval "test \"\${$as_ac_Header+set}\" = set"; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910else
8911 eval "$as_ac_Header=\$ac_header_preproc"
8912fi
8913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8915
8916fi
8917if test `eval echo '${'$as_ac_Header'}'` = yes; then
8918 cat >>confdefs.h <<_ACEOF
8919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8920_ACEOF
8921
8922fi
8923
8924done
8925
8926
8927
8928
8929
8930for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8931do
8932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8933if eval "test \"\${$as_ac_Header+set}\" = set"; then
8934 echo "$as_me:$LINENO: checking for $ac_header" >&5
8935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8936if eval "test \"\${$as_ac_Header+set}\" = set"; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938fi
8939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8941else
8942 # Is the header compilable?
8943echo "$as_me:$LINENO: checking $ac_header usability" >&5
8944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8945cat >conftest.$ac_ext <<_ACEOF
8946/* confdefs.h. */
8947_ACEOF
8948cat confdefs.h >>conftest.$ac_ext
8949cat >>conftest.$ac_ext <<_ACEOF
8950/* end confdefs.h. */
8951$ac_includes_default
8952#include <$ac_header>
8953_ACEOF
8954rm -f conftest.$ac_objext
8955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8956 (eval $ac_compile) 2>conftest.er1
8957 ac_status=$?
8958 grep -v '^ *+' conftest.er1 >conftest.err
8959 rm -f conftest.er1
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -z "$ac_c_werror_flag"
8964 || test ! -s conftest.err'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 (eval $ac_try) 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try='test -s conftest.$ac_objext'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 (eval $ac_try) 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8976 ac_header_compiler=yes
8977else
8978 echo "$as_me: failed program was:" >&5
8979sed 's/^/| /' conftest.$ac_ext >&5
8980
8981ac_header_compiler=no
8982fi
8983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8984echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8985echo "${ECHO_T}$ac_header_compiler" >&6
8986
8987# Is the header present?
8988echo "$as_me:$LINENO: checking $ac_header presence" >&5
8989echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8990cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h. */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h. */
8996#include <$ac_header>
8997_ACEOF
8998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } >/dev/null; then
9006 if test -s conftest.err; then
9007 ac_cpp_err=$ac_c_preproc_warn_flag
9008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9009 else
9010 ac_cpp_err=
9011 fi
9012else
9013 ac_cpp_err=yes
9014fi
9015if test -z "$ac_cpp_err"; then
9016 ac_header_preproc=yes
9017else
9018 echo "$as_me: failed program was:" >&5
9019sed 's/^/| /' conftest.$ac_ext >&5
9020
9021 ac_header_preproc=no
9022fi
9023rm -f conftest.err conftest.$ac_ext
9024echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9025echo "${ECHO_T}$ac_header_preproc" >&6
9026
9027# So? What about this header?
9028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9029 yes:no: )
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9031echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9033echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9034 ac_header_preproc=yes
9035 ;;
9036 no:yes:* )
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9038echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9040echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9042echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9044echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9046echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9048echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9049 (
9050 cat <<\_ASBOX
9051## ----------------------------------- ##
9052## Report this to llvmbugs@cs.uiuc.edu ##
9053## ----------------------------------- ##
9054_ASBOX
9055 ) |
9056 sed "s/^/$as_me: WARNING: /" >&2
9057 ;;
9058esac
9059echo "$as_me:$LINENO: checking for $ac_header" >&5
9060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9061if eval "test \"\${$as_ac_Header+set}\" = set"; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063else
9064 eval "$as_ac_Header=\$ac_header_preproc"
9065fi
9066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9068
9069fi
9070if test `eval echo '${'$as_ac_Header'}'` = yes; then
9071 cat >>confdefs.h <<_ACEOF
9072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9073_ACEOF
9074
9075fi
9076
9077done
9078
9079
9080
9081for ac_header in string.h strings.h
9082do
9083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9084if eval "test \"\${$as_ac_Header+set}\" = set"; then
9085 echo "$as_me:$LINENO: checking for $ac_header" >&5
9086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9087if eval "test \"\${$as_ac_Header+set}\" = set"; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089fi
9090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9092else
9093 # Is the header compilable?
9094echo "$as_me:$LINENO: checking $ac_header usability" >&5
9095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9096cat >conftest.$ac_ext <<_ACEOF
9097/* confdefs.h. */
9098_ACEOF
9099cat confdefs.h >>conftest.$ac_ext
9100cat >>conftest.$ac_ext <<_ACEOF
9101/* end confdefs.h. */
9102$ac_includes_default
9103#include <$ac_header>
9104_ACEOF
9105rm -f conftest.$ac_objext
9106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107 (eval $ac_compile) 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest.$ac_objext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_header_compiler=yes
9128else
9129 echo "$as_me: failed program was:" >&5
9130sed 's/^/| /' conftest.$ac_ext >&5
9131
9132ac_header_compiler=no
9133fi
9134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9136echo "${ECHO_T}$ac_header_compiler" >&6
9137
9138# Is the header present?
9139echo "$as_me:$LINENO: checking $ac_header presence" >&5
9140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9141cat >conftest.$ac_ext <<_ACEOF
9142/* confdefs.h. */
9143_ACEOF
9144cat confdefs.h >>conftest.$ac_ext
9145cat >>conftest.$ac_ext <<_ACEOF
9146/* end confdefs.h. */
9147#include <$ac_header>
9148_ACEOF
9149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } >/dev/null; then
9157 if test -s conftest.err; then
9158 ac_cpp_err=$ac_c_preproc_warn_flag
9159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9160 else
9161 ac_cpp_err=
9162 fi
9163else
9164 ac_cpp_err=yes
9165fi
9166if test -z "$ac_cpp_err"; then
9167 ac_header_preproc=yes
9168else
9169 echo "$as_me: failed program was:" >&5
9170sed 's/^/| /' conftest.$ac_ext >&5
9171
9172 ac_header_preproc=no
9173fi
9174rm -f conftest.err conftest.$ac_ext
9175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9176echo "${ECHO_T}$ac_header_preproc" >&6
9177
9178# So? What about this header?
9179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9180 yes:no: )
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9185 ac_header_preproc=yes
9186 ;;
9187 no:yes:* )
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9200 (
9201 cat <<\_ASBOX
9202## ----------------------------------- ##
9203## Report this to llvmbugs@cs.uiuc.edu ##
9204## ----------------------------------- ##
9205_ASBOX
9206 ) |
9207 sed "s/^/$as_me: WARNING: /" >&2
9208 ;;
9209esac
9210echo "$as_me:$LINENO: checking for $ac_header" >&5
9211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9212if eval "test \"\${$as_ac_Header+set}\" = set"; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215 eval "$as_ac_Header=\$ac_header_preproc"
9216fi
9217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9219
9220fi
9221if test `eval echo '${'$as_ac_Header'}'` = yes; then
9222 cat >>confdefs.h <<_ACEOF
9223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9224_ACEOF
9225 break
9226fi
9227
9228done
9229
9230
9231
9232
9233for ac_func in strchr index
9234do
9235as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9236echo "$as_me:$LINENO: checking for $ac_func" >&5
9237echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9238if eval "test \"\${$as_ac_var+set}\" = set"; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240else
9241 cat >conftest.$ac_ext <<_ACEOF
9242/* confdefs.h. */
9243_ACEOF
9244cat confdefs.h >>conftest.$ac_ext
9245cat >>conftest.$ac_ext <<_ACEOF
9246/* end confdefs.h. */
9247/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9249#define $ac_func innocuous_$ac_func
9250
9251/* System header to define __stub macros and hopefully few prototypes,
9252 which can conflict with char $ac_func (); below.
9253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9254 <limits.h> exists even on freestanding compilers. */
9255
9256#ifdef __STDC__
9257# include <limits.h>
9258#else
9259# include <assert.h>
9260#endif
9261
9262#undef $ac_func
9263
9264/* Override any gcc2 internal prototype to avoid an error. */
9265#ifdef __cplusplus
9266extern "C"
9267{
9268#endif
9269/* We use char because int might match the return type of a gcc2
9270 builtin and then its argument prototype would still apply. */
9271char $ac_func ();
9272/* The GNU C library defines this for functions which it implements
9273 to always fail with ENOSYS. Some functions are actually named
9274 something starting with __ and the normal name is an alias. */
9275#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9276choke me
9277#else
9278char (*f) () = $ac_func;
9279#endif
9280#ifdef __cplusplus
9281}
9282#endif
9283
9284int
9285main ()
9286{
9287return f != $ac_func;
9288 ;
9289 return 0;
9290}
9291_ACEOF
9292rm -f conftest.$ac_objext conftest$ac_exeext
9293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9294 (eval $ac_link) 2>conftest.er1
9295 ac_status=$?
9296 grep -v '^ *+' conftest.er1 >conftest.err
9297 rm -f conftest.er1
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } &&
9301 { ac_try='test -z "$ac_c_werror_flag"
9302 || test ! -s conftest.err'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try='test -s conftest$ac_exeext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 (eval $ac_try) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9314 eval "$as_ac_var=yes"
9315else
9316 echo "$as_me: failed program was:" >&5
9317sed 's/^/| /' conftest.$ac_ext >&5
9318
9319eval "$as_ac_var=no"
9320fi
9321rm -f conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9323fi
9324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9325echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9326if test `eval echo '${'$as_ac_var'}'` = yes; then
9327 cat >>confdefs.h <<_ACEOF
9328#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9329_ACEOF
9330 break
9331fi
9332done
9333
9334
9335
9336for ac_func in strrchr rindex
9337do
9338as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9339echo "$as_me:$LINENO: checking for $ac_func" >&5
9340echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9341if eval "test \"\${$as_ac_var+set}\" = set"; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9343else
9344 cat >conftest.$ac_ext <<_ACEOF
9345/* confdefs.h. */
9346_ACEOF
9347cat confdefs.h >>conftest.$ac_ext
9348cat >>conftest.$ac_ext <<_ACEOF
9349/* end confdefs.h. */
9350/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9352#define $ac_func innocuous_$ac_func
9353
9354/* System header to define __stub macros and hopefully few prototypes,
9355 which can conflict with char $ac_func (); below.
9356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357 <limits.h> exists even on freestanding compilers. */
9358
9359#ifdef __STDC__
9360# include <limits.h>
9361#else
9362# include <assert.h>
9363#endif
9364
9365#undef $ac_func
9366
9367/* Override any gcc2 internal prototype to avoid an error. */
9368#ifdef __cplusplus
9369extern "C"
9370{
9371#endif
9372/* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */
9374char $ac_func ();
9375/* The GNU C library defines this for functions which it implements
9376 to always fail with ENOSYS. Some functions are actually named
9377 something starting with __ and the normal name is an alias. */
9378#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9379choke me
9380#else
9381char (*f) () = $ac_func;
9382#endif
9383#ifdef __cplusplus
9384}
9385#endif
9386
9387int
9388main ()
9389{
9390return f != $ac_func;
9391 ;
9392 return 0;
9393}
9394_ACEOF
9395rm -f conftest.$ac_objext conftest$ac_exeext
9396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9397 (eval $ac_link) 2>conftest.er1
9398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_c_werror_flag"
9405 || test ! -s conftest.err'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; } &&
9411 { ac_try='test -s conftest$ac_exeext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 (eval $ac_try) 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 eval "$as_ac_var=yes"
9418else
9419 echo "$as_me: failed program was:" >&5
9420sed 's/^/| /' conftest.$ac_ext >&5
9421
9422eval "$as_ac_var=no"
9423fi
9424rm -f conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9426fi
9427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9428echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9429if test `eval echo '${'$as_ac_var'}'` = yes; then
9430 cat >>confdefs.h <<_ACEOF
9431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9432_ACEOF
9433 break
9434fi
9435done
9436
9437
9438
9439for ac_func in memcpy bcopy
9440do
9441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9442echo "$as_me:$LINENO: checking for $ac_func" >&5
9443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9444if eval "test \"\${$as_ac_var+set}\" = set"; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9446else
9447 cat >conftest.$ac_ext <<_ACEOF
9448/* confdefs.h. */
9449_ACEOF
9450cat confdefs.h >>conftest.$ac_ext
9451cat >>conftest.$ac_ext <<_ACEOF
9452/* end confdefs.h. */
9453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9455#define $ac_func innocuous_$ac_func
9456
9457/* System header to define __stub macros and hopefully few prototypes,
9458 which can conflict with char $ac_func (); below.
9459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9460 <limits.h> exists even on freestanding compilers. */
9461
9462#ifdef __STDC__
9463# include <limits.h>
9464#else
9465# include <assert.h>
9466#endif
9467
9468#undef $ac_func
9469
9470/* Override any gcc2 internal prototype to avoid an error. */
9471#ifdef __cplusplus
9472extern "C"
9473{
9474#endif
9475/* We use char because int might match the return type of a gcc2
9476 builtin and then its argument prototype would still apply. */
9477char $ac_func ();
9478/* The GNU C library defines this for functions which it implements
9479 to always fail with ENOSYS. Some functions are actually named
9480 something starting with __ and the normal name is an alias. */
9481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9482choke me
9483#else
9484char (*f) () = $ac_func;
9485#endif
9486#ifdef __cplusplus
9487}
9488#endif
9489
9490int
9491main ()
9492{
9493return f != $ac_func;
9494 ;
9495 return 0;
9496}
9497_ACEOF
9498rm -f conftest.$ac_objext conftest$ac_exeext
9499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500 (eval $ac_link) 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_c_werror_flag"
9508 || test ! -s conftest.err'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try='test -s conftest$ac_exeext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 (eval $ac_try) 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 eval "$as_ac_var=yes"
9521else
9522 echo "$as_me: failed program was:" >&5
9523sed 's/^/| /' conftest.$ac_ext >&5
9524
9525eval "$as_ac_var=no"
9526fi
9527rm -f conftest.err conftest.$ac_objext \
9528 conftest$ac_exeext conftest.$ac_ext
9529fi
9530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9531echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9532if test `eval echo '${'$as_ac_var'}'` = yes; then
9533 cat >>confdefs.h <<_ACEOF
9534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9535_ACEOF
9536 break
9537fi
9538done
9539
9540
9541
9542for ac_func in memmove strcmp
9543do
9544as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9545echo "$as_me:$LINENO: checking for $ac_func" >&5
9546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9547if eval "test \"\${$as_ac_var+set}\" = set"; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549else
9550 cat >conftest.$ac_ext <<_ACEOF
9551/* confdefs.h. */
9552_ACEOF
9553cat confdefs.h >>conftest.$ac_ext
9554cat >>conftest.$ac_ext <<_ACEOF
9555/* end confdefs.h. */
9556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9558#define $ac_func innocuous_$ac_func
9559
9560/* System header to define __stub macros and hopefully few prototypes,
9561 which can conflict with char $ac_func (); below.
9562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9563 <limits.h> exists even on freestanding compilers. */
9564
9565#ifdef __STDC__
9566# include <limits.h>
9567#else
9568# include <assert.h>
9569#endif
9570
9571#undef $ac_func
9572
9573/* Override any gcc2 internal prototype to avoid an error. */
9574#ifdef __cplusplus
9575extern "C"
9576{
9577#endif
9578/* We use char because int might match the return type of a gcc2
9579 builtin and then its argument prototype would still apply. */
9580char $ac_func ();
9581/* The GNU C library defines this for functions which it implements
9582 to always fail with ENOSYS. Some functions are actually named
9583 something starting with __ and the normal name is an alias. */
9584#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9585choke me
9586#else
9587char (*f) () = $ac_func;
9588#endif
9589#ifdef __cplusplus
9590}
9591#endif
9592
9593int
9594main ()
9595{
9596return f != $ac_func;
9597 ;
9598 return 0;
9599}
9600_ACEOF
9601rm -f conftest.$ac_objext conftest$ac_exeext
9602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -z "$ac_c_werror_flag"
9611 || test ! -s conftest.err'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest$ac_exeext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 eval "$as_ac_var=yes"
9624else
9625 echo "$as_me: failed program was:" >&5
9626sed 's/^/| /' conftest.$ac_ext >&5
9627
9628eval "$as_ac_var=no"
9629fi
9630rm -f conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
9632fi
9633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9634echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9635if test `eval echo '${'$as_ac_var'}'` = yes; then
9636 cat >>confdefs.h <<_ACEOF
9637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9638_ACEOF
9639
9640fi
9641done
9642
9643
9644
9645
9646for ac_func in closedir opendir readdir
9647do
9648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9649echo "$as_me:$LINENO: checking for $ac_func" >&5
9650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9651if eval "test \"\${$as_ac_var+set}\" = set"; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
9654 cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
9660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9662#define $ac_func innocuous_$ac_func
9663
9664/* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char $ac_func (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9668
9669#ifdef __STDC__
9670# include <limits.h>
9671#else
9672# include <assert.h>
9673#endif
9674
9675#undef $ac_func
9676
9677/* Override any gcc2 internal prototype to avoid an error. */
9678#ifdef __cplusplus
9679extern "C"
9680{
9681#endif
9682/* We use char because int might match the return type of a gcc2
9683 builtin and then its argument prototype would still apply. */
9684char $ac_func ();
9685/* The GNU C library defines this for functions which it implements
9686 to always fail with ENOSYS. Some functions are actually named
9687 something starting with __ and the normal name is an alias. */
9688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9689choke me
9690#else
9691char (*f) () = $ac_func;
9692#endif
9693#ifdef __cplusplus
9694}
9695#endif
9696
9697int
9698main ()
9699{
9700return f != $ac_func;
9701 ;
9702 return 0;
9703}
9704_ACEOF
9705rm -f conftest.$ac_objext conftest$ac_exeext
9706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9707 (eval $ac_link) 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -z "$ac_c_werror_flag"
9715 || test ! -s conftest.err'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; } &&
9721 { ac_try='test -s conftest$ac_exeext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 (eval $ac_try) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 eval "$as_ac_var=yes"
9728else
9729 echo "$as_me: failed program was:" >&5
9730sed 's/^/| /' conftest.$ac_ext >&5
9731
9732eval "$as_ac_var=no"
9733fi
9734rm -f conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736fi
9737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9738echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9739if test `eval echo '${'$as_ac_var'}'` = yes; then
9740 cat >>confdefs.h <<_ACEOF
9741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9742_ACEOF
9743
9744fi
9745done
9746
9747
9748# Check whether --enable-shared or --disable-shared was given.
9749if test "${enable_shared+set}" = set; then
9750 enableval="$enable_shared"
9751 p=${PACKAGE-default}
9752 case $enableval in
9753 yes) enable_shared=yes ;;
9754 no) enable_shared=no ;;
9755 *)
9756 enable_shared=no
9757 # Look at the argument we got. We use all the common list separators.
9758 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9759 for pkg in $enableval; do
9760 IFS="$lt_save_ifs"
9761 if test "X$pkg" = "X$p"; then
9762 enable_shared=yes
9763 fi
9764 done
9765 IFS="$lt_save_ifs"
9766 ;;
9767 esac
9768else
9769 enable_shared=yes
9770fi;
9771
9772# Check whether --enable-static or --disable-static was given.
9773if test "${enable_static+set}" = set; then
9774 enableval="$enable_static"
9775 p=${PACKAGE-default}
9776 case $enableval in
9777 yes) enable_static=yes ;;
9778 no) enable_static=no ;;
9779 *)
9780 enable_static=no
9781 # Look at the argument we got. We use all the common list separators.
9782 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9783 for pkg in $enableval; do
9784 IFS="$lt_save_ifs"
9785 if test "X$pkg" = "X$p"; then
9786 enable_static=yes
9787 fi
9788 done
9789 IFS="$lt_save_ifs"
9790 ;;
9791 esac
9792else
9793 enable_static=yes
9794fi;
9795
9796# Check whether --enable-fast-install or --disable-fast-install was given.
9797if test "${enable_fast_install+set}" = set; then
9798 enableval="$enable_fast_install"
9799 p=${PACKAGE-default}
9800 case $enableval in
9801 yes) enable_fast_install=yes ;;
9802 no) enable_fast_install=no ;;
9803 *)
9804 enable_fast_install=no
9805 # Look at the argument we got. We use all the common list separators.
9806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9807 for pkg in $enableval; do
9808 IFS="$lt_save_ifs"
9809 if test "X$pkg" = "X$p"; then
9810 enable_fast_install=yes
9811 fi
9812 done
9813 IFS="$lt_save_ifs"
9814 ;;
9815 esac
9816else
9817 enable_fast_install=yes
9818fi;
9819
9820echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9821echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9822if test "${lt_cv_path_SED+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824else
9825 # Loop through the user's path and test for sed and gsed.
9826# Then use that list of sed's as ones to test for truncation.
9827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828for as_dir in $PATH
9829do
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
9832 for lt_ac_prog in sed gsed; do
9833 for ac_exec_ext in '' $ac_executable_extensions; do
9834 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9835 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9836 fi
9837 done
9838 done
9839done
9840lt_ac_max=0
9841lt_ac_count=0
9842# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9843# along with /bin/sed that truncates output.
9844for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9845 test ! -f $lt_ac_sed && break
9846 cat /dev/null > conftest.in
9847 lt_ac_count=0
9848 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9849 # Check for GNU sed and select it if it is found.
9850 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9851 lt_cv_path_SED=$lt_ac_sed
9852 break
9853 fi
9854 while true; do
9855 cat conftest.in conftest.in >conftest.tmp
9856 mv conftest.tmp conftest.in
9857 cp conftest.in conftest.nl
9858 echo >>conftest.nl
9859 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9860 cmp -s conftest.out conftest.nl || break
9861 # 10000 chars as input seems more than enough
9862 test $lt_ac_count -gt 10 && break
9863 lt_ac_count=`expr $lt_ac_count + 1`
9864 if test $lt_ac_count -gt $lt_ac_max; then
9865 lt_ac_max=$lt_ac_count
9866 lt_cv_path_SED=$lt_ac_sed
9867 fi
9868 done
9869done
9870
9871fi
9872
9873SED=$lt_cv_path_SED
9874echo "$as_me:$LINENO: result: $SED" >&5
9875echo "${ECHO_T}$SED" >&6
9876
9877
9878# Check whether --with-gnu-ld or --without-gnu-ld was given.
9879if test "${with_gnu_ld+set}" = set; then
9880 withval="$with_gnu_ld"
9881 test "$withval" = no || with_gnu_ld=yes
9882else
9883 with_gnu_ld=no
9884fi;
9885ac_prog=ld
9886if test "$GCC" = yes; then
9887 # Check if gcc -print-prog-name=ld gives a path.
9888 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9889echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9890 case $host in
9891 *-*-mingw*)
9892 # gcc leaves a trailing carriage return which upsets mingw
9893 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9894 *)
9895 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9896 esac
9897 case $ac_prog in
9898 # Accept absolute paths.
9899 [\\/]* | ?:[\\/]*)
9900 re_direlt='/[^/][^/]*/\.\./'
9901 # Canonicalize the pathname of ld
9902 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9903 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9904 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9905 done
9906 test -z "$LD" && LD="$ac_prog"
9907 ;;
9908 "")
9909 # If it fails, then pretend we aren't using GCC.
9910 ac_prog=ld
9911 ;;
9912 *)
9913 # If it is relative, then search for the first ld in PATH.
9914 with_gnu_ld=unknown
9915 ;;
9916 esac
9917elif test "$with_gnu_ld" = yes; then
9918 echo "$as_me:$LINENO: checking for GNU ld" >&5
9919echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9920else
9921 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9922echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9923fi
9924if test "${lt_cv_path_LD+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926else
9927 if test -z "$LD"; then
9928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9929 for ac_dir in $PATH; do
9930 IFS="$lt_save_ifs"
9931 test -z "$ac_dir" && ac_dir=.
9932 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9933 lt_cv_path_LD="$ac_dir/$ac_prog"
9934 # Check to see if the program is GNU ld. I'd rather use --version,
9935 # but apparently some GNU ld's only accept -v.
9936 # Break only if it was the GNU/non-GNU ld that we prefer.
9937 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9938 *GNU* | *'with BFD'*)
9939 test "$with_gnu_ld" != no && break
9940 ;;
9941 *)
9942 test "$with_gnu_ld" != yes && break
9943 ;;
9944 esac
9945 fi
9946 done
9947 IFS="$lt_save_ifs"
9948else
9949 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9950fi
9951fi
9952
9953LD="$lt_cv_path_LD"
9954if test -n "$LD"; then
9955 echo "$as_me:$LINENO: result: $LD" >&5
9956echo "${ECHO_T}$LD" >&6
9957else
9958 echo "$as_me:$LINENO: result: no" >&5
9959echo "${ECHO_T}no" >&6
9960fi
9961test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9962echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9963 { (exit 1); exit 1; }; }
9964echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9965echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9966if test "${lt_cv_prog_gnu_ld+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968else
9969 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9970case `$LD -v 2>&1 </dev/null` in
9971*GNU* | *'with BFD'*)
9972 lt_cv_prog_gnu_ld=yes
9973 ;;
9974*)
9975 lt_cv_prog_gnu_ld=no
9976 ;;
9977esac
9978fi
9979echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9980echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9981with_gnu_ld=$lt_cv_prog_gnu_ld
9982
9983
9984echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9985echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9986if test "${lt_cv_ld_reload_flag+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9988else
9989 lt_cv_ld_reload_flag='-r'
9990fi
9991echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9992echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9993reload_flag=$lt_cv_ld_reload_flag
9994case $reload_flag in
9995"" | " "*) ;;
9996*) reload_flag=" $reload_flag" ;;
9997esac
9998reload_cmds='$LD$reload_flag -o $output$reload_objs'
9999case $host_os in
10000 darwin*)
10001 if test "$GCC" = yes; then
10002 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10003 else
10004 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10005 fi
10006 ;;
10007esac
10008
10009echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10010echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10011if test "${lt_cv_deplibs_check_method+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013else
10014 lt_cv_file_magic_cmd='$MAGIC_CMD'
10015lt_cv_file_magic_test_file=
10016lt_cv_deplibs_check_method='unknown'
10017# Need to set the preceding variable on all platforms that support
10018# interlibrary dependencies.
10019# 'none' -- dependencies not supported.
10020# `unknown' -- same as none, but documents that we really don't know.
10021# 'pass_all' -- all dependencies passed with no checks.
10022# 'test_compile' -- check by making test program.
10023# 'file_magic [[regex]]' -- check by looking for files in library path
10024# which responds to the $file_magic_cmd with a given extended regex.
10025# If you have `file' or equivalent on your system and you're not sure
10026# whether `pass_all' will *always* work, you probably want this one.
10027
10028case $host_os in
10029aix4* | aix5*)
10030 lt_cv_deplibs_check_method=pass_all
10031 ;;
10032
10033beos*)
10034 lt_cv_deplibs_check_method=pass_all
10035 ;;
10036
10037bsdi[45]*)
10038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10039 lt_cv_file_magic_cmd='/usr/bin/file -L'
10040 lt_cv_file_magic_test_file=/shlib/libc.so
10041 ;;
10042
10043cygwin*)
10044 # func_win32_libid is a shell function defined in ltmain.sh
10045 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10046 lt_cv_file_magic_cmd='func_win32_libid'
10047 ;;
10048
10049mingw* | pw32*)
10050 # Base MSYS/MinGW do not provide the 'file' command needed by
10051 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10052 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10053 lt_cv_file_magic_cmd='$OBJDUMP -f'
10054 ;;
10055
10056darwin* | rhapsody*)
10057 lt_cv_deplibs_check_method=pass_all
10058 ;;
10059
10060freebsd* | kfreebsd*-gnu)
10061 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10062 case $host_cpu in
10063 i*86 )
10064 # Not sure whether the presence of OpenBSD here was a mistake.
10065 # Let's accept both of them until this is cleared up.
10066 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10067 lt_cv_file_magic_cmd=/usr/bin/file
10068 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10069 ;;
10070 esac
10071 else
10072 lt_cv_deplibs_check_method=pass_all
10073 fi
10074 ;;
10075
10076gnu*)
10077 lt_cv_deplibs_check_method=pass_all
10078 ;;
10079
10080hpux10.20* | hpux11*)
10081 lt_cv_file_magic_cmd=/usr/bin/file
10082 case "$host_cpu" in
10083 ia64*)
10084 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10085 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10086 ;;
10087 hppa*64*)
10088 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]'
10089 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10090 ;;
10091 *)
10092 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10093 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10094 ;;
10095 esac
10096 ;;
10097
10098irix5* | irix6* | nonstopux*)
10099 case $LD in
10100 *-32|*"-32 ") libmagic=32-bit;;
10101 *-n32|*"-n32 ") libmagic=N32;;
10102 *-64|*"-64 ") libmagic=64-bit;;
10103 *) libmagic=never-match;;
10104 esac
10105 lt_cv_deplibs_check_method=pass_all
10106 ;;
10107
10108# This must be Linux ELF.
10109linux*)
10110 lt_cv_deplibs_check_method=pass_all
10111 ;;
10112
10113netbsd*)
10114 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10116 else
10117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10118 fi
10119 ;;
10120
10121newos6*)
10122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10123 lt_cv_file_magic_cmd=/usr/bin/file
10124 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10125 ;;
10126
10127nto-qnx*)
10128 lt_cv_deplibs_check_method=unknown
10129 ;;
10130
10131openbsd*)
10132 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10134 else
10135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10136 fi
10137 ;;
10138
10139osf3* | osf4* | osf5*)
10140 lt_cv_deplibs_check_method=pass_all
10141 ;;
10142
10143sco3.2v5*)
10144 lt_cv_deplibs_check_method=pass_all
10145 ;;
10146
10147solaris*)
10148 lt_cv_deplibs_check_method=pass_all
10149 ;;
10150
10151sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10152 case $host_vendor in
10153 motorola)
10154 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]'
10155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10156 ;;
10157 ncr)
10158 lt_cv_deplibs_check_method=pass_all
10159 ;;
10160 sequent)
10161 lt_cv_file_magic_cmd='/bin/file'
10162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10163 ;;
10164 sni)
10165 lt_cv_file_magic_cmd='/bin/file'
10166 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10167 lt_cv_file_magic_test_file=/lib/libc.so
10168 ;;
10169 siemens)
10170 lt_cv_deplibs_check_method=pass_all
10171 ;;
10172 esac
10173 ;;
10174
10175sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10176 lt_cv_deplibs_check_method=pass_all
10177 ;;
10178esac
10179
10180fi
10181echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10182echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10183file_magic_cmd=$lt_cv_file_magic_cmd
10184deplibs_check_method=$lt_cv_deplibs_check_method
10185test -z "$deplibs_check_method" && deplibs_check_method=unknown
10186
10187
10188
10189# If no C compiler was specified, use CC.
10190LTCC=${LTCC-"$CC"}
10191
10192# Allow CC to be a program name with arguments.
10193compiler=$CC
10194
10195# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10196if test "${enable_libtool_lock+set}" = set; then
10197 enableval="$enable_libtool_lock"
10198
10199fi;
10200test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10201
10202# Some flags need to be propagated to the compiler or linker for good
10203# libtool support.
10204case $host in
10205ia64-*-hpux*)
10206 # Find out which ABI we are using.
10207 echo 'int i;' > conftest.$ac_ext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10209 (eval $ac_compile) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; then
10213 case `/usr/bin/file conftest.$ac_objext` in
10214 *ELF-32*)
10215 HPUX_IA64_MODE="32"
10216 ;;
10217 *ELF-64*)
10218 HPUX_IA64_MODE="64"
10219 ;;
10220 esac
10221 fi
10222 rm -rf conftest*
10223 ;;
10224*-*-irix6*)
10225 # Find out which ABI we are using.
Misha Brukman19098e52005-05-12 22:15:34 +000010226 echo '#line 10226 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; then
10232 if test "$lt_cv_prog_gnu_ld" = yes; then
10233 case `/usr/bin/file conftest.$ac_objext` in
10234 *32-bit*)
10235 LD="${LD-ld} -melf32bsmip"
10236 ;;
10237 *N32*)
10238 LD="${LD-ld} -melf32bmipn32"
10239 ;;
10240 *64-bit*)
10241 LD="${LD-ld} -melf64bmip"
10242 ;;
10243 esac
10244 else
10245 case `/usr/bin/file conftest.$ac_objext` in
10246 *32-bit*)
10247 LD="${LD-ld} -32"
10248 ;;
10249 *N32*)
10250 LD="${LD-ld} -n32"
10251 ;;
10252 *64-bit*)
10253 LD="${LD-ld} -64"
10254 ;;
10255 esac
10256 fi
10257 fi
10258 rm -rf conftest*
10259 ;;
10260
10261x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10262 # Find out which ABI we are using.
10263 echo 'int i;' > conftest.$ac_ext
10264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10265 (eval $ac_compile) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; then
10269 case "`/usr/bin/file conftest.o`" in
10270 *32-bit*)
10271 case $host in
10272 x86_64-*linux*)
10273 LD="${LD-ld} -m elf_i386"
10274 ;;
10275 ppc64-*linux*|powerpc64-*linux*)
10276 LD="${LD-ld} -m elf32ppclinux"
10277 ;;
10278 s390x-*linux*)
10279 LD="${LD-ld} -m elf_s390"
10280 ;;
10281 sparc64-*linux*)
10282 LD="${LD-ld} -m elf32_sparc"
10283 ;;
10284 esac
10285 ;;
10286 *64-bit*)
10287 case $host in
10288 x86_64-*linux*)
10289 LD="${LD-ld} -m elf_x86_64"
10290 ;;
10291 ppc*-*linux*|powerpc*-*linux*)
10292 LD="${LD-ld} -m elf64ppc"
10293 ;;
10294 s390*-*linux*)
10295 LD="${LD-ld} -m elf64_s390"
10296 ;;
10297 sparc*-*linux*)
10298 LD="${LD-ld} -m elf64_sparc"
10299 ;;
10300 esac
10301 ;;
10302 esac
10303 fi
10304 rm -rf conftest*
10305 ;;
10306
10307*-*-sco3.2v5*)
10308 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10309 SAVE_CFLAGS="$CFLAGS"
10310 CFLAGS="$CFLAGS -belf"
10311 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10312echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10313if test "${lt_cv_cc_needs_belf+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315else
10316 ac_ext=c
10317ac_cpp='$CPP $CPPFLAGS'
10318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10320ac_compiler_gnu=$ac_cv_c_compiler_gnu
10321
10322 cat >conftest.$ac_ext <<_ACEOF
10323/* confdefs.h. */
10324_ACEOF
10325cat confdefs.h >>conftest.$ac_ext
10326cat >>conftest.$ac_ext <<_ACEOF
10327/* end confdefs.h. */
10328
10329_ACEOF
10330rm -f conftest.$ac_objext conftest$ac_exeext
10331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332 (eval $ac_link) 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try='test -s conftest$ac_exeext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 lt_cv_cc_needs_belf=yes
10353else
10354 echo "$as_me: failed program was:" >&5
10355sed 's/^/| /' conftest.$ac_ext >&5
10356
10357lt_cv_cc_needs_belf=no
10358fi
10359rm -f conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361 ac_ext=c
10362ac_cpp='$CPP $CPPFLAGS'
10363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10365ac_compiler_gnu=$ac_cv_c_compiler_gnu
10366
10367fi
10368echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10369echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10370 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10371 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10372 CFLAGS="$SAVE_CFLAGS"
10373 fi
10374 ;;
10375
10376esac
10377
10378need_locks="$enable_libtool_lock"
10379
10380
Reid Spencer2706f8c2004-09-19 23:53:36 +000010381
10382
10383if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10384 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10385 (test "X$CXX" != "Xg++"))) ; then
10386 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010387ac_cpp='$CXXCPP $CPPFLAGS'
10388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10391echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10392echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10393if test -z "$CXXCPP"; then
10394 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010395 echo $ECHO_N "(cached) $ECHO_C" >&6
10396else
John Criswell47fdd832003-07-14 16:52:07 +000010397 # Double quotes because CXXCPP needs to be expanded
10398 for CXXCPP in "$CXX -E" "/lib/cpp"
10399 do
10400 ac_preproc_ok=false
10401for ac_cxx_preproc_warn_flag in '' yes
10402do
10403 # Use a header file that comes with gcc, so configuring glibc
10404 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10406 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010407 # On the NeXT, cc -E runs the code through the compiler's parser,
10408 # not just through cpp. "Syntax error" is here to catch this case.
10409 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010410/* confdefs.h. */
10411_ACEOF
10412cat confdefs.h >>conftest.$ac_ext
10413cat >>conftest.$ac_ext <<_ACEOF
10414/* end confdefs.h. */
10415#ifdef __STDC__
10416# include <limits.h>
10417#else
10418# include <assert.h>
10419#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010420 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010421_ACEOF
10422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10424 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010425 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } >/dev/null; then
10430 if test -s conftest.err; then
10431 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010432 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010433 else
John Criswell47fdd832003-07-14 16:52:07 +000010434 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010435 fi
John Criswell47fdd832003-07-14 16:52:07 +000010436else
10437 ac_cpp_err=yes
10438fi
10439if test -z "$ac_cpp_err"; then
10440 :
10441else
10442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010443sed 's/^/| /' conftest.$ac_ext >&5
10444
John Criswell47fdd832003-07-14 16:52:07 +000010445 # Broken: fails on valid input.
10446continue
10447fi
10448rm -f conftest.err conftest.$ac_ext
10449
10450 # OK, works on sane cases. Now check whether non-existent headers
10451 # can be detected and how.
10452 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010453/* confdefs.h. */
10454_ACEOF
10455cat confdefs.h >>conftest.$ac_ext
10456cat >>conftest.$ac_ext <<_ACEOF
10457/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010458#include <ac_nonexistent.h>
10459_ACEOF
10460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10462 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010463 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } >/dev/null; then
10468 if test -s conftest.err; then
10469 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010470 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010471 else
10472 ac_cpp_err=
10473 fi
10474else
10475 ac_cpp_err=yes
10476fi
10477if test -z "$ac_cpp_err"; then
10478 # Broken: success on invalid input.
10479continue
10480else
10481 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010482sed 's/^/| /' conftest.$ac_ext >&5
10483
John Criswell47fdd832003-07-14 16:52:07 +000010484 # Passes both tests.
10485ac_preproc_ok=:
10486break
10487fi
10488rm -f conftest.err conftest.$ac_ext
10489
10490done
10491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10492rm -f conftest.err conftest.$ac_ext
10493if $ac_preproc_ok; then
10494 break
John Criswell7a73b802003-06-30 21:59:07 +000010495fi
10496
John Criswell47fdd832003-07-14 16:52:07 +000010497 done
10498 ac_cv_prog_CXXCPP=$CXXCPP
10499
10500fi
10501 CXXCPP=$ac_cv_prog_CXXCPP
10502else
10503 ac_cv_prog_CXXCPP=$CXXCPP
10504fi
10505echo "$as_me:$LINENO: result: $CXXCPP" >&5
10506echo "${ECHO_T}$CXXCPP" >&6
10507ac_preproc_ok=false
10508for ac_cxx_preproc_warn_flag in '' yes
10509do
10510 # Use a header file that comes with gcc, so configuring glibc
10511 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10513 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010514 # On the NeXT, cc -E runs the code through the compiler's parser,
10515 # not just through cpp. "Syntax error" is here to catch this case.
10516 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010517/* confdefs.h. */
10518_ACEOF
10519cat confdefs.h >>conftest.$ac_ext
10520cat >>conftest.$ac_ext <<_ACEOF
10521/* end confdefs.h. */
10522#ifdef __STDC__
10523# include <limits.h>
10524#else
10525# include <assert.h>
10526#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010527 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010528_ACEOF
10529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10531 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010532 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010533 rm -f conftest.er1
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } >/dev/null; then
10537 if test -s conftest.err; then
10538 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010539 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010540 else
10541 ac_cpp_err=
10542 fi
10543else
10544 ac_cpp_err=yes
10545fi
10546if test -z "$ac_cpp_err"; then
10547 :
10548else
10549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010550sed 's/^/| /' conftest.$ac_ext >&5
10551
John Criswell47fdd832003-07-14 16:52:07 +000010552 # Broken: fails on valid input.
10553continue
10554fi
10555rm -f conftest.err conftest.$ac_ext
10556
10557 # OK, works on sane cases. Now check whether non-existent headers
10558 # can be detected and how.
10559 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010560/* confdefs.h. */
10561_ACEOF
10562cat confdefs.h >>conftest.$ac_ext
10563cat >>conftest.$ac_ext <<_ACEOF
10564/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010565#include <ac_nonexistent.h>
10566_ACEOF
10567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10569 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010570 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } >/dev/null; then
10575 if test -s conftest.err; then
10576 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010577 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010578 else
10579 ac_cpp_err=
10580 fi
10581else
10582 ac_cpp_err=yes
10583fi
10584if test -z "$ac_cpp_err"; then
10585 # Broken: success on invalid input.
10586continue
10587else
10588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010589sed 's/^/| /' conftest.$ac_ext >&5
10590
John Criswell47fdd832003-07-14 16:52:07 +000010591 # Passes both tests.
10592ac_preproc_ok=:
10593break
10594fi
10595rm -f conftest.err conftest.$ac_ext
10596
10597done
10598# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10599rm -f conftest.err conftest.$ac_ext
10600if $ac_preproc_ok; then
10601 :
10602else
John Criswell0c38eaf2003-09-10 15:17:25 +000010603 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10604See \`config.log' for more details." >&5
10605echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10606See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010607 { (exit 1); exit 1; }; }
10608fi
10609
10610ac_ext=cc
10611ac_cpp='$CXXCPP $CPPFLAGS'
10612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10615
Reid Spencer2706f8c2004-09-19 23:53:36 +000010616fi
10617
John Criswell47fdd832003-07-14 16:52:07 +000010618
10619ac_ext=f
10620ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10621ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10622ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10623if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010624 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 +000010625 do
10626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10627set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10628echo "$as_me:$LINENO: checking for $ac_word" >&5
10629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10630if test "${ac_cv_prog_F77+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632else
10633 if test -n "$F77"; then
10634 ac_cv_prog_F77="$F77" # Let the user override the test.
10635else
10636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10637for as_dir in $PATH
10638do
10639 IFS=$as_save_IFS
10640 test -z "$as_dir" && as_dir=.
10641 for ac_exec_ext in '' $ac_executable_extensions; do
10642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10643 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10645 break 2
10646 fi
10647done
10648done
10649
10650fi
10651fi
10652F77=$ac_cv_prog_F77
10653if test -n "$F77"; then
10654 echo "$as_me:$LINENO: result: $F77" >&5
10655echo "${ECHO_T}$F77" >&6
10656else
10657 echo "$as_me:$LINENO: result: no" >&5
10658echo "${ECHO_T}no" >&6
10659fi
10660
10661 test -n "$F77" && break
10662 done
10663fi
10664if test -z "$F77"; then
10665 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010666 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 +000010667do
10668 # Extract the first word of "$ac_prog", so it can be a program name with args.
10669set dummy $ac_prog; ac_word=$2
10670echo "$as_me:$LINENO: checking for $ac_word" >&5
10671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10672if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
10675 if test -n "$ac_ct_F77"; then
10676 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10677else
10678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679for as_dir in $PATH
10680do
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10685 ac_cv_prog_ac_ct_F77="$ac_prog"
10686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 break 2
10688 fi
10689done
10690done
10691
10692fi
10693fi
10694ac_ct_F77=$ac_cv_prog_ac_ct_F77
10695if test -n "$ac_ct_F77"; then
10696 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10697echo "${ECHO_T}$ac_ct_F77" >&6
10698else
10699 echo "$as_me:$LINENO: result: no" >&5
10700echo "${ECHO_T}no" >&6
10701fi
10702
10703 test -n "$ac_ct_F77" && break
10704done
10705
10706 F77=$ac_ct_F77
10707fi
10708
10709
10710# Provide some information about the compiler.
Misha Brukman19098e52005-05-12 22:15:34 +000010711echo "$as_me:10711:" \
John Criswell47fdd832003-07-14 16:52:07 +000010712 "checking for Fortran 77 compiler version" >&5
10713ac_compiler=`set X $ac_compile; echo $2`
10714{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10715 (eval $ac_compiler --version </dev/null >&5) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }
10719{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10720 (eval $ac_compiler -v </dev/null >&5) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }
10724{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10725 (eval $ac_compiler -V </dev/null >&5) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010729rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010730
10731# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010732# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010733ac_save_ext=$ac_ext
10734ac_ext=F
10735echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10736echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10737if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else
10740 cat >conftest.$ac_ext <<_ACEOF
10741 program main
10742#ifndef __GNUC__
10743 choke me
10744#endif
10745
10746 end
10747_ACEOF
10748rm -f conftest.$ac_objext
10749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010750 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010751 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010757 { ac_try='test -z "$ac_f77_werror_flag"
10758 || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_compiler_gnu=yes
10771else
10772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010773sed 's/^/| /' conftest.$ac_ext >&5
10774
John Criswell47fdd832003-07-14 16:52:07 +000010775ac_compiler_gnu=no
10776fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010778ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10779
10780fi
10781echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10782echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10783ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010784ac_test_FFLAGS=${FFLAGS+set}
10785ac_save_FFLAGS=$FFLAGS
10786FFLAGS=
10787echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10788echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10789if test "${ac_cv_prog_f77_g+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791else
10792 FFLAGS=-g
10793cat >conftest.$ac_ext <<_ACEOF
10794 program main
10795
10796 end
10797_ACEOF
10798rm -f conftest.$ac_objext
10799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010800 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010801 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010802 grep -v '^ *+' conftest.er1 >conftest.err
10803 rm -f conftest.er1
10804 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010807 { ac_try='test -z "$ac_f77_werror_flag"
10808 || test ! -s conftest.err'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; } &&
10814 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 ac_cv_prog_f77_g=yes
10821else
10822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010823sed 's/^/| /' conftest.$ac_ext >&5
10824
John Criswell47fdd832003-07-14 16:52:07 +000010825ac_cv_prog_f77_g=no
10826fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010828
10829fi
10830echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10831echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10832if test "$ac_test_FFLAGS" = set; then
10833 FFLAGS=$ac_save_FFLAGS
10834elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010835 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010836 FFLAGS="-g -O2"
10837 else
10838 FFLAGS="-g"
10839 fi
10840else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010841 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010842 FFLAGS="-O2"
10843 else
10844 FFLAGS=
10845 fi
10846fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010847
10848G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010849ac_ext=c
10850ac_cpp='$CPP $CPPFLAGS'
10851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10853ac_compiler_gnu=$ac_cv_c_compiler_gnu
10854
10855
10856
10857# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10858
10859# find the maximum length of command line arguments
10860echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10861echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10862if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864else
10865 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010866 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010867
10868 case $build_os in
10869 msdosdjgpp*)
10870 # On DJGPP, this test can blow up pretty badly due to problems in libc
10871 # (any single argument exceeding 2000 bytes causes a buffer overrun
10872 # during glob expansion). Even if it were fixed, the result of this
10873 # check would be larger than it should be.
10874 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10875 ;;
10876
10877 gnu*)
10878 # Under GNU Hurd, this test is not required because there is
10879 # no limit to the length of command line arguments.
10880 # Libtool will interpret -1 as no limit whatsoever
10881 lt_cv_sys_max_cmd_len=-1;
10882 ;;
10883
10884 cygwin* | mingw*)
10885 # On Win9x/ME, this test blows up -- it succeeds, but takes
10886 # about 5 minutes as the teststring grows exponentially.
10887 # Worse, since 9x/ME are not pre-emptively multitasking,
10888 # you end up with a "frozen" computer, even though with patience
10889 # the test eventually succeeds (with a max line length of 256k).
10890 # Instead, let's just punt: use the minimum linelength reported by
10891 # all of the supported platforms: 8192 (on NT/2K/XP).
10892 lt_cv_sys_max_cmd_len=8192;
10893 ;;
10894
Reid Spencer2706f8c2004-09-19 23:53:36 +000010895 amigaos*)
10896 # On AmigaOS with pdksh, this test takes hours, literally.
10897 # So we just punt and use a minimum line length of 8192.
10898 lt_cv_sys_max_cmd_len=8192;
10899 ;;
10900
10901 netbsd* | freebsd* | openbsd* | darwin* )
10902 # This has been around since 386BSD, at least. Likely further.
10903 if test -x /sbin/sysctl; then
10904 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10905 elif test -x /usr/sbin/sysctl; then
10906 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10907 else
10908 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10909 fi
10910 # And add a safety zone
10911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10912 ;;
10913
John Criswell47fdd832003-07-14 16:52:07 +000010914 *)
10915 # If test is not a shell built-in, we'll probably end up computing a
10916 # maximum length that is only half of the actual maximum length, but
10917 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010918 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10919 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10920 = "XX$teststring") >/dev/null 2>&1 &&
10921 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010922 lt_cv_sys_max_cmd_len=$new_result &&
10923 test $i != 17 # 1/2 MB should be enough
10924 do
10925 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010926 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010927 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010928 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010929 # Add a significant safety factor because C++ compilers can tack on massive
10930 # amounts of additional arguments before passing them to the linker.
10931 # It appears as though 1/2 is a usable value.
10932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10933 ;;
10934 esac
10935
10936fi
10937
10938if test -n $lt_cv_sys_max_cmd_len ; then
10939 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10940echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10941else
10942 echo "$as_me:$LINENO: result: none" >&5
10943echo "${ECHO_T}none" >&6
10944fi
10945
10946
10947
10948
10949# Check for command to grab the raw symbol name followed by C symbol from nm.
10950echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10951echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10952if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954else
10955
10956# These are sane defaults that work on at least a few old systems.
10957# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10958
10959# Character class describing NM global symbol codes.
10960symcode='[BCDEGRST]'
10961
10962# Regexp to match symbols that can be accessed directly from C.
10963sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10964
10965# Transform the above into a raw symbol and a C symbol.
10966symxfrm='\1 \2\3 \3'
10967
10968# Transform an extracted symbol line into a proper C declaration
10969lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10970
10971# Transform an extracted symbol line into symbol name and symbol address
10972lt_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'"
10973
10974# Define system-specific variables.
10975case $host_os in
10976aix*)
10977 symcode='[BCDT]'
10978 ;;
10979cygwin* | mingw* | pw32*)
10980 symcode='[ABCDGISTW]'
10981 ;;
10982hpux*) # Its linker distinguishes data from code symbols
10983 if test "$host_cpu" = ia64; then
10984 symcode='[ABCDEGRST]'
10985 fi
10986 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10987 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'"
10988 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010989linux*)
10990 if test "$host_cpu" = ia64; then
10991 symcode='[ABCDGIRSTW]'
10992 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10993 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'"
10994 fi
10995 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010996irix* | nonstopux*)
10997 symcode='[BCDEGRST]'
10998 ;;
10999osf*)
11000 symcode='[BCDEGQRST]'
11001 ;;
11002solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011003 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011004 ;;
11005sysv4)
11006 symcode='[DFNSTU]'
11007 ;;
11008esac
11009
11010# Handle CRLF in mingw tool chain
11011opt_cr=
11012case $build_os in
11013mingw*)
11014 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11015 ;;
11016esac
11017
11018# If we're using GNU nm, then use its standard symbol codes.
11019case `$NM -V 2>&1` in
11020*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011021 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011022esac
11023
11024# Try without a prefix undercore, then with it.
11025for ac_symprfx in "" "_"; do
11026
11027 # Write the raw and C identifiers.
11028 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11029
11030 # Check to see that the pipe works correctly.
11031 pipe_works=no
11032
11033 rm -f conftest*
11034 cat > conftest.$ac_ext <<EOF
11035#ifdef __cplusplus
11036extern "C" {
11037#endif
11038char nm_test_var;
11039void nm_test_func(){}
11040#ifdef __cplusplus
11041}
11042#endif
11043int main(){nm_test_var='a';nm_test_func();return(0);}
11044EOF
11045
11046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11047 (eval $ac_compile) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; then
11051 # Now try to grab the symbols.
11052 nlist=conftest.nm
11053 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11054 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } && test -s "$nlist"; then
11058 # Try sorting and uniquifying the output.
11059 if sort "$nlist" | uniq > "$nlist"T; then
11060 mv -f "$nlist"T "$nlist"
11061 else
11062 rm -f "$nlist"T
11063 fi
11064
11065 # Make sure that we snagged all the symbols we need.
11066 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11067 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11068 cat <<EOF > conftest.$ac_ext
11069#ifdef __cplusplus
11070extern "C" {
11071#endif
11072
11073EOF
11074 # Now generate the symbol file.
11075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11076
11077 cat <<EOF >> conftest.$ac_ext
11078#if defined (__STDC__) && __STDC__
11079# define lt_ptr_t void *
11080#else
11081# define lt_ptr_t char *
11082# define const
11083#endif
11084
11085/* The mapping between symbol names and symbols. */
11086const struct {
11087 const char *name;
11088 lt_ptr_t address;
11089}
11090lt_preloaded_symbols[] =
11091{
11092EOF
11093 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11094 cat <<\EOF >> conftest.$ac_ext
11095 {0, (lt_ptr_t) 0}
11096};
11097
11098#ifdef __cplusplus
11099}
11100#endif
11101EOF
11102 # Now try linking the two files.
11103 mv conftest.$ac_objext conftstm.$ac_objext
11104 lt_save_LIBS="$LIBS"
11105 lt_save_CFLAGS="$CFLAGS"
11106 LIBS="conftstm.$ac_objext"
11107 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109 (eval $ac_link) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11113 pipe_works=yes
11114 fi
11115 LIBS="$lt_save_LIBS"
11116 CFLAGS="$lt_save_CFLAGS"
11117 else
11118 echo "cannot find nm_test_func in $nlist" >&5
11119 fi
11120 else
11121 echo "cannot find nm_test_var in $nlist" >&5
11122 fi
11123 else
11124 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11125 fi
11126 else
11127 echo "$progname: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11129 fi
11130 rm -f conftest* conftst*
11131
11132 # Do not use the global_symbol_pipe unless it works.
11133 if test "$pipe_works" = yes; then
11134 break
11135 else
11136 lt_cv_sys_global_symbol_pipe=
11137 fi
11138done
11139
11140fi
11141
11142if test -z "$lt_cv_sys_global_symbol_pipe"; then
11143 lt_cv_sys_global_symbol_to_cdecl=
11144fi
11145if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11146 echo "$as_me:$LINENO: result: failed" >&5
11147echo "${ECHO_T}failed" >&6
11148else
11149 echo "$as_me:$LINENO: result: ok" >&5
11150echo "${ECHO_T}ok" >&6
11151fi
11152
11153echo "$as_me:$LINENO: checking for objdir" >&5
11154echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11155if test "${lt_cv_objdir+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157else
11158 rm -f .libs 2>/dev/null
11159mkdir .libs 2>/dev/null
11160if test -d .libs; then
11161 lt_cv_objdir=.libs
11162else
11163 # MS-DOS does not allow filenames that begin with a dot.
11164 lt_cv_objdir=_libs
11165fi
11166rmdir .libs 2>/dev/null
11167fi
11168echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11169echo "${ECHO_T}$lt_cv_objdir" >&6
11170objdir=$lt_cv_objdir
11171
11172
11173
11174
11175
11176case $host_os in
11177aix3*)
11178 # AIX sometimes has problems with the GCC collect2 program. For some
11179 # reason, if we set the COLLECT_NAMES environment variable, the problems
11180 # vanish in a puff of smoke.
11181 if test "X${COLLECT_NAMES+set}" != Xset; then
11182 COLLECT_NAMES=
11183 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011184 fi
11185 ;;
11186esac
11187
John Criswell47fdd832003-07-14 16:52:07 +000011188# Sed substitution that helps us do robust quoting. It backslashifies
11189# metacharacters that are still active within double-quoted strings.
11190Xsed='sed -e s/^X//'
11191sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11192
11193# Same as above, but do not quote variable references.
11194double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11195
11196# Sed substitution to delay expansion of an escaped shell variable in a
11197# double_quote_subst'ed string.
11198delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11199
11200# Sed substitution to avoid accidental globbing in evaled expressions
11201no_glob_subst='s/\*/\\\*/g'
11202
11203# Constants:
11204rm="rm -f"
11205
11206# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011207default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011208can_build_shared=yes
11209
11210# All known linkers require a `.a' archive for static linking (except M$VC,
11211# which needs '.lib').
11212libext=a
11213ltmain="$ac_aux_dir/ltmain.sh"
11214ofile="$default_ofile"
11215with_gnu_ld="$lt_cv_prog_gnu_ld"
11216
11217if test -n "$ac_tool_prefix"; then
11218 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11219set dummy ${ac_tool_prefix}ar; ac_word=$2
11220echo "$as_me:$LINENO: checking for $ac_word" >&5
11221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11222if test "${ac_cv_prog_AR+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224else
11225 if test -n "$AR"; then
11226 ac_cv_prog_AR="$AR" # Let the user override the test.
11227else
11228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229for as_dir in $PATH
11230do
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11235 ac_cv_prog_AR="${ac_tool_prefix}ar"
11236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 break 2
11238 fi
11239done
11240done
11241
11242fi
11243fi
11244AR=$ac_cv_prog_AR
11245if test -n "$AR"; then
11246 echo "$as_me:$LINENO: result: $AR" >&5
11247echo "${ECHO_T}$AR" >&6
11248else
11249 echo "$as_me:$LINENO: result: no" >&5
11250echo "${ECHO_T}no" >&6
11251fi
11252
11253fi
11254if test -z "$ac_cv_prog_AR"; then
11255 ac_ct_AR=$AR
11256 # Extract the first word of "ar", so it can be a program name with args.
11257set dummy ar; ac_word=$2
11258echo "$as_me:$LINENO: checking for $ac_word" >&5
11259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11260if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262else
11263 if test -n "$ac_ct_AR"; then
11264 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11265else
11266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267for as_dir in $PATH
11268do
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273 ac_cv_prog_ac_ct_AR="ar"
11274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11275 break 2
11276 fi
11277done
11278done
11279
11280 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11281fi
11282fi
11283ac_ct_AR=$ac_cv_prog_ac_ct_AR
11284if test -n "$ac_ct_AR"; then
11285 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11286echo "${ECHO_T}$ac_ct_AR" >&6
11287else
11288 echo "$as_me:$LINENO: result: no" >&5
11289echo "${ECHO_T}no" >&6
11290fi
11291
11292 AR=$ac_ct_AR
11293else
11294 AR="$ac_cv_prog_AR"
11295fi
11296
John Criswell7a73b802003-06-30 21:59:07 +000011297if test -n "$ac_tool_prefix"; then
11298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11299set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11300echo "$as_me:$LINENO: checking for $ac_word" >&5
11301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11302if test "${ac_cv_prog_RANLIB+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11304else
11305 if test -n "$RANLIB"; then
11306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11307else
11308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309for as_dir in $PATH
11310do
11311 IFS=$as_save_IFS
11312 test -z "$as_dir" && as_dir=.
11313 for ac_exec_ext in '' $ac_executable_extensions; do
11314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 break 2
11318 fi
11319done
11320done
11321
11322fi
11323fi
11324RANLIB=$ac_cv_prog_RANLIB
11325if test -n "$RANLIB"; then
11326 echo "$as_me:$LINENO: result: $RANLIB" >&5
11327echo "${ECHO_T}$RANLIB" >&6
11328else
11329 echo "$as_me:$LINENO: result: no" >&5
11330echo "${ECHO_T}no" >&6
11331fi
11332
11333fi
11334if test -z "$ac_cv_prog_RANLIB"; then
11335 ac_ct_RANLIB=$RANLIB
11336 # Extract the first word of "ranlib", so it can be a program name with args.
11337set dummy ranlib; ac_word=$2
11338echo "$as_me:$LINENO: checking for $ac_word" >&5
11339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11340if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342else
11343 if test -n "$ac_ct_RANLIB"; then
11344 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11345else
11346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347for as_dir in $PATH
11348do
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11353 ac_cv_prog_ac_ct_RANLIB="ranlib"
11354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 break 2
11356 fi
11357done
11358done
11359
11360 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11361fi
11362fi
11363ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11364if test -n "$ac_ct_RANLIB"; then
11365 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11366echo "${ECHO_T}$ac_ct_RANLIB" >&6
11367else
11368 echo "$as_me:$LINENO: result: no" >&5
11369echo "${ECHO_T}no" >&6
11370fi
11371
11372 RANLIB=$ac_ct_RANLIB
11373else
11374 RANLIB="$ac_cv_prog_RANLIB"
11375fi
11376
11377if test -n "$ac_tool_prefix"; then
11378 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11379set dummy ${ac_tool_prefix}strip; ac_word=$2
11380echo "$as_me:$LINENO: checking for $ac_word" >&5
11381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11382if test "${ac_cv_prog_STRIP+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11384else
11385 if test -n "$STRIP"; then
11386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11387else
11388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389for as_dir in $PATH
11390do
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11395 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 break 2
11398 fi
11399done
11400done
11401
11402fi
11403fi
11404STRIP=$ac_cv_prog_STRIP
11405if test -n "$STRIP"; then
11406 echo "$as_me:$LINENO: result: $STRIP" >&5
11407echo "${ECHO_T}$STRIP" >&6
11408else
11409 echo "$as_me:$LINENO: result: no" >&5
11410echo "${ECHO_T}no" >&6
11411fi
11412
11413fi
11414if test -z "$ac_cv_prog_STRIP"; then
11415 ac_ct_STRIP=$STRIP
11416 # Extract the first word of "strip", so it can be a program name with args.
11417set dummy strip; ac_word=$2
11418echo "$as_me:$LINENO: checking for $ac_word" >&5
11419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11420if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11422else
11423 if test -n "$ac_ct_STRIP"; then
11424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11425else
11426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427for as_dir in $PATH
11428do
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11433 ac_cv_prog_ac_ct_STRIP="strip"
11434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 break 2
11436 fi
11437done
11438done
11439
11440 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11441fi
11442fi
11443ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11444if test -n "$ac_ct_STRIP"; then
11445 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11446echo "${ECHO_T}$ac_ct_STRIP" >&6
11447else
11448 echo "$as_me:$LINENO: result: no" >&5
11449echo "${ECHO_T}no" >&6
11450fi
11451
11452 STRIP=$ac_ct_STRIP
11453else
11454 STRIP="$ac_cv_prog_STRIP"
11455fi
11456
11457
John Criswell7a73b802003-06-30 21:59:07 +000011458old_CC="$CC"
11459old_CFLAGS="$CFLAGS"
11460
11461# Set sane defaults for various variables
11462test -z "$AR" && AR=ar
11463test -z "$AR_FLAGS" && AR_FLAGS=cru
11464test -z "$AS" && AS=as
11465test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011466test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011467test -z "$DLLTOOL" && DLLTOOL=dlltool
11468test -z "$LD" && LD=ld
11469test -z "$LN_S" && LN_S="ln -s"
11470test -z "$MAGIC_CMD" && MAGIC_CMD=file
11471test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011472test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011473test -z "$OBJDUMP" && OBJDUMP=objdump
11474test -z "$RANLIB" && RANLIB=:
11475test -z "$STRIP" && STRIP=:
11476test -z "$ac_objext" && ac_objext=o
11477
John Criswell7a73b802003-06-30 21:59:07 +000011478# Determine commands to create old-style static archives.
11479old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11480old_postinstall_cmds='chmod 644 $oldlib'
11481old_postuninstall_cmds=
11482
11483if test -n "$RANLIB"; then
11484 case $host_os in
11485 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011486 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011487 ;;
11488 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011489 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011490 ;;
11491 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011492 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011493fi
11494
Reid Spencer2706f8c2004-09-19 23:53:36 +000011495cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11496
John Criswell47fdd832003-07-14 16:52:07 +000011497# Only perform the check for file, if the check method requires it
11498case $deplibs_check_method in
11499file_magic*)
11500 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11501 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11502echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11503if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011505else
John Criswell47fdd832003-07-14 16:52:07 +000011506 case $MAGIC_CMD in
11507[\\/*] | ?:[\\/]*)
11508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11509 ;;
11510*)
11511 lt_save_MAGIC_CMD="$MAGIC_CMD"
11512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11514 for ac_dir in $ac_dummy; do
11515 IFS="$lt_save_ifs"
11516 test -z "$ac_dir" && ac_dir=.
11517 if test -f $ac_dir/${ac_tool_prefix}file; then
11518 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11519 if test -n "$file_magic_test_file"; then
11520 case $deplibs_check_method in
11521 "file_magic "*)
11522 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11525 $EGREP "$file_magic_regex" > /dev/null; then
11526 :
11527 else
11528 cat <<EOF 1>&2
11529
11530*** Warning: the command libtool uses to detect shared libraries,
11531*** $file_magic_cmd, produces output that libtool cannot recognize.
11532*** The result is that libtool may fail to recognize shared libraries
11533*** as such. This will affect the creation of libtool libraries that
11534*** depend on shared libraries, but programs linked with such libtool
11535*** libraries will work regardless of this problem. Nevertheless, you
11536*** may want to report the problem to your system manager and/or to
11537*** bug-libtool@gnu.org
11538
11539EOF
11540 fi ;;
11541 esac
11542 fi
11543 break
11544 fi
11545 done
11546 IFS="$lt_save_ifs"
11547 MAGIC_CMD="$lt_save_MAGIC_CMD"
11548 ;;
11549esac
John Criswell7a73b802003-06-30 21:59:07 +000011550fi
John Criswell7a73b802003-06-30 21:59:07 +000011551
John Criswell47fdd832003-07-14 16:52:07 +000011552MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11553if test -n "$MAGIC_CMD"; then
11554 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11555echo "${ECHO_T}$MAGIC_CMD" >&6
11556else
11557 echo "$as_me:$LINENO: result: no" >&5
11558echo "${ECHO_T}no" >&6
11559fi
John Criswell7a73b802003-06-30 21:59:07 +000011560
John Criswell47fdd832003-07-14 16:52:07 +000011561if test -z "$lt_cv_path_MAGIC_CMD"; then
11562 if test -n "$ac_tool_prefix"; then
11563 echo "$as_me:$LINENO: checking for file" >&5
11564echo $ECHO_N "checking for file... $ECHO_C" >&6
11565if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567else
11568 case $MAGIC_CMD in
11569[\\/*] | ?:[\\/]*)
11570 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11571 ;;
11572*)
11573 lt_save_MAGIC_CMD="$MAGIC_CMD"
11574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11575 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11576 for ac_dir in $ac_dummy; do
11577 IFS="$lt_save_ifs"
11578 test -z "$ac_dir" && ac_dir=.
11579 if test -f $ac_dir/file; then
11580 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11581 if test -n "$file_magic_test_file"; then
11582 case $deplibs_check_method in
11583 "file_magic "*)
11584 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11586 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11587 $EGREP "$file_magic_regex" > /dev/null; then
11588 :
11589 else
11590 cat <<EOF 1>&2
11591
11592*** Warning: the command libtool uses to detect shared libraries,
11593*** $file_magic_cmd, produces output that libtool cannot recognize.
11594*** The result is that libtool may fail to recognize shared libraries
11595*** as such. This will affect the creation of libtool libraries that
11596*** depend on shared libraries, but programs linked with such libtool
11597*** libraries will work regardless of this problem. Nevertheless, you
11598*** may want to report the problem to your system manager and/or to
11599*** bug-libtool@gnu.org
11600
11601EOF
11602 fi ;;
11603 esac
11604 fi
11605 break
11606 fi
11607 done
11608 IFS="$lt_save_ifs"
11609 MAGIC_CMD="$lt_save_MAGIC_CMD"
11610 ;;
11611esac
11612fi
11613
11614MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11615if test -n "$MAGIC_CMD"; then
11616 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11617echo "${ECHO_T}$MAGIC_CMD" >&6
11618else
11619 echo "$as_me:$LINENO: result: no" >&5
11620echo "${ECHO_T}no" >&6
11621fi
11622
11623 else
11624 MAGIC_CMD=:
11625 fi
11626fi
11627
11628 fi
11629 ;;
11630esac
11631
Reid Spencer17795972004-11-18 09:47:37 +000011632enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011633enable_win32_dll=no
11634
11635# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11636if test "${enable_libtool_lock+set}" = set; then
11637 enableval="$enable_libtool_lock"
11638
11639fi;
11640test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11641
John Criswell7a73b802003-06-30 21:59:07 +000011642
11643# Check whether --with-pic or --without-pic was given.
11644if test "${with_pic+set}" = set; then
11645 withval="$with_pic"
11646 pic_mode="$withval"
11647else
11648 pic_mode=default
11649fi;
11650test -z "$pic_mode" && pic_mode=default
11651
John Criswell47fdd832003-07-14 16:52:07 +000011652# Use C for the default configuration in the libtool script
11653tagname=
11654lt_save_CC="$CC"
11655ac_ext=c
11656ac_cpp='$CPP $CPPFLAGS'
11657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11659ac_compiler_gnu=$ac_cv_c_compiler_gnu
11660
11661
11662# Source file extension for C test sources.
11663ac_ext=c
11664
11665# Object file extension for compiled C test sources.
11666objext=o
11667objext=$objext
11668
11669# Code to be used in simple compile tests
11670lt_simple_compile_test_code="int some_variable = 0;\n"
11671
11672# Code to be used in simple link tests
11673lt_simple_link_test_code='int main(){return(0);}\n'
11674
11675
11676# If no C compiler was specified, use CC.
11677LTCC=${LTCC-"$CC"}
11678
11679# Allow CC to be a program name with arguments.
11680compiler=$CC
11681
11682
11683#
11684# Check for any special shared library compilation flags.
11685#
11686lt_prog_cc_shlib=
11687if test "$GCC" = no; then
11688 case $host_os in
11689 sco3.2v5*)
11690 lt_prog_cc_shlib='-belf'
11691 ;;
11692 esac
11693fi
11694if test -n "$lt_prog_cc_shlib"; then
11695 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11696echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11697 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11698 else
11699 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11700echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11701 lt_cv_prog_cc_can_build_shared=no
11702 fi
11703fi
11704
11705
11706#
11707# Check to make sure the static flag actually works.
11708#
11709echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11710echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11711if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713else
John Criswell47fdd832003-07-14 16:52:07 +000011714 lt_prog_compiler_static_works=no
11715 save_LDFLAGS="$LDFLAGS"
11716 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11717 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11719 # The compiler can only warn and ignore the option if not recognized
11720 # So say no if there are warnings
11721 if test -s conftest.err; then
11722 # Append any errors to the config.log.
11723 cat conftest.err 1>&5
11724 else
11725 lt_prog_compiler_static_works=yes
11726 fi
11727 fi
11728 $rm conftest*
11729 LDFLAGS="$save_LDFLAGS"
11730
11731fi
11732echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11733echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11734
11735if test x"$lt_prog_compiler_static_works" = xyes; then
11736 :
11737else
11738 lt_prog_compiler_static=
11739fi
11740
11741
11742
John Criswell47fdd832003-07-14 16:52:07 +000011743
11744lt_prog_compiler_no_builtin_flag=
11745
11746if test "$GCC" = yes; then
11747 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11748
Reid Spencer2706f8c2004-09-19 23:53:36 +000011749
11750echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011751echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11752if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754else
11755 lt_cv_prog_compiler_rtti_exceptions=no
11756 ac_outfile=conftest.$ac_objext
11757 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11758 lt_compiler_flag="-fno-rtti -fno-exceptions"
11759 # Insert the option either (1) after the last *FLAGS variable, or
11760 # (2) before a word containing "conftest.", or (3) at the end.
11761 # Note that $ac_compile itself does not contain backslashes and begins
11762 # with a dollar sign (not a hyphen), so the echo should work correctly.
11763 # The option is referenced via a variable to avoid confusing sed.
11764 lt_compile=`echo "$ac_compile" | $SED \
11765 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11767 -e 's:$: $lt_compiler_flag:'`
Misha Brukman19098e52005-05-12 22:15:34 +000011768 (eval echo "\"\$as_me:11768: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011769 (eval "$lt_compile" 2>conftest.err)
11770 ac_status=$?
11771 cat conftest.err >&5
Misha Brukman19098e52005-05-12 22:15:34 +000011772 echo "$as_me:11772: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011773 if (exit $ac_status) && test -s "$ac_outfile"; then
11774 # The compiler can only warn and ignore the option if not recognized
11775 # So say no if there are warnings
11776 if test ! -s conftest.err; then
11777 lt_cv_prog_compiler_rtti_exceptions=yes
11778 fi
11779 fi
11780 $rm conftest*
11781
11782fi
11783echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11784echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11785
11786if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11787 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11788else
11789 :
11790fi
11791
11792fi
11793
11794lt_prog_compiler_wl=
11795lt_prog_compiler_pic=
11796lt_prog_compiler_static=
11797
11798echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11799echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011800
11801 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011802 lt_prog_compiler_wl='-Wl,'
11803 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011804
11805 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011806 aix*)
11807 # All AIX code is PIC.
11808 if test "$host_cpu" = ia64; then
11809 # AIX 5 now supports IA64 processor
11810 lt_prog_compiler_static='-Bstatic'
11811 fi
John Criswell7a73b802003-06-30 21:59:07 +000011812 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011813
John Criswell7a73b802003-06-30 21:59:07 +000011814 amigaos*)
11815 # FIXME: we need at least 68020 code to build shared libraries, but
11816 # adding the `-m68020' flag to GCC prevents building anything better,
11817 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011818 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011819 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011820
11821 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011822 # PIC is the default for these OSes.
11823 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011824
11825 mingw* | pw32* | os2*)
11826 # This hack is so that the source file can tell whether it is being
11827 # built for inclusion in a dll (and should export symbols for example).
11828 lt_prog_compiler_pic='-DDLL_EXPORT'
11829 ;;
11830
John Criswell7a73b802003-06-30 21:59:07 +000011831 darwin* | rhapsody*)
11832 # PIC is the default on this platform
11833 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011834 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011835 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011836
11837 msdosdjgpp*)
11838 # Just because we use GCC doesn't mean we suddenly get shared libraries
11839 # on systems that don't support them.
11840 lt_prog_compiler_can_build_shared=no
11841 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011842 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011843
John Criswell7a73b802003-06-30 21:59:07 +000011844 sysv4*MP*)
11845 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011846 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011847 fi
11848 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011849
11850 hpux*)
11851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11852 # not for PA HP-UX.
11853 case "$host_cpu" in
11854 hppa*64*|ia64*)
11855 # +Z the default
11856 ;;
11857 *)
11858 lt_prog_compiler_pic='-fPIC'
11859 ;;
11860 esac
11861 ;;
11862
John Criswell7a73b802003-06-30 21:59:07 +000011863 *)
John Criswell47fdd832003-07-14 16:52:07 +000011864 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011865 ;;
11866 esac
11867 else
John Criswell47fdd832003-07-14 16:52:07 +000011868 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011869 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011870 aix*)
11871 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011872 if test "$host_cpu" = ia64; then
11873 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011874 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011875 else
John Criswell47fdd832003-07-14 16:52:07 +000011876 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011877 fi
11878 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011879 darwin*)
11880 # PIC is the default on this platform
11881 # Common symbols not allowed in MH_DYLIB files
11882 case "$cc_basename" in
11883 xlc*)
11884 lt_prog_compiler_pic='-qnocommon'
11885 lt_prog_compiler_wl='-Wl,'
11886 ;;
11887 esac
11888 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011889
John Criswell47fdd832003-07-14 16:52:07 +000011890 mingw* | pw32* | os2*)
11891 # This hack is so that the source file can tell whether it is being
11892 # built for inclusion in a dll (and should export symbols for example).
11893 lt_prog_compiler_pic='-DDLL_EXPORT'
11894 ;;
11895
John Criswell7a73b802003-06-30 21:59:07 +000011896 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011897 lt_prog_compiler_wl='-Wl,'
11898 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11899 # not for PA HP-UX.
11900 case "$host_cpu" in
11901 hppa*64*|ia64*)
11902 # +Z the default
11903 ;;
11904 *)
11905 lt_prog_compiler_pic='+Z'
11906 ;;
11907 esac
11908 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11909 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011910 ;;
11911
John Criswell47fdd832003-07-14 16:52:07 +000011912 irix5* | irix6* | nonstopux*)
11913 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011914 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011915 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011916 ;;
11917
11918 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011919 lt_prog_compiler_pic='-KPIC'
11920 lt_prog_compiler_static='-Bstatic'
11921 ;;
11922
11923 linux*)
11924 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011925 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011926 lt_prog_compiler_wl='-Wl,'
11927 lt_prog_compiler_pic='-KPIC'
11928 lt_prog_compiler_static='-static'
11929 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011930 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011931 lt_prog_compiler_wl='-Wl,'
11932 # All Alpha code is PIC.
11933 lt_prog_compiler_static='-non_shared'
11934 ;;
11935 esac
John Criswell7a73b802003-06-30 21:59:07 +000011936 ;;
11937
11938 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011939 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011940 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011941 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011942 ;;
11943
11944 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011945 lt_prog_compiler_pic='-Kpic'
11946 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011947 ;;
11948
11949 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011950 lt_prog_compiler_wl='-Wl,'
11951 lt_prog_compiler_pic='-KPIC'
11952 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011953 ;;
11954
11955 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011956 lt_prog_compiler_wl='-Qoption ld '
11957 lt_prog_compiler_pic='-PIC'
11958 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011959 ;;
11960
11961 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011962 lt_prog_compiler_wl='-Wl,'
11963 lt_prog_compiler_pic='-KPIC'
11964 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011965 ;;
11966
11967 sysv4*MP*)
11968 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011969 lt_prog_compiler_pic='-Kconform_pic'
11970 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011971 fi
11972 ;;
11973
John Criswell47fdd832003-07-14 16:52:07 +000011974 uts4*)
11975 lt_prog_compiler_pic='-pic'
11976 lt_prog_compiler_static='-Bstatic'
11977 ;;
11978
John Criswell7a73b802003-06-30 21:59:07 +000011979 *)
John Criswell47fdd832003-07-14 16:52:07 +000011980 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011981 ;;
11982 esac
11983 fi
11984
John Criswell47fdd832003-07-14 16:52:07 +000011985echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11986echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011987
John Criswell47fdd832003-07-14 16:52:07 +000011988#
11989# Check to make sure the PIC flag actually works.
11990#
11991if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011992
11993echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011994echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11995if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011996 echo $ECHO_N "(cached) $ECHO_C" >&6
11997else
John Criswell47fdd832003-07-14 16:52:07 +000011998 lt_prog_compiler_pic_works=no
11999 ac_outfile=conftest.$ac_objext
12000 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12001 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12002 # Insert the option either (1) after the last *FLAGS variable, or
12003 # (2) before a word containing "conftest.", or (3) at the end.
12004 # Note that $ac_compile itself does not contain backslashes and begins
12005 # with a dollar sign (not a hyphen), so the echo should work correctly.
12006 # The option is referenced via a variable to avoid confusing sed.
12007 lt_compile=`echo "$ac_compile" | $SED \
12008 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12010 -e 's:$: $lt_compiler_flag:'`
Misha Brukman19098e52005-05-12 22:15:34 +000012011 (eval echo "\"\$as_me:12011: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012012 (eval "$lt_compile" 2>conftest.err)
12013 ac_status=$?
12014 cat conftest.err >&5
Misha Brukman19098e52005-05-12 22:15:34 +000012015 echo "$as_me:12015: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012016 if (exit $ac_status) && test -s "$ac_outfile"; then
12017 # The compiler can only warn and ignore the option if not recognized
12018 # So say no if there are warnings
12019 if test ! -s conftest.err; then
12020 lt_prog_compiler_pic_works=yes
12021 fi
12022 fi
12023 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012024
John Criswell47fdd832003-07-14 16:52:07 +000012025fi
12026echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12027echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012028
John Criswell47fdd832003-07-14 16:52:07 +000012029if test x"$lt_prog_compiler_pic_works" = xyes; then
12030 case $lt_prog_compiler_pic in
12031 "" | " "*) ;;
12032 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12033 esac
John Criswell7a73b802003-06-30 21:59:07 +000012034else
John Criswell47fdd832003-07-14 16:52:07 +000012035 lt_prog_compiler_pic=
12036 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012037fi
12038
John Criswell7a73b802003-06-30 21:59:07 +000012039fi
John Criswell47fdd832003-07-14 16:52:07 +000012040case "$host_os" in
12041 # For platforms which do not support PIC, -DPIC is meaningless:
12042 *djgpp*)
12043 lt_prog_compiler_pic=
12044 ;;
12045 *)
12046 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12047 ;;
12048esac
John Criswell7a73b802003-06-30 21:59:07 +000012049
John Criswell7a73b802003-06-30 21:59:07 +000012050echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12051echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012052if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054else
John Criswell47fdd832003-07-14 16:52:07 +000012055 lt_cv_prog_compiler_c_o=no
12056 $rm -r conftest 2>/dev/null
12057 mkdir conftest
12058 cd conftest
12059 mkdir out
12060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012061
John Criswell47fdd832003-07-14 16:52:07 +000012062 lt_compiler_flag="-o out/conftest2.$ac_objext"
12063 # Insert the option either (1) after the last *FLAGS variable, or
12064 # (2) before a word containing "conftest.", or (3) at the end.
12065 # Note that $ac_compile itself does not contain backslashes and begins
12066 # with a dollar sign (not a hyphen), so the echo should work correctly.
12067 lt_compile=`echo "$ac_compile" | $SED \
12068 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12070 -e 's:$: $lt_compiler_flag:'`
Misha Brukman19098e52005-05-12 22:15:34 +000012071 (eval echo "\"\$as_me:12071: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012072 (eval "$lt_compile" 2>out/conftest.err)
12073 ac_status=$?
12074 cat out/conftest.err >&5
Misha Brukman19098e52005-05-12 22:15:34 +000012075 echo "$as_me:12075: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012076 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12077 then
12078 # The compiler can only warn and ignore the option if not recognized
12079 # So say no if there are warnings
12080 if test ! -s out/conftest.err; then
12081 lt_cv_prog_compiler_c_o=yes
12082 fi
12083 fi
12084 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012085 $rm conftest*
12086 # SGI C++ compiler will create directory out/ii_files/ for
12087 # template instantiation
12088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12089 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012090 cd ..
12091 rmdir conftest
12092 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012093
12094fi
John Criswell47fdd832003-07-14 16:52:07 +000012095echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12096echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012097
John Criswell7a73b802003-06-30 21:59:07 +000012098
John Criswell7a73b802003-06-30 21:59:07 +000012099hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012100if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012101 # do not overwrite the value of need_locks provided by the user
12102 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12103echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12104 hard_links=yes
12105 $rm conftest*
12106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12107 touch conftest.a
12108 ln conftest.a conftest.b 2>&5 || hard_links=no
12109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12110 echo "$as_me:$LINENO: result: $hard_links" >&5
12111echo "${ECHO_T}$hard_links" >&6
12112 if test "$hard_links" = no; then
12113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12114echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12115 need_locks=warn
12116 fi
12117else
12118 need_locks=no
12119fi
John Criswell7a73b802003-06-30 21:59:07 +000012120
John Criswell47fdd832003-07-14 16:52:07 +000012121echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12122echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12123
12124 runpath_var=
12125 allow_undefined_flag=
12126 enable_shared_with_static_runtimes=no
12127 archive_cmds=
12128 archive_expsym_cmds=
12129 old_archive_From_new_cmds=
12130 old_archive_from_expsyms_cmds=
12131 export_dynamic_flag_spec=
12132 whole_archive_flag_spec=
12133 thread_safe_flag_spec=
12134 hardcode_libdir_flag_spec=
12135 hardcode_libdir_flag_spec_ld=
12136 hardcode_libdir_separator=
12137 hardcode_direct=no
12138 hardcode_minus_L=no
12139 hardcode_shlibpath_var=unsupported
12140 link_all_deplibs=unknown
12141 hardcode_automatic=no
12142 module_cmds=
12143 module_expsym_cmds=
12144 always_export_symbols=no
12145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12146 # include_expsyms should be a list of space-separated symbols to be *always*
12147 # included in the symbol list
12148 include_expsyms=
12149 # exclude_expsyms can be an extended regexp of symbols to exclude
12150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12152 # as well as any symbol that contains `d'.
12153 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12155 # platforms (ab)use it in PIC code, but their linkers get confused if
12156 # the symbol is explicitly referenced. Since portable code cannot
12157 # rely on this symbol name, it's probably fine to never include it in
12158 # preloaded symbol tables.
12159 extract_expsyms_cmds=
12160
12161 case $host_os in
12162 cygwin* | mingw* | pw32*)
12163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12164 # When not using gcc, we currently assume that we are using
12165 # Microsoft Visual C++.
12166 if test "$GCC" != yes; then
12167 with_gnu_ld=no
12168 fi
12169 ;;
12170 openbsd*)
12171 with_gnu_ld=no
12172 ;;
12173 esac
12174
12175 ld_shlibs=yes
12176 if test "$with_gnu_ld" = yes; then
12177 # If archive_cmds runs LD, not CC, wlarc should be empty
12178 wlarc='${wl}'
12179
12180 # See if GNU ld supports shared libraries.
12181 case $host_os in
12182 aix3* | aix4* | aix5*)
12183 # On AIX/PPC, the GNU linker is very broken
12184 if test "$host_cpu" != ia64; then
12185 ld_shlibs=no
12186 cat <<EOF 1>&2
12187
12188*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12189*** to be unable to reliably create shared libraries on AIX.
12190*** Therefore, libtool is disabling shared libraries support. If you
12191*** really care for shared libraries, you may want to modify your PATH
12192*** so that a non-GNU linker is found, and then restart.
12193
12194EOF
12195 fi
12196 ;;
12197
12198 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012199 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 +000012200 hardcode_libdir_flag_spec='-L$libdir'
12201 hardcode_minus_L=yes
12202
12203 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12204 # that the semantics of dynamic libraries on AmigaOS, at least up
12205 # to version 4, is to share data among multiple programs linked
12206 # with the same dynamic library. Since this doesn't match the
12207 # behavior of shared libraries on other platforms, we can't use
12208 # them.
12209 ld_shlibs=no
12210 ;;
12211
12212 beos*)
12213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12214 allow_undefined_flag=unsupported
12215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12216 # support --undefined. This deserves some investigation. FIXME
12217 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12218 else
12219 ld_shlibs=no
12220 fi
12221 ;;
12222
12223 cygwin* | mingw* | pw32*)
12224 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12225 # as there is no search path for DLLs.
12226 hardcode_libdir_flag_spec='-L$libdir'
12227 allow_undefined_flag=unsupported
12228 always_export_symbols=no
12229 enable_shared_with_static_runtimes=yes
12230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12231
12232 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12234 # If the export-symbols file already is a .def file (1st line
12235 # is EXPORTS), use it as is; otherwise, prepend...
12236 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12237 cp $export_symbols $output_objdir/$soname.def;
12238 else
12239 echo EXPORTS > $output_objdir/$soname.def;
12240 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012241 fi~
12242 $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 +000012243 else
12244 ld_shlibs=no
12245 fi
12246 ;;
12247
12248 netbsd*)
12249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12250 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12251 wlarc=
12252 else
12253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12255 fi
12256 ;;
12257
12258 solaris* | sysv5*)
12259 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12260 ld_shlibs=no
12261 cat <<EOF 1>&2
12262
12263*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12264*** create shared libraries on Solaris systems. Therefore, libtool
12265*** is disabling shared libraries support. We urge you to upgrade GNU
12266*** binutils to release 2.9.1 or newer. Another option is to modify
12267*** your PATH or compiler configuration so that the native linker is
12268*** used, and then restart.
12269
12270EOF
12271 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12274 else
12275 ld_shlibs=no
12276 fi
12277 ;;
12278
12279 sunos4*)
12280 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12281 wlarc=
12282 hardcode_direct=yes
12283 hardcode_shlibpath_var=no
12284 ;;
12285
Reid Spencer2706f8c2004-09-19 23:53:36 +000012286 linux*)
12287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12288 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12289 archive_cmds="$tmp_archive_cmds"
12290 supports_anon_versioning=no
12291 case `$LD -v 2>/dev/null` in
12292 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12293 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12294 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12295 *\ 2.11.*) ;; # other 2.11 versions
12296 *) supports_anon_versioning=yes ;;
12297 esac
12298 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012299 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12300cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12301$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012302 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12303 else
12304 archive_expsym_cmds="$tmp_archive_cmds"
12305 fi
12306 else
12307 ld_shlibs=no
12308 fi
12309 ;;
12310
John Criswell47fdd832003-07-14 16:52:07 +000012311 *)
12312 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12315 else
12316 ld_shlibs=no
12317 fi
12318 ;;
12319 esac
12320
12321 if test "$ld_shlibs" = yes; then
12322 runpath_var=LD_RUN_PATH
12323 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12324 export_dynamic_flag_spec='${wl}--export-dynamic'
12325 # ancient GNU ld didn't support --whole-archive et. al.
12326 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12327 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12328 else
12329 whole_archive_flag_spec=
12330 fi
12331 fi
12332 else
12333 # PORTME fill in a description of your system's linker (not GNU ld)
12334 case $host_os in
12335 aix3*)
12336 allow_undefined_flag=unsupported
12337 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012338 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 +000012339 # Note: this linker hardcodes the directories in LIBPATH if there
12340 # are no directories specified by -L.
12341 hardcode_minus_L=yes
12342 if test "$GCC" = yes && test -z "$link_static_flag"; then
12343 # Neither direct hardcoding nor static linking is supported with a
12344 # broken collect2.
12345 hardcode_direct=unsupported
12346 fi
12347 ;;
12348
12349 aix4* | aix5*)
12350 if test "$host_cpu" = ia64; then
12351 # On IA64, the linker does run time linking by default, so we don't
12352 # have to do anything special.
12353 aix_use_runtimelinking=no
12354 exp_sym_flag='-Bexport'
12355 no_entry_flag=""
12356 else
12357 # If we're using GNU nm, then we don't want the "-C" option.
12358 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12359 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12360 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'
12361 else
12362 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'
12363 fi
12364 aix_use_runtimelinking=no
12365
12366 # Test if we are trying to use run time linking or normal
12367 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12368 # need to do runtime linking.
12369 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12370 for ld_flag in $LDFLAGS; do
12371 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12372 aix_use_runtimelinking=yes
12373 break
12374 fi
12375 done
12376 esac
12377
12378 exp_sym_flag='-bexport'
12379 no_entry_flag='-bnoentry'
12380 fi
12381
12382 # When large executables or shared objects are built, AIX ld can
12383 # have problems creating the table of contents. If linking a library
12384 # or program results in "error TOC overflow" add -mminimal-toc to
12385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12387
12388 archive_cmds=''
12389 hardcode_direct=yes
12390 hardcode_libdir_separator=':'
12391 link_all_deplibs=yes
12392
12393 if test "$GCC" = yes; then
12394 case $host_os in aix4.012|aix4.012.*)
12395 # We only want to do this on AIX 4.2 and lower, the check
12396 # below for broken collect2 doesn't work under 4.3+
12397 collect2name=`${CC} -print-prog-name=collect2`
12398 if test -f "$collect2name" && \
12399 strings "$collect2name" | grep resolve_lib_name >/dev/null
12400 then
12401 # We have reworked collect2
12402 hardcode_direct=yes
12403 else
12404 # We have old collect2
12405 hardcode_direct=unsupported
12406 # It fails to find uninstalled libraries when the uninstalled
12407 # path is not listed in the libpath. Setting hardcode_minus_L
12408 # to unsupported forces relinking
12409 hardcode_minus_L=yes
12410 hardcode_libdir_flag_spec='-L$libdir'
12411 hardcode_libdir_separator=
12412 fi
12413 esac
12414 shared_flag='-shared'
12415 else
12416 # not using gcc
12417 if test "$host_cpu" = ia64; then
12418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12419 # chokes on -Wl,-G. The following line is correct:
12420 shared_flag='-G'
12421 else
12422 if test "$aix_use_runtimelinking" = yes; then
12423 shared_flag='${wl}-G'
12424 else
12425 shared_flag='${wl}-bM:SRE'
12426 fi
12427 fi
12428 fi
12429
12430 # It seems that -bexpall does not export symbols beginning with
12431 # underscore (_), so it is better to generate a list of symbols to export.
12432 always_export_symbols=yes
12433 if test "$aix_use_runtimelinking" = yes; then
12434 # Warning - without using the other runtime loading flags (-brtl),
12435 # -berok will link without error, but may produce a broken library.
12436 allow_undefined_flag='-berok'
12437 # Determine the default libpath from the value encoded in an empty executable.
12438 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012439/* confdefs.h. */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
12443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012444
John Criswell7a73b802003-06-30 21:59:07 +000012445int
12446main ()
12447{
John Criswell47fdd832003-07-14 16:52:07 +000012448
John Criswell7a73b802003-06-30 21:59:07 +000012449 ;
12450 return 0;
12451}
12452_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012453rm -f conftest.$ac_objext conftest$ac_exeext
12454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012455 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012456 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012457 grep -v '^ *+' conftest.er1 >conftest.err
12458 rm -f conftest.er1
12459 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012462 { ac_try='test -z "$ac_c_werror_flag"
12463 || test ! -s conftest.err'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; } &&
12469 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012475
John Criswell47fdd832003-07-14 16:52:07 +000012476aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12477}'`
12478# Check for a 64-bit object if we didn't find anything.
12479if 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; }
12480}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012481else
12482 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012483sed 's/^/| /' conftest.$ac_ext >&5
12484
John Criswell7a73b802003-06-30 21:59:07 +000012485fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012486rm -f conftest.err conftest.$ac_objext \
12487 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012488if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012489
John Criswell47fdd832003-07-14 16:52:07 +000012490 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12491 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"
12492 else
12493 if test "$host_cpu" = ia64; then
12494 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12495 allow_undefined_flag="-z nodefs"
12496 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"
12497 else
12498 # Determine the default libpath from the value encoded in an empty executable.
12499 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012500/* confdefs.h. */
12501_ACEOF
12502cat confdefs.h >>conftest.$ac_ext
12503cat >>conftest.$ac_ext <<_ACEOF
12504/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012505
John Criswell47fdd832003-07-14 16:52:07 +000012506int
12507main ()
12508{
John Criswell7a73b802003-06-30 21:59:07 +000012509
John Criswell47fdd832003-07-14 16:52:07 +000012510 ;
12511 return 0;
12512}
12513_ACEOF
12514rm -f conftest.$ac_objext conftest$ac_exeext
12515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012516 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012517 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012523 { ac_try='test -z "$ac_c_werror_flag"
12524 || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012536
John Criswell47fdd832003-07-14 16:52:07 +000012537aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12538}'`
12539# Check for a 64-bit object if we didn't find anything.
12540if 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; }
12541}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012542else
John Criswell47fdd832003-07-14 16:52:07 +000012543 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012544sed 's/^/| /' conftest.$ac_ext >&5
12545
John Criswell47fdd832003-07-14 16:52:07 +000012546fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012547rm -f conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012549if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012550
John Criswell47fdd832003-07-14 16:52:07 +000012551 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12552 # Warning - without using the other run time loading flags,
12553 # -berok will link without error, but may produce a broken library.
12554 no_undefined_flag=' ${wl}-bernotok'
12555 allow_undefined_flag=' ${wl}-berok'
12556 # -bexpall does not export symbols beginning with underscore (_)
12557 always_export_symbols=yes
12558 # Exported symbols can be pulled into shared objects from archives
12559 whole_archive_flag_spec=' '
12560 archive_cmds_need_lc=yes
12561 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012562 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 +000012563 fi
12564 fi
John Criswell7a73b802003-06-30 21:59:07 +000012565 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012566
12567 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012568 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 +000012569 hardcode_libdir_flag_spec='-L$libdir'
12570 hardcode_minus_L=yes
12571 # see comment about different semantics on the GNU ld section
12572 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012573 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012574
Reid Spencer2706f8c2004-09-19 23:53:36 +000012575 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012576 export_dynamic_flag_spec=-rdynamic
12577 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012578
John Criswell47fdd832003-07-14 16:52:07 +000012579 cygwin* | mingw* | pw32*)
12580 # When not using gcc, we currently assume that we are using
12581 # Microsoft Visual C++.
12582 # hardcode_libdir_flag_spec is actually meaningless, as there is
12583 # no search path for DLLs.
12584 hardcode_libdir_flag_spec=' '
12585 allow_undefined_flag=unsupported
12586 # Tell ltmain to make .lib files, not .a files.
12587 libext=lib
12588 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012589 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012590 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012591 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012592 # The linker will automatically build a .lib file if we build a DLL.
12593 old_archive_From_new_cmds='true'
12594 # FIXME: Should let the user specify the lib program.
12595 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12596 fix_srcfile_path='`cygpath -w "$srcfile"`'
12597 enable_shared_with_static_runtimes=yes
12598 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012599
John Criswell47fdd832003-07-14 16:52:07 +000012600 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012601 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012602 rhapsody* | darwin1.[012])
12603 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12604 ;;
12605 *) # Darwin 1.3 on
12606 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12607 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12608 else
12609 case ${MACOSX_DEPLOYMENT_TARGET} in
12610 10.[012])
12611 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12612 ;;
12613 10.*)
12614 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12615 ;;
12616 esac
12617 fi
12618 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012619 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012620 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012621 hardcode_direct=no
12622 hardcode_automatic=yes
12623 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012624 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012625 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012626 if test "$GCC" = yes ; then
12627 output_verbose_link_cmd='echo'
12628 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12629 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12630 # 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 +000012631 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}'
12632 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 +000012633 else
12634 case "$cc_basename" in
12635 xlc*)
12636 output_verbose_link_cmd='echo'
12637 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12638 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12639 # 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 +000012640 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}'
12641 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 +000012642 ;;
12643 *)
12644 ld_shlibs=no
12645 ;;
12646 esac
John Criswell7a73b802003-06-30 21:59:07 +000012647 fi
John Criswell47fdd832003-07-14 16:52:07 +000012648 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012649
John Criswell47fdd832003-07-14 16:52:07 +000012650 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012652 hardcode_libdir_flag_spec='-L$libdir'
12653 hardcode_shlibpath_var=no
12654 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012655
John Criswell47fdd832003-07-14 16:52:07 +000012656 freebsd1*)
12657 ld_shlibs=no
12658 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012659
John Criswell47fdd832003-07-14 16:52:07 +000012660 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12661 # support. Future versions do this automatically, but an explicit c++rt0.o
12662 # does not break anything, and helps significantly (at the cost of a little
12663 # extra space).
12664 freebsd2.2*)
12665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12666 hardcode_libdir_flag_spec='-R$libdir'
12667 hardcode_direct=yes
12668 hardcode_shlibpath_var=no
12669 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012670
John Criswell47fdd832003-07-14 16:52:07 +000012671 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12672 freebsd2*)
12673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12674 hardcode_direct=yes
12675 hardcode_minus_L=yes
12676 hardcode_shlibpath_var=no
12677 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012678
John Criswell47fdd832003-07-14 16:52:07 +000012679 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012680 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012681 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12682 hardcode_libdir_flag_spec='-R$libdir'
12683 hardcode_direct=yes
12684 hardcode_shlibpath_var=no
12685 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012686
John Criswell47fdd832003-07-14 16:52:07 +000012687 hpux9*)
12688 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012689 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 +000012690 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012691 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 +000012692 fi
12693 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12694 hardcode_libdir_separator=:
12695 hardcode_direct=yes
12696
12697 # hardcode_minus_L: Not really in the search PATH,
12698 # but as the default location of the library.
12699 hardcode_minus_L=yes
12700 export_dynamic_flag_spec='${wl}-E'
12701 ;;
12702
12703 hpux10* | hpux11*)
12704 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12705 case "$host_cpu" in
12706 hppa*64*|ia64*)
12707 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12708 ;;
12709 *)
12710 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12711 ;;
12712 esac
12713 else
12714 case "$host_cpu" in
12715 hppa*64*|ia64*)
12716 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12717 ;;
12718 *)
12719 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12720 ;;
12721 esac
12722 fi
12723 if test "$with_gnu_ld" = no; then
12724 case "$host_cpu" in
12725 hppa*64*)
12726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12727 hardcode_libdir_flag_spec_ld='+b $libdir'
12728 hardcode_libdir_separator=:
12729 hardcode_direct=no
12730 hardcode_shlibpath_var=no
12731 ;;
12732 ia64*)
12733 hardcode_libdir_flag_spec='-L$libdir'
12734 hardcode_direct=no
12735 hardcode_shlibpath_var=no
12736
12737 # hardcode_minus_L: Not really in the search PATH,
12738 # but as the default location of the library.
12739 hardcode_minus_L=yes
12740 ;;
12741 *)
12742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12743 hardcode_libdir_separator=:
12744 hardcode_direct=yes
12745 export_dynamic_flag_spec='${wl}-E'
12746
12747 # hardcode_minus_L: Not really in the search PATH,
12748 # but as the default location of the library.
12749 hardcode_minus_L=yes
12750 ;;
12751 esac
12752 fi
12753 ;;
12754
12755 irix5* | irix6* | nonstopux*)
12756 if test "$GCC" = yes; then
12757 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'
12758 else
12759 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'
12760 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12761 fi
12762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12763 hardcode_libdir_separator=:
12764 link_all_deplibs=yes
12765 ;;
12766
12767 netbsd*)
12768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12770 else
12771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12772 fi
12773 hardcode_libdir_flag_spec='-R$libdir'
12774 hardcode_direct=yes
12775 hardcode_shlibpath_var=no
12776 ;;
12777
12778 newsos6)
12779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780 hardcode_direct=yes
12781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12782 hardcode_libdir_separator=:
12783 hardcode_shlibpath_var=no
12784 ;;
12785
12786 openbsd*)
12787 hardcode_direct=yes
12788 hardcode_shlibpath_var=no
12789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012791 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 +000012792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12793 export_dynamic_flag_spec='${wl}-E'
12794 else
12795 case $host_os in
12796 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12798 hardcode_libdir_flag_spec='-R$libdir'
12799 ;;
12800 *)
12801 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12803 ;;
12804 esac
12805 fi
12806 ;;
12807
12808 os2*)
12809 hardcode_libdir_flag_spec='-L$libdir'
12810 hardcode_minus_L=yes
12811 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012812 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 +000012813 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12814 ;;
12815
12816 osf3*)
12817 if test "$GCC" = yes; then
12818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12819 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'
12820 else
12821 allow_undefined_flag=' -expect_unresolved \*'
12822 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'
12823 fi
12824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12825 hardcode_libdir_separator=:
12826 ;;
12827
12828 osf4* | osf5*) # as osf3* with the addition of -msym flag
12829 if test "$GCC" = yes; then
12830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12831 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'
12832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12833 else
12834 allow_undefined_flag=' -expect_unresolved \*'
12835 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 +000012836 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12837 $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'
12838
John Criswell47fdd832003-07-14 16:52:07 +000012839 # Both c and cxx compiler support -rpath directly
12840 hardcode_libdir_flag_spec='-rpath $libdir'
12841 fi
12842 hardcode_libdir_separator=:
12843 ;;
12844
12845 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12847 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012848 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012849 runpath_var=LD_RUN_PATH
12850 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012851 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012852
John Criswell47fdd832003-07-14 16:52:07 +000012853 solaris*)
12854 no_undefined_flag=' -z text'
12855 if test "$GCC" = yes; then
12856 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012857 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12858 $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 +000012859 else
12860 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012861 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12862 $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 +000012863 fi
12864 hardcode_libdir_flag_spec='-R$libdir'
12865 hardcode_shlibpath_var=no
12866 case $host_os in
12867 solaris2.[0-5] | solaris2.[0-5].*) ;;
12868 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12869 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12870 esac
12871 link_all_deplibs=yes
12872 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012873
John Criswell47fdd832003-07-14 16:52:07 +000012874 sunos4*)
12875 if test "x$host_vendor" = xsequent; then
12876 # Use $CC to link under sequent, because it throws in some extra .o
12877 # files that make .init and .fini sections work.
12878 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12879 else
12880 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12881 fi
12882 hardcode_libdir_flag_spec='-L$libdir'
12883 hardcode_direct=yes
12884 hardcode_minus_L=yes
12885 hardcode_shlibpath_var=no
12886 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012887
John Criswell47fdd832003-07-14 16:52:07 +000012888 sysv4)
12889 case $host_vendor in
12890 sni)
12891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12892 hardcode_direct=yes # is this really true???
12893 ;;
12894 siemens)
12895 ## LD is ld it makes a PLAMLIB
12896 ## CC just makes a GrossModule.
12897 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12898 reload_cmds='$CC -r -o $output$reload_objs'
12899 hardcode_direct=no
12900 ;;
12901 motorola)
12902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12903 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12904 ;;
12905 esac
12906 runpath_var='LD_RUN_PATH'
12907 hardcode_shlibpath_var=no
12908 ;;
12909
12910 sysv4.3*)
12911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12912 hardcode_shlibpath_var=no
12913 export_dynamic_flag_spec='-Bexport'
12914 ;;
12915
12916 sysv4*MP*)
12917 if test -d /usr/nec; then
12918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12919 hardcode_shlibpath_var=no
12920 runpath_var=LD_RUN_PATH
12921 hardcode_runpath_var=yes
12922 ld_shlibs=yes
12923 fi
12924 ;;
12925
12926 sysv4.2uw2*)
12927 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12928 hardcode_direct=yes
12929 hardcode_minus_L=no
12930 hardcode_shlibpath_var=no
12931 hardcode_runpath_var=yes
12932 runpath_var=LD_RUN_PATH
12933 ;;
12934
12935 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12936 no_undefined_flag='${wl}-z ${wl}text'
12937 if test "$GCC" = yes; then
12938 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12939 else
12940 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12941 fi
12942 runpath_var='LD_RUN_PATH'
12943 hardcode_shlibpath_var=no
12944 ;;
12945
12946 sysv5*)
12947 no_undefined_flag=' -z text'
12948 # $CC -shared without GNU ld will not create a library from C++
12949 # object files and a static libstdc++, better avoid it by now
12950 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012951 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12952 $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 +000012953 hardcode_libdir_flag_spec=
12954 hardcode_shlibpath_var=no
12955 runpath_var='LD_RUN_PATH'
12956 ;;
12957
12958 uts4*)
12959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12960 hardcode_libdir_flag_spec='-L$libdir'
12961 hardcode_shlibpath_var=no
12962 ;;
12963
12964 *)
12965 ld_shlibs=no
12966 ;;
12967 esac
12968 fi
12969
John Criswell7a73b802003-06-30 21:59:07 +000012970echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12971echo "${ECHO_T}$ld_shlibs" >&6
12972test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012973
John Criswell47fdd832003-07-14 16:52:07 +000012974variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12975if test "$GCC" = yes; then
12976 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12977fi
12978
12979#
12980# Do we need to explicitly link libc?
12981#
12982case "x$archive_cmds_need_lc" in
12983x|xyes)
12984 # Assume -lc should be added
12985 archive_cmds_need_lc=yes
12986
12987 if test "$enable_shared" = yes && test "$GCC" = yes; then
12988 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012989 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012990 # FIXME: we may have to deal with multi-command sequences.
12991 ;;
12992 '$CC '*)
12993 # Test whether the compiler implicitly links with -lc since on some
12994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12995 # to ld, don't add -lc before -lgcc.
12996 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12997echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12998 $rm conftest*
12999 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13000
13001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13002 (eval $ac_compile) 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } 2>conftest.err; then
13006 soname=conftest
13007 lib=conftest
13008 libobjs=conftest.$ac_objext
13009 deplibs=
13010 wl=$lt_prog_compiler_wl
13011 compiler_flags=-v
13012 linker_flags=-v
13013 verstring=
13014 output_objdir=.
13015 libname=conftest
13016 lt_save_allow_undefined_flag=$allow_undefined_flag
13017 allow_undefined_flag=
13018 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13019 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }
13023 then
13024 archive_cmds_need_lc=no
13025 else
13026 archive_cmds_need_lc=yes
13027 fi
13028 allow_undefined_flag=$lt_save_allow_undefined_flag
13029 else
13030 cat conftest.err 1>&5
13031 fi
13032 $rm conftest*
13033 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13034echo "${ECHO_T}$archive_cmds_need_lc" >&6
13035 ;;
13036 esac
13037 fi
13038 ;;
13039esac
13040
John Criswell7a73b802003-06-30 21:59:07 +000013041echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13042echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13043library_names_spec=
13044libname_spec='lib$name'
13045soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013046shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013047postinstall_cmds=
13048postuninstall_cmds=
13049finish_cmds=
13050finish_eval=
13051shlibpath_var=
13052shlibpath_overrides_runpath=unknown
13053version_type=none
13054dynamic_linker="$host_os ld.so"
13055sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013056if test "$GCC" = yes; then
13057 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13058 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13059 # if the path contains ";" then we assume it to be the separator
13060 # otherwise default to the standard path separator (i.e. ":") - it is
13061 # assumed that no part of a normal pathname contains ";" but that should
13062 # okay in the real world where ";" in dirpaths is itself problematic.
13063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13064 else
13065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13066 fi
13067else
13068 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13069fi
13070need_lib_prefix=unknown
13071hardcode_into_libs=no
13072
13073# when you set need_version to no, make sure it does not cause -set_version
13074# flags to be left without arguments
13075need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013076
13077case $host_os in
13078aix3*)
13079 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013081 shlibpath_var=LIBPATH
13082
John Criswell47fdd832003-07-14 16:52:07 +000013083 # AIX 3 has no versioning support, so we append a major version to the name.
13084 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013085 ;;
13086
13087aix4* | aix5*)
13088 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013089 need_lib_prefix=no
13090 need_version=no
13091 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013092 if test "$host_cpu" = ia64; then
13093 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013094 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013095 shlibpath_var=LD_LIBRARY_PATH
13096 else
13097 # With GCC up to 2.95.x, collect2 would create an import file
13098 # for dependence libraries. The import file would start with
13099 # the line `#! .'. This would cause the generated library to
13100 # depend on `.', always an invalid library. This was fixed in
13101 # development snapshots of GCC prior to 3.0.
13102 case $host_os in
13103 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013104 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13105 echo ' yes '
13106 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13107 :
13108 else
13109 can_build_shared=no
13110 fi
13111 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013112 esac
John Criswell47fdd832003-07-14 16:52:07 +000013113 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13114 # soname into executable. Probably we can add versioning support to
13115 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013116 if test "$aix_use_runtimelinking" = yes; then
13117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13118 # instead of lib<name>.a to let people know that these are not
13119 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013121 else
13122 # We preserve .a as extension for shared libraries through AIX4.2
13123 # and later when we are not doing run time linking.
13124 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013125 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013126 fi
13127 shlibpath_var=LIBPATH
13128 fi
13129 ;;
13130
13131amigaos*)
13132 library_names_spec='$libname.ixlibrary $libname.a'
13133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013134 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 +000013135 ;;
13136
13137beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013138 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013139 dynamic_linker="$host_os ld.so"
13140 shlibpath_var=LIBRARY_PATH
13141 ;;
13142
Reid Spencer2706f8c2004-09-19 23:53:36 +000013143bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013144 version_type=linux
13145 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013148 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13149 shlibpath_var=LD_LIBRARY_PATH
13150 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13151 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013152 # the default ld.so.conf also contains /usr/contrib/lib and
13153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13154 # libtool to hard-code these into programs
13155 ;;
13156
13157cygwin* | mingw* | pw32*)
13158 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013159 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013160 need_version=no
13161 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013162
John Criswell7a73b802003-06-30 21:59:07 +000013163 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013164 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013165 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013167 postinstall_cmds='base_file=`basename \${file}`~
13168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13169 dldir=$destdir/`dirname \$dlpath`~
13170 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013171 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13173 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013174 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013175 shlibpath_overrides_runpath=yes
13176
13177 case $host_os in
13178 cygwin*)
13179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13180 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 +000013181 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013182 ;;
13183 mingw*)
13184 # MinGW DLLs use traditional 'lib' prefix
13185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13186 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13187 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13188 # It is most probably a Windows format PATH printed by
13189 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13190 # path with ; separators, and with drive letters. We can handle the
13191 # drive letters (cygwin fileutils understands them), so leave them,
13192 # especially as we might pass files found there to a mingw objdump,
13193 # which wouldn't understand a cygwinified path. Ahh.
13194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13195 else
13196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13197 fi
13198 ;;
13199 pw32*)
13200 # pw32 DLLs use 'pw' prefix rather than 'lib'
13201 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13202 ;;
13203 esac
John Criswell7a73b802003-06-30 21:59:07 +000013204 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013205
John Criswell7a73b802003-06-30 21:59:07 +000013206 *)
John Criswell47fdd832003-07-14 16:52:07 +000013207 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013208 ;;
13209 esac
13210 dynamic_linker='Win32 ld.exe'
13211 # FIXME: first we should search . and the directory the executable is in
13212 shlibpath_var=PATH
13213 ;;
13214
13215darwin* | rhapsody*)
13216 dynamic_linker="$host_os dyld"
13217 version_type=darwin
13218 need_lib_prefix=no
13219 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013220 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013221 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013222 shlibpath_overrides_runpath=yes
13223 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013224 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013225 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013226 if test "$GCC" = yes; then
13227 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"`
13228 else
13229 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013230 fi
13231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13232 ;;
13233
13234dgux*)
13235 version_type=linux
13236 need_lib_prefix=no
13237 need_version=no
13238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13239 soname_spec='${libname}${release}${shared_ext}$major'
13240 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013241 ;;
13242
13243freebsd1*)
13244 dynamic_linker=no
13245 ;;
13246
Reid Spencer2706f8c2004-09-19 23:53:36 +000013247kfreebsd*-gnu)
13248 version_type=linux
13249 need_lib_prefix=no
13250 need_version=no
13251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13252 soname_spec='${libname}${release}${shared_ext}$major'
13253 shlibpath_var=LD_LIBRARY_PATH
13254 shlibpath_overrides_runpath=no
13255 hardcode_into_libs=yes
13256 dynamic_linker='GNU ld.so'
13257 ;;
13258
John Criswell7a73b802003-06-30 21:59:07 +000013259freebsd*)
13260 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13261 version_type=freebsd-$objformat
13262 case $version_type in
13263 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013265 need_version=no
13266 need_lib_prefix=no
13267 ;;
13268 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013270 need_version=yes
13271 ;;
13272 esac
13273 shlibpath_var=LD_LIBRARY_PATH
13274 case $host_os in
13275 freebsd2*)
13276 shlibpath_overrides_runpath=yes
13277 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013278 freebsd3.01* | freebsdelf3.01*)
13279 shlibpath_overrides_runpath=yes
13280 hardcode_into_libs=yes
13281 ;;
13282 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013283 shlibpath_overrides_runpath=no
13284 hardcode_into_libs=yes
13285 ;;
13286 esac
13287 ;;
13288
13289gnu*)
13290 version_type=linux
13291 need_lib_prefix=no
13292 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13294 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013295 shlibpath_var=LD_LIBRARY_PATH
13296 hardcode_into_libs=yes
13297 ;;
13298
13299hpux9* | hpux10* | hpux11*)
13300 # Give a soname corresponding to the major version so that dld.sl refuses to
13301 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013302 version_type=sunos
13303 need_lib_prefix=no
13304 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013305 case "$host_cpu" in
13306 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013307 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013308 hardcode_into_libs=yes
13309 dynamic_linker="$host_os dld.so"
13310 shlibpath_var=LD_LIBRARY_PATH
13311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313 soname_spec='${libname}${release}${shared_ext}$major'
13314 if test "X$HPUX_IA64_MODE" = X32; then
13315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13316 else
13317 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13318 fi
13319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13320 ;;
13321 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013322 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013323 hardcode_into_libs=yes
13324 dynamic_linker="$host_os dld.sl"
13325 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328 soname_spec='${libname}${release}${shared_ext}$major'
13329 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13331 ;;
13332 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013333 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013334 dynamic_linker="$host_os dld.sl"
13335 shlibpath_var=SHLIB_PATH
13336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338 soname_spec='${libname}${release}${shared_ext}$major'
13339 ;;
13340 esac
John Criswell7a73b802003-06-30 21:59:07 +000013341 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13342 postinstall_cmds='chmod 555 $lib'
13343 ;;
13344
John Criswell47fdd832003-07-14 16:52:07 +000013345irix5* | irix6* | nonstopux*)
13346 case $host_os in
13347 nonstopux*) version_type=nonstopux ;;
13348 *)
13349 if test "$lt_cv_prog_gnu_ld" = yes; then
13350 version_type=linux
13351 else
13352 version_type=irix
13353 fi ;;
13354 esac
John Criswell7a73b802003-06-30 21:59:07 +000013355 need_lib_prefix=no
13356 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013357 soname_spec='${libname}${release}${shared_ext}$major'
13358 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 +000013359 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013360 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013361 libsuff= shlibsuff=
13362 ;;
13363 *)
13364 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13366 libsuff= shlibsuff= libmagic=32-bit;;
13367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13368 libsuff=32 shlibsuff=N32 libmagic=N32;;
13369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013371 *) libsuff= shlibsuff= libmagic=never-match;;
13372 esac
13373 ;;
13374 esac
13375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13376 shlibpath_overrides_runpath=no
13377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013379 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013380 ;;
13381
13382# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013383linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013384 dynamic_linker=no
13385 ;;
13386
13387# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013388linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013389 version_type=linux
13390 need_lib_prefix=no
13391 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13393 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13395 shlibpath_var=LD_LIBRARY_PATH
13396 shlibpath_overrides_runpath=no
13397 # This implies no fast_install, which is unacceptable.
13398 # Some rework will be needed to allow for fast_install
13399 # before this can be enabled.
13400 hardcode_into_libs=yes
13401
Reid Spencer2706f8c2004-09-19 23:53:36 +000013402 # Append ld.so.conf contents to the search path
13403 if test -f /etc/ld.so.conf; then
13404 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13406 fi
13407
John Criswell7a73b802003-06-30 21:59:07 +000013408 # We used to test for /lib/ld.so.1 and disable shared libraries on
13409 # powerpc, because MkLinux only supported shared libraries with the
13410 # GNU dynamic linker. Since this was broken with cross compilers,
13411 # most powerpc-linux boxes support dynamic linking these days and
13412 # people can always --disable-shared, the test was removed, and we
13413 # assume the GNU/Linux dynamic linker is in use.
13414 dynamic_linker='GNU/Linux ld.so'
13415 ;;
13416
Reid Spencer2706f8c2004-09-19 23:53:36 +000013417knetbsd*-gnu)
13418 version_type=linux
13419 need_lib_prefix=no
13420 need_version=no
13421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13422 soname_spec='${libname}${release}${shared_ext}$major'
13423 shlibpath_var=LD_LIBRARY_PATH
13424 shlibpath_overrides_runpath=no
13425 hardcode_into_libs=yes
13426 dynamic_linker='GNU ld.so'
13427 ;;
13428
John Criswell7a73b802003-06-30 21:59:07 +000013429netbsd*)
13430 version_type=sunos
13431 need_lib_prefix=no
13432 need_version=no
13433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13436 dynamic_linker='NetBSD (a.out) ld.so'
13437 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013439 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013440 dynamic_linker='NetBSD ld.elf_so'
13441 fi
13442 shlibpath_var=LD_LIBRARY_PATH
13443 shlibpath_overrides_runpath=yes
13444 hardcode_into_libs=yes
13445 ;;
13446
13447newsos6)
13448 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13450 shlibpath_var=LD_LIBRARY_PATH
13451 shlibpath_overrides_runpath=yes
13452 ;;
13453
Reid Spencer2706f8c2004-09-19 23:53:36 +000013454nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013455 version_type=linux
13456 need_lib_prefix=no
13457 need_version=no
13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13459 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013460 shlibpath_var=LD_LIBRARY_PATH
13461 shlibpath_overrides_runpath=yes
13462 ;;
13463
13464openbsd*)
13465 version_type=sunos
13466 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013467 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13470 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013471 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 +000013472 case $host_os in
13473 openbsd2.[89] | openbsd2.[89].*)
13474 shlibpath_overrides_runpath=no
13475 ;;
13476 *)
13477 shlibpath_overrides_runpath=yes
13478 ;;
13479 esac
John Criswell7a73b802003-06-30 21:59:07 +000013480 else
13481 shlibpath_overrides_runpath=yes
13482 fi
John Criswell7a73b802003-06-30 21:59:07 +000013483 ;;
13484
13485os2*)
13486 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013487 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013488 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013489 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013490 dynamic_linker='OS/2 ld.exe'
13491 shlibpath_var=LIBPATH
13492 ;;
13493
13494osf3* | osf4* | osf5*)
13495 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013496 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013497 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013498 soname_spec='${libname}${release}${shared_ext}$major'
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013500 shlibpath_var=LD_LIBRARY_PATH
13501 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13502 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13503 ;;
13504
13505sco3.2v5*)
13506 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013507 soname_spec='${libname}${release}${shared_ext}$major'
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013509 shlibpath_var=LD_LIBRARY_PATH
13510 ;;
13511
13512solaris*)
13513 version_type=linux
13514 need_lib_prefix=no
13515 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013518 shlibpath_var=LD_LIBRARY_PATH
13519 shlibpath_overrides_runpath=yes
13520 hardcode_into_libs=yes
13521 # ldd complains unless libraries are executable
13522 postinstall_cmds='chmod +x $lib'
13523 ;;
13524
13525sunos4*)
13526 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013528 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13529 shlibpath_var=LD_LIBRARY_PATH
13530 shlibpath_overrides_runpath=yes
13531 if test "$with_gnu_ld" = yes; then
13532 need_lib_prefix=no
13533 fi
13534 need_version=yes
13535 ;;
13536
13537sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13538 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013541 shlibpath_var=LD_LIBRARY_PATH
13542 case $host_vendor in
13543 sni)
13544 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013545 need_lib_prefix=no
13546 export_dynamic_flag_spec='${wl}-Blargedynsym'
13547 runpath_var=LD_RUN_PATH
13548 ;;
13549 siemens)
13550 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013551 ;;
13552 motorola)
13553 need_lib_prefix=no
13554 need_version=no
13555 shlibpath_overrides_runpath=no
13556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13557 ;;
13558 esac
13559 ;;
13560
John Criswell7a73b802003-06-30 21:59:07 +000013561sysv4*MP*)
13562 if test -d /usr/nec ;then
13563 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013564 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13565 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013566 shlibpath_var=LD_LIBRARY_PATH
13567 fi
13568 ;;
13569
John Criswell47fdd832003-07-14 16:52:07 +000013570uts4*)
13571 version_type=linux
13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573 soname_spec='${libname}${release}${shared_ext}$major'
13574 shlibpath_var=LD_LIBRARY_PATH
13575 ;;
13576
John Criswell7a73b802003-06-30 21:59:07 +000013577*)
13578 dynamic_linker=no
13579 ;;
13580esac
13581echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13582echo "${ECHO_T}$dynamic_linker" >&6
13583test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013584
Reid Spencer2706f8c2004-09-19 23:53:36 +000013585echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13586echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13587hardcode_action=
13588if test -n "$hardcode_libdir_flag_spec" || \
13589 test -n "$runpath_var" || \
13590 test "X$hardcode_automatic" = "Xyes" ; then
13591
13592 # We can hardcode non-existant directories.
13593 if test "$hardcode_direct" != no &&
13594 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13595 # have to relink, otherwise we might link with an installed library
13596 # when we should be linking with a yet-to-be-installed one
13597 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13598 test "$hardcode_minus_L" != no; then
13599 # Linking always hardcodes the temporary library directory.
13600 hardcode_action=relink
13601 else
13602 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13603 hardcode_action=immediate
13604 fi
13605else
13606 # We cannot hardcode anything, or else we can only hardcode existing
13607 # directories.
13608 hardcode_action=unsupported
13609fi
13610echo "$as_me:$LINENO: result: $hardcode_action" >&5
13611echo "${ECHO_T}$hardcode_action" >&6
13612
13613if test "$hardcode_action" = relink; then
13614 # Fast installation is not supported
13615 enable_fast_install=no
13616elif test "$shlibpath_overrides_runpath" = yes ||
13617 test "$enable_shared" = no; then
13618 # Fast installation is not necessary
13619 enable_fast_install=needless
13620fi
13621
13622striplib=
13623old_striplib=
13624echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13625echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13626if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13627 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13628 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13629 echo "$as_me:$LINENO: result: yes" >&5
13630echo "${ECHO_T}yes" >&6
13631else
13632# FIXME - insert some real tests, host_os isn't really good enough
13633 case $host_os in
13634 darwin*)
13635 if test -n "$STRIP" ; then
13636 striplib="$STRIP -x"
13637 echo "$as_me:$LINENO: result: yes" >&5
13638echo "${ECHO_T}yes" >&6
13639 else
13640 echo "$as_me:$LINENO: result: no" >&5
13641echo "${ECHO_T}no" >&6
13642fi
13643 ;;
13644 *)
13645 echo "$as_me:$LINENO: result: no" >&5
13646echo "${ECHO_T}no" >&6
13647 ;;
13648 esac
13649fi
13650
John Criswell7a73b802003-06-30 21:59:07 +000013651if test "x$enable_dlopen" != xyes; then
13652 enable_dlopen=unknown
13653 enable_dlopen_self=unknown
13654 enable_dlopen_self_static=unknown
13655else
13656 lt_cv_dlopen=no
13657 lt_cv_dlopen_libs=
13658
13659 case $host_os in
13660 beos*)
13661 lt_cv_dlopen="load_add_on"
13662 lt_cv_dlopen_libs=
13663 lt_cv_dlopen_self=yes
13664 ;;
13665
John Criswell47fdd832003-07-14 16:52:07 +000013666 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013667 lt_cv_dlopen="LoadLibrary"
13668 lt_cv_dlopen_libs=
13669 ;;
13670
John Criswell47fdd832003-07-14 16:52:07 +000013671 cygwin*)
13672 lt_cv_dlopen="dlopen"
13673 lt_cv_dlopen_libs=
13674 ;;
13675
13676 darwin*)
13677 # if libdl is installed we need to link against it
13678 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13679echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13680if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682else
13683 ac_check_lib_save_LIBS=$LIBS
13684LIBS="-ldl $LIBS"
13685cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013686/* confdefs.h. */
13687_ACEOF
13688cat confdefs.h >>conftest.$ac_ext
13689cat >>conftest.$ac_ext <<_ACEOF
13690/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013691
13692/* Override any gcc2 internal prototype to avoid an error. */
13693#ifdef __cplusplus
13694extern "C"
13695#endif
13696/* We use char because int might match the return type of a gcc2
13697 builtin and then its argument prototype would still apply. */
13698char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013699int
13700main ()
13701{
13702dlopen ();
13703 ;
13704 return 0;
13705}
13706_ACEOF
13707rm -f conftest.$ac_objext conftest$ac_exeext
13708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013709 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013710 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013716 { ac_try='test -z "$ac_c_werror_flag"
13717 || test ! -s conftest.err'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; } &&
13723 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_cv_lib_dl_dlopen=yes
13730else
13731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013732sed 's/^/| /' conftest.$ac_ext >&5
13733
John Criswell47fdd832003-07-14 16:52:07 +000013734ac_cv_lib_dl_dlopen=no
13735fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013736rm -f conftest.err conftest.$ac_objext \
13737 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013738LIBS=$ac_check_lib_save_LIBS
13739fi
13740echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13741echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13742if test $ac_cv_lib_dl_dlopen = yes; then
13743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13744else
13745
13746 lt_cv_dlopen="dyld"
13747 lt_cv_dlopen_libs=
13748 lt_cv_dlopen_self=yes
13749
13750fi
13751
13752 ;;
13753
John Criswell7a73b802003-06-30 21:59:07 +000013754 *)
13755 echo "$as_me:$LINENO: checking for shl_load" >&5
13756echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13757if test "${ac_cv_func_shl_load+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13759else
13760 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013761/* confdefs.h. */
13762_ACEOF
13763cat confdefs.h >>conftest.$ac_ext
13764cat >>conftest.$ac_ext <<_ACEOF
13765/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013766/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13768#define shl_load innocuous_shl_load
13769
John Criswell7a73b802003-06-30 21:59:07 +000013770/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013771 which can conflict with char shl_load (); below.
13772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13773 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013774
John Criswell0c38eaf2003-09-10 15:17:25 +000013775#ifdef __STDC__
13776# include <limits.h>
13777#else
13778# include <assert.h>
13779#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013780
13781#undef shl_load
13782
John Criswell7a73b802003-06-30 21:59:07 +000013783/* Override any gcc2 internal prototype to avoid an error. */
13784#ifdef __cplusplus
13785extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013786{
John Criswell7a73b802003-06-30 21:59:07 +000013787#endif
13788/* We use char because int might match the return type of a gcc2
13789 builtin and then its argument prototype would still apply. */
13790char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013791/* The GNU C library defines this for functions which it implements
13792 to always fail with ENOSYS. Some functions are actually named
13793 something starting with __ and the normal name is an alias. */
13794#if defined (__stub_shl_load) || defined (__stub___shl_load)
13795choke me
13796#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013797char (*f) () = shl_load;
13798#endif
13799#ifdef __cplusplus
13800}
John Criswell7a73b802003-06-30 21:59:07 +000013801#endif
13802
John Criswell0c38eaf2003-09-10 15:17:25 +000013803int
13804main ()
13805{
13806return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013807 ;
13808 return 0;
13809}
13810_ACEOF
13811rm -f conftest.$ac_objext conftest$ac_exeext
13812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013813 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013814 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013815 grep -v '^ *+' conftest.er1 >conftest.err
13816 rm -f conftest.er1
13817 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013820 { ac_try='test -z "$ac_c_werror_flag"
13821 || test ! -s conftest.err'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; } &&
13827 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_func_shl_load=yes
13834else
13835 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013836sed 's/^/| /' conftest.$ac_ext >&5
13837
John Criswell7a73b802003-06-30 21:59:07 +000013838ac_cv_func_shl_load=no
13839fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013840rm -f conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013842fi
13843echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13844echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13845if test $ac_cv_func_shl_load = yes; then
13846 lt_cv_dlopen="shl_load"
13847else
13848 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13849echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13850if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852else
13853 ac_check_lib_save_LIBS=$LIBS
13854LIBS="-ldld $LIBS"
13855cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013861
13862/* Override any gcc2 internal prototype to avoid an error. */
13863#ifdef __cplusplus
13864extern "C"
13865#endif
13866/* We use char because int might match the return type of a gcc2
13867 builtin and then its argument prototype would still apply. */
13868char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013869int
13870main ()
13871{
13872shl_load ();
13873 ;
13874 return 0;
13875}
13876_ACEOF
13877rm -f conftest.$ac_objext conftest$ac_exeext
13878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013879 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013880 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013886 { ac_try='test -z "$ac_c_werror_flag"
13887 || test ! -s conftest.err'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_cv_lib_dld_shl_load=yes
13900else
13901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013902sed 's/^/| /' conftest.$ac_ext >&5
13903
John Criswell7a73b802003-06-30 21:59:07 +000013904ac_cv_lib_dld_shl_load=no
13905fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013906rm -f conftest.err conftest.$ac_objext \
13907 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013908LIBS=$ac_check_lib_save_LIBS
13909fi
13910echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13911echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13912if test $ac_cv_lib_dld_shl_load = yes; then
13913 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13914else
13915 echo "$as_me:$LINENO: checking for dlopen" >&5
13916echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13917if test "${ac_cv_func_dlopen+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13919else
13920 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013921/* confdefs.h. */
13922_ACEOF
13923cat confdefs.h >>conftest.$ac_ext
13924cat >>conftest.$ac_ext <<_ACEOF
13925/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013926/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13928#define dlopen innocuous_dlopen
13929
John Criswell7a73b802003-06-30 21:59:07 +000013930/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013931 which can conflict with char dlopen (); below.
13932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13933 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013934
John Criswell0c38eaf2003-09-10 15:17:25 +000013935#ifdef __STDC__
13936# include <limits.h>
13937#else
13938# include <assert.h>
13939#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013940
13941#undef dlopen
13942
John Criswell7a73b802003-06-30 21:59:07 +000013943/* Override any gcc2 internal prototype to avoid an error. */
13944#ifdef __cplusplus
13945extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013946{
John Criswell7a73b802003-06-30 21:59:07 +000013947#endif
13948/* We use char because int might match the return type of a gcc2
13949 builtin and then its argument prototype would still apply. */
13950char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013951/* The GNU C library defines this for functions which it implements
13952 to always fail with ENOSYS. Some functions are actually named
13953 something starting with __ and the normal name is an alias. */
13954#if defined (__stub_dlopen) || defined (__stub___dlopen)
13955choke me
13956#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013957char (*f) () = dlopen;
13958#endif
13959#ifdef __cplusplus
13960}
John Criswell7a73b802003-06-30 21:59:07 +000013961#endif
13962
John Criswell0c38eaf2003-09-10 15:17:25 +000013963int
13964main ()
13965{
13966return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013967 ;
13968 return 0;
13969}
13970_ACEOF
13971rm -f conftest.$ac_objext conftest$ac_exeext
13972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013973 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013974 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013980 { ac_try='test -z "$ac_c_werror_flag"
13981 || test ! -s conftest.err'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; } &&
13987 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_cv_func_dlopen=yes
13994else
13995 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013996sed 's/^/| /' conftest.$ac_ext >&5
13997
John Criswell7a73b802003-06-30 21:59:07 +000013998ac_cv_func_dlopen=no
13999fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014000rm -f conftest.err conftest.$ac_objext \
14001 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014002fi
14003echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14004echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14005if test $ac_cv_func_dlopen = yes; then
14006 lt_cv_dlopen="dlopen"
14007else
14008 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14009echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14010if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012else
14013 ac_check_lib_save_LIBS=$LIBS
14014LIBS="-ldl $LIBS"
14015cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014016/* confdefs.h. */
14017_ACEOF
14018cat confdefs.h >>conftest.$ac_ext
14019cat >>conftest.$ac_ext <<_ACEOF
14020/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014021
14022/* Override any gcc2 internal prototype to avoid an error. */
14023#ifdef __cplusplus
14024extern "C"
14025#endif
14026/* We use char because int might match the return type of a gcc2
14027 builtin and then its argument prototype would still apply. */
14028char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014029int
14030main ()
14031{
14032dlopen ();
14033 ;
14034 return 0;
14035}
14036_ACEOF
14037rm -f conftest.$ac_objext conftest$ac_exeext
14038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014039 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014040 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014046 { ac_try='test -z "$ac_c_werror_flag"
14047 || test ! -s conftest.err'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 ac_cv_lib_dl_dlopen=yes
14060else
14061 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014062sed 's/^/| /' conftest.$ac_ext >&5
14063
John Criswell7a73b802003-06-30 21:59:07 +000014064ac_cv_lib_dl_dlopen=no
14065fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014066rm -f conftest.err conftest.$ac_objext \
14067 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014068LIBS=$ac_check_lib_save_LIBS
14069fi
14070echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14071echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14072if test $ac_cv_lib_dl_dlopen = yes; then
14073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14074else
14075 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14076echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14077if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14079else
14080 ac_check_lib_save_LIBS=$LIBS
14081LIBS="-lsvld $LIBS"
14082cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014083/* confdefs.h. */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
14087/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014088
14089/* Override any gcc2 internal prototype to avoid an error. */
14090#ifdef __cplusplus
14091extern "C"
14092#endif
14093/* We use char because int might match the return type of a gcc2
14094 builtin and then its argument prototype would still apply. */
14095char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014096int
14097main ()
14098{
14099dlopen ();
14100 ;
14101 return 0;
14102}
14103_ACEOF
14104rm -f conftest.$ac_objext conftest$ac_exeext
14105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014106 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014108 grep -v '^ *+' conftest.er1 >conftest.err
14109 rm -f conftest.er1
14110 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014113 { ac_try='test -z "$ac_c_werror_flag"
14114 || test ! -s conftest.err'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; } &&
14120 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 ac_cv_lib_svld_dlopen=yes
14127else
14128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014129sed 's/^/| /' conftest.$ac_ext >&5
14130
John Criswell7a73b802003-06-30 21:59:07 +000014131ac_cv_lib_svld_dlopen=no
14132fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014133rm -f conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014135LIBS=$ac_check_lib_save_LIBS
14136fi
14137echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14138echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14139if test $ac_cv_lib_svld_dlopen = yes; then
14140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14141else
14142 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14143echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14144if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146else
14147 ac_check_lib_save_LIBS=$LIBS
14148LIBS="-ldld $LIBS"
14149cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014150/* confdefs.h. */
14151_ACEOF
14152cat confdefs.h >>conftest.$ac_ext
14153cat >>conftest.$ac_ext <<_ACEOF
14154/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014155
14156/* Override any gcc2 internal prototype to avoid an error. */
14157#ifdef __cplusplus
14158extern "C"
14159#endif
14160/* We use char because int might match the return type of a gcc2
14161 builtin and then its argument prototype would still apply. */
14162char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014163int
14164main ()
14165{
14166dld_link ();
14167 ;
14168 return 0;
14169}
14170_ACEOF
14171rm -f conftest.$ac_objext conftest$ac_exeext
14172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014173 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014174 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014180 { ac_try='test -z "$ac_c_werror_flag"
14181 || test ! -s conftest.err'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 ac_cv_lib_dld_dld_link=yes
14194else
14195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014196sed 's/^/| /' conftest.$ac_ext >&5
14197
John Criswell7a73b802003-06-30 21:59:07 +000014198ac_cv_lib_dld_dld_link=no
14199fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014200rm -f conftest.err conftest.$ac_objext \
14201 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014202LIBS=$ac_check_lib_save_LIBS
14203fi
14204echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14205echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14206if test $ac_cv_lib_dld_dld_link = yes; then
14207 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14208fi
14209
14210
14211fi
14212
14213
14214fi
14215
14216
14217fi
14218
14219
14220fi
14221
14222
14223fi
14224
14225 ;;
14226 esac
14227
14228 if test "x$lt_cv_dlopen" != xno; then
14229 enable_dlopen=yes
14230 else
14231 enable_dlopen=no
14232 fi
14233
14234 case $lt_cv_dlopen in
14235 dlopen)
14236 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014237 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014238
14239 save_LDFLAGS="$LDFLAGS"
14240 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14241
14242 save_LIBS="$LIBS"
14243 LIBS="$lt_cv_dlopen_libs $LIBS"
14244
14245 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14246echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14247if test "${lt_cv_dlopen_self+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249else
14250 if test "$cross_compiling" = yes; then :
14251 lt_cv_dlopen_self=cross
14252else
John Criswell47fdd832003-07-14 16:52:07 +000014253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014254 lt_status=$lt_dlunknown
14255 cat > conftest.$ac_ext <<EOF
Misha Brukman19098e52005-05-12 22:15:34 +000014256#line 14256 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014257#include "confdefs.h"
14258
14259#if HAVE_DLFCN_H
14260#include <dlfcn.h>
14261#endif
14262
14263#include <stdio.h>
14264
14265#ifdef RTLD_GLOBAL
14266# define LT_DLGLOBAL RTLD_GLOBAL
14267#else
14268# ifdef DL_GLOBAL
14269# define LT_DLGLOBAL DL_GLOBAL
14270# else
14271# define LT_DLGLOBAL 0
14272# endif
14273#endif
14274
14275/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14276 find out it does not work in some platform. */
14277#ifndef LT_DLLAZY_OR_NOW
14278# ifdef RTLD_LAZY
14279# define LT_DLLAZY_OR_NOW RTLD_LAZY
14280# else
14281# ifdef DL_LAZY
14282# define LT_DLLAZY_OR_NOW DL_LAZY
14283# else
14284# ifdef RTLD_NOW
14285# define LT_DLLAZY_OR_NOW RTLD_NOW
14286# else
14287# ifdef DL_NOW
14288# define LT_DLLAZY_OR_NOW DL_NOW
14289# else
14290# define LT_DLLAZY_OR_NOW 0
14291# endif
14292# endif
14293# endif
14294# endif
14295#endif
14296
14297#ifdef __cplusplus
14298extern "C" void exit (int);
14299#endif
14300
14301void fnord() { int i=42;}
14302int main ()
14303{
14304 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14305 int status = $lt_dlunknown;
14306
14307 if (self)
14308 {
14309 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14310 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14311 /* dlclose (self); */
14312 }
14313
14314 exit (status);
14315}
14316EOF
14317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318 (eval $ac_link) 2>&5
14319 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14322 (./conftest; exit; ) 2>/dev/null
14323 lt_status=$?
14324 case x$lt_status in
14325 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14326 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14327 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14328 esac
14329 else :
14330 # compilation failed
14331 lt_cv_dlopen_self=no
14332 fi
14333fi
14334rm -fr conftest*
14335
14336
14337fi
14338echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14339echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14340
14341 if test "x$lt_cv_dlopen_self" = xyes; then
14342 LDFLAGS="$LDFLAGS $link_static_flag"
14343 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14344echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14345if test "${lt_cv_dlopen_self_static+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14347else
14348 if test "$cross_compiling" = yes; then :
14349 lt_cv_dlopen_self_static=cross
14350else
John Criswell47fdd832003-07-14 16:52:07 +000014351 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014352 lt_status=$lt_dlunknown
14353 cat > conftest.$ac_ext <<EOF
Misha Brukman19098e52005-05-12 22:15:34 +000014354#line 14354 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014355#include "confdefs.h"
14356
14357#if HAVE_DLFCN_H
14358#include <dlfcn.h>
14359#endif
14360
14361#include <stdio.h>
14362
14363#ifdef RTLD_GLOBAL
14364# define LT_DLGLOBAL RTLD_GLOBAL
14365#else
14366# ifdef DL_GLOBAL
14367# define LT_DLGLOBAL DL_GLOBAL
14368# else
14369# define LT_DLGLOBAL 0
14370# endif
14371#endif
14372
14373/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14374 find out it does not work in some platform. */
14375#ifndef LT_DLLAZY_OR_NOW
14376# ifdef RTLD_LAZY
14377# define LT_DLLAZY_OR_NOW RTLD_LAZY
14378# else
14379# ifdef DL_LAZY
14380# define LT_DLLAZY_OR_NOW DL_LAZY
14381# else
14382# ifdef RTLD_NOW
14383# define LT_DLLAZY_OR_NOW RTLD_NOW
14384# else
14385# ifdef DL_NOW
14386# define LT_DLLAZY_OR_NOW DL_NOW
14387# else
14388# define LT_DLLAZY_OR_NOW 0
14389# endif
14390# endif
14391# endif
14392# endif
14393#endif
14394
14395#ifdef __cplusplus
14396extern "C" void exit (int);
14397#endif
14398
14399void fnord() { int i=42;}
14400int main ()
14401{
14402 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14403 int status = $lt_dlunknown;
14404
14405 if (self)
14406 {
14407 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14408 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14409 /* dlclose (self); */
14410 }
14411
14412 exit (status);
14413}
14414EOF
14415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14416 (eval $ac_link) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14420 (./conftest; exit; ) 2>/dev/null
14421 lt_status=$?
14422 case x$lt_status in
14423 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14424 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14425 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14426 esac
14427 else :
14428 # compilation failed
14429 lt_cv_dlopen_self_static=no
14430 fi
14431fi
14432rm -fr conftest*
14433
14434
14435fi
14436echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14437echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14438 fi
14439
14440 CPPFLAGS="$save_CPPFLAGS"
14441 LDFLAGS="$save_LDFLAGS"
14442 LIBS="$save_LIBS"
14443 ;;
14444 esac
14445
14446 case $lt_cv_dlopen_self in
14447 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14448 *) enable_dlopen_self=unknown ;;
14449 esac
14450
14451 case $lt_cv_dlopen_self_static in
14452 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14453 *) enable_dlopen_self_static=unknown ;;
14454 esac
14455fi
14456
14457
John Criswell47fdd832003-07-14 16:52:07 +000014458# Report which librarie types wil actually be built
14459echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14460echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14461echo "$as_me:$LINENO: result: $can_build_shared" >&5
14462echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014463
John Criswell47fdd832003-07-14 16:52:07 +000014464echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14465echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14466test "$can_build_shared" = "no" && enable_shared=no
14467
14468# On AIX, shared libraries and static libraries use the same namespace, and
14469# are all built from PIC.
14470case "$host_os" in
14471aix3*)
14472 test "$enable_shared" = yes && enable_static=no
14473 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014474 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014475 postinstall_cmds='$RANLIB $lib'
14476 fi
14477 ;;
14478
Reid Spencer2706f8c2004-09-19 23:53:36 +000014479aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014480 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14481 test "$enable_shared" = yes && enable_static=no
14482 fi
John Criswell7a73b802003-06-30 21:59:07 +000014483 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014484esac
14485echo "$as_me:$LINENO: result: $enable_shared" >&5
14486echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014487
John Criswell47fdd832003-07-14 16:52:07 +000014488echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14489echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14490# Make sure either enable_shared or enable_static is yes.
14491test "$enable_shared" = yes || enable_static=yes
14492echo "$as_me:$LINENO: result: $enable_static" >&5
14493echo "${ECHO_T}$enable_static" >&6
14494
14495# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014496# libtool distribution, otherwise you forgot to ship ltmain.sh
14497# with your package, and you will get complaints that there are
14498# no rules to generate ltmain.sh.
14499if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014500 # See if we are running on zsh, and set the options which allow our commands through
14501 # without removal of \ escapes.
14502 if test -n "${ZSH_VERSION+set}" ; then
14503 setopt NO_GLOB_SUBST
14504 fi
John Criswell7a73b802003-06-30 21:59:07 +000014505 # Now quote all the things that may contain metacharacters while being
14506 # careful not to overquote the AC_SUBSTed values. We take copies of the
14507 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014508 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14509 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014510 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14511 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14512 deplibs_check_method reload_flag reload_cmds need_locks \
14513 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14514 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014515 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014516 old_postinstall_cmds old_postuninstall_cmds \
14517 compiler \
14518 CC \
14519 LD \
14520 lt_prog_compiler_wl \
14521 lt_prog_compiler_pic \
14522 lt_prog_compiler_static \
14523 lt_prog_compiler_no_builtin_flag \
14524 export_dynamic_flag_spec \
14525 thread_safe_flag_spec \
14526 whole_archive_flag_spec \
14527 enable_shared_with_static_runtimes \
14528 old_archive_cmds \
14529 old_archive_from_new_cmds \
14530 predep_objects \
14531 postdep_objects \
14532 predeps \
14533 postdeps \
14534 compiler_lib_search_path \
14535 archive_cmds \
14536 archive_expsym_cmds \
14537 postinstall_cmds \
14538 postuninstall_cmds \
14539 old_archive_from_expsyms_cmds \
14540 allow_undefined_flag \
14541 no_undefined_flag \
14542 export_symbols_cmds \
14543 hardcode_libdir_flag_spec \
14544 hardcode_libdir_flag_spec_ld \
14545 hardcode_libdir_separator \
14546 hardcode_automatic \
14547 module_cmds \
14548 module_expsym_cmds \
14549 lt_cv_prog_compiler_c_o \
14550 exclude_expsyms \
14551 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014552
14553 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014554 old_archive_cmds | \
14555 old_archive_from_new_cmds | \
14556 archive_cmds | \
14557 archive_expsym_cmds | \
14558 module_cmds | \
14559 module_expsym_cmds | \
14560 old_archive_from_expsyms_cmds | \
14561 export_symbols_cmds | \
14562 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014563 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014564 old_postinstall_cmds | old_postuninstall_cmds | \
14565 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014566 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014567 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 +000014568 ;;
14569 *)
14570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14571 ;;
14572 esac
14573 done
14574
John Criswell47fdd832003-07-14 16:52:07 +000014575 case $lt_echo in
14576 *'\$0 --fallback-echo"')
14577 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14578 ;;
14579 esac
14580
14581cfgfile="${ofile}T"
14582 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14583 $rm -f "$cfgfile"
14584 { echo "$as_me:$LINENO: creating $ofile" >&5
14585echo "$as_me: creating $ofile" >&6;}
14586
14587 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014588#! $SHELL
14589
John Criswell47fdd832003-07-14 16:52:07 +000014590# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014591# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14592# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14593#
John Criswell47fdd832003-07-14 16:52:07 +000014594# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14595# Free Software Foundation, Inc.
14596#
14597# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014598# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14599#
14600# This program is free software; you can redistribute it and/or modify
14601# it under the terms of the GNU General Public License as published by
14602# the Free Software Foundation; either version 2 of the License, or
14603# (at your option) any later version.
14604#
14605# This program is distributed in the hope that it will be useful, but
14606# WITHOUT ANY WARRANTY; without even the implied warranty of
14607# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14608# General Public License for more details.
14609#
14610# You should have received a copy of the GNU General Public License
14611# along with this program; if not, write to the Free Software
14612# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14613#
14614# As a special exception to the GNU General Public License, if you
14615# distribute this file as part of a program that contains a
14616# configuration script generated by Autoconf, you may include it under
14617# the same distribution terms that you use for the rest of that program.
14618
John Criswell47fdd832003-07-14 16:52:07 +000014619# A sed program that does not truncate output.
14620SED=$lt_SED
14621
John Criswell7a73b802003-06-30 21:59:07 +000014622# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014623Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014624
14625# The HP-UX ksh and POSIX shell print the target directory to stdout
14626# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014627(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014628
John Criswell47fdd832003-07-14 16:52:07 +000014629# The names of the tagged configurations supported by this script.
14630available_tags=
14631
John Criswell7a73b802003-06-30 21:59:07 +000014632# ### BEGIN LIBTOOL CONFIG
14633
14634# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14635
14636# Shell to use when invoking shell scripts.
14637SHELL=$lt_SHELL
14638
14639# Whether or not to build shared libraries.
14640build_libtool_libs=$enable_shared
14641
14642# Whether or not to build static libraries.
14643build_old_libs=$enable_static
14644
14645# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014646build_libtool_need_lc=$archive_cmds_need_lc
14647
14648# Whether or not to disallow shared libs when runtime libs are static
14649allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014650
14651# Whether or not to optimize for fast installation.
14652fast_install=$enable_fast_install
14653
14654# The host system.
14655host_alias=$host_alias
14656host=$host
14657
14658# An echo program that does not interpret backslashes.
14659echo=$lt_echo
14660
14661# The archiver.
14662AR=$lt_AR
14663AR_FLAGS=$lt_AR_FLAGS
14664
John Criswell47fdd832003-07-14 16:52:07 +000014665# A C compiler.
14666LTCC=$lt_LTCC
14667
14668# A language-specific compiler.
14669CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014670
14671# Is the compiler the GNU C compiler?
14672with_gcc=$GCC
14673
John Criswell47fdd832003-07-14 16:52:07 +000014674# An ERE matcher.
14675EGREP=$lt_EGREP
14676
John Criswell7a73b802003-06-30 21:59:07 +000014677# The linker used to build libraries.
14678LD=$lt_LD
14679
14680# Whether we need hard or soft links.
14681LN_S=$lt_LN_S
14682
14683# A BSD-compatible nm program.
14684NM=$lt_NM
14685
14686# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014687STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014688
14689# Used to examine libraries when file_magic_cmd begins "file"
14690MAGIC_CMD=$MAGIC_CMD
14691
14692# Used on cygwin: DLL creation program.
14693DLLTOOL="$DLLTOOL"
14694
14695# Used on cygwin: object dumper.
14696OBJDUMP="$OBJDUMP"
14697
14698# Used on cygwin: assembler.
14699AS="$AS"
14700
14701# The name of the directory that contains temporary libtool files.
14702objdir=$objdir
14703
14704# How to create reloadable object files.
14705reload_flag=$lt_reload_flag
14706reload_cmds=$lt_reload_cmds
14707
14708# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014709wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014710
14711# Object file suffix (normally "o").
14712objext="$ac_objext"
14713
14714# Old archive suffix (normally "a").
14715libext="$libext"
14716
John Criswell47fdd832003-07-14 16:52:07 +000014717# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014718shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014719
John Criswell7a73b802003-06-30 21:59:07 +000014720# Executable file suffix (normally "").
14721exeext="$exeext"
14722
14723# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014724pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014725pic_mode=$pic_mode
14726
John Criswell47fdd832003-07-14 16:52:07 +000014727# What is the maximum length of a command?
14728max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014729
John Criswell47fdd832003-07-14 16:52:07 +000014730# Does compiler simultaneously support -c and -o options?
14731compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014732
14733# Must we lock files when doing compilation ?
14734need_locks=$lt_need_locks
14735
14736# Do we need the lib prefix for modules?
14737need_lib_prefix=$need_lib_prefix
14738
14739# Do we need a version for libraries?
14740need_version=$need_version
14741
14742# Whether dlopen is supported.
14743dlopen_support=$enable_dlopen
14744
14745# Whether dlopen of programs is supported.
14746dlopen_self=$enable_dlopen_self
14747
14748# Whether dlopen of statically linked programs is supported.
14749dlopen_self_static=$enable_dlopen_self_static
14750
14751# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014752link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014753
14754# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014755no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014756
14757# Compiler flag to allow reflexive dlopens.
14758export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14759
14760# Compiler flag to generate shared objects directly from archives.
14761whole_archive_flag_spec=$lt_whole_archive_flag_spec
14762
14763# Compiler flag to generate thread-safe objects.
14764thread_safe_flag_spec=$lt_thread_safe_flag_spec
14765
14766# Library versioning type.
14767version_type=$version_type
14768
14769# Format of library name prefix.
14770libname_spec=$lt_libname_spec
14771
14772# List of archive names. First name is the real one, the rest are links.
14773# The last name is the one that the linker finds with -lNAME.
14774library_names_spec=$lt_library_names_spec
14775
14776# The coded name of the library, if different from the real name.
14777soname_spec=$lt_soname_spec
14778
14779# Commands used to build and install an old-style archive.
14780RANLIB=$lt_RANLIB
14781old_archive_cmds=$lt_old_archive_cmds
14782old_postinstall_cmds=$lt_old_postinstall_cmds
14783old_postuninstall_cmds=$lt_old_postuninstall_cmds
14784
14785# Create an old-style archive from a shared archive.
14786old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14787
14788# Create a temporary old-style archive to link instead of a shared archive.
14789old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14790
14791# Commands used to build and install a shared archive.
14792archive_cmds=$lt_archive_cmds
14793archive_expsym_cmds=$lt_archive_expsym_cmds
14794postinstall_cmds=$lt_postinstall_cmds
14795postuninstall_cmds=$lt_postuninstall_cmds
14796
John Criswell47fdd832003-07-14 16:52:07 +000014797# Commands used to build a loadable module (assumed same as above if empty)
14798module_cmds=$lt_module_cmds
14799module_expsym_cmds=$lt_module_expsym_cmds
14800
John Criswell7a73b802003-06-30 21:59:07 +000014801# Commands to strip libraries.
14802old_striplib=$lt_old_striplib
14803striplib=$lt_striplib
14804
John Criswell47fdd832003-07-14 16:52:07 +000014805# Dependencies to place before the objects being linked to create a
14806# shared library.
14807predep_objects=$lt_predep_objects
14808
14809# Dependencies to place after the objects being linked to create a
14810# shared library.
14811postdep_objects=$lt_postdep_objects
14812
14813# Dependencies to place before the objects being linked to create a
14814# shared library.
14815predeps=$lt_predeps
14816
14817# Dependencies to place after the objects being linked to create a
14818# shared library.
14819postdeps=$lt_postdeps
14820
14821# The library search path used internally by the compiler when linking
14822# a shared library.
14823compiler_lib_search_path=$lt_compiler_lib_search_path
14824
John Criswell7a73b802003-06-30 21:59:07 +000014825# Method to check whether dependent libraries are shared objects.
14826deplibs_check_method=$lt_deplibs_check_method
14827
14828# Command to use when deplibs_check_method == file_magic.
14829file_magic_cmd=$lt_file_magic_cmd
14830
14831# Flag that allows shared libraries with undefined symbols to be built.
14832allow_undefined_flag=$lt_allow_undefined_flag
14833
14834# Flag that forces no undefined symbols.
14835no_undefined_flag=$lt_no_undefined_flag
14836
14837# Commands used to finish a libtool library installation in a directory.
14838finish_cmds=$lt_finish_cmds
14839
14840# Same as above, but a single script fragment to be evaled but not shown.
14841finish_eval=$lt_finish_eval
14842
14843# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014844global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014845
14846# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014847global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014848
14849# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014850global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014851
14852# This is the shared library runtime path variable.
14853runpath_var=$runpath_var
14854
14855# This is the shared library path variable.
14856shlibpath_var=$shlibpath_var
14857
14858# Is shlibpath searched before the hard-coded library search path?
14859shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14860
14861# How to hardcode a shared library path into an executable.
14862hardcode_action=$hardcode_action
14863
14864# Whether we should hardcode library paths into libraries.
14865hardcode_into_libs=$hardcode_into_libs
14866
14867# Flag to hardcode \$libdir into a binary during linking.
14868# This must work even if \$libdir does not exist.
14869hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14870
John Criswell47fdd832003-07-14 16:52:07 +000014871# If ld is used when linking, flag to hardcode \$libdir into
14872# a binary during linking. This must work even if \$libdir does
14873# not exist.
14874hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14875
John Criswell7a73b802003-06-30 21:59:07 +000014876# Whether we need a single -rpath flag with a separated argument.
14877hardcode_libdir_separator=$lt_hardcode_libdir_separator
14878
John Criswell47fdd832003-07-14 16:52:07 +000014879# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014880# resulting binary.
14881hardcode_direct=$hardcode_direct
14882
14883# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14884# resulting binary.
14885hardcode_minus_L=$hardcode_minus_L
14886
14887# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14888# the resulting binary.
14889hardcode_shlibpath_var=$hardcode_shlibpath_var
14890
John Criswell47fdd832003-07-14 16:52:07 +000014891# Set to yes if building a shared library automatically hardcodes DIR into the library
14892# and all subsequent libraries and executables linked against it.
14893hardcode_automatic=$hardcode_automatic
14894
John Criswell7a73b802003-06-30 21:59:07 +000014895# Variables whose values should be saved in libtool wrapper scripts and
14896# restored at relink time.
14897variables_saved_for_relink="$variables_saved_for_relink"
14898
14899# Whether libtool must link a program against all its dependency libraries.
14900link_all_deplibs=$link_all_deplibs
14901
14902# Compile-time system search path for libraries
14903sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14904
14905# Run-time system search path for libraries
14906sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14907
14908# Fix the shell variable \$srcfile for the compiler.
14909fix_srcfile_path="$fix_srcfile_path"
14910
14911# Set to yes if exported symbols are required.
14912always_export_symbols=$always_export_symbols
14913
14914# The commands to list exported symbols.
14915export_symbols_cmds=$lt_export_symbols_cmds
14916
14917# The commands to extract the exported symbol list from a shared archive.
14918extract_expsyms_cmds=$lt_extract_expsyms_cmds
14919
14920# Symbols that should not be listed in the preloaded symbols.
14921exclude_expsyms=$lt_exclude_expsyms
14922
14923# Symbols that must always be exported.
14924include_expsyms=$lt_include_expsyms
14925
14926# ### END LIBTOOL CONFIG
14927
14928__EOF__
14929
John Criswell47fdd832003-07-14 16:52:07 +000014930
John Criswell7a73b802003-06-30 21:59:07 +000014931 case $host_os in
14932 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014933 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014934
14935# AIX sometimes has problems with the GCC collect2 program. For some
14936# reason, if we set the COLLECT_NAMES environment variable, the problems
14937# vanish in a puff of smoke.
14938if test "X${COLLECT_NAMES+set}" != Xset; then
14939 COLLECT_NAMES=
14940 export COLLECT_NAMES
14941fi
14942EOF
14943 ;;
14944 esac
14945
John Criswell7a73b802003-06-30 21:59:07 +000014946 # We use sed instead of cat because bash on DJGPP gets confused if
14947 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14948 # text mode, it properly converts lines to CR/LF. This bash problem
14949 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014950 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014951
John Criswell47fdd832003-07-14 16:52:07 +000014952 mv -f "$cfgfile" "$ofile" || \
14953 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014954 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014955
14956else
14957 # If there is no Makefile yet, we rely on a make rule to execute
14958 # `config.status --recheck' to rerun these tests and create the
14959 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014960 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14961 if test -f "$ltmain_in"; then
14962 test -f Makefile && make "$ltmain"
14963 fi
John Criswell7a73b802003-06-30 21:59:07 +000014964fi
John Criswell7a73b802003-06-30 21:59:07 +000014965
14966
John Criswell47fdd832003-07-14 16:52:07 +000014967ac_ext=c
14968ac_cpp='$CPP $CPPFLAGS'
14969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14971ac_compiler_gnu=$ac_cv_c_compiler_gnu
14972
14973CC="$lt_save_CC"
14974
14975
14976# Check whether --with-tags or --without-tags was given.
14977if test "${with_tags+set}" = set; then
14978 withval="$with_tags"
14979 tagnames="$withval"
14980fi;
14981
14982if test -f "$ltmain" && test -n "$tagnames"; then
14983 if test ! -f "${ofile}"; then
14984 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14985echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14986 fi
14987
14988 if test -z "$LTCC"; then
14989 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14990 if test -z "$LTCC"; then
14991 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14992echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14993 else
14994 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14995echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14996 fi
14997 fi
14998
14999 # Extract list of available tagged configurations in $ofile.
15000 # Note that this assumes the entire list is on one line.
15001 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15002
15003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15004 for tagname in $tagnames; do
15005 IFS="$lt_save_ifs"
15006 # Check whether tagname contains only valid characters
15007 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15008 "") ;;
15009 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15010echo "$as_me: error: invalid tag name: $tagname" >&2;}
15011 { (exit 1); exit 1; }; }
15012 ;;
15013 esac
15014
15015 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15016 then
15017 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15018echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15019 { (exit 1); exit 1; }; }
15020 fi
15021
15022 # Update the list of available tags.
15023 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015024 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015025
15026 case $tagname in
15027 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015028 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15029 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15030 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015031 ac_ext=cc
15032ac_cpp='$CXXCPP $CPPFLAGS'
15033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15036
15037
15038
15039
15040archive_cmds_need_lc_CXX=no
15041allow_undefined_flag_CXX=
15042always_export_symbols_CXX=no
15043archive_expsym_cmds_CXX=
15044export_dynamic_flag_spec_CXX=
15045hardcode_direct_CXX=no
15046hardcode_libdir_flag_spec_CXX=
15047hardcode_libdir_flag_spec_ld_CXX=
15048hardcode_libdir_separator_CXX=
15049hardcode_minus_L_CXX=no
15050hardcode_automatic_CXX=no
15051module_cmds_CXX=
15052module_expsym_cmds_CXX=
15053link_all_deplibs_CXX=unknown
15054old_archive_cmds_CXX=$old_archive_cmds
15055no_undefined_flag_CXX=
15056whole_archive_flag_spec_CXX=
15057enable_shared_with_static_runtimes_CXX=no
15058
15059# Dependencies to place before and after the object being linked:
15060predep_objects_CXX=
15061postdep_objects_CXX=
15062predeps_CXX=
15063postdeps_CXX=
15064compiler_lib_search_path_CXX=
15065
15066# Source file extension for C++ test sources.
15067ac_ext=cc
15068
15069# Object file extension for compiled C++ test sources.
15070objext=o
15071objext_CXX=$objext
15072
15073# Code to be used in simple compile tests
15074lt_simple_compile_test_code="int some_variable = 0;\n"
15075
15076# Code to be used in simple link tests
15077lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15078
15079# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15080
15081# If no C compiler was specified, use CC.
15082LTCC=${LTCC-"$CC"}
15083
15084# Allow CC to be a program name with arguments.
15085compiler=$CC
15086
15087
15088# Allow CC to be a program name with arguments.
15089lt_save_CC=$CC
15090lt_save_LD=$LD
15091lt_save_GCC=$GCC
15092GCC=$GXX
15093lt_save_with_gnu_ld=$with_gnu_ld
15094lt_save_path_LD=$lt_cv_path_LD
15095if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15096 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15097else
15098 unset lt_cv_prog_gnu_ld
15099fi
15100if test -n "${lt_cv_path_LDCXX+set}"; then
15101 lt_cv_path_LD=$lt_cv_path_LDCXX
15102else
15103 unset lt_cv_path_LD
15104fi
15105test -z "${LDCXX+set}" || LD=$LDCXX
15106CC=${CXX-"c++"}
15107compiler=$CC
15108compiler_CXX=$CC
15109cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15110
15111# We don't want -fno-exception wen compiling C++ code, so set the
15112# no_builtin_flag separately
15113if test "$GXX" = yes; then
15114 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15115else
15116 lt_prog_compiler_no_builtin_flag_CXX=
15117fi
15118
15119if test "$GXX" = yes; then
15120 # Set up default GNU C++ configuration
15121
15122
15123# Check whether --with-gnu-ld or --without-gnu-ld was given.
15124if test "${with_gnu_ld+set}" = set; then
15125 withval="$with_gnu_ld"
15126 test "$withval" = no || with_gnu_ld=yes
15127else
15128 with_gnu_ld=no
15129fi;
15130ac_prog=ld
15131if test "$GCC" = yes; then
15132 # Check if gcc -print-prog-name=ld gives a path.
15133 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15134echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15135 case $host in
15136 *-*-mingw*)
15137 # gcc leaves a trailing carriage return which upsets mingw
15138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15139 *)
15140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15141 esac
15142 case $ac_prog in
15143 # Accept absolute paths.
15144 [\\/]* | ?:[\\/]*)
15145 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015146 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15150 done
15151 test -z "$LD" && LD="$ac_prog"
15152 ;;
15153 "")
15154 # If it fails, then pretend we aren't using GCC.
15155 ac_prog=ld
15156 ;;
15157 *)
15158 # If it is relative, then search for the first ld in PATH.
15159 with_gnu_ld=unknown
15160 ;;
15161 esac
15162elif test "$with_gnu_ld" = yes; then
15163 echo "$as_me:$LINENO: checking for GNU ld" >&5
15164echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15165else
15166 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15167echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15168fi
15169if test "${lt_cv_path_LD+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171else
15172 if test -z "$LD"; then
15173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15174 for ac_dir in $PATH; do
15175 IFS="$lt_save_ifs"
15176 test -z "$ac_dir" && ac_dir=.
15177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15178 lt_cv_path_LD="$ac_dir/$ac_prog"
15179 # Check to see if the program is GNU ld. I'd rather use --version,
15180 # but apparently some GNU ld's only accept -v.
15181 # Break only if it was the GNU/non-GNU ld that we prefer.
15182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15183 *GNU* | *'with BFD'*)
15184 test "$with_gnu_ld" != no && break
15185 ;;
15186 *)
15187 test "$with_gnu_ld" != yes && break
15188 ;;
15189 esac
15190 fi
15191 done
15192 IFS="$lt_save_ifs"
15193else
15194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15195fi
15196fi
15197
15198LD="$lt_cv_path_LD"
15199if test -n "$LD"; then
15200 echo "$as_me:$LINENO: result: $LD" >&5
15201echo "${ECHO_T}$LD" >&6
15202else
15203 echo "$as_me:$LINENO: result: no" >&5
15204echo "${ECHO_T}no" >&6
15205fi
15206test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15207echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15208 { (exit 1); exit 1; }; }
15209echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15210echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15211if test "${lt_cv_prog_gnu_ld+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15213else
15214 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015215case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015216*GNU* | *'with BFD'*)
15217 lt_cv_prog_gnu_ld=yes
15218 ;;
15219*)
15220 lt_cv_prog_gnu_ld=no
15221 ;;
15222esac
15223fi
15224echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15225echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15226with_gnu_ld=$lt_cv_prog_gnu_ld
15227
15228
15229
15230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15231 # archiving commands below assume that GNU ld is being used.
15232 if test "$with_gnu_ld" = yes; then
15233 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15234 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'
15235
15236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15238
15239 # If archive_cmds runs LD, not CC, wlarc should be empty
15240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15241 # investigate it a little bit more. (MM)
15242 wlarc='${wl}'
15243
15244 # ancient GNU ld didn't support --whole-archive et. al.
15245 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15246 grep 'no-whole-archive' > /dev/null; then
15247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15248 else
15249 whole_archive_flag_spec_CXX=
15250 fi
15251 else
15252 with_gnu_ld=no
15253 wlarc=
15254
15255 # A generic and very simple default shared library creation
15256 # command for GNU C++ for the case where it uses the native
15257 # linker, instead of GNU ld. If possible, this setting should
15258 # overridden to take advantage of the native linker features on
15259 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015261 fi
15262
15263 # Commands to make compiler produce verbose output that lists
15264 # what "hidden" libraries, object files and flags are used when
15265 # linking a shared library.
15266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15267
15268else
15269 GXX=no
15270 with_gnu_ld=no
15271 wlarc=
15272fi
15273
15274# PORTME: fill in a description of your system's C++ link characteristics
15275echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15276echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15277ld_shlibs_CXX=yes
15278case $host_os in
15279 aix3*)
15280 # FIXME: insert proper C++ library support
15281 ld_shlibs_CXX=no
15282 ;;
15283 aix4* | aix5*)
15284 if test "$host_cpu" = ia64; then
15285 # On IA64, the linker does run time linking by default, so we don't
15286 # have to do anything special.
15287 aix_use_runtimelinking=no
15288 exp_sym_flag='-Bexport'
15289 no_entry_flag=""
15290 else
15291 aix_use_runtimelinking=no
15292
15293 # Test if we are trying to use run time linking or normal
15294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15295 # need to do runtime linking.
15296 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15297 for ld_flag in $LDFLAGS; do
15298 case $ld_flag in
15299 *-brtl*)
15300 aix_use_runtimelinking=yes
15301 break
15302 ;;
15303 esac
15304 done
15305 esac
15306
15307 exp_sym_flag='-bexport'
15308 no_entry_flag='-bnoentry'
15309 fi
15310
15311 # When large executables or shared objects are built, AIX ld can
15312 # have problems creating the table of contents. If linking a library
15313 # or program results in "error TOC overflow" add -mminimal-toc to
15314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15316
15317 archive_cmds_CXX=''
15318 hardcode_direct_CXX=yes
15319 hardcode_libdir_separator_CXX=':'
15320 link_all_deplibs_CXX=yes
15321
15322 if test "$GXX" = yes; then
15323 case $host_os in aix4.012|aix4.012.*)
15324 # We only want to do this on AIX 4.2 and lower, the check
15325 # below for broken collect2 doesn't work under 4.3+
15326 collect2name=`${CC} -print-prog-name=collect2`
15327 if test -f "$collect2name" && \
15328 strings "$collect2name" | grep resolve_lib_name >/dev/null
15329 then
15330 # We have reworked collect2
15331 hardcode_direct_CXX=yes
15332 else
15333 # We have old collect2
15334 hardcode_direct_CXX=unsupported
15335 # It fails to find uninstalled libraries when the uninstalled
15336 # path is not listed in the libpath. Setting hardcode_minus_L
15337 # to unsupported forces relinking
15338 hardcode_minus_L_CXX=yes
15339 hardcode_libdir_flag_spec_CXX='-L$libdir'
15340 hardcode_libdir_separator_CXX=
15341 fi
15342 esac
15343 shared_flag='-shared'
15344 else
15345 # not using gcc
15346 if test "$host_cpu" = ia64; then
15347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15348 # chokes on -Wl,-G. The following line is correct:
15349 shared_flag='-G'
15350 else
15351 if test "$aix_use_runtimelinking" = yes; then
15352 shared_flag='${wl}-G'
15353 else
15354 shared_flag='${wl}-bM:SRE'
15355 fi
15356 fi
15357 fi
15358
15359 # It seems that -bexpall does not export symbols beginning with
15360 # underscore (_), so it is better to generate a list of symbols to export.
15361 always_export_symbols_CXX=yes
15362 if test "$aix_use_runtimelinking" = yes; then
15363 # Warning - without using the other runtime loading flags (-brtl),
15364 # -berok will link without error, but may produce a broken library.
15365 allow_undefined_flag_CXX='-berok'
15366 # Determine the default libpath from the value encoded in an empty executable.
15367 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015368/* confdefs.h. */
15369_ACEOF
15370cat confdefs.h >>conftest.$ac_ext
15371cat >>conftest.$ac_ext <<_ACEOF
15372/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015373
John Criswell47fdd832003-07-14 16:52:07 +000015374int
15375main ()
15376{
15377
15378 ;
15379 return 0;
15380}
15381_ACEOF
15382rm -f conftest.$ac_objext conftest$ac_exeext
15383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015384 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015385 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015386 grep -v '^ *+' conftest.er1 >conftest.err
15387 rm -f conftest.er1
15388 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015391 { ac_try='test -z "$ac_cxx_werror_flag"
15392 || test ! -s conftest.err'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404
15405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15406}'`
15407# Check for a 64-bit object if we didn't find anything.
15408if 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; }
15409}'`; fi
15410else
15411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015412sed 's/^/| /' conftest.$ac_ext >&5
15413
John Criswell47fdd832003-07-14 16:52:07 +000015414fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015415rm -f conftest.err conftest.$ac_objext \
15416 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15418
15419 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15420
15421 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"
15422 else
15423 if test "$host_cpu" = ia64; then
15424 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15425 allow_undefined_flag_CXX="-z nodefs"
15426 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"
15427 else
15428 # Determine the default libpath from the value encoded in an empty executable.
15429 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015430/* confdefs.h. */
15431_ACEOF
15432cat confdefs.h >>conftest.$ac_ext
15433cat >>conftest.$ac_ext <<_ACEOF
15434/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015435
John Criswell47fdd832003-07-14 16:52:07 +000015436int
15437main ()
15438{
15439
15440 ;
15441 return 0;
15442}
15443_ACEOF
15444rm -f conftest.$ac_objext conftest$ac_exeext
15445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015446 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015447 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015448 grep -v '^ *+' conftest.er1 >conftest.err
15449 rm -f conftest.er1
15450 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015453 { ac_try='test -z "$ac_cxx_werror_flag"
15454 || test ! -s conftest.err'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; } &&
15460 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466
15467aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15468}'`
15469# Check for a 64-bit object if we didn't find anything.
15470if 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; }
15471}'`; fi
15472else
15473 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015474sed 's/^/| /' conftest.$ac_ext >&5
15475
John Criswell47fdd832003-07-14 16:52:07 +000015476fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015477rm -f conftest.err conftest.$ac_objext \
15478 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015479if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15480
15481 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15482 # Warning - without using the other run time loading flags,
15483 # -berok will link without error, but may produce a broken library.
15484 no_undefined_flag_CXX=' ${wl}-bernotok'
15485 allow_undefined_flag_CXX=' ${wl}-berok'
15486 # -bexpall does not export symbols beginning with underscore (_)
15487 always_export_symbols_CXX=yes
15488 # Exported symbols can be pulled into shared objects from archives
15489 whole_archive_flag_spec_CXX=' '
15490 archive_cmds_need_lc_CXX=yes
15491 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015492 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 +000015493 fi
15494 fi
15495 ;;
15496 chorus*)
15497 case $cc_basename in
15498 *)
15499 # FIXME: insert proper C++ library support
15500 ld_shlibs_CXX=no
15501 ;;
15502 esac
15503 ;;
15504
Reid Spencer2706f8c2004-09-19 23:53:36 +000015505
John Criswell47fdd832003-07-14 16:52:07 +000015506 cygwin* | mingw* | pw32*)
15507 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15508 # as there is no search path for DLLs.
15509 hardcode_libdir_flag_spec_CXX='-L$libdir'
15510 allow_undefined_flag_CXX=unsupported
15511 always_export_symbols_CXX=no
15512 enable_shared_with_static_runtimes_CXX=yes
15513
15514 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15515 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'
15516 # If the export-symbols file already is a .def file (1st line
15517 # is EXPORTS), use it as is; otherwise, prepend...
15518 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15519 cp $export_symbols $output_objdir/$soname.def;
15520 else
15521 echo EXPORTS > $output_objdir/$soname.def;
15522 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015523 fi~
15524 $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 +000015525 else
15526 ld_shlibs_CXX=no
15527 fi
15528 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015529 darwin* | rhapsody*)
15530 case "$host_os" in
15531 rhapsody* | darwin1.[012])
15532 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15533 ;;
15534 *) # Darwin 1.3 on
15535 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15536 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15537 else
15538 case ${MACOSX_DEPLOYMENT_TARGET} in
15539 10.[012])
15540 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15541 ;;
15542 10.*)
15543 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15544 ;;
15545 esac
15546 fi
15547 ;;
15548 esac
15549 archive_cmds_need_lc_CXX=no
15550 hardcode_direct_CXX=no
15551 hardcode_automatic_CXX=yes
15552 hardcode_shlibpath_var_CXX=unsupported
15553 whole_archive_flag_spec_CXX=''
15554 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015555
Reid Spencer2706f8c2004-09-19 23:53:36 +000015556 if test "$GXX" = yes ; then
15557 lt_int_apple_cc_single_mod=no
15558 output_verbose_link_cmd='echo'
15559 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15560 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015561 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015562 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015563 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 +000015564 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015565 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 +000015566 fi
15567 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15568 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15569 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015570 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 +000015571 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015572 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 +000015573 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015574 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 +000015575 else
15576 case "$cc_basename" in
15577 xlc*)
15578 output_verbose_link_cmd='echo'
15579 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'
15580 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15581 # 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 +000015582 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}'
15583 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 +000015584 ;;
15585 *)
15586 ld_shlibs_CXX=no
15587 ;;
15588 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015589 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015590 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015591
15592 dgux*)
15593 case $cc_basename in
15594 ec++)
15595 # FIXME: insert proper C++ library support
15596 ld_shlibs_CXX=no
15597 ;;
15598 ghcx)
15599 # Green Hills C++ Compiler
15600 # FIXME: insert proper C++ library support
15601 ld_shlibs_CXX=no
15602 ;;
15603 *)
15604 # FIXME: insert proper C++ library support
15605 ld_shlibs_CXX=no
15606 ;;
15607 esac
15608 ;;
15609 freebsd12*)
15610 # C++ shared libraries reported to be fairly broken before switch to ELF
15611 ld_shlibs_CXX=no
15612 ;;
15613 freebsd-elf*)
15614 archive_cmds_need_lc_CXX=no
15615 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015616 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015617 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15618 # conventions
15619 ld_shlibs_CXX=yes
15620 ;;
15621 gnu*)
15622 ;;
15623 hpux9*)
15624 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15625 hardcode_libdir_separator_CXX=:
15626 export_dynamic_flag_spec_CXX='${wl}-E'
15627 hardcode_direct_CXX=yes
15628 hardcode_minus_L_CXX=yes # Not in the search PATH,
15629 # but as the default
15630 # location of the library.
15631
15632 case $cc_basename in
15633 CC)
15634 # FIXME: insert proper C++ library support
15635 ld_shlibs_CXX=no
15636 ;;
15637 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015638 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 +000015639 # Commands to make compiler produce verbose output that lists
15640 # what "hidden" libraries, object files and flags are used when
15641 # linking a shared library.
15642 #
15643 # There doesn't appear to be a way to prevent this compiler from
15644 # explicitly linking system object files so we need to strip them
15645 # from the output so that they don't get included in the library
15646 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015647 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 +000015648 ;;
15649 *)
15650 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015651 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 +000015652 else
15653 # FIXME: insert proper C++ library support
15654 ld_shlibs_CXX=no
15655 fi
15656 ;;
15657 esac
15658 ;;
15659 hpux10*|hpux11*)
15660 if test $with_gnu_ld = no; then
15661 case "$host_cpu" in
15662 hppa*64*)
15663 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15664 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15665 hardcode_libdir_separator_CXX=:
15666 ;;
15667 ia64*)
15668 hardcode_libdir_flag_spec_CXX='-L$libdir'
15669 ;;
15670 *)
15671 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15672 hardcode_libdir_separator_CXX=:
15673 export_dynamic_flag_spec_CXX='${wl}-E'
15674 ;;
15675 esac
15676 fi
15677 case "$host_cpu" in
15678 hppa*64*)
15679 hardcode_direct_CXX=no
15680 hardcode_shlibpath_var_CXX=no
15681 ;;
15682 ia64*)
15683 hardcode_direct_CXX=no
15684 hardcode_shlibpath_var_CXX=no
15685 hardcode_minus_L_CXX=yes # Not in the search PATH,
15686 # but as the default
15687 # location of the library.
15688 ;;
15689 *)
15690 hardcode_direct_CXX=yes
15691 hardcode_minus_L_CXX=yes # Not in the search PATH,
15692 # but as the default
15693 # location of the library.
15694 ;;
15695 esac
15696
15697 case $cc_basename in
15698 CC)
15699 # FIXME: insert proper C++ library support
15700 ld_shlibs_CXX=no
15701 ;;
15702 aCC)
15703 case "$host_cpu" in
15704 hppa*64*|ia64*)
15705 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15706 ;;
15707 *)
15708 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15709 ;;
15710 esac
15711 # Commands to make compiler produce verbose output that lists
15712 # what "hidden" libraries, object files and flags are used when
15713 # linking a shared library.
15714 #
15715 # There doesn't appear to be a way to prevent this compiler from
15716 # explicitly linking system object files so we need to strip them
15717 # from the output so that they don't get included in the library
15718 # dependencies.
15719 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'
15720 ;;
15721 *)
15722 if test "$GXX" = yes; then
15723 if test $with_gnu_ld = no; then
15724 case "$host_cpu" in
15725 ia64*|hppa*64*)
15726 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15727 ;;
15728 *)
15729 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'
15730 ;;
15731 esac
15732 fi
15733 else
15734 # FIXME: insert proper C++ library support
15735 ld_shlibs_CXX=no
15736 fi
15737 ;;
15738 esac
15739 ;;
15740 irix5* | irix6*)
15741 case $cc_basename in
15742 CC)
15743 # SGI C++
15744 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'
15745
15746 # Archives containing C++ object files must be created using
15747 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15748 # necessary to make sure instantiated templates are included
15749 # in the archive.
15750 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15751 ;;
15752 *)
15753 if test "$GXX" = yes; then
15754 if test "$with_gnu_ld" = no; then
15755 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'
15756 else
15757 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'
15758 fi
15759 fi
15760 link_all_deplibs_CXX=yes
15761 ;;
15762 esac
15763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15764 hardcode_libdir_separator_CXX=:
15765 ;;
15766 linux*)
15767 case $cc_basename in
15768 KCC)
15769 # Kuck and Associates, Inc. (KAI) C++ Compiler
15770
15771 # KCC will only create a shared library if the output file
15772 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15773 # to its proper name (with version) after linking.
15774 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'
15775 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'
15776 # Commands to make compiler produce verbose output that lists
15777 # what "hidden" libraries, object files and flags are used when
15778 # linking a shared library.
15779 #
15780 # There doesn't appear to be a way to prevent this compiler from
15781 # explicitly linking system object files so we need to strip them
15782 # from the output so that they don't get included in the library
15783 # dependencies.
15784 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'
15785
15786 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15788
15789 # Archives containing C++ object files must be created using
15790 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15791 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15792 ;;
15793 icpc)
15794 # Intel C++
15795 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015796 # version 8.0 and above of icpc choke on multiply defined symbols
15797 # if we add $predep_objects and $postdep_objects, however 7.1 and
15798 # earlier do not add the objects themselves.
15799 case `$CC -V 2>&1` in
15800 *"Version 7."*)
15801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15802 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'
15803 ;;
15804 *) # Version 8.0 or newer
15805 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15807 ;;
15808 esac
John Criswell47fdd832003-07-14 16:52:07 +000015809 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015810 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15811 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15812 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15813 ;;
15814 cxx)
15815 # Compaq C++
15816 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15817 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'
15818
15819 runpath_var=LD_RUN_PATH
15820 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15821 hardcode_libdir_separator_CXX=:
15822
15823 # Commands to make compiler produce verbose output that lists
15824 # what "hidden" libraries, object files and flags are used when
15825 # linking a shared library.
15826 #
15827 # There doesn't appear to be a way to prevent this compiler from
15828 # explicitly linking system object files so we need to strip them
15829 # from the output so that they don't get included in the library
15830 # dependencies.
15831 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'
15832 ;;
15833 esac
15834 ;;
15835 lynxos*)
15836 # FIXME: insert proper C++ library support
15837 ld_shlibs_CXX=no
15838 ;;
15839 m88k*)
15840 # FIXME: insert proper C++ library support
15841 ld_shlibs_CXX=no
15842 ;;
15843 mvs*)
15844 case $cc_basename in
15845 cxx)
15846 # FIXME: insert proper C++ library support
15847 ld_shlibs_CXX=no
15848 ;;
15849 *)
15850 # FIXME: insert proper C++ library support
15851 ld_shlibs_CXX=no
15852 ;;
15853 esac
15854 ;;
15855 netbsd*)
15856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15857 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15858 wlarc=
15859 hardcode_libdir_flag_spec_CXX='-R$libdir'
15860 hardcode_direct_CXX=yes
15861 hardcode_shlibpath_var_CXX=no
15862 fi
15863 # Workaround some broken pre-1.5 toolchains
15864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15865 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015866 openbsd2*)
15867 # C++ shared libraries are fairly broken
15868 ld_shlibs_CXX=no
15869 ;;
15870 openbsd*)
15871 hardcode_direct_CXX=yes
15872 hardcode_shlibpath_var_CXX=no
15873 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15874 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15875 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15876 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15877 export_dynamic_flag_spec_CXX='${wl}-E'
15878 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15879 fi
15880 output_verbose_link_cmd='echo'
15881 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015882 osf3*)
15883 case $cc_basename in
15884 KCC)
15885 # Kuck and Associates, Inc. (KAI) C++ Compiler
15886
15887 # KCC will only create a shared library if the output file
15888 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15889 # to its proper name (with version) after linking.
15890 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'
15891
15892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15893 hardcode_libdir_separator_CXX=:
15894
15895 # Archives containing C++ object files must be created using
15896 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15897 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15898
15899 ;;
15900 RCC)
15901 # Rational C++ 2.4.1
15902 # FIXME: insert proper C++ library support
15903 ld_shlibs_CXX=no
15904 ;;
15905 cxx)
15906 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15907 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'
15908
15909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15910 hardcode_libdir_separator_CXX=:
15911
15912 # Commands to make compiler produce verbose output that lists
15913 # what "hidden" libraries, object files and flags are used when
15914 # linking a shared library.
15915 #
15916 # There doesn't appear to be a way to prevent this compiler from
15917 # explicitly linking system object files so we need to strip them
15918 # from the output so that they don't get included in the library
15919 # dependencies.
15920 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'
15921 ;;
15922 *)
15923 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15924 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15925 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'
15926
15927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15928 hardcode_libdir_separator_CXX=:
15929
15930 # Commands to make compiler produce verbose output that lists
15931 # what "hidden" libraries, object files and flags are used when
15932 # linking a shared library.
15933 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15934
15935 else
15936 # FIXME: insert proper C++ library support
15937 ld_shlibs_CXX=no
15938 fi
15939 ;;
15940 esac
15941 ;;
15942 osf4* | osf5*)
15943 case $cc_basename in
15944 KCC)
15945 # Kuck and Associates, Inc. (KAI) C++ Compiler
15946
15947 # KCC will only create a shared library if the output file
15948 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15949 # to its proper name (with version) after linking.
15950 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'
15951
15952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15953 hardcode_libdir_separator_CXX=:
15954
15955 # Archives containing C++ object files must be created using
15956 # the KAI C++ compiler.
15957 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15958 ;;
15959 RCC)
15960 # Rational C++ 2.4.1
15961 # FIXME: insert proper C++ library support
15962 ld_shlibs_CXX=no
15963 ;;
15964 cxx)
15965 allow_undefined_flag_CXX=' -expect_unresolved \*'
15966 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 +000015967 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15968 echo "-hidden">> $lib.exp~
15969 $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~
15970 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015971
15972 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15973 hardcode_libdir_separator_CXX=:
15974
15975 # Commands to make compiler produce verbose output that lists
15976 # what "hidden" libraries, object files and flags are used when
15977 # linking a shared library.
15978 #
15979 # There doesn't appear to be a way to prevent this compiler from
15980 # explicitly linking system object files so we need to strip them
15981 # from the output so that they don't get included in the library
15982 # dependencies.
15983 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'
15984 ;;
15985 *)
15986 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15987 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15988 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'
15989
15990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15991 hardcode_libdir_separator_CXX=:
15992
15993 # Commands to make compiler produce verbose output that lists
15994 # what "hidden" libraries, object files and flags are used when
15995 # linking a shared library.
15996 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15997
15998 else
15999 # FIXME: insert proper C++ library support
16000 ld_shlibs_CXX=no
16001 fi
16002 ;;
16003 esac
16004 ;;
16005 psos*)
16006 # FIXME: insert proper C++ library support
16007 ld_shlibs_CXX=no
16008 ;;
16009 sco*)
16010 archive_cmds_need_lc_CXX=no
16011 case $cc_basename in
16012 CC)
16013 # FIXME: insert proper C++ library support
16014 ld_shlibs_CXX=no
16015 ;;
16016 *)
16017 # FIXME: insert proper C++ library support
16018 ld_shlibs_CXX=no
16019 ;;
16020 esac
16021 ;;
16022 sunos4*)
16023 case $cc_basename in
16024 CC)
16025 # Sun C++ 4.x
16026 # FIXME: insert proper C++ library support
16027 ld_shlibs_CXX=no
16028 ;;
16029 lcc)
16030 # Lucid
16031 # FIXME: insert proper C++ library support
16032 ld_shlibs_CXX=no
16033 ;;
16034 *)
16035 # FIXME: insert proper C++ library support
16036 ld_shlibs_CXX=no
16037 ;;
16038 esac
16039 ;;
16040 solaris*)
16041 case $cc_basename in
16042 CC)
16043 # Sun C++ 4.2, 5.x and Centerline C++
16044 no_undefined_flag_CXX=' -zdefs'
16045 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 +000016046 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16047 $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 +000016048
16049 hardcode_libdir_flag_spec_CXX='-R$libdir'
16050 hardcode_shlibpath_var_CXX=no
16051 case $host_os in
16052 solaris2.0-5 | solaris2.0-5.*) ;;
16053 *)
16054 # The C++ compiler is used as linker so we must use $wl
16055 # flag to pass the commands to the underlying system
16056 # linker.
16057 # Supported since Solaris 2.6 (maybe 2.5.1?)
16058 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16059 ;;
16060 esac
16061 link_all_deplibs_CXX=yes
16062
16063 # Commands to make compiler produce verbose output that lists
16064 # what "hidden" libraries, object files and flags are used when
16065 # linking a shared library.
16066 #
16067 # There doesn't appear to be a way to prevent this compiler from
16068 # explicitly linking system object files so we need to strip them
16069 # from the output so that they don't get included in the library
16070 # dependencies.
16071 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'
16072
16073 # Archives containing C++ object files must be created using
16074 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16075 # necessary to make sure instantiated templates are included
16076 # in the archive.
16077 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16078 ;;
16079 gcx)
16080 # Green Hills C++ Compiler
16081 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16082
16083 # The C++ compiler must be used to create the archive.
16084 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16085 ;;
16086 *)
16087 # GNU C++ compiler with Solaris linker
16088 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16089 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16090 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016091 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 +000016092 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16093 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16094
John Criswell47fdd832003-07-14 16:52:07 +000016095 # Commands to make compiler produce verbose output that lists
16096 # what "hidden" libraries, object files and flags are used when
16097 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016098 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016099 else
16100 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16101 # platform.
16102 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 +000016103 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16104 $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 +000016105
16106 # Commands to make compiler produce verbose output that lists
16107 # what "hidden" libraries, object files and flags are used when
16108 # linking a shared library.
16109 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16110 fi
16111
16112 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16113 fi
16114 ;;
16115 esac
16116 ;;
16117 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16118 archive_cmds_need_lc_CXX=no
16119 ;;
16120 tandem*)
16121 case $cc_basename in
16122 NCC)
16123 # NonStop-UX NCC 3.20
16124 # FIXME: insert proper C++ library support
16125 ld_shlibs_CXX=no
16126 ;;
16127 *)
16128 # FIXME: insert proper C++ library support
16129 ld_shlibs_CXX=no
16130 ;;
16131 esac
16132 ;;
16133 vxworks*)
16134 # FIXME: insert proper C++ library support
16135 ld_shlibs_CXX=no
16136 ;;
16137 *)
16138 # FIXME: insert proper C++ library support
16139 ld_shlibs_CXX=no
16140 ;;
16141esac
16142echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16143echo "${ECHO_T}$ld_shlibs_CXX" >&6
16144test "$ld_shlibs_CXX" = no && can_build_shared=no
16145
16146GCC_CXX="$GXX"
16147LD_CXX="$LD"
16148
John Criswell47fdd832003-07-14 16:52:07 +000016149
16150cat > conftest.$ac_ext <<EOF
16151class Foo
16152{
16153public:
16154 Foo (void) { a = 0; }
16155private:
16156 int a;
16157};
16158EOF
16159
16160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16161 (eval $ac_compile) 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; then
16165 # Parse the compiler output and extract the necessary
16166 # objects, libraries and library flags.
16167
16168 # Sentinel used to keep track of whether or not we are before
16169 # the conftest object file.
16170 pre_test_object_deps_done=no
16171
16172 # The `*' in the case matches for architectures that use `case' in
16173 # $output_verbose_cmd can trigger glob expansion during the loop
16174 # eval without this substitution.
16175 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16176
16177 for p in `eval $output_verbose_link_cmd`; do
16178 case $p in
16179
16180 -L* | -R* | -l*)
16181 # Some compilers place space between "-{L,R}" and the path.
16182 # Remove the space.
16183 if test $p = "-L" \
16184 || test $p = "-R"; then
16185 prev=$p
16186 continue
16187 else
16188 prev=
16189 fi
16190
16191 if test "$pre_test_object_deps_done" = no; then
16192 case $p in
16193 -L* | -R*)
16194 # Internal compiler library paths should come after those
16195 # provided the user. The postdeps already come after the
16196 # user supplied libs so there is no need to process them.
16197 if test -z "$compiler_lib_search_path_CXX"; then
16198 compiler_lib_search_path_CXX="${prev}${p}"
16199 else
16200 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16201 fi
16202 ;;
16203 # The "-l" case would never come before the object being
16204 # linked, so don't bother handling this case.
16205 esac
16206 else
16207 if test -z "$postdeps_CXX"; then
16208 postdeps_CXX="${prev}${p}"
16209 else
16210 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16211 fi
16212 fi
16213 ;;
16214
16215 *.$objext)
16216 # This assumes that the test object file only shows up
16217 # once in the compiler output.
16218 if test "$p" = "conftest.$objext"; then
16219 pre_test_object_deps_done=yes
16220 continue
16221 fi
16222
16223 if test "$pre_test_object_deps_done" = no; then
16224 if test -z "$predep_objects_CXX"; then
16225 predep_objects_CXX="$p"
16226 else
16227 predep_objects_CXX="$predep_objects_CXX $p"
16228 fi
16229 else
16230 if test -z "$postdep_objects_CXX"; then
16231 postdep_objects_CXX="$p"
16232 else
16233 postdep_objects_CXX="$postdep_objects_CXX $p"
16234 fi
16235 fi
16236 ;;
16237
16238 *) ;; # Ignore the rest.
16239
16240 esac
16241 done
16242
16243 # Clean up.
16244 rm -f a.out a.exe
16245else
16246 echo "libtool.m4: error: problem compiling CXX test program"
16247fi
16248
16249$rm -f confest.$objext
16250
16251case " $postdeps_CXX " in
16252*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16253esac
16254
16255lt_prog_compiler_wl_CXX=
16256lt_prog_compiler_pic_CXX=
16257lt_prog_compiler_static_CXX=
16258
16259echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16260echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16261
16262 # C++ specific cases for pic, static, wl, etc.
16263 if test "$GXX" = yes; then
16264 lt_prog_compiler_wl_CXX='-Wl,'
16265 lt_prog_compiler_static_CXX='-static'
16266
16267 case $host_os in
16268 aix*)
16269 # All AIX code is PIC.
16270 if test "$host_cpu" = ia64; then
16271 # AIX 5 now supports IA64 processor
16272 lt_prog_compiler_static_CXX='-Bstatic'
16273 fi
16274 ;;
16275 amigaos*)
16276 # FIXME: we need at least 68020 code to build shared libraries, but
16277 # adding the `-m68020' flag to GCC prevents building anything better,
16278 # like `-m68040'.
16279 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16280 ;;
16281 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16282 # PIC is the default for these OSes.
16283 ;;
16284 mingw* | os2* | pw32*)
16285 # This hack is so that the source file can tell whether it is being
16286 # built for inclusion in a dll (and should export symbols for example).
16287 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16288 ;;
16289 darwin* | rhapsody*)
16290 # PIC is the default on this platform
16291 # Common symbols not allowed in MH_DYLIB files
16292 lt_prog_compiler_pic_CXX='-fno-common'
16293 ;;
16294 *djgpp*)
16295 # DJGPP does not support shared libraries at all
16296 lt_prog_compiler_pic_CXX=
16297 ;;
16298 sysv4*MP*)
16299 if test -d /usr/nec; then
16300 lt_prog_compiler_pic_CXX=-Kconform_pic
16301 fi
16302 ;;
16303 hpux*)
16304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16305 # not for PA HP-UX.
16306 case "$host_cpu" in
16307 hppa*64*|ia64*)
16308 ;;
16309 *)
16310 lt_prog_compiler_pic_CXX='-fPIC'
16311 ;;
16312 esac
16313 ;;
16314 *)
16315 lt_prog_compiler_pic_CXX='-fPIC'
16316 ;;
16317 esac
16318 else
16319 case $host_os in
16320 aix4* | aix5*)
16321 # All AIX code is PIC.
16322 if test "$host_cpu" = ia64; then
16323 # AIX 5 now supports IA64 processor
16324 lt_prog_compiler_static_CXX='-Bstatic'
16325 else
16326 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16327 fi
16328 ;;
16329 chorus*)
16330 case $cc_basename in
16331 cxch68)
16332 # Green Hills C++ Compiler
16333 # _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"
16334 ;;
16335 esac
16336 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016337 darwin*)
16338 # PIC is the default on this platform
16339 # Common symbols not allowed in MH_DYLIB files
16340 case "$cc_basename" in
16341 xlc*)
16342 lt_prog_compiler_pic_CXX='-qnocommon'
16343 lt_prog_compiler_wl_CXX='-Wl,'
16344 ;;
16345 esac
16346 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016347 dgux*)
16348 case $cc_basename in
16349 ec++)
16350 lt_prog_compiler_pic_CXX='-KPIC'
16351 ;;
16352 ghcx)
16353 # Green Hills C++ Compiler
16354 lt_prog_compiler_pic_CXX='-pic'
16355 ;;
16356 *)
16357 ;;
16358 esac
16359 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016360 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016361 # FreeBSD uses GNU C++
16362 ;;
16363 hpux9* | hpux10* | hpux11*)
16364 case $cc_basename in
16365 CC)
16366 lt_prog_compiler_wl_CXX='-Wl,'
16367 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16368 if test "$host_cpu" != ia64; then
16369 lt_prog_compiler_pic_CXX='+Z'
16370 fi
16371 ;;
16372 aCC)
16373 lt_prog_compiler_wl_CXX='-Wl,'
16374 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16375 case "$host_cpu" in
16376 hppa*64*|ia64*)
16377 # +Z the default
16378 ;;
16379 *)
16380 lt_prog_compiler_pic_CXX='+Z'
16381 ;;
16382 esac
16383 ;;
16384 *)
16385 ;;
16386 esac
16387 ;;
16388 irix5* | irix6* | nonstopux*)
16389 case $cc_basename in
16390 CC)
16391 lt_prog_compiler_wl_CXX='-Wl,'
16392 lt_prog_compiler_static_CXX='-non_shared'
16393 # CC pic flag -KPIC is the default.
16394 ;;
16395 *)
16396 ;;
16397 esac
16398 ;;
16399 linux*)
16400 case $cc_basename in
16401 KCC)
16402 # KAI C++ Compiler
16403 lt_prog_compiler_wl_CXX='--backend -Wl,'
16404 lt_prog_compiler_pic_CXX='-fPIC'
16405 ;;
16406 icpc)
16407 # Intel C++
16408 lt_prog_compiler_wl_CXX='-Wl,'
16409 lt_prog_compiler_pic_CXX='-KPIC'
16410 lt_prog_compiler_static_CXX='-static'
16411 ;;
16412 cxx)
16413 # Compaq C++
16414 # Make sure the PIC flag is empty. It appears that all Alpha
16415 # Linux and Compaq Tru64 Unix objects are PIC.
16416 lt_prog_compiler_pic_CXX=
16417 lt_prog_compiler_static_CXX='-non_shared'
16418 ;;
16419 *)
16420 ;;
16421 esac
16422 ;;
16423 lynxos*)
16424 ;;
16425 m88k*)
16426 ;;
16427 mvs*)
16428 case $cc_basename in
16429 cxx)
16430 lt_prog_compiler_pic_CXX='-W c,exportall'
16431 ;;
16432 *)
16433 ;;
16434 esac
16435 ;;
16436 netbsd*)
16437 ;;
16438 osf3* | osf4* | osf5*)
16439 case $cc_basename in
16440 KCC)
16441 lt_prog_compiler_wl_CXX='--backend -Wl,'
16442 ;;
16443 RCC)
16444 # Rational C++ 2.4.1
16445 lt_prog_compiler_pic_CXX='-pic'
16446 ;;
16447 cxx)
16448 # Digital/Compaq C++
16449 lt_prog_compiler_wl_CXX='-Wl,'
16450 # Make sure the PIC flag is empty. It appears that all Alpha
16451 # Linux and Compaq Tru64 Unix objects are PIC.
16452 lt_prog_compiler_pic_CXX=
16453 lt_prog_compiler_static_CXX='-non_shared'
16454 ;;
16455 *)
16456 ;;
16457 esac
16458 ;;
16459 psos*)
16460 ;;
16461 sco*)
16462 case $cc_basename in
16463 CC)
16464 lt_prog_compiler_pic_CXX='-fPIC'
16465 ;;
16466 *)
16467 ;;
16468 esac
16469 ;;
16470 solaris*)
16471 case $cc_basename in
16472 CC)
16473 # Sun C++ 4.2, 5.x and Centerline C++
16474 lt_prog_compiler_pic_CXX='-KPIC'
16475 lt_prog_compiler_static_CXX='-Bstatic'
16476 lt_prog_compiler_wl_CXX='-Qoption ld '
16477 ;;
16478 gcx)
16479 # Green Hills C++ Compiler
16480 lt_prog_compiler_pic_CXX='-PIC'
16481 ;;
16482 *)
16483 ;;
16484 esac
16485 ;;
16486 sunos4*)
16487 case $cc_basename in
16488 CC)
16489 # Sun C++ 4.x
16490 lt_prog_compiler_pic_CXX='-pic'
16491 lt_prog_compiler_static_CXX='-Bstatic'
16492 ;;
16493 lcc)
16494 # Lucid
16495 lt_prog_compiler_pic_CXX='-pic'
16496 ;;
16497 *)
16498 ;;
16499 esac
16500 ;;
16501 tandem*)
16502 case $cc_basename in
16503 NCC)
16504 # NonStop-UX NCC 3.20
16505 lt_prog_compiler_pic_CXX='-KPIC'
16506 ;;
16507 *)
16508 ;;
16509 esac
16510 ;;
16511 unixware*)
16512 ;;
16513 vxworks*)
16514 ;;
16515 *)
16516 lt_prog_compiler_can_build_shared_CXX=no
16517 ;;
16518 esac
16519 fi
16520
16521echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16522echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16523
16524#
16525# Check to make sure the PIC flag actually works.
16526#
16527if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016528
16529echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016530echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16531if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16533else
16534 lt_prog_compiler_pic_works_CXX=no
16535 ac_outfile=conftest.$ac_objext
16536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16537 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16538 # Insert the option either (1) after the last *FLAGS variable, or
16539 # (2) before a word containing "conftest.", or (3) at the end.
16540 # Note that $ac_compile itself does not contain backslashes and begins
16541 # with a dollar sign (not a hyphen), so the echo should work correctly.
16542 # The option is referenced via a variable to avoid confusing sed.
16543 lt_compile=`echo "$ac_compile" | $SED \
16544 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16546 -e 's:$: $lt_compiler_flag:'`
Misha Brukman19098e52005-05-12 22:15:34 +000016547 (eval echo "\"\$as_me:16547: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016548 (eval "$lt_compile" 2>conftest.err)
16549 ac_status=$?
16550 cat conftest.err >&5
Misha Brukman19098e52005-05-12 22:15:34 +000016551 echo "$as_me:16551: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016552 if (exit $ac_status) && test -s "$ac_outfile"; then
16553 # The compiler can only warn and ignore the option if not recognized
16554 # So say no if there are warnings
16555 if test ! -s conftest.err; then
16556 lt_prog_compiler_pic_works_CXX=yes
16557 fi
16558 fi
16559 $rm conftest*
16560
16561fi
16562echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16563echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16564
16565if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16566 case $lt_prog_compiler_pic_CXX in
16567 "" | " "*) ;;
16568 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16569 esac
16570else
16571 lt_prog_compiler_pic_CXX=
16572 lt_prog_compiler_can_build_shared_CXX=no
16573fi
16574
16575fi
16576case "$host_os" in
16577 # For platforms which do not support PIC, -DPIC is meaningless:
16578 *djgpp*)
16579 lt_prog_compiler_pic_CXX=
16580 ;;
16581 *)
16582 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16583 ;;
16584esac
16585
16586echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16587echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16588if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16590else
16591 lt_cv_prog_compiler_c_o_CXX=no
16592 $rm -r conftest 2>/dev/null
16593 mkdir conftest
16594 cd conftest
16595 mkdir out
16596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16597
John Criswell47fdd832003-07-14 16:52:07 +000016598 lt_compiler_flag="-o out/conftest2.$ac_objext"
16599 # Insert the option either (1) after the last *FLAGS variable, or
16600 # (2) before a word containing "conftest.", or (3) at the end.
16601 # Note that $ac_compile itself does not contain backslashes and begins
16602 # with a dollar sign (not a hyphen), so the echo should work correctly.
16603 lt_compile=`echo "$ac_compile" | $SED \
16604 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16606 -e 's:$: $lt_compiler_flag:'`
Misha Brukman19098e52005-05-12 22:15:34 +000016607 (eval echo "\"\$as_me:16607: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016608 (eval "$lt_compile" 2>out/conftest.err)
16609 ac_status=$?
16610 cat out/conftest.err >&5
Misha Brukman19098e52005-05-12 22:15:34 +000016611 echo "$as_me:16611: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16613 then
16614 # The compiler can only warn and ignore the option if not recognized
16615 # So say no if there are warnings
16616 if test ! -s out/conftest.err; then
16617 lt_cv_prog_compiler_c_o_CXX=yes
16618 fi
16619 fi
16620 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016621 $rm conftest*
16622 # SGI C++ compiler will create directory out/ii_files/ for
16623 # template instantiation
16624 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16625 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016626 cd ..
16627 rmdir conftest
16628 $rm conftest*
16629
16630fi
16631echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16632echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16633
16634
16635hard_links="nottested"
16636if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16637 # do not overwrite the value of need_locks provided by the user
16638 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16639echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16640 hard_links=yes
16641 $rm conftest*
16642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16643 touch conftest.a
16644 ln conftest.a conftest.b 2>&5 || hard_links=no
16645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16646 echo "$as_me:$LINENO: result: $hard_links" >&5
16647echo "${ECHO_T}$hard_links" >&6
16648 if test "$hard_links" = no; then
16649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16650echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16651 need_locks=warn
16652 fi
16653else
16654 need_locks=no
16655fi
16656
16657echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16658echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16659
16660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16661 case $host_os in
16662 aix4* | aix5*)
16663 # If we're using GNU nm, then we don't want the "-C" option.
16664 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16665 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16666 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'
16667 else
16668 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'
16669 fi
16670 ;;
16671 pw32*)
16672 export_symbols_cmds_CXX="$ltdll_cmds"
16673 ;;
16674 cygwin* | mingw*)
16675 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16676 ;;
16677 *)
16678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16679 ;;
16680 esac
16681
16682echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16683echo "${ECHO_T}$ld_shlibs_CXX" >&6
16684test "$ld_shlibs_CXX" = no && can_build_shared=no
16685
16686variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16687if test "$GCC" = yes; then
16688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16689fi
16690
16691#
16692# Do we need to explicitly link libc?
16693#
16694case "x$archive_cmds_need_lc_CXX" in
16695x|xyes)
16696 # Assume -lc should be added
16697 archive_cmds_need_lc_CXX=yes
16698
16699 if test "$enable_shared" = yes && test "$GCC" = yes; then
16700 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016701 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016702 # FIXME: we may have to deal with multi-command sequences.
16703 ;;
16704 '$CC '*)
16705 # Test whether the compiler implicitly links with -lc since on some
16706 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16707 # to ld, don't add -lc before -lgcc.
16708 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16709echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16710 $rm conftest*
16711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16712
16713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16714 (eval $ac_compile) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } 2>conftest.err; then
16718 soname=conftest
16719 lib=conftest
16720 libobjs=conftest.$ac_objext
16721 deplibs=
16722 wl=$lt_prog_compiler_wl_CXX
16723 compiler_flags=-v
16724 linker_flags=-v
16725 verstring=
16726 output_objdir=.
16727 libname=conftest
16728 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16729 allow_undefined_flag_CXX=
16730 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16731 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }
16735 then
16736 archive_cmds_need_lc_CXX=no
16737 else
16738 archive_cmds_need_lc_CXX=yes
16739 fi
16740 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16741 else
16742 cat conftest.err 1>&5
16743 fi
16744 $rm conftest*
16745 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16746echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16747 ;;
16748 esac
16749 fi
16750 ;;
16751esac
16752
John Criswell47fdd832003-07-14 16:52:07 +000016753echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16754echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16755library_names_spec=
16756libname_spec='lib$name'
16757soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016758shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016759postinstall_cmds=
16760postuninstall_cmds=
16761finish_cmds=
16762finish_eval=
16763shlibpath_var=
16764shlibpath_overrides_runpath=unknown
16765version_type=none
16766dynamic_linker="$host_os ld.so"
16767sys_lib_dlsearch_path_spec="/lib /usr/lib"
16768if test "$GCC" = yes; then
16769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16770 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16771 # if the path contains ";" then we assume it to be the separator
16772 # otherwise default to the standard path separator (i.e. ":") - it is
16773 # assumed that no part of a normal pathname contains ";" but that should
16774 # okay in the real world where ";" in dirpaths is itself problematic.
16775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16776 else
16777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16778 fi
16779else
16780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16781fi
16782need_lib_prefix=unknown
16783hardcode_into_libs=no
16784
16785# when you set need_version to no, make sure it does not cause -set_version
16786# flags to be left without arguments
16787need_version=unknown
16788
16789case $host_os in
16790aix3*)
16791 version_type=linux
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16793 shlibpath_var=LIBPATH
16794
16795 # AIX 3 has no versioning support, so we append a major version to the name.
16796 soname_spec='${libname}${release}${shared_ext}$major'
16797 ;;
16798
16799aix4* | aix5*)
16800 version_type=linux
16801 need_lib_prefix=no
16802 need_version=no
16803 hardcode_into_libs=yes
16804 if test "$host_cpu" = ia64; then
16805 # AIX 5 supports IA64
16806 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 else
16809 # With GCC up to 2.95.x, collect2 would create an import file
16810 # for dependence libraries. The import file would start with
16811 # the line `#! .'. This would cause the generated library to
16812 # depend on `.', always an invalid library. This was fixed in
16813 # development snapshots of GCC prior to 3.0.
16814 case $host_os in
16815 aix4 | aix4.[01] | aix4.[01].*)
16816 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16817 echo ' yes '
16818 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16819 :
16820 else
16821 can_build_shared=no
16822 fi
16823 ;;
16824 esac
16825 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16826 # soname into executable. Probably we can add versioning support to
16827 # collect2, so additional links can be useful in future.
16828 if test "$aix_use_runtimelinking" = yes; then
16829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16830 # instead of lib<name>.a to let people know that these are not
16831 # typical AIX shared libraries.
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 else
16834 # We preserve .a as extension for shared libraries through AIX4.2
16835 # and later when we are not doing run time linking.
16836 library_names_spec='${libname}${release}.a $libname.a'
16837 soname_spec='${libname}${release}${shared_ext}$major'
16838 fi
16839 shlibpath_var=LIBPATH
16840 fi
16841 ;;
16842
16843amigaos*)
16844 library_names_spec='$libname.ixlibrary $libname.a'
16845 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016846 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 +000016847 ;;
16848
16849beos*)
16850 library_names_spec='${libname}${shared_ext}'
16851 dynamic_linker="$host_os ld.so"
16852 shlibpath_var=LIBRARY_PATH
16853 ;;
16854
Reid Spencer2706f8c2004-09-19 23:53:36 +000016855bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016856 version_type=linux
16857 need_version=no
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16864 # the default ld.so.conf also contains /usr/contrib/lib and
16865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16866 # libtool to hard-code these into programs
16867 ;;
16868
16869cygwin* | mingw* | pw32*)
16870 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016871 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016872 need_version=no
16873 need_lib_prefix=no
16874
16875 case $GCC,$host_os in
16876 yes,cygwin* | yes,mingw* | yes,pw32*)
16877 library_names_spec='$libname.dll.a'
16878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016879 postinstall_cmds='base_file=`basename \${file}`~
16880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16881 dldir=$destdir/`dirname \$dlpath`~
16882 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016883 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016884 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16885 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016886 $rm \$dlpath'
16887 shlibpath_overrides_runpath=yes
16888
16889 case $host_os in
16890 cygwin*)
16891 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16892 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 +000016893 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016894 ;;
16895 mingw*)
16896 # MinGW DLLs use traditional 'lib' prefix
16897 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16898 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16899 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16900 # It is most probably a Windows format PATH printed by
16901 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16902 # path with ; separators, and with drive letters. We can handle the
16903 # drive letters (cygwin fileutils understands them), so leave them,
16904 # especially as we might pass files found there to a mingw objdump,
16905 # which wouldn't understand a cygwinified path. Ahh.
16906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16907 else
16908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16909 fi
16910 ;;
16911 pw32*)
16912 # pw32 DLLs use 'pw' prefix rather than 'lib'
16913 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16914 ;;
16915 esac
16916 ;;
16917
16918 *)
16919 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16920 ;;
16921 esac
16922 dynamic_linker='Win32 ld.exe'
16923 # FIXME: first we should search . and the directory the executable is in
16924 shlibpath_var=PATH
16925 ;;
16926
16927darwin* | rhapsody*)
16928 dynamic_linker="$host_os dyld"
16929 version_type=darwin
16930 need_lib_prefix=no
16931 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016932 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016933 soname_spec='${libname}${release}${major}$shared_ext'
16934 shlibpath_overrides_runpath=yes
16935 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016936 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016937 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016938 if test "$GCC" = yes; then
16939 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"`
16940 else
16941 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016942 fi
16943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16944 ;;
16945
16946dgux*)
16947 version_type=linux
16948 need_lib_prefix=no
16949 need_version=no
16950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16951 soname_spec='${libname}${release}${shared_ext}$major'
16952 shlibpath_var=LD_LIBRARY_PATH
16953 ;;
16954
16955freebsd1*)
16956 dynamic_linker=no
16957 ;;
16958
Reid Spencer2706f8c2004-09-19 23:53:36 +000016959kfreebsd*-gnu)
16960 version_type=linux
16961 need_lib_prefix=no
16962 need_version=no
16963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16964 soname_spec='${libname}${release}${shared_ext}$major'
16965 shlibpath_var=LD_LIBRARY_PATH
16966 shlibpath_overrides_runpath=no
16967 hardcode_into_libs=yes
16968 dynamic_linker='GNU ld.so'
16969 ;;
16970
John Criswell47fdd832003-07-14 16:52:07 +000016971freebsd*)
16972 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16973 version_type=freebsd-$objformat
16974 case $version_type in
16975 freebsd-elf*)
16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16977 need_version=no
16978 need_lib_prefix=no
16979 ;;
16980 freebsd-*)
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16982 need_version=yes
16983 ;;
16984 esac
16985 shlibpath_var=LD_LIBRARY_PATH
16986 case $host_os in
16987 freebsd2*)
16988 shlibpath_overrides_runpath=yes
16989 ;;
16990 freebsd3.01* | freebsdelf3.01*)
16991 shlibpath_overrides_runpath=yes
16992 hardcode_into_libs=yes
16993 ;;
16994 *) # from 3.2 on
16995 shlibpath_overrides_runpath=no
16996 hardcode_into_libs=yes
16997 ;;
16998 esac
16999 ;;
17000
17001gnu*)
17002 version_type=linux
17003 need_lib_prefix=no
17004 need_version=no
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 shlibpath_var=LD_LIBRARY_PATH
17008 hardcode_into_libs=yes
17009 ;;
17010
17011hpux9* | hpux10* | hpux11*)
17012 # Give a soname corresponding to the major version so that dld.sl refuses to
17013 # link against other versions.
17014 version_type=sunos
17015 need_lib_prefix=no
17016 need_version=no
17017 case "$host_cpu" in
17018 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017019 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017020 hardcode_into_libs=yes
17021 dynamic_linker="$host_os dld.so"
17022 shlibpath_var=LD_LIBRARY_PATH
17023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025 soname_spec='${libname}${release}${shared_ext}$major'
17026 if test "X$HPUX_IA64_MODE" = X32; then
17027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17028 else
17029 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17030 fi
17031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17032 ;;
17033 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017034 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017035 hardcode_into_libs=yes
17036 dynamic_linker="$host_os dld.sl"
17037 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040 soname_spec='${libname}${release}${shared_ext}$major'
17041 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17043 ;;
17044 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017045 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017046 dynamic_linker="$host_os dld.sl"
17047 shlibpath_var=SHLIB_PATH
17048 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 ;;
17052 esac
17053 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17054 postinstall_cmds='chmod 555 $lib'
17055 ;;
17056
17057irix5* | irix6* | nonstopux*)
17058 case $host_os in
17059 nonstopux*) version_type=nonstopux ;;
17060 *)
17061 if test "$lt_cv_prog_gnu_ld" = yes; then
17062 version_type=linux
17063 else
17064 version_type=irix
17065 fi ;;
17066 esac
17067 need_lib_prefix=no
17068 need_version=no
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17071 case $host_os in
17072 irix5* | nonstopux*)
17073 libsuff= shlibsuff=
17074 ;;
17075 *)
17076 case $LD in # libtool.m4 will add one of these switches to LD
17077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17078 libsuff= shlibsuff= libmagic=32-bit;;
17079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17080 libsuff=32 shlibsuff=N32 libmagic=N32;;
17081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17083 *) libsuff= shlibsuff= libmagic=never-match;;
17084 esac
17085 ;;
17086 esac
17087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17088 shlibpath_overrides_runpath=no
17089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17091 hardcode_into_libs=yes
17092 ;;
17093
17094# No shared lib support for Linux oldld, aout, or coff.
17095linux*oldld* | linux*aout* | linux*coff*)
17096 dynamic_linker=no
17097 ;;
17098
17099# This must be Linux ELF.
17100linux*)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17107 shlibpath_var=LD_LIBRARY_PATH
17108 shlibpath_overrides_runpath=no
17109 # This implies no fast_install, which is unacceptable.
17110 # Some rework will be needed to allow for fast_install
17111 # before this can be enabled.
17112 hardcode_into_libs=yes
17113
Reid Spencer2706f8c2004-09-19 23:53:36 +000017114 # Append ld.so.conf contents to the search path
17115 if test -f /etc/ld.so.conf; then
17116 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17117 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17118 fi
17119
John Criswell47fdd832003-07-14 16:52:07 +000017120 # We used to test for /lib/ld.so.1 and disable shared libraries on
17121 # powerpc, because MkLinux only supported shared libraries with the
17122 # GNU dynamic linker. Since this was broken with cross compilers,
17123 # most powerpc-linux boxes support dynamic linking these days and
17124 # people can always --disable-shared, the test was removed, and we
17125 # assume the GNU/Linux dynamic linker is in use.
17126 dynamic_linker='GNU/Linux ld.so'
17127 ;;
17128
Reid Spencer2706f8c2004-09-19 23:53:36 +000017129knetbsd*-gnu)
17130 version_type=linux
17131 need_lib_prefix=no
17132 need_version=no
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17135 shlibpath_var=LD_LIBRARY_PATH
17136 shlibpath_overrides_runpath=no
17137 hardcode_into_libs=yes
17138 dynamic_linker='GNU ld.so'
17139 ;;
17140
John Criswell47fdd832003-07-14 16:52:07 +000017141netbsd*)
17142 version_type=sunos
17143 need_lib_prefix=no
17144 need_version=no
17145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17148 dynamic_linker='NetBSD (a.out) ld.so'
17149 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017151 soname_spec='${libname}${release}${shared_ext}$major'
17152 dynamic_linker='NetBSD ld.elf_so'
17153 fi
17154 shlibpath_var=LD_LIBRARY_PATH
17155 shlibpath_overrides_runpath=yes
17156 hardcode_into_libs=yes
17157 ;;
17158
17159newsos6)
17160 version_type=linux
17161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17162 shlibpath_var=LD_LIBRARY_PATH
17163 shlibpath_overrides_runpath=yes
17164 ;;
17165
Reid Spencer2706f8c2004-09-19 23:53:36 +000017166nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017167 version_type=linux
17168 need_lib_prefix=no
17169 need_version=no
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 shlibpath_overrides_runpath=yes
17174 ;;
17175
17176openbsd*)
17177 version_type=sunos
17178 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017179 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17184 case $host_os in
17185 openbsd2.[89] | openbsd2.[89].*)
17186 shlibpath_overrides_runpath=no
17187 ;;
17188 *)
17189 shlibpath_overrides_runpath=yes
17190 ;;
17191 esac
17192 else
17193 shlibpath_overrides_runpath=yes
17194 fi
17195 ;;
17196
17197os2*)
17198 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017199 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017200 need_lib_prefix=no
17201 library_names_spec='$libname${shared_ext} $libname.a'
17202 dynamic_linker='OS/2 ld.exe'
17203 shlibpath_var=LIBPATH
17204 ;;
17205
17206osf3* | osf4* | osf5*)
17207 version_type=osf
17208 need_lib_prefix=no
17209 need_version=no
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 shlibpath_var=LD_LIBRARY_PATH
17213 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17214 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17215 ;;
17216
17217sco3.2v5*)
17218 version_type=osf
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 ;;
17223
17224solaris*)
17225 version_type=linux
17226 need_lib_prefix=no
17227 need_version=no
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 shlibpath_var=LD_LIBRARY_PATH
17231 shlibpath_overrides_runpath=yes
17232 hardcode_into_libs=yes
17233 # ldd complains unless libraries are executable
17234 postinstall_cmds='chmod +x $lib'
17235 ;;
17236
17237sunos4*)
17238 version_type=sunos
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17240 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17241 shlibpath_var=LD_LIBRARY_PATH
17242 shlibpath_overrides_runpath=yes
17243 if test "$with_gnu_ld" = yes; then
17244 need_lib_prefix=no
17245 fi
17246 need_version=yes
17247 ;;
17248
17249sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17250 version_type=linux
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 shlibpath_var=LD_LIBRARY_PATH
17254 case $host_vendor in
17255 sni)
17256 shlibpath_overrides_runpath=no
17257 need_lib_prefix=no
17258 export_dynamic_flag_spec='${wl}-Blargedynsym'
17259 runpath_var=LD_RUN_PATH
17260 ;;
17261 siemens)
17262 need_lib_prefix=no
17263 ;;
17264 motorola)
17265 need_lib_prefix=no
17266 need_version=no
17267 shlibpath_overrides_runpath=no
17268 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17269 ;;
17270 esac
17271 ;;
17272
17273sysv4*MP*)
17274 if test -d /usr/nec ;then
17275 version_type=linux
17276 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17277 soname_spec='$libname${shared_ext}.$major'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 fi
17280 ;;
17281
17282uts4*)
17283 version_type=linux
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285 soname_spec='${libname}${release}${shared_ext}$major'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 ;;
17288
17289*)
17290 dynamic_linker=no
17291 ;;
17292esac
17293echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17294echo "${ECHO_T}$dynamic_linker" >&6
17295test "$dynamic_linker" = no && can_build_shared=no
17296
Reid Spencer2706f8c2004-09-19 23:53:36 +000017297echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17298echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17299hardcode_action_CXX=
17300if test -n "$hardcode_libdir_flag_spec_CXX" || \
17301 test -n "$runpath_var_CXX" || \
17302 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17303
17304 # We can hardcode non-existant directories.
17305 if test "$hardcode_direct_CXX" != no &&
17306 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17307 # have to relink, otherwise we might link with an installed library
17308 # when we should be linking with a yet-to-be-installed one
17309 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17310 test "$hardcode_minus_L_CXX" != no; then
17311 # Linking always hardcodes the temporary library directory.
17312 hardcode_action_CXX=relink
17313 else
17314 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17315 hardcode_action_CXX=immediate
17316 fi
17317else
17318 # We cannot hardcode anything, or else we can only hardcode existing
17319 # directories.
17320 hardcode_action_CXX=unsupported
17321fi
17322echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17323echo "${ECHO_T}$hardcode_action_CXX" >&6
17324
17325if test "$hardcode_action_CXX" = relink; then
17326 # Fast installation is not supported
17327 enable_fast_install=no
17328elif test "$shlibpath_overrides_runpath" = yes ||
17329 test "$enable_shared" = no; then
17330 # Fast installation is not necessary
17331 enable_fast_install=needless
17332fi
17333
17334striplib=
17335old_striplib=
17336echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17337echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17338if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17339 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17340 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17341 echo "$as_me:$LINENO: result: yes" >&5
17342echo "${ECHO_T}yes" >&6
17343else
17344# FIXME - insert some real tests, host_os isn't really good enough
17345 case $host_os in
17346 darwin*)
17347 if test -n "$STRIP" ; then
17348 striplib="$STRIP -x"
17349 echo "$as_me:$LINENO: result: yes" >&5
17350echo "${ECHO_T}yes" >&6
17351 else
17352 echo "$as_me:$LINENO: result: no" >&5
17353echo "${ECHO_T}no" >&6
17354fi
17355 ;;
17356 *)
17357 echo "$as_me:$LINENO: result: no" >&5
17358echo "${ECHO_T}no" >&6
17359 ;;
17360 esac
17361fi
17362
John Criswell47fdd832003-07-14 16:52:07 +000017363if test "x$enable_dlopen" != xyes; then
17364 enable_dlopen=unknown
17365 enable_dlopen_self=unknown
17366 enable_dlopen_self_static=unknown
17367else
17368 lt_cv_dlopen=no
17369 lt_cv_dlopen_libs=
17370
17371 case $host_os in
17372 beos*)
17373 lt_cv_dlopen="load_add_on"
17374 lt_cv_dlopen_libs=
17375 lt_cv_dlopen_self=yes
17376 ;;
17377
17378 mingw* | pw32*)
17379 lt_cv_dlopen="LoadLibrary"
17380 lt_cv_dlopen_libs=
17381 ;;
17382
17383 cygwin*)
17384 lt_cv_dlopen="dlopen"
17385 lt_cv_dlopen_libs=
17386 ;;
17387
17388 darwin*)
17389 # if libdl is installed we need to link against it
17390 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17391echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17392if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394else
17395 ac_check_lib_save_LIBS=$LIBS
17396LIBS="-ldl $LIBS"
17397cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017398/* confdefs.h. */
17399_ACEOF
17400cat confdefs.h >>conftest.$ac_ext
17401cat >>conftest.$ac_ext <<_ACEOF
17402/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017403
17404/* Override any gcc2 internal prototype to avoid an error. */
17405#ifdef __cplusplus
17406extern "C"
17407#endif
17408/* We use char because int might match the return type of a gcc2
17409 builtin and then its argument prototype would still apply. */
17410char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017411int
17412main ()
17413{
17414dlopen ();
17415 ;
17416 return 0;
17417}
17418_ACEOF
17419rm -f conftest.$ac_objext conftest$ac_exeext
17420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017421 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017422 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017428 { ac_try='test -z "$ac_cxx_werror_flag"
17429 || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_lib_dl_dlopen=yes
17442else
17443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017444sed 's/^/| /' conftest.$ac_ext >&5
17445
John Criswell47fdd832003-07-14 16:52:07 +000017446ac_cv_lib_dl_dlopen=no
17447fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017448rm -f conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017450LIBS=$ac_check_lib_save_LIBS
17451fi
17452echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17453echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17454if test $ac_cv_lib_dl_dlopen = yes; then
17455 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17456else
17457
17458 lt_cv_dlopen="dyld"
17459 lt_cv_dlopen_libs=
17460 lt_cv_dlopen_self=yes
17461
17462fi
17463
17464 ;;
17465
17466 *)
17467 echo "$as_me:$LINENO: checking for shl_load" >&5
17468echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17469if test "${ac_cv_func_shl_load+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17471else
17472 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017473/* confdefs.h. */
17474_ACEOF
17475cat confdefs.h >>conftest.$ac_ext
17476cat >>conftest.$ac_ext <<_ACEOF
17477/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017478/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480#define shl_load innocuous_shl_load
17481
John Criswell47fdd832003-07-14 16:52:07 +000017482/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017483 which can conflict with char shl_load (); below.
17484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017486
John Criswell0c38eaf2003-09-10 15:17:25 +000017487#ifdef __STDC__
17488# include <limits.h>
17489#else
17490# include <assert.h>
17491#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017492
17493#undef shl_load
17494
John Criswell47fdd832003-07-14 16:52:07 +000017495/* Override any gcc2 internal prototype to avoid an error. */
17496#ifdef __cplusplus
17497extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017498{
John Criswell47fdd832003-07-14 16:52:07 +000017499#endif
17500/* We use char because int might match the return type of a gcc2
17501 builtin and then its argument prototype would still apply. */
17502char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017503/* The GNU C library defines this for functions which it implements
17504 to always fail with ENOSYS. Some functions are actually named
17505 something starting with __ and the normal name is an alias. */
17506#if defined (__stub_shl_load) || defined (__stub___shl_load)
17507choke me
17508#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017509char (*f) () = shl_load;
17510#endif
17511#ifdef __cplusplus
17512}
John Criswell47fdd832003-07-14 16:52:07 +000017513#endif
17514
John Criswell0c38eaf2003-09-10 15:17:25 +000017515int
17516main ()
17517{
17518return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017519 ;
17520 return 0;
17521}
17522_ACEOF
17523rm -f conftest.$ac_objext conftest$ac_exeext
17524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017525 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017526 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017532 { ac_try='test -z "$ac_cxx_werror_flag"
17533 || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_func_shl_load=yes
17546else
17547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017548sed 's/^/| /' conftest.$ac_ext >&5
17549
John Criswell47fdd832003-07-14 16:52:07 +000017550ac_cv_func_shl_load=no
17551fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017552rm -f conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017554fi
17555echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17556echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17557if test $ac_cv_func_shl_load = yes; then
17558 lt_cv_dlopen="shl_load"
17559else
17560 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17561echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17562if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17564else
17565 ac_check_lib_save_LIBS=$LIBS
17566LIBS="-ldld $LIBS"
17567cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017568/* confdefs.h. */
17569_ACEOF
17570cat confdefs.h >>conftest.$ac_ext
17571cat >>conftest.$ac_ext <<_ACEOF
17572/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017573
17574/* Override any gcc2 internal prototype to avoid an error. */
17575#ifdef __cplusplus
17576extern "C"
17577#endif
17578/* We use char because int might match the return type of a gcc2
17579 builtin and then its argument prototype would still apply. */
17580char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017581int
17582main ()
17583{
17584shl_load ();
17585 ;
17586 return 0;
17587}
17588_ACEOF
17589rm -f conftest.$ac_objext conftest$ac_exeext
17590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017591 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017592 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017598 { ac_try='test -z "$ac_cxx_werror_flag"
17599 || test ! -s conftest.err'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17602 ac_status=$?
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; } &&
17605 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607 (eval $ac_try) 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; }; then
17611 ac_cv_lib_dld_shl_load=yes
17612else
17613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017614sed 's/^/| /' conftest.$ac_ext >&5
17615
John Criswell47fdd832003-07-14 16:52:07 +000017616ac_cv_lib_dld_shl_load=no
17617fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017618rm -f conftest.err conftest.$ac_objext \
17619 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017620LIBS=$ac_check_lib_save_LIBS
17621fi
17622echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17623echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17624if test $ac_cv_lib_dld_shl_load = yes; then
17625 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17626else
17627 echo "$as_me:$LINENO: checking for dlopen" >&5
17628echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17629if test "${ac_cv_func_dlopen+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17631else
17632 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017633/* confdefs.h. */
17634_ACEOF
17635cat confdefs.h >>conftest.$ac_ext
17636cat >>conftest.$ac_ext <<_ACEOF
17637/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017638/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17640#define dlopen innocuous_dlopen
17641
John Criswell47fdd832003-07-14 16:52:07 +000017642/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017643 which can conflict with char dlopen (); below.
17644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17645 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017646
John Criswell0c38eaf2003-09-10 15:17:25 +000017647#ifdef __STDC__
17648# include <limits.h>
17649#else
17650# include <assert.h>
17651#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017652
17653#undef dlopen
17654
John Criswell47fdd832003-07-14 16:52:07 +000017655/* Override any gcc2 internal prototype to avoid an error. */
17656#ifdef __cplusplus
17657extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017658{
John Criswell47fdd832003-07-14 16:52:07 +000017659#endif
17660/* We use char because int might match the return type of a gcc2
17661 builtin and then its argument prototype would still apply. */
17662char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017663/* The GNU C library defines this for functions which it implements
17664 to always fail with ENOSYS. Some functions are actually named
17665 something starting with __ and the normal name is an alias. */
17666#if defined (__stub_dlopen) || defined (__stub___dlopen)
17667choke me
17668#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017669char (*f) () = dlopen;
17670#endif
17671#ifdef __cplusplus
17672}
John Criswell47fdd832003-07-14 16:52:07 +000017673#endif
17674
John Criswell0c38eaf2003-09-10 15:17:25 +000017675int
17676main ()
17677{
17678return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017679 ;
17680 return 0;
17681}
17682_ACEOF
17683rm -f conftest.$ac_objext conftest$ac_exeext
17684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017685 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017687 grep -v '^ *+' conftest.er1 >conftest.err
17688 rm -f conftest.er1
17689 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017692 { ac_try='test -z "$ac_cxx_werror_flag"
17693 || test ! -s conftest.err'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17696 ac_status=$?
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; } &&
17699 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_cv_func_dlopen=yes
17706else
17707 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017708sed 's/^/| /' conftest.$ac_ext >&5
17709
John Criswell47fdd832003-07-14 16:52:07 +000017710ac_cv_func_dlopen=no
17711fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017712rm -f conftest.err conftest.$ac_objext \
17713 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017714fi
17715echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17716echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17717if test $ac_cv_func_dlopen = yes; then
17718 lt_cv_dlopen="dlopen"
17719else
17720 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17721echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17722if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17724else
17725 ac_check_lib_save_LIBS=$LIBS
17726LIBS="-ldl $LIBS"
17727cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017728/* confdefs.h. */
17729_ACEOF
17730cat confdefs.h >>conftest.$ac_ext
17731cat >>conftest.$ac_ext <<_ACEOF
17732/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017733
17734/* Override any gcc2 internal prototype to avoid an error. */
17735#ifdef __cplusplus
17736extern "C"
17737#endif
17738/* We use char because int might match the return type of a gcc2
17739 builtin and then its argument prototype would still apply. */
17740char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017741int
17742main ()
17743{
17744dlopen ();
17745 ;
17746 return 0;
17747}
17748_ACEOF
17749rm -f conftest.$ac_objext conftest$ac_exeext
17750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017751 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017752 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017758 { ac_try='test -z "$ac_cxx_werror_flag"
17759 || test ! -s conftest.err'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_lib_dl_dlopen=yes
17772else
17773 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017774sed 's/^/| /' conftest.$ac_ext >&5
17775
John Criswell47fdd832003-07-14 16:52:07 +000017776ac_cv_lib_dl_dlopen=no
17777fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017778rm -f conftest.err conftest.$ac_objext \
17779 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017780LIBS=$ac_check_lib_save_LIBS
17781fi
17782echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17783echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17784if test $ac_cv_lib_dl_dlopen = yes; then
17785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17786else
17787 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17788echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17789if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17791else
17792 ac_check_lib_save_LIBS=$LIBS
17793LIBS="-lsvld $LIBS"
17794cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017795/* confdefs.h. */
17796_ACEOF
17797cat confdefs.h >>conftest.$ac_ext
17798cat >>conftest.$ac_ext <<_ACEOF
17799/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017800
17801/* Override any gcc2 internal prototype to avoid an error. */
17802#ifdef __cplusplus
17803extern "C"
17804#endif
17805/* We use char because int might match the return type of a gcc2
17806 builtin and then its argument prototype would still apply. */
17807char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017808int
17809main ()
17810{
17811dlopen ();
17812 ;
17813 return 0;
17814}
17815_ACEOF
17816rm -f conftest.$ac_objext conftest$ac_exeext
17817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017818 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017819 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017825 { ac_try='test -z "$ac_cxx_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_cv_lib_svld_dlopen=yes
17839else
17840 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017841sed 's/^/| /' conftest.$ac_ext >&5
17842
John Criswell47fdd832003-07-14 16:52:07 +000017843ac_cv_lib_svld_dlopen=no
17844fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017845rm -f conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017847LIBS=$ac_check_lib_save_LIBS
17848fi
17849echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17850echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17851if test $ac_cv_lib_svld_dlopen = yes; then
17852 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17853else
17854 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17855echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17856if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17858else
17859 ac_check_lib_save_LIBS=$LIBS
17860LIBS="-ldld $LIBS"
17861cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017862/* confdefs.h. */
17863_ACEOF
17864cat confdefs.h >>conftest.$ac_ext
17865cat >>conftest.$ac_ext <<_ACEOF
17866/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017867
17868/* Override any gcc2 internal prototype to avoid an error. */
17869#ifdef __cplusplus
17870extern "C"
17871#endif
17872/* We use char because int might match the return type of a gcc2
17873 builtin and then its argument prototype would still apply. */
17874char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017875int
17876main ()
17877{
17878dld_link ();
17879 ;
17880 return 0;
17881}
17882_ACEOF
17883rm -f conftest.$ac_objext conftest$ac_exeext
17884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017885 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017886 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017887 grep -v '^ *+' conftest.er1 >conftest.err
17888 rm -f conftest.er1
17889 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017892 { ac_try='test -z "$ac_cxx_werror_flag"
17893 || test ! -s conftest.err'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; } &&
17899 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 ac_cv_lib_dld_dld_link=yes
17906else
17907 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017908sed 's/^/| /' conftest.$ac_ext >&5
17909
John Criswell47fdd832003-07-14 16:52:07 +000017910ac_cv_lib_dld_dld_link=no
17911fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017912rm -f conftest.err conftest.$ac_objext \
17913 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017914LIBS=$ac_check_lib_save_LIBS
17915fi
17916echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17917echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17918if test $ac_cv_lib_dld_dld_link = yes; then
17919 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17920fi
17921
17922
17923fi
17924
17925
17926fi
17927
17928
17929fi
17930
17931
17932fi
17933
17934
17935fi
17936
17937 ;;
17938 esac
17939
17940 if test "x$lt_cv_dlopen" != xno; then
17941 enable_dlopen=yes
17942 else
17943 enable_dlopen=no
17944 fi
17945
17946 case $lt_cv_dlopen in
17947 dlopen)
17948 save_CPPFLAGS="$CPPFLAGS"
17949 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17950
17951 save_LDFLAGS="$LDFLAGS"
17952 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17953
17954 save_LIBS="$LIBS"
17955 LIBS="$lt_cv_dlopen_libs $LIBS"
17956
17957 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17958echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17959if test "${lt_cv_dlopen_self+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17961else
17962 if test "$cross_compiling" = yes; then :
17963 lt_cv_dlopen_self=cross
17964else
17965 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17966 lt_status=$lt_dlunknown
17967 cat > conftest.$ac_ext <<EOF
Misha Brukman19098e52005-05-12 22:15:34 +000017968#line 17968 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017969#include "confdefs.h"
17970
17971#if HAVE_DLFCN_H
17972#include <dlfcn.h>
17973#endif
17974
17975#include <stdio.h>
17976
17977#ifdef RTLD_GLOBAL
17978# define LT_DLGLOBAL RTLD_GLOBAL
17979#else
17980# ifdef DL_GLOBAL
17981# define LT_DLGLOBAL DL_GLOBAL
17982# else
17983# define LT_DLGLOBAL 0
17984# endif
17985#endif
17986
17987/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17988 find out it does not work in some platform. */
17989#ifndef LT_DLLAZY_OR_NOW
17990# ifdef RTLD_LAZY
17991# define LT_DLLAZY_OR_NOW RTLD_LAZY
17992# else
17993# ifdef DL_LAZY
17994# define LT_DLLAZY_OR_NOW DL_LAZY
17995# else
17996# ifdef RTLD_NOW
17997# define LT_DLLAZY_OR_NOW RTLD_NOW
17998# else
17999# ifdef DL_NOW
18000# define LT_DLLAZY_OR_NOW DL_NOW
18001# else
18002# define LT_DLLAZY_OR_NOW 0
18003# endif
18004# endif
18005# endif
18006# endif
18007#endif
18008
18009#ifdef __cplusplus
18010extern "C" void exit (int);
18011#endif
18012
18013void fnord() { int i=42;}
18014int main ()
18015{
18016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18017 int status = $lt_dlunknown;
18018
18019 if (self)
18020 {
18021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18022 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18023 /* dlclose (self); */
18024 }
18025
18026 exit (status);
18027}
18028EOF
18029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18030 (eval $ac_link) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18034 (./conftest; exit; ) 2>/dev/null
18035 lt_status=$?
18036 case x$lt_status in
18037 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18038 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18039 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18040 esac
18041 else :
18042 # compilation failed
18043 lt_cv_dlopen_self=no
18044 fi
18045fi
18046rm -fr conftest*
18047
18048
18049fi
18050echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18051echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18052
18053 if test "x$lt_cv_dlopen_self" = xyes; then
18054 LDFLAGS="$LDFLAGS $link_static_flag"
18055 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18056echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18057if test "${lt_cv_dlopen_self_static+set}" = set; then
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18059else
18060 if test "$cross_compiling" = yes; then :
18061 lt_cv_dlopen_self_static=cross
18062else
18063 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18064 lt_status=$lt_dlunknown
18065 cat > conftest.$ac_ext <<EOF
Misha Brukman19098e52005-05-12 22:15:34 +000018066#line 18066 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018067#include "confdefs.h"
18068
18069#if HAVE_DLFCN_H
18070#include <dlfcn.h>
18071#endif
18072
18073#include <stdio.h>
18074
18075#ifdef RTLD_GLOBAL
18076# define LT_DLGLOBAL RTLD_GLOBAL
18077#else
18078# ifdef DL_GLOBAL
18079# define LT_DLGLOBAL DL_GLOBAL
18080# else
18081# define LT_DLGLOBAL 0
18082# endif
18083#endif
18084
18085/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18086 find out it does not work in some platform. */
18087#ifndef LT_DLLAZY_OR_NOW
18088# ifdef RTLD_LAZY
18089# define LT_DLLAZY_OR_NOW RTLD_LAZY
18090# else
18091# ifdef DL_LAZY
18092# define LT_DLLAZY_OR_NOW DL_LAZY
18093# else
18094# ifdef RTLD_NOW
18095# define LT_DLLAZY_OR_NOW RTLD_NOW
18096# else
18097# ifdef DL_NOW
18098# define LT_DLLAZY_OR_NOW DL_NOW
18099# else
18100# define LT_DLLAZY_OR_NOW 0
18101# endif
18102# endif
18103# endif
18104# endif
18105#endif
18106
18107#ifdef __cplusplus
18108extern "C" void exit (int);
18109#endif
18110
18111void fnord() { int i=42;}
18112int main ()
18113{
18114 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18115 int status = $lt_dlunknown;
18116
18117 if (self)
18118 {
18119 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18120 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18121 /* dlclose (self); */
18122 }
18123
18124 exit (status);
18125}
18126EOF
18127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18128 (eval $ac_link) 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18132 (./conftest; exit; ) 2>/dev/null
18133 lt_status=$?
18134 case x$lt_status in
18135 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18136 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18137 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18138 esac
18139 else :
18140 # compilation failed
18141 lt_cv_dlopen_self_static=no
18142 fi
18143fi
18144rm -fr conftest*
18145
18146
18147fi
18148echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18149echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18150 fi
18151
18152 CPPFLAGS="$save_CPPFLAGS"
18153 LDFLAGS="$save_LDFLAGS"
18154 LIBS="$save_LIBS"
18155 ;;
18156 esac
18157
18158 case $lt_cv_dlopen_self in
18159 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18160 *) enable_dlopen_self=unknown ;;
18161 esac
18162
18163 case $lt_cv_dlopen_self_static in
18164 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18165 *) enable_dlopen_self_static=unknown ;;
18166 esac
18167fi
18168
18169
18170# The else clause should only fire when bootstrapping the
18171# libtool distribution, otherwise you forgot to ship ltmain.sh
18172# with your package, and you will get complaints that there are
18173# no rules to generate ltmain.sh.
18174if test -f "$ltmain"; then
18175 # See if we are running on zsh, and set the options which allow our commands through
18176 # without removal of \ escapes.
18177 if test -n "${ZSH_VERSION+set}" ; then
18178 setopt NO_GLOB_SUBST
18179 fi
18180 # Now quote all the things that may contain metacharacters while being
18181 # careful not to overquote the AC_SUBSTed values. We take copies of the
18182 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018183 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18184 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018185 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18186 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18187 deplibs_check_method reload_flag reload_cmds need_locks \
18188 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18189 lt_cv_sys_global_symbol_to_c_name_address \
18190 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18191 old_postinstall_cmds old_postuninstall_cmds \
18192 compiler_CXX \
18193 CC_CXX \
18194 LD_CXX \
18195 lt_prog_compiler_wl_CXX \
18196 lt_prog_compiler_pic_CXX \
18197 lt_prog_compiler_static_CXX \
18198 lt_prog_compiler_no_builtin_flag_CXX \
18199 export_dynamic_flag_spec_CXX \
18200 thread_safe_flag_spec_CXX \
18201 whole_archive_flag_spec_CXX \
18202 enable_shared_with_static_runtimes_CXX \
18203 old_archive_cmds_CXX \
18204 old_archive_from_new_cmds_CXX \
18205 predep_objects_CXX \
18206 postdep_objects_CXX \
18207 predeps_CXX \
18208 postdeps_CXX \
18209 compiler_lib_search_path_CXX \
18210 archive_cmds_CXX \
18211 archive_expsym_cmds_CXX \
18212 postinstall_cmds_CXX \
18213 postuninstall_cmds_CXX \
18214 old_archive_from_expsyms_cmds_CXX \
18215 allow_undefined_flag_CXX \
18216 no_undefined_flag_CXX \
18217 export_symbols_cmds_CXX \
18218 hardcode_libdir_flag_spec_CXX \
18219 hardcode_libdir_flag_spec_ld_CXX \
18220 hardcode_libdir_separator_CXX \
18221 hardcode_automatic_CXX \
18222 module_cmds_CXX \
18223 module_expsym_cmds_CXX \
18224 lt_cv_prog_compiler_c_o_CXX \
18225 exclude_expsyms_CXX \
18226 include_expsyms_CXX; do
18227
18228 case $var in
18229 old_archive_cmds_CXX | \
18230 old_archive_from_new_cmds_CXX | \
18231 archive_cmds_CXX | \
18232 archive_expsym_cmds_CXX | \
18233 module_cmds_CXX | \
18234 module_expsym_cmds_CXX | \
18235 old_archive_from_expsyms_cmds_CXX | \
18236 export_symbols_cmds_CXX | \
18237 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18238 postinstall_cmds | postuninstall_cmds | \
18239 old_postinstall_cmds | old_postuninstall_cmds | \
18240 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18241 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018242 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 +000018243 ;;
18244 *)
18245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18246 ;;
18247 esac
18248 done
18249
18250 case $lt_echo in
18251 *'\$0 --fallback-echo"')
18252 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18253 ;;
18254 esac
18255
18256cfgfile="$ofile"
18257
18258 cat <<__EOF__ >> "$cfgfile"
18259# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18260
18261# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18262
18263# Shell to use when invoking shell scripts.
18264SHELL=$lt_SHELL
18265
18266# Whether or not to build shared libraries.
18267build_libtool_libs=$enable_shared
18268
18269# Whether or not to build static libraries.
18270build_old_libs=$enable_static
18271
18272# Whether or not to add -lc for building shared libraries.
18273build_libtool_need_lc=$archive_cmds_need_lc_CXX
18274
18275# Whether or not to disallow shared libs when runtime libs are static
18276allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18277
18278# Whether or not to optimize for fast installation.
18279fast_install=$enable_fast_install
18280
18281# The host system.
18282host_alias=$host_alias
18283host=$host
18284
18285# An echo program that does not interpret backslashes.
18286echo=$lt_echo
18287
18288# The archiver.
18289AR=$lt_AR
18290AR_FLAGS=$lt_AR_FLAGS
18291
18292# A C compiler.
18293LTCC=$lt_LTCC
18294
18295# A language-specific compiler.
18296CC=$lt_compiler_CXX
18297
18298# Is the compiler the GNU C compiler?
18299with_gcc=$GCC_CXX
18300
18301# An ERE matcher.
18302EGREP=$lt_EGREP
18303
18304# The linker used to build libraries.
18305LD=$lt_LD_CXX
18306
18307# Whether we need hard or soft links.
18308LN_S=$lt_LN_S
18309
18310# A BSD-compatible nm program.
18311NM=$lt_NM
18312
18313# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018314STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018315
18316# Used to examine libraries when file_magic_cmd begins "file"
18317MAGIC_CMD=$MAGIC_CMD
18318
18319# Used on cygwin: DLL creation program.
18320DLLTOOL="$DLLTOOL"
18321
18322# Used on cygwin: object dumper.
18323OBJDUMP="$OBJDUMP"
18324
18325# Used on cygwin: assembler.
18326AS="$AS"
18327
18328# The name of the directory that contains temporary libtool files.
18329objdir=$objdir
18330
18331# How to create reloadable object files.
18332reload_flag=$lt_reload_flag
18333reload_cmds=$lt_reload_cmds
18334
18335# How to pass a linker flag through the compiler.
18336wl=$lt_lt_prog_compiler_wl_CXX
18337
18338# Object file suffix (normally "o").
18339objext="$ac_objext"
18340
18341# Old archive suffix (normally "a").
18342libext="$libext"
18343
18344# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018345shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018346
18347# Executable file suffix (normally "").
18348exeext="$exeext"
18349
18350# Additional compiler flags for building library objects.
18351pic_flag=$lt_lt_prog_compiler_pic_CXX
18352pic_mode=$pic_mode
18353
18354# What is the maximum length of a command?
18355max_cmd_len=$lt_cv_sys_max_cmd_len
18356
18357# Does compiler simultaneously support -c and -o options?
18358compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18359
18360# Must we lock files when doing compilation ?
18361need_locks=$lt_need_locks
18362
18363# Do we need the lib prefix for modules?
18364need_lib_prefix=$need_lib_prefix
18365
18366# Do we need a version for libraries?
18367need_version=$need_version
18368
18369# Whether dlopen is supported.
18370dlopen_support=$enable_dlopen
18371
18372# Whether dlopen of programs is supported.
18373dlopen_self=$enable_dlopen_self
18374
18375# Whether dlopen of statically linked programs is supported.
18376dlopen_self_static=$enable_dlopen_self_static
18377
18378# Compiler flag to prevent dynamic linking.
18379link_static_flag=$lt_lt_prog_compiler_static_CXX
18380
18381# Compiler flag to turn off builtin functions.
18382no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18383
18384# Compiler flag to allow reflexive dlopens.
18385export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18386
18387# Compiler flag to generate shared objects directly from archives.
18388whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18389
18390# Compiler flag to generate thread-safe objects.
18391thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18392
18393# Library versioning type.
18394version_type=$version_type
18395
18396# Format of library name prefix.
18397libname_spec=$lt_libname_spec
18398
18399# List of archive names. First name is the real one, the rest are links.
18400# The last name is the one that the linker finds with -lNAME.
18401library_names_spec=$lt_library_names_spec
18402
18403# The coded name of the library, if different from the real name.
18404soname_spec=$lt_soname_spec
18405
18406# Commands used to build and install an old-style archive.
18407RANLIB=$lt_RANLIB
18408old_archive_cmds=$lt_old_archive_cmds_CXX
18409old_postinstall_cmds=$lt_old_postinstall_cmds
18410old_postuninstall_cmds=$lt_old_postuninstall_cmds
18411
18412# Create an old-style archive from a shared archive.
18413old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18414
18415# Create a temporary old-style archive to link instead of a shared archive.
18416old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18417
18418# Commands used to build and install a shared archive.
18419archive_cmds=$lt_archive_cmds_CXX
18420archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18421postinstall_cmds=$lt_postinstall_cmds
18422postuninstall_cmds=$lt_postuninstall_cmds
18423
18424# Commands used to build a loadable module (assumed same as above if empty)
18425module_cmds=$lt_module_cmds_CXX
18426module_expsym_cmds=$lt_module_expsym_cmds_CXX
18427
18428# Commands to strip libraries.
18429old_striplib=$lt_old_striplib
18430striplib=$lt_striplib
18431
18432# Dependencies to place before the objects being linked to create a
18433# shared library.
18434predep_objects=$lt_predep_objects_CXX
18435
18436# Dependencies to place after the objects being linked to create a
18437# shared library.
18438postdep_objects=$lt_postdep_objects_CXX
18439
18440# Dependencies to place before the objects being linked to create a
18441# shared library.
18442predeps=$lt_predeps_CXX
18443
18444# Dependencies to place after the objects being linked to create a
18445# shared library.
18446postdeps=$lt_postdeps_CXX
18447
18448# The library search path used internally by the compiler when linking
18449# a shared library.
18450compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18451
18452# Method to check whether dependent libraries are shared objects.
18453deplibs_check_method=$lt_deplibs_check_method
18454
18455# Command to use when deplibs_check_method == file_magic.
18456file_magic_cmd=$lt_file_magic_cmd
18457
18458# Flag that allows shared libraries with undefined symbols to be built.
18459allow_undefined_flag=$lt_allow_undefined_flag_CXX
18460
18461# Flag that forces no undefined symbols.
18462no_undefined_flag=$lt_no_undefined_flag_CXX
18463
18464# Commands used to finish a libtool library installation in a directory.
18465finish_cmds=$lt_finish_cmds
18466
18467# Same as above, but a single script fragment to be evaled but not shown.
18468finish_eval=$lt_finish_eval
18469
18470# Take the output of nm and produce a listing of raw symbols and C names.
18471global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18472
18473# Transform the output of nm in a proper C declaration
18474global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18475
18476# Transform the output of nm in a C name address pair
18477global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18478
18479# This is the shared library runtime path variable.
18480runpath_var=$runpath_var
18481
18482# This is the shared library path variable.
18483shlibpath_var=$shlibpath_var
18484
18485# Is shlibpath searched before the hard-coded library search path?
18486shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18487
18488# How to hardcode a shared library path into an executable.
18489hardcode_action=$hardcode_action_CXX
18490
18491# Whether we should hardcode library paths into libraries.
18492hardcode_into_libs=$hardcode_into_libs
18493
18494# Flag to hardcode \$libdir into a binary during linking.
18495# This must work even if \$libdir does not exist.
18496hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18497
18498# If ld is used when linking, flag to hardcode \$libdir into
18499# a binary during linking. This must work even if \$libdir does
18500# not exist.
18501hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18502
18503# Whether we need a single -rpath flag with a separated argument.
18504hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18505
18506# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18507# resulting binary.
18508hardcode_direct=$hardcode_direct_CXX
18509
18510# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18511# resulting binary.
18512hardcode_minus_L=$hardcode_minus_L_CXX
18513
18514# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18515# the resulting binary.
18516hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18517
18518# Set to yes if building a shared library automatically hardcodes DIR into the library
18519# and all subsequent libraries and executables linked against it.
18520hardcode_automatic=$hardcode_automatic_CXX
18521
18522# Variables whose values should be saved in libtool wrapper scripts and
18523# restored at relink time.
18524variables_saved_for_relink="$variables_saved_for_relink"
18525
18526# Whether libtool must link a program against all its dependency libraries.
18527link_all_deplibs=$link_all_deplibs_CXX
18528
18529# Compile-time system search path for libraries
18530sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18531
18532# Run-time system search path for libraries
18533sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18534
18535# Fix the shell variable \$srcfile for the compiler.
18536fix_srcfile_path="$fix_srcfile_path_CXX"
18537
18538# Set to yes if exported symbols are required.
18539always_export_symbols=$always_export_symbols_CXX
18540
18541# The commands to list exported symbols.
18542export_symbols_cmds=$lt_export_symbols_cmds_CXX
18543
18544# The commands to extract the exported symbol list from a shared archive.
18545extract_expsyms_cmds=$lt_extract_expsyms_cmds
18546
18547# Symbols that should not be listed in the preloaded symbols.
18548exclude_expsyms=$lt_exclude_expsyms_CXX
18549
18550# Symbols that must always be exported.
18551include_expsyms=$lt_include_expsyms_CXX
18552
18553# ### END LIBTOOL TAG CONFIG: $tagname
18554
18555__EOF__
18556
18557
18558else
18559 # If there is no Makefile yet, we rely on a make rule to execute
18560 # `config.status --recheck' to rerun these tests and create the
18561 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018562 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18563 if test -f "$ltmain_in"; then
18564 test -f Makefile && make "$ltmain"
18565 fi
John Criswell47fdd832003-07-14 16:52:07 +000018566fi
18567
18568
18569ac_ext=c
18570ac_cpp='$CPP $CPPFLAGS'
18571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18573ac_compiler_gnu=$ac_cv_c_compiler_gnu
18574
18575CC=$lt_save_CC
18576LDCXX=$LD
18577LD=$lt_save_LD
18578GCC=$lt_save_GCC
18579with_gnu_ldcxx=$with_gnu_ld
18580with_gnu_ld=$lt_save_with_gnu_ld
18581lt_cv_path_LDCXX=$lt_cv_path_LD
18582lt_cv_path_LD=$lt_save_path_LD
18583lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18584lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18585
18586 else
18587 tagname=""
18588 fi
18589 ;;
18590
18591 F77)
18592 if test -n "$F77" && test "X$F77" != "Xno"; then
18593
18594ac_ext=f
18595ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18596ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18597ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18598
18599
18600archive_cmds_need_lc_F77=no
18601allow_undefined_flag_F77=
18602always_export_symbols_F77=no
18603archive_expsym_cmds_F77=
18604export_dynamic_flag_spec_F77=
18605hardcode_direct_F77=no
18606hardcode_libdir_flag_spec_F77=
18607hardcode_libdir_flag_spec_ld_F77=
18608hardcode_libdir_separator_F77=
18609hardcode_minus_L_F77=no
18610hardcode_automatic_F77=no
18611module_cmds_F77=
18612module_expsym_cmds_F77=
18613link_all_deplibs_F77=unknown
18614old_archive_cmds_F77=$old_archive_cmds
18615no_undefined_flag_F77=
18616whole_archive_flag_spec_F77=
18617enable_shared_with_static_runtimes_F77=no
18618
18619# Source file extension for f77 test sources.
18620ac_ext=f
18621
18622# Object file extension for compiled f77 test sources.
18623objext=o
18624objext_F77=$objext
18625
18626# Code to be used in simple compile tests
18627lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18628
18629# Code to be used in simple link tests
18630lt_simple_link_test_code=" program t\n end\n"
18631
18632# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18633
18634# If no C compiler was specified, use CC.
18635LTCC=${LTCC-"$CC"}
18636
18637# Allow CC to be a program name with arguments.
18638compiler=$CC
18639
18640
18641# Allow CC to be a program name with arguments.
18642lt_save_CC="$CC"
18643CC=${F77-"f77"}
18644compiler=$CC
18645compiler_F77=$CC
18646cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18647
18648echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18649echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18650echo "$as_me:$LINENO: result: $can_build_shared" >&5
18651echo "${ECHO_T}$can_build_shared" >&6
18652
18653echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18654echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18655test "$can_build_shared" = "no" && enable_shared=no
18656
18657# On AIX, shared libraries and static libraries use the same namespace, and
18658# are all built from PIC.
18659case "$host_os" in
18660aix3*)
18661 test "$enable_shared" = yes && enable_static=no
18662 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018663 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018664 postinstall_cmds='$RANLIB $lib'
18665 fi
18666 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018667aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018668 test "$enable_shared" = yes && enable_static=no
18669 ;;
18670esac
18671echo "$as_me:$LINENO: result: $enable_shared" >&5
18672echo "${ECHO_T}$enable_shared" >&6
18673
18674echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18675echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18676# Make sure either enable_shared or enable_static is yes.
18677test "$enable_shared" = yes || enable_static=yes
18678echo "$as_me:$LINENO: result: $enable_static" >&5
18679echo "${ECHO_T}$enable_static" >&6
18680
18681test "$ld_shlibs_F77" = no && can_build_shared=no
18682
18683GCC_F77="$G77"
18684LD_F77="$LD"
18685
18686lt_prog_compiler_wl_F77=
18687lt_prog_compiler_pic_F77=
18688lt_prog_compiler_static_F77=
18689
18690echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18691echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18692
18693 if test "$GCC" = yes; then
18694 lt_prog_compiler_wl_F77='-Wl,'
18695 lt_prog_compiler_static_F77='-static'
18696
18697 case $host_os in
18698 aix*)
18699 # All AIX code is PIC.
18700 if test "$host_cpu" = ia64; then
18701 # AIX 5 now supports IA64 processor
18702 lt_prog_compiler_static_F77='-Bstatic'
18703 fi
18704 ;;
18705
18706 amigaos*)
18707 # FIXME: we need at least 68020 code to build shared libraries, but
18708 # adding the `-m68020' flag to GCC prevents building anything better,
18709 # like `-m68040'.
18710 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18711 ;;
18712
18713 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18714 # PIC is the default for these OSes.
18715 ;;
18716
18717 mingw* | pw32* | os2*)
18718 # This hack is so that the source file can tell whether it is being
18719 # built for inclusion in a dll (and should export symbols for example).
18720 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18721 ;;
18722
18723 darwin* | rhapsody*)
18724 # PIC is the default on this platform
18725 # Common symbols not allowed in MH_DYLIB files
18726 lt_prog_compiler_pic_F77='-fno-common'
18727 ;;
18728
18729 msdosdjgpp*)
18730 # Just because we use GCC doesn't mean we suddenly get shared libraries
18731 # on systems that don't support them.
18732 lt_prog_compiler_can_build_shared_F77=no
18733 enable_shared=no
18734 ;;
18735
18736 sysv4*MP*)
18737 if test -d /usr/nec; then
18738 lt_prog_compiler_pic_F77=-Kconform_pic
18739 fi
18740 ;;
18741
18742 hpux*)
18743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18744 # not for PA HP-UX.
18745 case "$host_cpu" in
18746 hppa*64*|ia64*)
18747 # +Z the default
18748 ;;
18749 *)
18750 lt_prog_compiler_pic_F77='-fPIC'
18751 ;;
18752 esac
18753 ;;
18754
18755 *)
18756 lt_prog_compiler_pic_F77='-fPIC'
18757 ;;
18758 esac
18759 else
18760 # PORTME Check for flag to pass linker flags through the system compiler.
18761 case $host_os in
18762 aix*)
18763 lt_prog_compiler_wl_F77='-Wl,'
18764 if test "$host_cpu" = ia64; then
18765 # AIX 5 now supports IA64 processor
18766 lt_prog_compiler_static_F77='-Bstatic'
18767 else
18768 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18769 fi
18770 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018771 darwin*)
18772 # PIC is the default on this platform
18773 # Common symbols not allowed in MH_DYLIB files
18774 case "$cc_basename" in
18775 xlc*)
18776 lt_prog_compiler_pic_F77='-qnocommon'
18777 lt_prog_compiler_wl_F77='-Wl,'
18778 ;;
18779 esac
18780 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018781
18782 mingw* | pw32* | os2*)
18783 # This hack is so that the source file can tell whether it is being
18784 # built for inclusion in a dll (and should export symbols for example).
18785 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18786 ;;
18787
18788 hpux9* | hpux10* | hpux11*)
18789 lt_prog_compiler_wl_F77='-Wl,'
18790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18791 # not for PA HP-UX.
18792 case "$host_cpu" in
18793 hppa*64*|ia64*)
18794 # +Z the default
18795 ;;
18796 *)
18797 lt_prog_compiler_pic_F77='+Z'
18798 ;;
18799 esac
18800 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18801 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18802 ;;
18803
18804 irix5* | irix6* | nonstopux*)
18805 lt_prog_compiler_wl_F77='-Wl,'
18806 # PIC (with -KPIC) is the default.
18807 lt_prog_compiler_static_F77='-non_shared'
18808 ;;
18809
18810 newsos6)
18811 lt_prog_compiler_pic_F77='-KPIC'
18812 lt_prog_compiler_static_F77='-Bstatic'
18813 ;;
18814
18815 linux*)
18816 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018817 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018818 lt_prog_compiler_wl_F77='-Wl,'
18819 lt_prog_compiler_pic_F77='-KPIC'
18820 lt_prog_compiler_static_F77='-static'
18821 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018822 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018823 lt_prog_compiler_wl_F77='-Wl,'
18824 # All Alpha code is PIC.
18825 lt_prog_compiler_static_F77='-non_shared'
18826 ;;
18827 esac
18828 ;;
18829
18830 osf3* | osf4* | osf5*)
18831 lt_prog_compiler_wl_F77='-Wl,'
18832 # All OSF/1 code is PIC.
18833 lt_prog_compiler_static_F77='-non_shared'
18834 ;;
18835
18836 sco3.2v5*)
18837 lt_prog_compiler_pic_F77='-Kpic'
18838 lt_prog_compiler_static_F77='-dn'
18839 ;;
18840
18841 solaris*)
18842 lt_prog_compiler_wl_F77='-Wl,'
18843 lt_prog_compiler_pic_F77='-KPIC'
18844 lt_prog_compiler_static_F77='-Bstatic'
18845 ;;
18846
18847 sunos4*)
18848 lt_prog_compiler_wl_F77='-Qoption ld '
18849 lt_prog_compiler_pic_F77='-PIC'
18850 lt_prog_compiler_static_F77='-Bstatic'
18851 ;;
18852
18853 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18854 lt_prog_compiler_wl_F77='-Wl,'
18855 lt_prog_compiler_pic_F77='-KPIC'
18856 lt_prog_compiler_static_F77='-Bstatic'
18857 ;;
18858
18859 sysv4*MP*)
18860 if test -d /usr/nec ;then
18861 lt_prog_compiler_pic_F77='-Kconform_pic'
18862 lt_prog_compiler_static_F77='-Bstatic'
18863 fi
18864 ;;
18865
18866 uts4*)
18867 lt_prog_compiler_pic_F77='-pic'
18868 lt_prog_compiler_static_F77='-Bstatic'
18869 ;;
18870
18871 *)
18872 lt_prog_compiler_can_build_shared_F77=no
18873 ;;
18874 esac
18875 fi
18876
18877echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18878echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18879
18880#
18881# Check to make sure the PIC flag actually works.
18882#
18883if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018884
18885echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018886echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18887if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18889else
18890 lt_prog_compiler_pic_works_F77=no
18891 ac_outfile=conftest.$ac_objext
18892 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18893 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18894 # Insert the option either (1) after the last *FLAGS variable, or
18895 # (2) before a word containing "conftest.", or (3) at the end.
18896 # Note that $ac_compile itself does not contain backslashes and begins
18897 # with a dollar sign (not a hyphen), so the echo should work correctly.
18898 # The option is referenced via a variable to avoid confusing sed.
18899 lt_compile=`echo "$ac_compile" | $SED \
18900 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18902 -e 's:$: $lt_compiler_flag:'`
Misha Brukman19098e52005-05-12 22:15:34 +000018903 (eval echo "\"\$as_me:18903: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018904 (eval "$lt_compile" 2>conftest.err)
18905 ac_status=$?
18906 cat conftest.err >&5
Misha Brukman19098e52005-05-12 22:15:34 +000018907 echo "$as_me:18907: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018908 if (exit $ac_status) && test -s "$ac_outfile"; then
18909 # The compiler can only warn and ignore the option if not recognized
18910 # So say no if there are warnings
18911 if test ! -s conftest.err; then
18912 lt_prog_compiler_pic_works_F77=yes
18913 fi
18914 fi
18915 $rm conftest*
18916
18917fi
18918echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18919echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18920
18921if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18922 case $lt_prog_compiler_pic_F77 in
18923 "" | " "*) ;;
18924 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18925 esac
18926else
18927 lt_prog_compiler_pic_F77=
18928 lt_prog_compiler_can_build_shared_F77=no
18929fi
18930
18931fi
18932case "$host_os" in
18933 # For platforms which do not support PIC, -DPIC is meaningless:
18934 *djgpp*)
18935 lt_prog_compiler_pic_F77=
18936 ;;
18937 *)
18938 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18939 ;;
18940esac
18941
18942echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18943echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18944if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18946else
18947 lt_cv_prog_compiler_c_o_F77=no
18948 $rm -r conftest 2>/dev/null
18949 mkdir conftest
18950 cd conftest
18951 mkdir out
18952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18953
John Criswell47fdd832003-07-14 16:52:07 +000018954 lt_compiler_flag="-o out/conftest2.$ac_objext"
18955 # Insert the option either (1) after the last *FLAGS variable, or
18956 # (2) before a word containing "conftest.", or (3) at the end.
18957 # Note that $ac_compile itself does not contain backslashes and begins
18958 # with a dollar sign (not a hyphen), so the echo should work correctly.
18959 lt_compile=`echo "$ac_compile" | $SED \
18960 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18962 -e 's:$: $lt_compiler_flag:'`
Misha Brukman19098e52005-05-12 22:15:34 +000018963 (eval echo "\"\$as_me:18963: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018964 (eval "$lt_compile" 2>out/conftest.err)
18965 ac_status=$?
18966 cat out/conftest.err >&5
Misha Brukman19098e52005-05-12 22:15:34 +000018967 echo "$as_me:18967: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18969 then
18970 # The compiler can only warn and ignore the option if not recognized
18971 # So say no if there are warnings
18972 if test ! -s out/conftest.err; then
18973 lt_cv_prog_compiler_c_o_F77=yes
18974 fi
18975 fi
18976 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018977 $rm conftest*
18978 # SGI C++ compiler will create directory out/ii_files/ for
18979 # template instantiation
18980 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18981 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018982 cd ..
18983 rmdir conftest
18984 $rm conftest*
18985
18986fi
18987echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18988echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18989
18990
18991hard_links="nottested"
18992if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18993 # do not overwrite the value of need_locks provided by the user
18994 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18995echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18996 hard_links=yes
18997 $rm conftest*
18998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18999 touch conftest.a
19000 ln conftest.a conftest.b 2>&5 || hard_links=no
19001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19002 echo "$as_me:$LINENO: result: $hard_links" >&5
19003echo "${ECHO_T}$hard_links" >&6
19004 if test "$hard_links" = no; then
19005 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19006echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19007 need_locks=warn
19008 fi
19009else
19010 need_locks=no
19011fi
19012
19013echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19014echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19015
19016 runpath_var=
19017 allow_undefined_flag_F77=
19018 enable_shared_with_static_runtimes_F77=no
19019 archive_cmds_F77=
19020 archive_expsym_cmds_F77=
19021 old_archive_From_new_cmds_F77=
19022 old_archive_from_expsyms_cmds_F77=
19023 export_dynamic_flag_spec_F77=
19024 whole_archive_flag_spec_F77=
19025 thread_safe_flag_spec_F77=
19026 hardcode_libdir_flag_spec_F77=
19027 hardcode_libdir_flag_spec_ld_F77=
19028 hardcode_libdir_separator_F77=
19029 hardcode_direct_F77=no
19030 hardcode_minus_L_F77=no
19031 hardcode_shlibpath_var_F77=unsupported
19032 link_all_deplibs_F77=unknown
19033 hardcode_automatic_F77=no
19034 module_cmds_F77=
19035 module_expsym_cmds_F77=
19036 always_export_symbols_F77=no
19037 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19038 # include_expsyms should be a list of space-separated symbols to be *always*
19039 # included in the symbol list
19040 include_expsyms_F77=
19041 # exclude_expsyms can be an extended regexp of symbols to exclude
19042 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19043 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19044 # as well as any symbol that contains `d'.
19045 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19047 # platforms (ab)use it in PIC code, but their linkers get confused if
19048 # the symbol is explicitly referenced. Since portable code cannot
19049 # rely on this symbol name, it's probably fine to never include it in
19050 # preloaded symbol tables.
19051 extract_expsyms_cmds=
19052
19053 case $host_os in
19054 cygwin* | mingw* | pw32*)
19055 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19056 # When not using gcc, we currently assume that we are using
19057 # Microsoft Visual C++.
19058 if test "$GCC" != yes; then
19059 with_gnu_ld=no
19060 fi
19061 ;;
19062 openbsd*)
19063 with_gnu_ld=no
19064 ;;
19065 esac
19066
19067 ld_shlibs_F77=yes
19068 if test "$with_gnu_ld" = yes; then
19069 # If archive_cmds runs LD, not CC, wlarc should be empty
19070 wlarc='${wl}'
19071
19072 # See if GNU ld supports shared libraries.
19073 case $host_os in
19074 aix3* | aix4* | aix5*)
19075 # On AIX/PPC, the GNU linker is very broken
19076 if test "$host_cpu" != ia64; then
19077 ld_shlibs_F77=no
19078 cat <<EOF 1>&2
19079
19080*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19081*** to be unable to reliably create shared libraries on AIX.
19082*** Therefore, libtool is disabling shared libraries support. If you
19083*** really care for shared libraries, you may want to modify your PATH
19084*** so that a non-GNU linker is found, and then restart.
19085
19086EOF
19087 fi
19088 ;;
19089
19090 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019091 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 +000019092 hardcode_libdir_flag_spec_F77='-L$libdir'
19093 hardcode_minus_L_F77=yes
19094
19095 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19096 # that the semantics of dynamic libraries on AmigaOS, at least up
19097 # to version 4, is to share data among multiple programs linked
19098 # with the same dynamic library. Since this doesn't match the
19099 # behavior of shared libraries on other platforms, we can't use
19100 # them.
19101 ld_shlibs_F77=no
19102 ;;
19103
19104 beos*)
19105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19106 allow_undefined_flag_F77=unsupported
19107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19108 # support --undefined. This deserves some investigation. FIXME
19109 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19110 else
19111 ld_shlibs_F77=no
19112 fi
19113 ;;
19114
19115 cygwin* | mingw* | pw32*)
19116 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19117 # as there is no search path for DLLs.
19118 hardcode_libdir_flag_spec_F77='-L$libdir'
19119 allow_undefined_flag_F77=unsupported
19120 always_export_symbols_F77=no
19121 enable_shared_with_static_runtimes_F77=yes
19122 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19123
19124 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19125 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19126 # If the export-symbols file already is a .def file (1st line
19127 # is EXPORTS), use it as is; otherwise, prepend...
19128 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19129 cp $export_symbols $output_objdir/$soname.def;
19130 else
19131 echo EXPORTS > $output_objdir/$soname.def;
19132 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019133 fi~
19134 $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 +000019135 else
19136 ld_shlibs=no
19137 fi
19138 ;;
19139
19140 netbsd*)
19141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19142 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19143 wlarc=
19144 else
19145 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19146 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19147 fi
19148 ;;
19149
19150 solaris* | sysv5*)
19151 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19152 ld_shlibs_F77=no
19153 cat <<EOF 1>&2
19154
19155*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19156*** create shared libraries on Solaris systems. Therefore, libtool
19157*** is disabling shared libraries support. We urge you to upgrade GNU
19158*** binutils to release 2.9.1 or newer. Another option is to modify
19159*** your PATH or compiler configuration so that the native linker is
19160*** used, and then restart.
19161
19162EOF
19163 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19164 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19165 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19166 else
19167 ld_shlibs_F77=no
19168 fi
19169 ;;
19170
19171 sunos4*)
19172 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19173 wlarc=
19174 hardcode_direct_F77=yes
19175 hardcode_shlibpath_var_F77=no
19176 ;;
19177
Reid Spencer2706f8c2004-09-19 23:53:36 +000019178 linux*)
19179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19180 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19181 archive_cmds_F77="$tmp_archive_cmds"
19182 supports_anon_versioning=no
19183 case `$LD -v 2>/dev/null` in
19184 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19185 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19186 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19187 *\ 2.11.*) ;; # other 2.11 versions
19188 *) supports_anon_versioning=yes ;;
19189 esac
19190 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019191 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19192cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19193$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019194 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19195 else
19196 archive_expsym_cmds_F77="$tmp_archive_cmds"
19197 fi
19198 else
19199 ld_shlibs_F77=no
19200 fi
19201 ;;
19202
John Criswell47fdd832003-07-14 16:52:07 +000019203 *)
19204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19205 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19206 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19207 else
19208 ld_shlibs_F77=no
19209 fi
19210 ;;
19211 esac
19212
19213 if test "$ld_shlibs_F77" = yes; then
19214 runpath_var=LD_RUN_PATH
19215 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19216 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19217 # ancient GNU ld didn't support --whole-archive et. al.
19218 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19219 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19220 else
19221 whole_archive_flag_spec_F77=
19222 fi
19223 fi
19224 else
19225 # PORTME fill in a description of your system's linker (not GNU ld)
19226 case $host_os in
19227 aix3*)
19228 allow_undefined_flag_F77=unsupported
19229 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019230 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 +000019231 # Note: this linker hardcodes the directories in LIBPATH if there
19232 # are no directories specified by -L.
19233 hardcode_minus_L_F77=yes
19234 if test "$GCC" = yes && test -z "$link_static_flag"; then
19235 # Neither direct hardcoding nor static linking is supported with a
19236 # broken collect2.
19237 hardcode_direct_F77=unsupported
19238 fi
19239 ;;
19240
19241 aix4* | aix5*)
19242 if test "$host_cpu" = ia64; then
19243 # On IA64, the linker does run time linking by default, so we don't
19244 # have to do anything special.
19245 aix_use_runtimelinking=no
19246 exp_sym_flag='-Bexport'
19247 no_entry_flag=""
19248 else
19249 # If we're using GNU nm, then we don't want the "-C" option.
19250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19251 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19252 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'
19253 else
19254 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'
19255 fi
19256 aix_use_runtimelinking=no
19257
19258 # Test if we are trying to use run time linking or normal
19259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19260 # need to do runtime linking.
19261 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19262 for ld_flag in $LDFLAGS; do
19263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19264 aix_use_runtimelinking=yes
19265 break
19266 fi
19267 done
19268 esac
19269
19270 exp_sym_flag='-bexport'
19271 no_entry_flag='-bnoentry'
19272 fi
19273
19274 # When large executables or shared objects are built, AIX ld can
19275 # have problems creating the table of contents. If linking a library
19276 # or program results in "error TOC overflow" add -mminimal-toc to
19277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19279
19280 archive_cmds_F77=''
19281 hardcode_direct_F77=yes
19282 hardcode_libdir_separator_F77=':'
19283 link_all_deplibs_F77=yes
19284
19285 if test "$GCC" = yes; then
19286 case $host_os in aix4.012|aix4.012.*)
19287 # We only want to do this on AIX 4.2 and lower, the check
19288 # below for broken collect2 doesn't work under 4.3+
19289 collect2name=`${CC} -print-prog-name=collect2`
19290 if test -f "$collect2name" && \
19291 strings "$collect2name" | grep resolve_lib_name >/dev/null
19292 then
19293 # We have reworked collect2
19294 hardcode_direct_F77=yes
19295 else
19296 # We have old collect2
19297 hardcode_direct_F77=unsupported
19298 # It fails to find uninstalled libraries when the uninstalled
19299 # path is not listed in the libpath. Setting hardcode_minus_L
19300 # to unsupported forces relinking
19301 hardcode_minus_L_F77=yes
19302 hardcode_libdir_flag_spec_F77='-L$libdir'
19303 hardcode_libdir_separator_F77=
19304 fi
19305 esac
19306 shared_flag='-shared'
19307 else
19308 # not using gcc
19309 if test "$host_cpu" = ia64; then
19310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19311 # chokes on -Wl,-G. The following line is correct:
19312 shared_flag='-G'
19313 else
19314 if test "$aix_use_runtimelinking" = yes; then
19315 shared_flag='${wl}-G'
19316 else
19317 shared_flag='${wl}-bM:SRE'
19318 fi
19319 fi
19320 fi
19321
19322 # It seems that -bexpall does not export symbols beginning with
19323 # underscore (_), so it is better to generate a list of symbols to export.
19324 always_export_symbols_F77=yes
19325 if test "$aix_use_runtimelinking" = yes; then
19326 # Warning - without using the other runtime loading flags (-brtl),
19327 # -berok will link without error, but may produce a broken library.
19328 allow_undefined_flag_F77='-berok'
19329 # Determine the default libpath from the value encoded in an empty executable.
19330 cat >conftest.$ac_ext <<_ACEOF
19331 program main
19332
19333 end
19334_ACEOF
19335rm -f conftest.$ac_objext conftest$ac_exeext
19336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019337 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019338 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019339 grep -v '^ *+' conftest.er1 >conftest.err
19340 rm -f conftest.er1
19341 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019344 { ac_try='test -z "$ac_f77_werror_flag"
19345 || test ! -s conftest.err'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19354 ac_status=$?
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; }; then
19357
19358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19359}'`
19360# Check for a 64-bit object if we didn't find anything.
19361if 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; }
19362}'`; fi
19363else
19364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019365sed 's/^/| /' conftest.$ac_ext >&5
19366
John Criswell47fdd832003-07-14 16:52:07 +000019367fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019368rm -f conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19371
19372 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19373 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"
19374 else
19375 if test "$host_cpu" = ia64; then
19376 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19377 allow_undefined_flag_F77="-z nodefs"
19378 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"
19379 else
19380 # Determine the default libpath from the value encoded in an empty executable.
19381 cat >conftest.$ac_ext <<_ACEOF
19382 program main
19383
19384 end
19385_ACEOF
19386rm -f conftest.$ac_objext conftest$ac_exeext
19387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019388 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019389 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019390 grep -v '^ *+' conftest.er1 >conftest.err
19391 rm -f conftest.er1
19392 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019395 { ac_try='test -z "$ac_f77_werror_flag"
19396 || test ! -s conftest.err'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; } &&
19402 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408
19409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19410}'`
19411# Check for a 64-bit object if we didn't find anything.
19412if 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; }
19413}'`; fi
19414else
19415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019416sed 's/^/| /' conftest.$ac_ext >&5
19417
John Criswell47fdd832003-07-14 16:52:07 +000019418fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019419rm -f conftest.err conftest.$ac_objext \
19420 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19422
19423 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19424 # Warning - without using the other run time loading flags,
19425 # -berok will link without error, but may produce a broken library.
19426 no_undefined_flag_F77=' ${wl}-bernotok'
19427 allow_undefined_flag_F77=' ${wl}-berok'
19428 # -bexpall does not export symbols beginning with underscore (_)
19429 always_export_symbols_F77=yes
19430 # Exported symbols can be pulled into shared objects from archives
19431 whole_archive_flag_spec_F77=' '
19432 archive_cmds_need_lc_F77=yes
19433 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019434 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 +000019435 fi
19436 fi
19437 ;;
19438
19439 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019440 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 +000019441 hardcode_libdir_flag_spec_F77='-L$libdir'
19442 hardcode_minus_L_F77=yes
19443 # see comment about different semantics on the GNU ld section
19444 ld_shlibs_F77=no
19445 ;;
19446
Reid Spencer2706f8c2004-09-19 23:53:36 +000019447 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019448 export_dynamic_flag_spec_F77=-rdynamic
19449 ;;
19450
19451 cygwin* | mingw* | pw32*)
19452 # When not using gcc, we currently assume that we are using
19453 # Microsoft Visual C++.
19454 # hardcode_libdir_flag_spec is actually meaningless, as there is
19455 # no search path for DLLs.
19456 hardcode_libdir_flag_spec_F77=' '
19457 allow_undefined_flag_F77=unsupported
19458 # Tell ltmain to make .lib files, not .a files.
19459 libext=lib
19460 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019461 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019462 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019463 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 +000019464 # The linker will automatically build a .lib file if we build a DLL.
19465 old_archive_From_new_cmds_F77='true'
19466 # FIXME: Should let the user specify the lib program.
19467 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19468 fix_srcfile_path='`cygpath -w "$srcfile"`'
19469 enable_shared_with_static_runtimes_F77=yes
19470 ;;
19471
19472 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019473 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019474 rhapsody* | darwin1.[012])
19475 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19476 ;;
19477 *) # Darwin 1.3 on
19478 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19479 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19480 else
19481 case ${MACOSX_DEPLOYMENT_TARGET} in
19482 10.[012])
19483 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19484 ;;
19485 10.*)
19486 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19487 ;;
19488 esac
19489 fi
19490 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019491 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019492 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019493 hardcode_direct_F77=no
19494 hardcode_automatic_F77=yes
19495 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019496 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019497 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019498 if test "$GCC" = yes ; then
19499 output_verbose_link_cmd='echo'
19500 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19501 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19502 # 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 +000019503 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}'
19504 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 +000019505 else
19506 case "$cc_basename" in
19507 xlc*)
19508 output_verbose_link_cmd='echo'
19509 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19510 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19511 # 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 +000019512 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}'
19513 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 +000019514 ;;
19515 *)
19516 ld_shlibs_F77=no
19517 ;;
19518 esac
John Criswell47fdd832003-07-14 16:52:07 +000019519 fi
19520 ;;
19521
19522 dgux*)
19523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19524 hardcode_libdir_flag_spec_F77='-L$libdir'
19525 hardcode_shlibpath_var_F77=no
19526 ;;
19527
19528 freebsd1*)
19529 ld_shlibs_F77=no
19530 ;;
19531
19532 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19533 # support. Future versions do this automatically, but an explicit c++rt0.o
19534 # does not break anything, and helps significantly (at the cost of a little
19535 # extra space).
19536 freebsd2.2*)
19537 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19538 hardcode_libdir_flag_spec_F77='-R$libdir'
19539 hardcode_direct_F77=yes
19540 hardcode_shlibpath_var_F77=no
19541 ;;
19542
19543 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19544 freebsd2*)
19545 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19546 hardcode_direct_F77=yes
19547 hardcode_minus_L_F77=yes
19548 hardcode_shlibpath_var_F77=no
19549 ;;
19550
19551 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019552 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019553 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19554 hardcode_libdir_flag_spec_F77='-R$libdir'
19555 hardcode_direct_F77=yes
19556 hardcode_shlibpath_var_F77=no
19557 ;;
19558
19559 hpux9*)
19560 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019561 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 +000019562 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019563 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 +000019564 fi
19565 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19566 hardcode_libdir_separator_F77=:
19567 hardcode_direct_F77=yes
19568
19569 # hardcode_minus_L: Not really in the search PATH,
19570 # but as the default location of the library.
19571 hardcode_minus_L_F77=yes
19572 export_dynamic_flag_spec_F77='${wl}-E'
19573 ;;
19574
19575 hpux10* | hpux11*)
19576 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19577 case "$host_cpu" in
19578 hppa*64*|ia64*)
19579 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19580 ;;
19581 *)
19582 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19583 ;;
19584 esac
19585 else
19586 case "$host_cpu" in
19587 hppa*64*|ia64*)
19588 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19589 ;;
19590 *)
19591 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19592 ;;
19593 esac
19594 fi
19595 if test "$with_gnu_ld" = no; then
19596 case "$host_cpu" in
19597 hppa*64*)
19598 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19599 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19600 hardcode_libdir_separator_F77=:
19601 hardcode_direct_F77=no
19602 hardcode_shlibpath_var_F77=no
19603 ;;
19604 ia64*)
19605 hardcode_libdir_flag_spec_F77='-L$libdir'
19606 hardcode_direct_F77=no
19607 hardcode_shlibpath_var_F77=no
19608
19609 # hardcode_minus_L: Not really in the search PATH,
19610 # but as the default location of the library.
19611 hardcode_minus_L_F77=yes
19612 ;;
19613 *)
19614 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19615 hardcode_libdir_separator_F77=:
19616 hardcode_direct_F77=yes
19617 export_dynamic_flag_spec_F77='${wl}-E'
19618
19619 # hardcode_minus_L: Not really in the search PATH,
19620 # but as the default location of the library.
19621 hardcode_minus_L_F77=yes
19622 ;;
19623 esac
19624 fi
19625 ;;
19626
19627 irix5* | irix6* | nonstopux*)
19628 if test "$GCC" = yes; then
19629 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'
19630 else
19631 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'
19632 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19633 fi
19634 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19635 hardcode_libdir_separator_F77=:
19636 link_all_deplibs_F77=yes
19637 ;;
19638
19639 netbsd*)
19640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19641 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19642 else
19643 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19644 fi
19645 hardcode_libdir_flag_spec_F77='-R$libdir'
19646 hardcode_direct_F77=yes
19647 hardcode_shlibpath_var_F77=no
19648 ;;
19649
19650 newsos6)
19651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652 hardcode_direct_F77=yes
19653 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19654 hardcode_libdir_separator_F77=:
19655 hardcode_shlibpath_var_F77=no
19656 ;;
19657
19658 openbsd*)
19659 hardcode_direct_F77=yes
19660 hardcode_shlibpath_var_F77=no
19661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19662 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019663 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 +000019664 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19665 export_dynamic_flag_spec_F77='${wl}-E'
19666 else
19667 case $host_os in
19668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19669 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19670 hardcode_libdir_flag_spec_F77='-R$libdir'
19671 ;;
19672 *)
19673 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19674 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19675 ;;
19676 esac
19677 fi
19678 ;;
19679
19680 os2*)
19681 hardcode_libdir_flag_spec_F77='-L$libdir'
19682 hardcode_minus_L_F77=yes
19683 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019684 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 +000019685 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19686 ;;
19687
19688 osf3*)
19689 if test "$GCC" = yes; then
19690 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19691 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'
19692 else
19693 allow_undefined_flag_F77=' -expect_unresolved \*'
19694 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'
19695 fi
19696 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19697 hardcode_libdir_separator_F77=:
19698 ;;
19699
19700 osf4* | osf5*) # as osf3* with the addition of -msym flag
19701 if test "$GCC" = yes; then
19702 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19703 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'
19704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19705 else
19706 allow_undefined_flag_F77=' -expect_unresolved \*'
19707 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 +000019708 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~
19709 $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'
19710
John Criswell47fdd832003-07-14 16:52:07 +000019711 # Both c and cxx compiler support -rpath directly
19712 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19713 fi
19714 hardcode_libdir_separator_F77=:
19715 ;;
19716
19717 sco3.2v5*)
19718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19719 hardcode_shlibpath_var_F77=no
19720 export_dynamic_flag_spec_F77='${wl}-Bexport'
19721 runpath_var=LD_RUN_PATH
19722 hardcode_runpath_var=yes
19723 ;;
19724
19725 solaris*)
19726 no_undefined_flag_F77=' -z text'
19727 if test "$GCC" = yes; then
19728 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019729 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19730 $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 +000019731 else
19732 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019733 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19734 $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 +000019735 fi
19736 hardcode_libdir_flag_spec_F77='-R$libdir'
19737 hardcode_shlibpath_var_F77=no
19738 case $host_os in
19739 solaris2.[0-5] | solaris2.[0-5].*) ;;
19740 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19741 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19742 esac
19743 link_all_deplibs_F77=yes
19744 ;;
19745
19746 sunos4*)
19747 if test "x$host_vendor" = xsequent; then
19748 # Use $CC to link under sequent, because it throws in some extra .o
19749 # files that make .init and .fini sections work.
19750 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19751 else
19752 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19753 fi
19754 hardcode_libdir_flag_spec_F77='-L$libdir'
19755 hardcode_direct_F77=yes
19756 hardcode_minus_L_F77=yes
19757 hardcode_shlibpath_var_F77=no
19758 ;;
19759
19760 sysv4)
19761 case $host_vendor in
19762 sni)
19763 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19764 hardcode_direct_F77=yes # is this really true???
19765 ;;
19766 siemens)
19767 ## LD is ld it makes a PLAMLIB
19768 ## CC just makes a GrossModule.
19769 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19770 reload_cmds_F77='$CC -r -o $output$reload_objs'
19771 hardcode_direct_F77=no
19772 ;;
19773 motorola)
19774 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19775 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19776 ;;
19777 esac
19778 runpath_var='LD_RUN_PATH'
19779 hardcode_shlibpath_var_F77=no
19780 ;;
19781
19782 sysv4.3*)
19783 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19784 hardcode_shlibpath_var_F77=no
19785 export_dynamic_flag_spec_F77='-Bexport'
19786 ;;
19787
19788 sysv4*MP*)
19789 if test -d /usr/nec; then
19790 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19791 hardcode_shlibpath_var_F77=no
19792 runpath_var=LD_RUN_PATH
19793 hardcode_runpath_var=yes
19794 ld_shlibs_F77=yes
19795 fi
19796 ;;
19797
19798 sysv4.2uw2*)
19799 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19800 hardcode_direct_F77=yes
19801 hardcode_minus_L_F77=no
19802 hardcode_shlibpath_var_F77=no
19803 hardcode_runpath_var=yes
19804 runpath_var=LD_RUN_PATH
19805 ;;
19806
19807 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19808 no_undefined_flag_F77='${wl}-z ${wl}text'
19809 if test "$GCC" = yes; then
19810 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19811 else
19812 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19813 fi
19814 runpath_var='LD_RUN_PATH'
19815 hardcode_shlibpath_var_F77=no
19816 ;;
19817
19818 sysv5*)
19819 no_undefined_flag_F77=' -z text'
19820 # $CC -shared without GNU ld will not create a library from C++
19821 # object files and a static libstdc++, better avoid it by now
19822 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019823 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19824 $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 +000019825 hardcode_libdir_flag_spec_F77=
19826 hardcode_shlibpath_var_F77=no
19827 runpath_var='LD_RUN_PATH'
19828 ;;
19829
19830 uts4*)
19831 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19832 hardcode_libdir_flag_spec_F77='-L$libdir'
19833 hardcode_shlibpath_var_F77=no
19834 ;;
19835
19836 *)
19837 ld_shlibs_F77=no
19838 ;;
19839 esac
19840 fi
19841
19842echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19843echo "${ECHO_T}$ld_shlibs_F77" >&6
19844test "$ld_shlibs_F77" = no && can_build_shared=no
19845
19846variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19847if test "$GCC" = yes; then
19848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19849fi
19850
19851#
19852# Do we need to explicitly link libc?
19853#
19854case "x$archive_cmds_need_lc_F77" in
19855x|xyes)
19856 # Assume -lc should be added
19857 archive_cmds_need_lc_F77=yes
19858
19859 if test "$enable_shared" = yes && test "$GCC" = yes; then
19860 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019861 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019862 # FIXME: we may have to deal with multi-command sequences.
19863 ;;
19864 '$CC '*)
19865 # Test whether the compiler implicitly links with -lc since on some
19866 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19867 # to ld, don't add -lc before -lgcc.
19868 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19869echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19870 $rm conftest*
19871 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19872
19873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19874 (eval $ac_compile) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } 2>conftest.err; then
19878 soname=conftest
19879 lib=conftest
19880 libobjs=conftest.$ac_objext
19881 deplibs=
19882 wl=$lt_prog_compiler_wl_F77
19883 compiler_flags=-v
19884 linker_flags=-v
19885 verstring=
19886 output_objdir=.
19887 libname=conftest
19888 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19889 allow_undefined_flag_F77=
19890 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19891 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }
19895 then
19896 archive_cmds_need_lc_F77=no
19897 else
19898 archive_cmds_need_lc_F77=yes
19899 fi
19900 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19901 else
19902 cat conftest.err 1>&5
19903 fi
19904 $rm conftest*
19905 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19906echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19907 ;;
19908 esac
19909 fi
19910 ;;
19911esac
19912
John Criswell47fdd832003-07-14 16:52:07 +000019913echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19914echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19915library_names_spec=
19916libname_spec='lib$name'
19917soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019918shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019919postinstall_cmds=
19920postuninstall_cmds=
19921finish_cmds=
19922finish_eval=
19923shlibpath_var=
19924shlibpath_overrides_runpath=unknown
19925version_type=none
19926dynamic_linker="$host_os ld.so"
19927sys_lib_dlsearch_path_spec="/lib /usr/lib"
19928if test "$GCC" = yes; then
19929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19930 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19931 # if the path contains ";" then we assume it to be the separator
19932 # otherwise default to the standard path separator (i.e. ":") - it is
19933 # assumed that no part of a normal pathname contains ";" but that should
19934 # okay in the real world where ";" in dirpaths is itself problematic.
19935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19936 else
19937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19938 fi
19939else
19940 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19941fi
19942need_lib_prefix=unknown
19943hardcode_into_libs=no
19944
19945# when you set need_version to no, make sure it does not cause -set_version
19946# flags to be left without arguments
19947need_version=unknown
19948
19949case $host_os in
19950aix3*)
19951 version_type=linux
19952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19953 shlibpath_var=LIBPATH
19954
19955 # AIX 3 has no versioning support, so we append a major version to the name.
19956 soname_spec='${libname}${release}${shared_ext}$major'
19957 ;;
19958
19959aix4* | aix5*)
19960 version_type=linux
19961 need_lib_prefix=no
19962 need_version=no
19963 hardcode_into_libs=yes
19964 if test "$host_cpu" = ia64; then
19965 # AIX 5 supports IA64
19966 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19967 shlibpath_var=LD_LIBRARY_PATH
19968 else
19969 # With GCC up to 2.95.x, collect2 would create an import file
19970 # for dependence libraries. The import file would start with
19971 # the line `#! .'. This would cause the generated library to
19972 # depend on `.', always an invalid library. This was fixed in
19973 # development snapshots of GCC prior to 3.0.
19974 case $host_os in
19975 aix4 | aix4.[01] | aix4.[01].*)
19976 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19977 echo ' yes '
19978 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19979 :
19980 else
19981 can_build_shared=no
19982 fi
19983 ;;
19984 esac
19985 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19986 # soname into executable. Probably we can add versioning support to
19987 # collect2, so additional links can be useful in future.
19988 if test "$aix_use_runtimelinking" = yes; then
19989 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19990 # instead of lib<name>.a to let people know that these are not
19991 # typical AIX shared libraries.
19992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19993 else
19994 # We preserve .a as extension for shared libraries through AIX4.2
19995 # and later when we are not doing run time linking.
19996 library_names_spec='${libname}${release}.a $libname.a'
19997 soname_spec='${libname}${release}${shared_ext}$major'
19998 fi
19999 shlibpath_var=LIBPATH
20000 fi
20001 ;;
20002
20003amigaos*)
20004 library_names_spec='$libname.ixlibrary $libname.a'
20005 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020006 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 +000020007 ;;
20008
20009beos*)
20010 library_names_spec='${libname}${shared_ext}'
20011 dynamic_linker="$host_os ld.so"
20012 shlibpath_var=LIBRARY_PATH
20013 ;;
20014
Reid Spencer2706f8c2004-09-19 23:53:36 +000020015bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020016 version_type=linux
20017 need_version=no
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20019 soname_spec='${libname}${release}${shared_ext}$major'
20020 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20021 shlibpath_var=LD_LIBRARY_PATH
20022 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20023 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20024 # the default ld.so.conf also contains /usr/contrib/lib and
20025 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20026 # libtool to hard-code these into programs
20027 ;;
20028
20029cygwin* | mingw* | pw32*)
20030 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020031 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020032 need_version=no
20033 need_lib_prefix=no
20034
20035 case $GCC,$host_os in
20036 yes,cygwin* | yes,mingw* | yes,pw32*)
20037 library_names_spec='$libname.dll.a'
20038 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020039 postinstall_cmds='base_file=`basename \${file}`~
20040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20041 dldir=$destdir/`dirname \$dlpath`~
20042 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020043 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020044 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20045 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020046 $rm \$dlpath'
20047 shlibpath_overrides_runpath=yes
20048
20049 case $host_os in
20050 cygwin*)
20051 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20052 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 +000020053 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020054 ;;
20055 mingw*)
20056 # MinGW DLLs use traditional 'lib' prefix
20057 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20059 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20060 # It is most probably a Windows format PATH printed by
20061 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20062 # path with ; separators, and with drive letters. We can handle the
20063 # drive letters (cygwin fileutils understands them), so leave them,
20064 # especially as we might pass files found there to a mingw objdump,
20065 # which wouldn't understand a cygwinified path. Ahh.
20066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20067 else
20068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20069 fi
20070 ;;
20071 pw32*)
20072 # pw32 DLLs use 'pw' prefix rather than 'lib'
20073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20074 ;;
20075 esac
20076 ;;
20077
20078 *)
20079 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20080 ;;
20081 esac
20082 dynamic_linker='Win32 ld.exe'
20083 # FIXME: first we should search . and the directory the executable is in
20084 shlibpath_var=PATH
20085 ;;
20086
20087darwin* | rhapsody*)
20088 dynamic_linker="$host_os dyld"
20089 version_type=darwin
20090 need_lib_prefix=no
20091 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020092 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020093 soname_spec='${libname}${release}${major}$shared_ext'
20094 shlibpath_overrides_runpath=yes
20095 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020096 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020097 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020098 if test "$GCC" = yes; then
20099 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"`
20100 else
20101 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020102 fi
20103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20104 ;;
20105
20106dgux*)
20107 version_type=linux
20108 need_lib_prefix=no
20109 need_version=no
20110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20111 soname_spec='${libname}${release}${shared_ext}$major'
20112 shlibpath_var=LD_LIBRARY_PATH
20113 ;;
20114
20115freebsd1*)
20116 dynamic_linker=no
20117 ;;
20118
Reid Spencer2706f8c2004-09-19 23:53:36 +000020119kfreebsd*-gnu)
20120 version_type=linux
20121 need_lib_prefix=no
20122 need_version=no
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20124 soname_spec='${libname}${release}${shared_ext}$major'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 shlibpath_overrides_runpath=no
20127 hardcode_into_libs=yes
20128 dynamic_linker='GNU ld.so'
20129 ;;
20130
John Criswell47fdd832003-07-14 16:52:07 +000020131freebsd*)
20132 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20133 version_type=freebsd-$objformat
20134 case $version_type in
20135 freebsd-elf*)
20136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20137 need_version=no
20138 need_lib_prefix=no
20139 ;;
20140 freebsd-*)
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20142 need_version=yes
20143 ;;
20144 esac
20145 shlibpath_var=LD_LIBRARY_PATH
20146 case $host_os in
20147 freebsd2*)
20148 shlibpath_overrides_runpath=yes
20149 ;;
20150 freebsd3.01* | freebsdelf3.01*)
20151 shlibpath_overrides_runpath=yes
20152 hardcode_into_libs=yes
20153 ;;
20154 *) # from 3.2 on
20155 shlibpath_overrides_runpath=no
20156 hardcode_into_libs=yes
20157 ;;
20158 esac
20159 ;;
20160
20161gnu*)
20162 version_type=linux
20163 need_lib_prefix=no
20164 need_version=no
20165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20166 soname_spec='${libname}${release}${shared_ext}$major'
20167 shlibpath_var=LD_LIBRARY_PATH
20168 hardcode_into_libs=yes
20169 ;;
20170
20171hpux9* | hpux10* | hpux11*)
20172 # Give a soname corresponding to the major version so that dld.sl refuses to
20173 # link against other versions.
20174 version_type=sunos
20175 need_lib_prefix=no
20176 need_version=no
20177 case "$host_cpu" in
20178 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020179 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020180 hardcode_into_libs=yes
20181 dynamic_linker="$host_os dld.so"
20182 shlibpath_var=LD_LIBRARY_PATH
20183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185 soname_spec='${libname}${release}${shared_ext}$major'
20186 if test "X$HPUX_IA64_MODE" = X32; then
20187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20188 else
20189 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20190 fi
20191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20192 ;;
20193 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020194 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020195 hardcode_into_libs=yes
20196 dynamic_linker="$host_os dld.sl"
20197 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20200 soname_spec='${libname}${release}${shared_ext}$major'
20201 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20203 ;;
20204 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020205 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020206 dynamic_linker="$host_os dld.sl"
20207 shlibpath_var=SHLIB_PATH
20208 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210 soname_spec='${libname}${release}${shared_ext}$major'
20211 ;;
20212 esac
20213 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20214 postinstall_cmds='chmod 555 $lib'
20215 ;;
20216
20217irix5* | irix6* | nonstopux*)
20218 case $host_os in
20219 nonstopux*) version_type=nonstopux ;;
20220 *)
20221 if test "$lt_cv_prog_gnu_ld" = yes; then
20222 version_type=linux
20223 else
20224 version_type=irix
20225 fi ;;
20226 esac
20227 need_lib_prefix=no
20228 need_version=no
20229 soname_spec='${libname}${release}${shared_ext}$major'
20230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20231 case $host_os in
20232 irix5* | nonstopux*)
20233 libsuff= shlibsuff=
20234 ;;
20235 *)
20236 case $LD in # libtool.m4 will add one of these switches to LD
20237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20238 libsuff= shlibsuff= libmagic=32-bit;;
20239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20240 libsuff=32 shlibsuff=N32 libmagic=N32;;
20241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20243 *) libsuff= shlibsuff= libmagic=never-match;;
20244 esac
20245 ;;
20246 esac
20247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20248 shlibpath_overrides_runpath=no
20249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20251 hardcode_into_libs=yes
20252 ;;
20253
20254# No shared lib support for Linux oldld, aout, or coff.
20255linux*oldld* | linux*aout* | linux*coff*)
20256 dynamic_linker=no
20257 ;;
20258
20259# This must be Linux ELF.
20260linux*)
20261 version_type=linux
20262 need_lib_prefix=no
20263 need_version=no
20264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20265 soname_spec='${libname}${release}${shared_ext}$major'
20266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20267 shlibpath_var=LD_LIBRARY_PATH
20268 shlibpath_overrides_runpath=no
20269 # This implies no fast_install, which is unacceptable.
20270 # Some rework will be needed to allow for fast_install
20271 # before this can be enabled.
20272 hardcode_into_libs=yes
20273
Reid Spencer2706f8c2004-09-19 23:53:36 +000020274 # Append ld.so.conf contents to the search path
20275 if test -f /etc/ld.so.conf; then
20276 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20278 fi
20279
John Criswell47fdd832003-07-14 16:52:07 +000020280 # We used to test for /lib/ld.so.1 and disable shared libraries on
20281 # powerpc, because MkLinux only supported shared libraries with the
20282 # GNU dynamic linker. Since this was broken with cross compilers,
20283 # most powerpc-linux boxes support dynamic linking these days and
20284 # people can always --disable-shared, the test was removed, and we
20285 # assume the GNU/Linux dynamic linker is in use.
20286 dynamic_linker='GNU/Linux ld.so'
20287 ;;
20288
Reid Spencer2706f8c2004-09-19 23:53:36 +000020289knetbsd*-gnu)
20290 version_type=linux
20291 need_lib_prefix=no
20292 need_version=no
20293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20294 soname_spec='${libname}${release}${shared_ext}$major'
20295 shlibpath_var=LD_LIBRARY_PATH
20296 shlibpath_overrides_runpath=no
20297 hardcode_into_libs=yes
20298 dynamic_linker='GNU ld.so'
20299 ;;
20300
John Criswell47fdd832003-07-14 16:52:07 +000020301netbsd*)
20302 version_type=sunos
20303 need_lib_prefix=no
20304 need_version=no
20305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20308 dynamic_linker='NetBSD (a.out) ld.so'
20309 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020311 soname_spec='${libname}${release}${shared_ext}$major'
20312 dynamic_linker='NetBSD ld.elf_so'
20313 fi
20314 shlibpath_var=LD_LIBRARY_PATH
20315 shlibpath_overrides_runpath=yes
20316 hardcode_into_libs=yes
20317 ;;
20318
20319newsos6)
20320 version_type=linux
20321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20322 shlibpath_var=LD_LIBRARY_PATH
20323 shlibpath_overrides_runpath=yes
20324 ;;
20325
Reid Spencer2706f8c2004-09-19 23:53:36 +000020326nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020327 version_type=linux
20328 need_lib_prefix=no
20329 need_version=no
20330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20331 soname_spec='${libname}${release}${shared_ext}$major'
20332 shlibpath_var=LD_LIBRARY_PATH
20333 shlibpath_overrides_runpath=yes
20334 ;;
20335
20336openbsd*)
20337 version_type=sunos
20338 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020339 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20342 shlibpath_var=LD_LIBRARY_PATH
20343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20344 case $host_os in
20345 openbsd2.[89] | openbsd2.[89].*)
20346 shlibpath_overrides_runpath=no
20347 ;;
20348 *)
20349 shlibpath_overrides_runpath=yes
20350 ;;
20351 esac
20352 else
20353 shlibpath_overrides_runpath=yes
20354 fi
20355 ;;
20356
20357os2*)
20358 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020359 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020360 need_lib_prefix=no
20361 library_names_spec='$libname${shared_ext} $libname.a'
20362 dynamic_linker='OS/2 ld.exe'
20363 shlibpath_var=LIBPATH
20364 ;;
20365
20366osf3* | osf4* | osf5*)
20367 version_type=osf
20368 need_lib_prefix=no
20369 need_version=no
20370 soname_spec='${libname}${release}${shared_ext}$major'
20371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20372 shlibpath_var=LD_LIBRARY_PATH
20373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20375 ;;
20376
20377sco3.2v5*)
20378 version_type=osf
20379 soname_spec='${libname}${release}${shared_ext}$major'
20380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20381 shlibpath_var=LD_LIBRARY_PATH
20382 ;;
20383
20384solaris*)
20385 version_type=linux
20386 need_lib_prefix=no
20387 need_version=no
20388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20389 soname_spec='${libname}${release}${shared_ext}$major'
20390 shlibpath_var=LD_LIBRARY_PATH
20391 shlibpath_overrides_runpath=yes
20392 hardcode_into_libs=yes
20393 # ldd complains unless libraries are executable
20394 postinstall_cmds='chmod +x $lib'
20395 ;;
20396
20397sunos4*)
20398 version_type=sunos
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20400 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 shlibpath_overrides_runpath=yes
20403 if test "$with_gnu_ld" = yes; then
20404 need_lib_prefix=no
20405 fi
20406 need_version=yes
20407 ;;
20408
20409sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20410 version_type=linux
20411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412 soname_spec='${libname}${release}${shared_ext}$major'
20413 shlibpath_var=LD_LIBRARY_PATH
20414 case $host_vendor in
20415 sni)
20416 shlibpath_overrides_runpath=no
20417 need_lib_prefix=no
20418 export_dynamic_flag_spec='${wl}-Blargedynsym'
20419 runpath_var=LD_RUN_PATH
20420 ;;
20421 siemens)
20422 need_lib_prefix=no
20423 ;;
20424 motorola)
20425 need_lib_prefix=no
20426 need_version=no
20427 shlibpath_overrides_runpath=no
20428 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20429 ;;
20430 esac
20431 ;;
20432
20433sysv4*MP*)
20434 if test -d /usr/nec ;then
20435 version_type=linux
20436 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20437 soname_spec='$libname${shared_ext}.$major'
20438 shlibpath_var=LD_LIBRARY_PATH
20439 fi
20440 ;;
20441
20442uts4*)
20443 version_type=linux
20444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20445 soname_spec='${libname}${release}${shared_ext}$major'
20446 shlibpath_var=LD_LIBRARY_PATH
20447 ;;
20448
20449*)
20450 dynamic_linker=no
20451 ;;
20452esac
20453echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20454echo "${ECHO_T}$dynamic_linker" >&6
20455test "$dynamic_linker" = no && can_build_shared=no
20456
Reid Spencer2706f8c2004-09-19 23:53:36 +000020457echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20458echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20459hardcode_action_F77=
20460if test -n "$hardcode_libdir_flag_spec_F77" || \
20461 test -n "$runpath_var_F77" || \
20462 test "X$hardcode_automatic_F77" = "Xyes" ; then
20463
20464 # We can hardcode non-existant directories.
20465 if test "$hardcode_direct_F77" != no &&
20466 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20467 # have to relink, otherwise we might link with an installed library
20468 # when we should be linking with a yet-to-be-installed one
20469 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20470 test "$hardcode_minus_L_F77" != no; then
20471 # Linking always hardcodes the temporary library directory.
20472 hardcode_action_F77=relink
20473 else
20474 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20475 hardcode_action_F77=immediate
20476 fi
20477else
20478 # We cannot hardcode anything, or else we can only hardcode existing
20479 # directories.
20480 hardcode_action_F77=unsupported
20481fi
20482echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20483echo "${ECHO_T}$hardcode_action_F77" >&6
20484
20485if test "$hardcode_action_F77" = relink; then
20486 # Fast installation is not supported
20487 enable_fast_install=no
20488elif test "$shlibpath_overrides_runpath" = yes ||
20489 test "$enable_shared" = no; then
20490 # Fast installation is not necessary
20491 enable_fast_install=needless
20492fi
20493
20494striplib=
20495old_striplib=
20496echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20497echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20498if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20499 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20500 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20501 echo "$as_me:$LINENO: result: yes" >&5
20502echo "${ECHO_T}yes" >&6
20503else
20504# FIXME - insert some real tests, host_os isn't really good enough
20505 case $host_os in
20506 darwin*)
20507 if test -n "$STRIP" ; then
20508 striplib="$STRIP -x"
20509 echo "$as_me:$LINENO: result: yes" >&5
20510echo "${ECHO_T}yes" >&6
20511 else
20512 echo "$as_me:$LINENO: result: no" >&5
20513echo "${ECHO_T}no" >&6
20514fi
20515 ;;
20516 *)
20517 echo "$as_me:$LINENO: result: no" >&5
20518echo "${ECHO_T}no" >&6
20519 ;;
20520 esac
20521fi
20522
20523
John Criswell47fdd832003-07-14 16:52:07 +000020524
20525# The else clause should only fire when bootstrapping the
20526# libtool distribution, otherwise you forgot to ship ltmain.sh
20527# with your package, and you will get complaints that there are
20528# no rules to generate ltmain.sh.
20529if test -f "$ltmain"; then
20530 # See if we are running on zsh, and set the options which allow our commands through
20531 # without removal of \ escapes.
20532 if test -n "${ZSH_VERSION+set}" ; then
20533 setopt NO_GLOB_SUBST
20534 fi
20535 # Now quote all the things that may contain metacharacters while being
20536 # careful not to overquote the AC_SUBSTed values. We take copies of the
20537 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020538 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20539 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020540 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20541 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20542 deplibs_check_method reload_flag reload_cmds need_locks \
20543 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20544 lt_cv_sys_global_symbol_to_c_name_address \
20545 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20546 old_postinstall_cmds old_postuninstall_cmds \
20547 compiler_F77 \
20548 CC_F77 \
20549 LD_F77 \
20550 lt_prog_compiler_wl_F77 \
20551 lt_prog_compiler_pic_F77 \
20552 lt_prog_compiler_static_F77 \
20553 lt_prog_compiler_no_builtin_flag_F77 \
20554 export_dynamic_flag_spec_F77 \
20555 thread_safe_flag_spec_F77 \
20556 whole_archive_flag_spec_F77 \
20557 enable_shared_with_static_runtimes_F77 \
20558 old_archive_cmds_F77 \
20559 old_archive_from_new_cmds_F77 \
20560 predep_objects_F77 \
20561 postdep_objects_F77 \
20562 predeps_F77 \
20563 postdeps_F77 \
20564 compiler_lib_search_path_F77 \
20565 archive_cmds_F77 \
20566 archive_expsym_cmds_F77 \
20567 postinstall_cmds_F77 \
20568 postuninstall_cmds_F77 \
20569 old_archive_from_expsyms_cmds_F77 \
20570 allow_undefined_flag_F77 \
20571 no_undefined_flag_F77 \
20572 export_symbols_cmds_F77 \
20573 hardcode_libdir_flag_spec_F77 \
20574 hardcode_libdir_flag_spec_ld_F77 \
20575 hardcode_libdir_separator_F77 \
20576 hardcode_automatic_F77 \
20577 module_cmds_F77 \
20578 module_expsym_cmds_F77 \
20579 lt_cv_prog_compiler_c_o_F77 \
20580 exclude_expsyms_F77 \
20581 include_expsyms_F77; do
20582
20583 case $var in
20584 old_archive_cmds_F77 | \
20585 old_archive_from_new_cmds_F77 | \
20586 archive_cmds_F77 | \
20587 archive_expsym_cmds_F77 | \
20588 module_cmds_F77 | \
20589 module_expsym_cmds_F77 | \
20590 old_archive_from_expsyms_cmds_F77 | \
20591 export_symbols_cmds_F77 | \
20592 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20593 postinstall_cmds | postuninstall_cmds | \
20594 old_postinstall_cmds | old_postuninstall_cmds | \
20595 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20596 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020597 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 +000020598 ;;
20599 *)
20600 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20601 ;;
20602 esac
20603 done
20604
20605 case $lt_echo in
20606 *'\$0 --fallback-echo"')
20607 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20608 ;;
20609 esac
20610
20611cfgfile="$ofile"
20612
20613 cat <<__EOF__ >> "$cfgfile"
20614# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20615
20616# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20617
20618# Shell to use when invoking shell scripts.
20619SHELL=$lt_SHELL
20620
20621# Whether or not to build shared libraries.
20622build_libtool_libs=$enable_shared
20623
20624# Whether or not to build static libraries.
20625build_old_libs=$enable_static
20626
20627# Whether or not to add -lc for building shared libraries.
20628build_libtool_need_lc=$archive_cmds_need_lc_F77
20629
20630# Whether or not to disallow shared libs when runtime libs are static
20631allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20632
20633# Whether or not to optimize for fast installation.
20634fast_install=$enable_fast_install
20635
20636# The host system.
20637host_alias=$host_alias
20638host=$host
20639
20640# An echo program that does not interpret backslashes.
20641echo=$lt_echo
20642
20643# The archiver.
20644AR=$lt_AR
20645AR_FLAGS=$lt_AR_FLAGS
20646
20647# A C compiler.
20648LTCC=$lt_LTCC
20649
20650# A language-specific compiler.
20651CC=$lt_compiler_F77
20652
20653# Is the compiler the GNU C compiler?
20654with_gcc=$GCC_F77
20655
20656# An ERE matcher.
20657EGREP=$lt_EGREP
20658
20659# The linker used to build libraries.
20660LD=$lt_LD_F77
20661
20662# Whether we need hard or soft links.
20663LN_S=$lt_LN_S
20664
20665# A BSD-compatible nm program.
20666NM=$lt_NM
20667
20668# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020669STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020670
20671# Used to examine libraries when file_magic_cmd begins "file"
20672MAGIC_CMD=$MAGIC_CMD
20673
20674# Used on cygwin: DLL creation program.
20675DLLTOOL="$DLLTOOL"
20676
20677# Used on cygwin: object dumper.
20678OBJDUMP="$OBJDUMP"
20679
20680# Used on cygwin: assembler.
20681AS="$AS"
20682
20683# The name of the directory that contains temporary libtool files.
20684objdir=$objdir
20685
20686# How to create reloadable object files.
20687reload_flag=$lt_reload_flag
20688reload_cmds=$lt_reload_cmds
20689
20690# How to pass a linker flag through the compiler.
20691wl=$lt_lt_prog_compiler_wl_F77
20692
20693# Object file suffix (normally "o").
20694objext="$ac_objext"
20695
20696# Old archive suffix (normally "a").
20697libext="$libext"
20698
20699# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020700shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020701
20702# Executable file suffix (normally "").
20703exeext="$exeext"
20704
20705# Additional compiler flags for building library objects.
20706pic_flag=$lt_lt_prog_compiler_pic_F77
20707pic_mode=$pic_mode
20708
20709# What is the maximum length of a command?
20710max_cmd_len=$lt_cv_sys_max_cmd_len
20711
20712# Does compiler simultaneously support -c and -o options?
20713compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20714
20715# Must we lock files when doing compilation ?
20716need_locks=$lt_need_locks
20717
20718# Do we need the lib prefix for modules?
20719need_lib_prefix=$need_lib_prefix
20720
20721# Do we need a version for libraries?
20722need_version=$need_version
20723
20724# Whether dlopen is supported.
20725dlopen_support=$enable_dlopen
20726
20727# Whether dlopen of programs is supported.
20728dlopen_self=$enable_dlopen_self
20729
20730# Whether dlopen of statically linked programs is supported.
20731dlopen_self_static=$enable_dlopen_self_static
20732
20733# Compiler flag to prevent dynamic linking.
20734link_static_flag=$lt_lt_prog_compiler_static_F77
20735
20736# Compiler flag to turn off builtin functions.
20737no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20738
20739# Compiler flag to allow reflexive dlopens.
20740export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20741
20742# Compiler flag to generate shared objects directly from archives.
20743whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20744
20745# Compiler flag to generate thread-safe objects.
20746thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20747
20748# Library versioning type.
20749version_type=$version_type
20750
20751# Format of library name prefix.
20752libname_spec=$lt_libname_spec
20753
20754# List of archive names. First name is the real one, the rest are links.
20755# The last name is the one that the linker finds with -lNAME.
20756library_names_spec=$lt_library_names_spec
20757
20758# The coded name of the library, if different from the real name.
20759soname_spec=$lt_soname_spec
20760
20761# Commands used to build and install an old-style archive.
20762RANLIB=$lt_RANLIB
20763old_archive_cmds=$lt_old_archive_cmds_F77
20764old_postinstall_cmds=$lt_old_postinstall_cmds
20765old_postuninstall_cmds=$lt_old_postuninstall_cmds
20766
20767# Create an old-style archive from a shared archive.
20768old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20769
20770# Create a temporary old-style archive to link instead of a shared archive.
20771old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20772
20773# Commands used to build and install a shared archive.
20774archive_cmds=$lt_archive_cmds_F77
20775archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20776postinstall_cmds=$lt_postinstall_cmds
20777postuninstall_cmds=$lt_postuninstall_cmds
20778
20779# Commands used to build a loadable module (assumed same as above if empty)
20780module_cmds=$lt_module_cmds_F77
20781module_expsym_cmds=$lt_module_expsym_cmds_F77
20782
20783# Commands to strip libraries.
20784old_striplib=$lt_old_striplib
20785striplib=$lt_striplib
20786
20787# Dependencies to place before the objects being linked to create a
20788# shared library.
20789predep_objects=$lt_predep_objects_F77
20790
20791# Dependencies to place after the objects being linked to create a
20792# shared library.
20793postdep_objects=$lt_postdep_objects_F77
20794
20795# Dependencies to place before the objects being linked to create a
20796# shared library.
20797predeps=$lt_predeps_F77
20798
20799# Dependencies to place after the objects being linked to create a
20800# shared library.
20801postdeps=$lt_postdeps_F77
20802
20803# The library search path used internally by the compiler when linking
20804# a shared library.
20805compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20806
20807# Method to check whether dependent libraries are shared objects.
20808deplibs_check_method=$lt_deplibs_check_method
20809
20810# Command to use when deplibs_check_method == file_magic.
20811file_magic_cmd=$lt_file_magic_cmd
20812
20813# Flag that allows shared libraries with undefined symbols to be built.
20814allow_undefined_flag=$lt_allow_undefined_flag_F77
20815
20816# Flag that forces no undefined symbols.
20817no_undefined_flag=$lt_no_undefined_flag_F77
20818
20819# Commands used to finish a libtool library installation in a directory.
20820finish_cmds=$lt_finish_cmds
20821
20822# Same as above, but a single script fragment to be evaled but not shown.
20823finish_eval=$lt_finish_eval
20824
20825# Take the output of nm and produce a listing of raw symbols and C names.
20826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20827
20828# Transform the output of nm in a proper C declaration
20829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20830
20831# Transform the output of nm in a C name address pair
20832global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20833
20834# This is the shared library runtime path variable.
20835runpath_var=$runpath_var
20836
20837# This is the shared library path variable.
20838shlibpath_var=$shlibpath_var
20839
20840# Is shlibpath searched before the hard-coded library search path?
20841shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20842
20843# How to hardcode a shared library path into an executable.
20844hardcode_action=$hardcode_action_F77
20845
20846# Whether we should hardcode library paths into libraries.
20847hardcode_into_libs=$hardcode_into_libs
20848
20849# Flag to hardcode \$libdir into a binary during linking.
20850# This must work even if \$libdir does not exist.
20851hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20852
20853# If ld is used when linking, flag to hardcode \$libdir into
20854# a binary during linking. This must work even if \$libdir does
20855# not exist.
20856hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20857
20858# Whether we need a single -rpath flag with a separated argument.
20859hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20860
20861# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20862# resulting binary.
20863hardcode_direct=$hardcode_direct_F77
20864
20865# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20866# resulting binary.
20867hardcode_minus_L=$hardcode_minus_L_F77
20868
20869# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20870# the resulting binary.
20871hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20872
20873# Set to yes if building a shared library automatically hardcodes DIR into the library
20874# and all subsequent libraries and executables linked against it.
20875hardcode_automatic=$hardcode_automatic_F77
20876
20877# Variables whose values should be saved in libtool wrapper scripts and
20878# restored at relink time.
20879variables_saved_for_relink="$variables_saved_for_relink"
20880
20881# Whether libtool must link a program against all its dependency libraries.
20882link_all_deplibs=$link_all_deplibs_F77
20883
20884# Compile-time system search path for libraries
20885sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20886
20887# Run-time system search path for libraries
20888sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20889
20890# Fix the shell variable \$srcfile for the compiler.
20891fix_srcfile_path="$fix_srcfile_path_F77"
20892
20893# Set to yes if exported symbols are required.
20894always_export_symbols=$always_export_symbols_F77
20895
20896# The commands to list exported symbols.
20897export_symbols_cmds=$lt_export_symbols_cmds_F77
20898
20899# The commands to extract the exported symbol list from a shared archive.
20900extract_expsyms_cmds=$lt_extract_expsyms_cmds
20901
20902# Symbols that should not be listed in the preloaded symbols.
20903exclude_expsyms=$lt_exclude_expsyms_F77
20904
20905# Symbols that must always be exported.
20906include_expsyms=$lt_include_expsyms_F77
20907
20908# ### END LIBTOOL TAG CONFIG: $tagname
20909
20910__EOF__
20911
20912
20913else
20914 # If there is no Makefile yet, we rely on a make rule to execute
20915 # `config.status --recheck' to rerun these tests and create the
20916 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020917 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20918 if test -f "$ltmain_in"; then
20919 test -f Makefile && make "$ltmain"
20920 fi
John Criswell47fdd832003-07-14 16:52:07 +000020921fi
20922
20923
20924ac_ext=c
20925ac_cpp='$CPP $CPPFLAGS'
20926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928ac_compiler_gnu=$ac_cv_c_compiler_gnu
20929
20930CC="$lt_save_CC"
20931
20932 else
20933 tagname=""
20934 fi
20935 ;;
20936
20937 GCJ)
20938 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020939 ac_ext=c
20940ac_cpp='$CPP $CPPFLAGS'
20941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020944
20945
20946# Source file extension for Java test sources.
20947ac_ext=java
20948
20949# Object file extension for compiled Java test sources.
20950objext=o
20951objext_GCJ=$objext
20952
20953# Code to be used in simple compile tests
20954lt_simple_compile_test_code="class foo {}\n"
20955
20956# Code to be used in simple link tests
20957lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20958
20959# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20960
20961# If no C compiler was specified, use CC.
20962LTCC=${LTCC-"$CC"}
20963
20964# Allow CC to be a program name with arguments.
20965compiler=$CC
20966
20967
20968# Allow CC to be a program name with arguments.
20969lt_save_CC="$CC"
20970CC=${GCJ-"gcj"}
20971compiler=$CC
20972compiler_GCJ=$CC
20973
20974# GCJ did not exist at the time GCC didn't implicitly link libc in.
20975archive_cmds_need_lc_GCJ=no
20976
John Criswell47fdd832003-07-14 16:52:07 +000020977
20978lt_prog_compiler_no_builtin_flag_GCJ=
20979
20980if test "$GCC" = yes; then
20981 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20982
Reid Spencer2706f8c2004-09-19 23:53:36 +000020983
20984echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020985echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20986if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20988else
20989 lt_cv_prog_compiler_rtti_exceptions=no
20990 ac_outfile=conftest.$ac_objext
20991 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20992 lt_compiler_flag="-fno-rtti -fno-exceptions"
20993 # Insert the option either (1) after the last *FLAGS variable, or
20994 # (2) before a word containing "conftest.", or (3) at the end.
20995 # Note that $ac_compile itself does not contain backslashes and begins
20996 # with a dollar sign (not a hyphen), so the echo should work correctly.
20997 # The option is referenced via a variable to avoid confusing sed.
20998 lt_compile=`echo "$ac_compile" | $SED \
20999 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21001 -e 's:$: $lt_compiler_flag:'`
Misha Brukman19098e52005-05-12 22:15:34 +000021002 (eval echo "\"\$as_me:21002: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021003 (eval "$lt_compile" 2>conftest.err)
21004 ac_status=$?
21005 cat conftest.err >&5
Misha Brukman19098e52005-05-12 22:15:34 +000021006 echo "$as_me:21006: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021007 if (exit $ac_status) && test -s "$ac_outfile"; then
21008 # The compiler can only warn and ignore the option if not recognized
21009 # So say no if there are warnings
21010 if test ! -s conftest.err; then
21011 lt_cv_prog_compiler_rtti_exceptions=yes
21012 fi
21013 fi
21014 $rm conftest*
21015
21016fi
21017echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21018echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21019
21020if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21021 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21022else
21023 :
21024fi
21025
21026fi
21027
21028lt_prog_compiler_wl_GCJ=
21029lt_prog_compiler_pic_GCJ=
21030lt_prog_compiler_static_GCJ=
21031
21032echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21033echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21034
21035 if test "$GCC" = yes; then
21036 lt_prog_compiler_wl_GCJ='-Wl,'
21037 lt_prog_compiler_static_GCJ='-static'
21038
21039 case $host_os in
21040 aix*)
21041 # All AIX code is PIC.
21042 if test "$host_cpu" = ia64; then
21043 # AIX 5 now supports IA64 processor
21044 lt_prog_compiler_static_GCJ='-Bstatic'
21045 fi
21046 ;;
21047
21048 amigaos*)
21049 # FIXME: we need at least 68020 code to build shared libraries, but
21050 # adding the `-m68020' flag to GCC prevents building anything better,
21051 # like `-m68040'.
21052 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21053 ;;
21054
21055 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21056 # PIC is the default for these OSes.
21057 ;;
21058
21059 mingw* | pw32* | os2*)
21060 # This hack is so that the source file can tell whether it is being
21061 # built for inclusion in a dll (and should export symbols for example).
21062 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21063 ;;
21064
21065 darwin* | rhapsody*)
21066 # PIC is the default on this platform
21067 # Common symbols not allowed in MH_DYLIB files
21068 lt_prog_compiler_pic_GCJ='-fno-common'
21069 ;;
21070
21071 msdosdjgpp*)
21072 # Just because we use GCC doesn't mean we suddenly get shared libraries
21073 # on systems that don't support them.
21074 lt_prog_compiler_can_build_shared_GCJ=no
21075 enable_shared=no
21076 ;;
21077
21078 sysv4*MP*)
21079 if test -d /usr/nec; then
21080 lt_prog_compiler_pic_GCJ=-Kconform_pic
21081 fi
21082 ;;
21083
21084 hpux*)
21085 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21086 # not for PA HP-UX.
21087 case "$host_cpu" in
21088 hppa*64*|ia64*)
21089 # +Z the default
21090 ;;
21091 *)
21092 lt_prog_compiler_pic_GCJ='-fPIC'
21093 ;;
21094 esac
21095 ;;
21096
21097 *)
21098 lt_prog_compiler_pic_GCJ='-fPIC'
21099 ;;
21100 esac
21101 else
21102 # PORTME Check for flag to pass linker flags through the system compiler.
21103 case $host_os in
21104 aix*)
21105 lt_prog_compiler_wl_GCJ='-Wl,'
21106 if test "$host_cpu" = ia64; then
21107 # AIX 5 now supports IA64 processor
21108 lt_prog_compiler_static_GCJ='-Bstatic'
21109 else
21110 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21111 fi
21112 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021113 darwin*)
21114 # PIC is the default on this platform
21115 # Common symbols not allowed in MH_DYLIB files
21116 case "$cc_basename" in
21117 xlc*)
21118 lt_prog_compiler_pic_GCJ='-qnocommon'
21119 lt_prog_compiler_wl_GCJ='-Wl,'
21120 ;;
21121 esac
21122 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021123
21124 mingw* | pw32* | os2*)
21125 # This hack is so that the source file can tell whether it is being
21126 # built for inclusion in a dll (and should export symbols for example).
21127 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21128 ;;
21129
21130 hpux9* | hpux10* | hpux11*)
21131 lt_prog_compiler_wl_GCJ='-Wl,'
21132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21133 # not for PA HP-UX.
21134 case "$host_cpu" in
21135 hppa*64*|ia64*)
21136 # +Z the default
21137 ;;
21138 *)
21139 lt_prog_compiler_pic_GCJ='+Z'
21140 ;;
21141 esac
21142 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21143 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21144 ;;
21145
21146 irix5* | irix6* | nonstopux*)
21147 lt_prog_compiler_wl_GCJ='-Wl,'
21148 # PIC (with -KPIC) is the default.
21149 lt_prog_compiler_static_GCJ='-non_shared'
21150 ;;
21151
21152 newsos6)
21153 lt_prog_compiler_pic_GCJ='-KPIC'
21154 lt_prog_compiler_static_GCJ='-Bstatic'
21155 ;;
21156
21157 linux*)
21158 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021159 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021160 lt_prog_compiler_wl_GCJ='-Wl,'
21161 lt_prog_compiler_pic_GCJ='-KPIC'
21162 lt_prog_compiler_static_GCJ='-static'
21163 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021164 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021165 lt_prog_compiler_wl_GCJ='-Wl,'
21166 # All Alpha code is PIC.
21167 lt_prog_compiler_static_GCJ='-non_shared'
21168 ;;
21169 esac
21170 ;;
21171
21172 osf3* | osf4* | osf5*)
21173 lt_prog_compiler_wl_GCJ='-Wl,'
21174 # All OSF/1 code is PIC.
21175 lt_prog_compiler_static_GCJ='-non_shared'
21176 ;;
21177
21178 sco3.2v5*)
21179 lt_prog_compiler_pic_GCJ='-Kpic'
21180 lt_prog_compiler_static_GCJ='-dn'
21181 ;;
21182
21183 solaris*)
21184 lt_prog_compiler_wl_GCJ='-Wl,'
21185 lt_prog_compiler_pic_GCJ='-KPIC'
21186 lt_prog_compiler_static_GCJ='-Bstatic'
21187 ;;
21188
21189 sunos4*)
21190 lt_prog_compiler_wl_GCJ='-Qoption ld '
21191 lt_prog_compiler_pic_GCJ='-PIC'
21192 lt_prog_compiler_static_GCJ='-Bstatic'
21193 ;;
21194
21195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21196 lt_prog_compiler_wl_GCJ='-Wl,'
21197 lt_prog_compiler_pic_GCJ='-KPIC'
21198 lt_prog_compiler_static_GCJ='-Bstatic'
21199 ;;
21200
21201 sysv4*MP*)
21202 if test -d /usr/nec ;then
21203 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21204 lt_prog_compiler_static_GCJ='-Bstatic'
21205 fi
21206 ;;
21207
21208 uts4*)
21209 lt_prog_compiler_pic_GCJ='-pic'
21210 lt_prog_compiler_static_GCJ='-Bstatic'
21211 ;;
21212
21213 *)
21214 lt_prog_compiler_can_build_shared_GCJ=no
21215 ;;
21216 esac
21217 fi
21218
21219echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21220echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21221
21222#
21223# Check to make sure the PIC flag actually works.
21224#
21225if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021226
21227echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021228echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21229if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21231else
21232 lt_prog_compiler_pic_works_GCJ=no
21233 ac_outfile=conftest.$ac_objext
21234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21235 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21236 # Insert the option either (1) after the last *FLAGS variable, or
21237 # (2) before a word containing "conftest.", or (3) at the end.
21238 # Note that $ac_compile itself does not contain backslashes and begins
21239 # with a dollar sign (not a hyphen), so the echo should work correctly.
21240 # The option is referenced via a variable to avoid confusing sed.
21241 lt_compile=`echo "$ac_compile" | $SED \
21242 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21244 -e 's:$: $lt_compiler_flag:'`
Misha Brukman19098e52005-05-12 22:15:34 +000021245 (eval echo "\"\$as_me:21245: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021246 (eval "$lt_compile" 2>conftest.err)
21247 ac_status=$?
21248 cat conftest.err >&5
Misha Brukman19098e52005-05-12 22:15:34 +000021249 echo "$as_me:21249: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021250 if (exit $ac_status) && test -s "$ac_outfile"; then
21251 # The compiler can only warn and ignore the option if not recognized
21252 # So say no if there are warnings
21253 if test ! -s conftest.err; then
21254 lt_prog_compiler_pic_works_GCJ=yes
21255 fi
21256 fi
21257 $rm conftest*
21258
21259fi
21260echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21261echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21262
21263if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21264 case $lt_prog_compiler_pic_GCJ in
21265 "" | " "*) ;;
21266 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21267 esac
21268else
21269 lt_prog_compiler_pic_GCJ=
21270 lt_prog_compiler_can_build_shared_GCJ=no
21271fi
21272
21273fi
21274case "$host_os" in
21275 # For platforms which do not support PIC, -DPIC is meaningless:
21276 *djgpp*)
21277 lt_prog_compiler_pic_GCJ=
21278 ;;
21279 *)
21280 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21281 ;;
21282esac
21283
21284echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21285echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21286if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21287 echo $ECHO_N "(cached) $ECHO_C" >&6
21288else
21289 lt_cv_prog_compiler_c_o_GCJ=no
21290 $rm -r conftest 2>/dev/null
21291 mkdir conftest
21292 cd conftest
21293 mkdir out
21294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21295
John Criswell47fdd832003-07-14 16:52:07 +000021296 lt_compiler_flag="-o out/conftest2.$ac_objext"
21297 # Insert the option either (1) after the last *FLAGS variable, or
21298 # (2) before a word containing "conftest.", or (3) at the end.
21299 # Note that $ac_compile itself does not contain backslashes and begins
21300 # with a dollar sign (not a hyphen), so the echo should work correctly.
21301 lt_compile=`echo "$ac_compile" | $SED \
21302 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21304 -e 's:$: $lt_compiler_flag:'`
Misha Brukman19098e52005-05-12 22:15:34 +000021305 (eval echo "\"\$as_me:21305: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021306 (eval "$lt_compile" 2>out/conftest.err)
21307 ac_status=$?
21308 cat out/conftest.err >&5
Misha Brukman19098e52005-05-12 22:15:34 +000021309 echo "$as_me:21309: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021310 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21311 then
21312 # The compiler can only warn and ignore the option if not recognized
21313 # So say no if there are warnings
21314 if test ! -s out/conftest.err; then
21315 lt_cv_prog_compiler_c_o_GCJ=yes
21316 fi
21317 fi
21318 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021319 $rm conftest*
21320 # SGI C++ compiler will create directory out/ii_files/ for
21321 # template instantiation
21322 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21323 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021324 cd ..
21325 rmdir conftest
21326 $rm conftest*
21327
21328fi
21329echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21330echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21331
21332
21333hard_links="nottested"
21334if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21335 # do not overwrite the value of need_locks provided by the user
21336 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21337echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21338 hard_links=yes
21339 $rm conftest*
21340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21341 touch conftest.a
21342 ln conftest.a conftest.b 2>&5 || hard_links=no
21343 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21344 echo "$as_me:$LINENO: result: $hard_links" >&5
21345echo "${ECHO_T}$hard_links" >&6
21346 if test "$hard_links" = no; then
21347 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21348echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21349 need_locks=warn
21350 fi
21351else
21352 need_locks=no
21353fi
21354
21355echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21356echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21357
21358 runpath_var=
21359 allow_undefined_flag_GCJ=
21360 enable_shared_with_static_runtimes_GCJ=no
21361 archive_cmds_GCJ=
21362 archive_expsym_cmds_GCJ=
21363 old_archive_From_new_cmds_GCJ=
21364 old_archive_from_expsyms_cmds_GCJ=
21365 export_dynamic_flag_spec_GCJ=
21366 whole_archive_flag_spec_GCJ=
21367 thread_safe_flag_spec_GCJ=
21368 hardcode_libdir_flag_spec_GCJ=
21369 hardcode_libdir_flag_spec_ld_GCJ=
21370 hardcode_libdir_separator_GCJ=
21371 hardcode_direct_GCJ=no
21372 hardcode_minus_L_GCJ=no
21373 hardcode_shlibpath_var_GCJ=unsupported
21374 link_all_deplibs_GCJ=unknown
21375 hardcode_automatic_GCJ=no
21376 module_cmds_GCJ=
21377 module_expsym_cmds_GCJ=
21378 always_export_symbols_GCJ=no
21379 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21380 # include_expsyms should be a list of space-separated symbols to be *always*
21381 # included in the symbol list
21382 include_expsyms_GCJ=
21383 # exclude_expsyms can be an extended regexp of symbols to exclude
21384 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21385 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21386 # as well as any symbol that contains `d'.
21387 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21388 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21389 # platforms (ab)use it in PIC code, but their linkers get confused if
21390 # the symbol is explicitly referenced. Since portable code cannot
21391 # rely on this symbol name, it's probably fine to never include it in
21392 # preloaded symbol tables.
21393 extract_expsyms_cmds=
21394
21395 case $host_os in
21396 cygwin* | mingw* | pw32*)
21397 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21398 # When not using gcc, we currently assume that we are using
21399 # Microsoft Visual C++.
21400 if test "$GCC" != yes; then
21401 with_gnu_ld=no
21402 fi
21403 ;;
21404 openbsd*)
21405 with_gnu_ld=no
21406 ;;
21407 esac
21408
21409 ld_shlibs_GCJ=yes
21410 if test "$with_gnu_ld" = yes; then
21411 # If archive_cmds runs LD, not CC, wlarc should be empty
21412 wlarc='${wl}'
21413
21414 # See if GNU ld supports shared libraries.
21415 case $host_os in
21416 aix3* | aix4* | aix5*)
21417 # On AIX/PPC, the GNU linker is very broken
21418 if test "$host_cpu" != ia64; then
21419 ld_shlibs_GCJ=no
21420 cat <<EOF 1>&2
21421
21422*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21423*** to be unable to reliably create shared libraries on AIX.
21424*** Therefore, libtool is disabling shared libraries support. If you
21425*** really care for shared libraries, you may want to modify your PATH
21426*** so that a non-GNU linker is found, and then restart.
21427
21428EOF
21429 fi
21430 ;;
21431
21432 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021433 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 +000021434 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21435 hardcode_minus_L_GCJ=yes
21436
21437 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21438 # that the semantics of dynamic libraries on AmigaOS, at least up
21439 # to version 4, is to share data among multiple programs linked
21440 # with the same dynamic library. Since this doesn't match the
21441 # behavior of shared libraries on other platforms, we can't use
21442 # them.
21443 ld_shlibs_GCJ=no
21444 ;;
21445
21446 beos*)
21447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21448 allow_undefined_flag_GCJ=unsupported
21449 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21450 # support --undefined. This deserves some investigation. FIXME
21451 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21452 else
21453 ld_shlibs_GCJ=no
21454 fi
21455 ;;
21456
21457 cygwin* | mingw* | pw32*)
21458 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21459 # as there is no search path for DLLs.
21460 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21461 allow_undefined_flag_GCJ=unsupported
21462 always_export_symbols_GCJ=no
21463 enable_shared_with_static_runtimes_GCJ=yes
21464 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21465
21466 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21467 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21468 # If the export-symbols file already is a .def file (1st line
21469 # is EXPORTS), use it as is; otherwise, prepend...
21470 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21471 cp $export_symbols $output_objdir/$soname.def;
21472 else
21473 echo EXPORTS > $output_objdir/$soname.def;
21474 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021475 fi~
21476 $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 +000021477 else
21478 ld_shlibs=no
21479 fi
21480 ;;
21481
21482 netbsd*)
21483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21484 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21485 wlarc=
21486 else
21487 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21488 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21489 fi
21490 ;;
21491
21492 solaris* | sysv5*)
21493 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21494 ld_shlibs_GCJ=no
21495 cat <<EOF 1>&2
21496
21497*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21498*** create shared libraries on Solaris systems. Therefore, libtool
21499*** is disabling shared libraries support. We urge you to upgrade GNU
21500*** binutils to release 2.9.1 or newer. Another option is to modify
21501*** your PATH or compiler configuration so that the native linker is
21502*** used, and then restart.
21503
21504EOF
21505 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21506 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21507 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21508 else
21509 ld_shlibs_GCJ=no
21510 fi
21511 ;;
21512
21513 sunos4*)
21514 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21515 wlarc=
21516 hardcode_direct_GCJ=yes
21517 hardcode_shlibpath_var_GCJ=no
21518 ;;
21519
Reid Spencer2706f8c2004-09-19 23:53:36 +000021520 linux*)
21521 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21522 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21523 archive_cmds_GCJ="$tmp_archive_cmds"
21524 supports_anon_versioning=no
21525 case `$LD -v 2>/dev/null` in
21526 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21527 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21528 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21529 *\ 2.11.*) ;; # other 2.11 versions
21530 *) supports_anon_versioning=yes ;;
21531 esac
21532 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021533 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21534cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21535$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021536 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21537 else
21538 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21539 fi
21540 else
21541 ld_shlibs_GCJ=no
21542 fi
21543 ;;
21544
John Criswell47fdd832003-07-14 16:52:07 +000021545 *)
21546 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21547 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21548 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21549 else
21550 ld_shlibs_GCJ=no
21551 fi
21552 ;;
21553 esac
21554
21555 if test "$ld_shlibs_GCJ" = yes; then
21556 runpath_var=LD_RUN_PATH
21557 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21558 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21559 # ancient GNU ld didn't support --whole-archive et. al.
21560 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21561 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21562 else
21563 whole_archive_flag_spec_GCJ=
21564 fi
21565 fi
21566 else
21567 # PORTME fill in a description of your system's linker (not GNU ld)
21568 case $host_os in
21569 aix3*)
21570 allow_undefined_flag_GCJ=unsupported
21571 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021572 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 +000021573 # Note: this linker hardcodes the directories in LIBPATH if there
21574 # are no directories specified by -L.
21575 hardcode_minus_L_GCJ=yes
21576 if test "$GCC" = yes && test -z "$link_static_flag"; then
21577 # Neither direct hardcoding nor static linking is supported with a
21578 # broken collect2.
21579 hardcode_direct_GCJ=unsupported
21580 fi
21581 ;;
21582
21583 aix4* | aix5*)
21584 if test "$host_cpu" = ia64; then
21585 # On IA64, the linker does run time linking by default, so we don't
21586 # have to do anything special.
21587 aix_use_runtimelinking=no
21588 exp_sym_flag='-Bexport'
21589 no_entry_flag=""
21590 else
21591 # If we're using GNU nm, then we don't want the "-C" option.
21592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21593 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21594 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'
21595 else
21596 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'
21597 fi
21598 aix_use_runtimelinking=no
21599
21600 # Test if we are trying to use run time linking or normal
21601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21602 # need to do runtime linking.
21603 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21604 for ld_flag in $LDFLAGS; do
21605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21606 aix_use_runtimelinking=yes
21607 break
21608 fi
21609 done
21610 esac
21611
21612 exp_sym_flag='-bexport'
21613 no_entry_flag='-bnoentry'
21614 fi
21615
21616 # When large executables or shared objects are built, AIX ld can
21617 # have problems creating the table of contents. If linking a library
21618 # or program results in "error TOC overflow" add -mminimal-toc to
21619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21621
21622 archive_cmds_GCJ=''
21623 hardcode_direct_GCJ=yes
21624 hardcode_libdir_separator_GCJ=':'
21625 link_all_deplibs_GCJ=yes
21626
21627 if test "$GCC" = yes; then
21628 case $host_os in aix4.012|aix4.012.*)
21629 # We only want to do this on AIX 4.2 and lower, the check
21630 # below for broken collect2 doesn't work under 4.3+
21631 collect2name=`${CC} -print-prog-name=collect2`
21632 if test -f "$collect2name" && \
21633 strings "$collect2name" | grep resolve_lib_name >/dev/null
21634 then
21635 # We have reworked collect2
21636 hardcode_direct_GCJ=yes
21637 else
21638 # We have old collect2
21639 hardcode_direct_GCJ=unsupported
21640 # It fails to find uninstalled libraries when the uninstalled
21641 # path is not listed in the libpath. Setting hardcode_minus_L
21642 # to unsupported forces relinking
21643 hardcode_minus_L_GCJ=yes
21644 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21645 hardcode_libdir_separator_GCJ=
21646 fi
21647 esac
21648 shared_flag='-shared'
21649 else
21650 # not using gcc
21651 if test "$host_cpu" = ia64; then
21652 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21653 # chokes on -Wl,-G. The following line is correct:
21654 shared_flag='-G'
21655 else
21656 if test "$aix_use_runtimelinking" = yes; then
21657 shared_flag='${wl}-G'
21658 else
21659 shared_flag='${wl}-bM:SRE'
21660 fi
21661 fi
21662 fi
21663
21664 # It seems that -bexpall does not export symbols beginning with
21665 # underscore (_), so it is better to generate a list of symbols to export.
21666 always_export_symbols_GCJ=yes
21667 if test "$aix_use_runtimelinking" = yes; then
21668 # Warning - without using the other runtime loading flags (-brtl),
21669 # -berok will link without error, but may produce a broken library.
21670 allow_undefined_flag_GCJ='-berok'
21671 # Determine the default libpath from the value encoded in an empty executable.
21672 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021673/* confdefs.h. */
21674_ACEOF
21675cat confdefs.h >>conftest.$ac_ext
21676cat >>conftest.$ac_ext <<_ACEOF
21677/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021678
John Criswell47fdd832003-07-14 16:52:07 +000021679int
21680main ()
21681{
21682
21683 ;
21684 return 0;
21685}
21686_ACEOF
21687rm -f conftest.$ac_objext conftest$ac_exeext
21688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021689 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021690 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021691 grep -v '^ *+' conftest.er1 >conftest.err
21692 rm -f conftest.er1
21693 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021696 { ac_try='test -z "$ac_c_werror_flag"
21697 || test ! -s conftest.err'
21698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699 (eval $ac_try) 2>&5
21700 ac_status=$?
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; } &&
21703 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705 (eval $ac_try) 2>&5
21706 ac_status=$?
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; }; then
21709
21710aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21711}'`
21712# Check for a 64-bit object if we didn't find anything.
21713if 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; }
21714}'`; fi
21715else
21716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021717sed 's/^/| /' conftest.$ac_ext >&5
21718
John Criswell47fdd832003-07-14 16:52:07 +000021719fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021720rm -f conftest.err conftest.$ac_objext \
21721 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021722if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21723
21724 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21725 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"
21726 else
21727 if test "$host_cpu" = ia64; then
21728 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21729 allow_undefined_flag_GCJ="-z nodefs"
21730 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"
21731 else
21732 # Determine the default libpath from the value encoded in an empty executable.
21733 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021734/* confdefs.h. */
21735_ACEOF
21736cat confdefs.h >>conftest.$ac_ext
21737cat >>conftest.$ac_ext <<_ACEOF
21738/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021739
John Criswell47fdd832003-07-14 16:52:07 +000021740int
21741main ()
21742{
21743
21744 ;
21745 return 0;
21746}
21747_ACEOF
21748rm -f conftest.$ac_objext conftest$ac_exeext
21749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021750 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021751 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021752 grep -v '^ *+' conftest.er1 >conftest.err
21753 rm -f conftest.er1
21754 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021757 { ac_try='test -z "$ac_c_werror_flag"
21758 || test ! -s conftest.err'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21761 ac_status=$?
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; } &&
21764 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21767 ac_status=$?
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21770
21771aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21772}'`
21773# Check for a 64-bit object if we didn't find anything.
21774if 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; }
21775}'`; fi
21776else
21777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021778sed 's/^/| /' conftest.$ac_ext >&5
21779
John Criswell47fdd832003-07-14 16:52:07 +000021780fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021781rm -f conftest.err conftest.$ac_objext \
21782 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021783if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21784
21785 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21786 # Warning - without using the other run time loading flags,
21787 # -berok will link without error, but may produce a broken library.
21788 no_undefined_flag_GCJ=' ${wl}-bernotok'
21789 allow_undefined_flag_GCJ=' ${wl}-berok'
21790 # -bexpall does not export symbols beginning with underscore (_)
21791 always_export_symbols_GCJ=yes
21792 # Exported symbols can be pulled into shared objects from archives
21793 whole_archive_flag_spec_GCJ=' '
21794 archive_cmds_need_lc_GCJ=yes
21795 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021796 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 +000021797 fi
21798 fi
21799 ;;
21800
21801 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021802 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 +000021803 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21804 hardcode_minus_L_GCJ=yes
21805 # see comment about different semantics on the GNU ld section
21806 ld_shlibs_GCJ=no
21807 ;;
21808
Reid Spencer2706f8c2004-09-19 23:53:36 +000021809 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021810 export_dynamic_flag_spec_GCJ=-rdynamic
21811 ;;
21812
21813 cygwin* | mingw* | pw32*)
21814 # When not using gcc, we currently assume that we are using
21815 # Microsoft Visual C++.
21816 # hardcode_libdir_flag_spec is actually meaningless, as there is
21817 # no search path for DLLs.
21818 hardcode_libdir_flag_spec_GCJ=' '
21819 allow_undefined_flag_GCJ=unsupported
21820 # Tell ltmain to make .lib files, not .a files.
21821 libext=lib
21822 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021823 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021824 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021825 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 +000021826 # The linker will automatically build a .lib file if we build a DLL.
21827 old_archive_From_new_cmds_GCJ='true'
21828 # FIXME: Should let the user specify the lib program.
21829 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21830 fix_srcfile_path='`cygpath -w "$srcfile"`'
21831 enable_shared_with_static_runtimes_GCJ=yes
21832 ;;
21833
21834 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021835 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021836 rhapsody* | darwin1.[012])
21837 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21838 ;;
21839 *) # Darwin 1.3 on
21840 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21841 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21842 else
21843 case ${MACOSX_DEPLOYMENT_TARGET} in
21844 10.[012])
21845 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21846 ;;
21847 10.*)
21848 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21849 ;;
21850 esac
21851 fi
21852 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021853 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021854 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021855 hardcode_direct_GCJ=no
21856 hardcode_automatic_GCJ=yes
21857 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021858 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021859 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021860 if test "$GCC" = yes ; then
21861 output_verbose_link_cmd='echo'
21862 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21863 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21864 # 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 +000021865 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}'
21866 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 +000021867 else
21868 case "$cc_basename" in
21869 xlc*)
21870 output_verbose_link_cmd='echo'
21871 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21872 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21873 # 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 +000021874 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}'
21875 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 +000021876 ;;
21877 *)
21878 ld_shlibs_GCJ=no
21879 ;;
21880 esac
John Criswell47fdd832003-07-14 16:52:07 +000021881 fi
21882 ;;
21883
21884 dgux*)
21885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21886 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21887 hardcode_shlibpath_var_GCJ=no
21888 ;;
21889
21890 freebsd1*)
21891 ld_shlibs_GCJ=no
21892 ;;
21893
21894 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21895 # support. Future versions do this automatically, but an explicit c++rt0.o
21896 # does not break anything, and helps significantly (at the cost of a little
21897 # extra space).
21898 freebsd2.2*)
21899 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21901 hardcode_direct_GCJ=yes
21902 hardcode_shlibpath_var_GCJ=no
21903 ;;
21904
21905 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21906 freebsd2*)
21907 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21908 hardcode_direct_GCJ=yes
21909 hardcode_minus_L_GCJ=yes
21910 hardcode_shlibpath_var_GCJ=no
21911 ;;
21912
21913 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021914 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021915 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21916 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21917 hardcode_direct_GCJ=yes
21918 hardcode_shlibpath_var_GCJ=no
21919 ;;
21920
21921 hpux9*)
21922 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021923 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 +000021924 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021925 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 +000021926 fi
21927 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21928 hardcode_libdir_separator_GCJ=:
21929 hardcode_direct_GCJ=yes
21930
21931 # hardcode_minus_L: Not really in the search PATH,
21932 # but as the default location of the library.
21933 hardcode_minus_L_GCJ=yes
21934 export_dynamic_flag_spec_GCJ='${wl}-E'
21935 ;;
21936
21937 hpux10* | hpux11*)
21938 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21939 case "$host_cpu" in
21940 hppa*64*|ia64*)
21941 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21942 ;;
21943 *)
21944 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21945 ;;
21946 esac
21947 else
21948 case "$host_cpu" in
21949 hppa*64*|ia64*)
21950 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21951 ;;
21952 *)
21953 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21954 ;;
21955 esac
21956 fi
21957 if test "$with_gnu_ld" = no; then
21958 case "$host_cpu" in
21959 hppa*64*)
21960 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21961 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21962 hardcode_libdir_separator_GCJ=:
21963 hardcode_direct_GCJ=no
21964 hardcode_shlibpath_var_GCJ=no
21965 ;;
21966 ia64*)
21967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21968 hardcode_direct_GCJ=no
21969 hardcode_shlibpath_var_GCJ=no
21970
21971 # hardcode_minus_L: Not really in the search PATH,
21972 # but as the default location of the library.
21973 hardcode_minus_L_GCJ=yes
21974 ;;
21975 *)
21976 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21977 hardcode_libdir_separator_GCJ=:
21978 hardcode_direct_GCJ=yes
21979 export_dynamic_flag_spec_GCJ='${wl}-E'
21980
21981 # hardcode_minus_L: Not really in the search PATH,
21982 # but as the default location of the library.
21983 hardcode_minus_L_GCJ=yes
21984 ;;
21985 esac
21986 fi
21987 ;;
21988
21989 irix5* | irix6* | nonstopux*)
21990 if test "$GCC" = yes; then
21991 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'
21992 else
21993 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'
21994 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21995 fi
21996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21997 hardcode_libdir_separator_GCJ=:
21998 link_all_deplibs_GCJ=yes
21999 ;;
22000
22001 netbsd*)
22002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22003 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22004 else
22005 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22006 fi
22007 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22008 hardcode_direct_GCJ=yes
22009 hardcode_shlibpath_var_GCJ=no
22010 ;;
22011
22012 newsos6)
22013 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22014 hardcode_direct_GCJ=yes
22015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22016 hardcode_libdir_separator_GCJ=:
22017 hardcode_shlibpath_var_GCJ=no
22018 ;;
22019
22020 openbsd*)
22021 hardcode_direct_GCJ=yes
22022 hardcode_shlibpath_var_GCJ=no
22023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22024 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022025 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 +000022026 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22027 export_dynamic_flag_spec_GCJ='${wl}-E'
22028 else
22029 case $host_os in
22030 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22031 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22032 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22033 ;;
22034 *)
22035 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22037 ;;
22038 esac
22039 fi
22040 ;;
22041
22042 os2*)
22043 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22044 hardcode_minus_L_GCJ=yes
22045 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022046 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 +000022047 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22048 ;;
22049
22050 osf3*)
22051 if test "$GCC" = yes; then
22052 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22053 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'
22054 else
22055 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22056 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'
22057 fi
22058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22059 hardcode_libdir_separator_GCJ=:
22060 ;;
22061
22062 osf4* | osf5*) # as osf3* with the addition of -msym flag
22063 if test "$GCC" = yes; then
22064 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22065 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'
22066 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22067 else
22068 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22069 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 +000022070 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~
22071 $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'
22072
John Criswell47fdd832003-07-14 16:52:07 +000022073 # Both c and cxx compiler support -rpath directly
22074 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22075 fi
22076 hardcode_libdir_separator_GCJ=:
22077 ;;
22078
22079 sco3.2v5*)
22080 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22081 hardcode_shlibpath_var_GCJ=no
22082 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22083 runpath_var=LD_RUN_PATH
22084 hardcode_runpath_var=yes
22085 ;;
22086
22087 solaris*)
22088 no_undefined_flag_GCJ=' -z text'
22089 if test "$GCC" = yes; then
22090 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022091 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22092 $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 +000022093 else
22094 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022095 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22096 $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 +000022097 fi
22098 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22099 hardcode_shlibpath_var_GCJ=no
22100 case $host_os in
22101 solaris2.[0-5] | solaris2.[0-5].*) ;;
22102 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22103 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22104 esac
22105 link_all_deplibs_GCJ=yes
22106 ;;
22107
22108 sunos4*)
22109 if test "x$host_vendor" = xsequent; then
22110 # Use $CC to link under sequent, because it throws in some extra .o
22111 # files that make .init and .fini sections work.
22112 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22113 else
22114 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22115 fi
22116 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22117 hardcode_direct_GCJ=yes
22118 hardcode_minus_L_GCJ=yes
22119 hardcode_shlibpath_var_GCJ=no
22120 ;;
22121
22122 sysv4)
22123 case $host_vendor in
22124 sni)
22125 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22126 hardcode_direct_GCJ=yes # is this really true???
22127 ;;
22128 siemens)
22129 ## LD is ld it makes a PLAMLIB
22130 ## CC just makes a GrossModule.
22131 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22132 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22133 hardcode_direct_GCJ=no
22134 ;;
22135 motorola)
22136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22137 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22138 ;;
22139 esac
22140 runpath_var='LD_RUN_PATH'
22141 hardcode_shlibpath_var_GCJ=no
22142 ;;
22143
22144 sysv4.3*)
22145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22146 hardcode_shlibpath_var_GCJ=no
22147 export_dynamic_flag_spec_GCJ='-Bexport'
22148 ;;
22149
22150 sysv4*MP*)
22151 if test -d /usr/nec; then
22152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22153 hardcode_shlibpath_var_GCJ=no
22154 runpath_var=LD_RUN_PATH
22155 hardcode_runpath_var=yes
22156 ld_shlibs_GCJ=yes
22157 fi
22158 ;;
22159
22160 sysv4.2uw2*)
22161 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22162 hardcode_direct_GCJ=yes
22163 hardcode_minus_L_GCJ=no
22164 hardcode_shlibpath_var_GCJ=no
22165 hardcode_runpath_var=yes
22166 runpath_var=LD_RUN_PATH
22167 ;;
22168
22169 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22170 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22171 if test "$GCC" = yes; then
22172 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22173 else
22174 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22175 fi
22176 runpath_var='LD_RUN_PATH'
22177 hardcode_shlibpath_var_GCJ=no
22178 ;;
22179
22180 sysv5*)
22181 no_undefined_flag_GCJ=' -z text'
22182 # $CC -shared without GNU ld will not create a library from C++
22183 # object files and a static libstdc++, better avoid it by now
22184 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022185 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22186 $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 +000022187 hardcode_libdir_flag_spec_GCJ=
22188 hardcode_shlibpath_var_GCJ=no
22189 runpath_var='LD_RUN_PATH'
22190 ;;
22191
22192 uts4*)
22193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22194 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22195 hardcode_shlibpath_var_GCJ=no
22196 ;;
22197
22198 *)
22199 ld_shlibs_GCJ=no
22200 ;;
22201 esac
22202 fi
22203
22204echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22205echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22206test "$ld_shlibs_GCJ" = no && can_build_shared=no
22207
22208variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22209if test "$GCC" = yes; then
22210 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22211fi
22212
22213#
22214# Do we need to explicitly link libc?
22215#
22216case "x$archive_cmds_need_lc_GCJ" in
22217x|xyes)
22218 # Assume -lc should be added
22219 archive_cmds_need_lc_GCJ=yes
22220
22221 if test "$enable_shared" = yes && test "$GCC" = yes; then
22222 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022223 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022224 # FIXME: we may have to deal with multi-command sequences.
22225 ;;
22226 '$CC '*)
22227 # Test whether the compiler implicitly links with -lc since on some
22228 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22229 # to ld, don't add -lc before -lgcc.
22230 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22231echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22232 $rm conftest*
22233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22234
22235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22236 (eval $ac_compile) 2>&5
22237 ac_status=$?
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } 2>conftest.err; then
22240 soname=conftest
22241 lib=conftest
22242 libobjs=conftest.$ac_objext
22243 deplibs=
22244 wl=$lt_prog_compiler_wl_GCJ
22245 compiler_flags=-v
22246 linker_flags=-v
22247 verstring=
22248 output_objdir=.
22249 libname=conftest
22250 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22251 allow_undefined_flag_GCJ=
22252 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22253 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }
22257 then
22258 archive_cmds_need_lc_GCJ=no
22259 else
22260 archive_cmds_need_lc_GCJ=yes
22261 fi
22262 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22263 else
22264 cat conftest.err 1>&5
22265 fi
22266 $rm conftest*
22267 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22268echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22269 ;;
22270 esac
22271 fi
22272 ;;
22273esac
22274
John Criswell47fdd832003-07-14 16:52:07 +000022275echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22276echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22277library_names_spec=
22278libname_spec='lib$name'
22279soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022280shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022281postinstall_cmds=
22282postuninstall_cmds=
22283finish_cmds=
22284finish_eval=
22285shlibpath_var=
22286shlibpath_overrides_runpath=unknown
22287version_type=none
22288dynamic_linker="$host_os ld.so"
22289sys_lib_dlsearch_path_spec="/lib /usr/lib"
22290if test "$GCC" = yes; then
22291 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22292 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22293 # if the path contains ";" then we assume it to be the separator
22294 # otherwise default to the standard path separator (i.e. ":") - it is
22295 # assumed that no part of a normal pathname contains ";" but that should
22296 # okay in the real world where ";" in dirpaths is itself problematic.
22297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22298 else
22299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22300 fi
22301else
22302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22303fi
22304need_lib_prefix=unknown
22305hardcode_into_libs=no
22306
22307# when you set need_version to no, make sure it does not cause -set_version
22308# flags to be left without arguments
22309need_version=unknown
22310
22311case $host_os in
22312aix3*)
22313 version_type=linux
22314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22315 shlibpath_var=LIBPATH
22316
22317 # AIX 3 has no versioning support, so we append a major version to the name.
22318 soname_spec='${libname}${release}${shared_ext}$major'
22319 ;;
22320
22321aix4* | aix5*)
22322 version_type=linux
22323 need_lib_prefix=no
22324 need_version=no
22325 hardcode_into_libs=yes
22326 if test "$host_cpu" = ia64; then
22327 # AIX 5 supports IA64
22328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22329 shlibpath_var=LD_LIBRARY_PATH
22330 else
22331 # With GCC up to 2.95.x, collect2 would create an import file
22332 # for dependence libraries. The import file would start with
22333 # the line `#! .'. This would cause the generated library to
22334 # depend on `.', always an invalid library. This was fixed in
22335 # development snapshots of GCC prior to 3.0.
22336 case $host_os in
22337 aix4 | aix4.[01] | aix4.[01].*)
22338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22339 echo ' yes '
22340 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22341 :
22342 else
22343 can_build_shared=no
22344 fi
22345 ;;
22346 esac
22347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22348 # soname into executable. Probably we can add versioning support to
22349 # collect2, so additional links can be useful in future.
22350 if test "$aix_use_runtimelinking" = yes; then
22351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22352 # instead of lib<name>.a to let people know that these are not
22353 # typical AIX shared libraries.
22354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22355 else
22356 # We preserve .a as extension for shared libraries through AIX4.2
22357 # and later when we are not doing run time linking.
22358 library_names_spec='${libname}${release}.a $libname.a'
22359 soname_spec='${libname}${release}${shared_ext}$major'
22360 fi
22361 shlibpath_var=LIBPATH
22362 fi
22363 ;;
22364
22365amigaos*)
22366 library_names_spec='$libname.ixlibrary $libname.a'
22367 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022368 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 +000022369 ;;
22370
22371beos*)
22372 library_names_spec='${libname}${shared_ext}'
22373 dynamic_linker="$host_os ld.so"
22374 shlibpath_var=LIBRARY_PATH
22375 ;;
22376
Reid Spencer2706f8c2004-09-19 23:53:36 +000022377bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022378 version_type=linux
22379 need_version=no
22380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22381 soname_spec='${libname}${release}${shared_ext}$major'
22382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22383 shlibpath_var=LD_LIBRARY_PATH
22384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22385 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22386 # the default ld.so.conf also contains /usr/contrib/lib and
22387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22388 # libtool to hard-code these into programs
22389 ;;
22390
22391cygwin* | mingw* | pw32*)
22392 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022393 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022394 need_version=no
22395 need_lib_prefix=no
22396
22397 case $GCC,$host_os in
22398 yes,cygwin* | yes,mingw* | yes,pw32*)
22399 library_names_spec='$libname.dll.a'
22400 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022401 postinstall_cmds='base_file=`basename \${file}`~
22402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22403 dldir=$destdir/`dirname \$dlpath`~
22404 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022405 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022406 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22407 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022408 $rm \$dlpath'
22409 shlibpath_overrides_runpath=yes
22410
22411 case $host_os in
22412 cygwin*)
22413 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22414 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 +000022415 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022416 ;;
22417 mingw*)
22418 # MinGW DLLs use traditional 'lib' prefix
22419 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22420 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22421 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22422 # It is most probably a Windows format PATH printed by
22423 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22424 # path with ; separators, and with drive letters. We can handle the
22425 # drive letters (cygwin fileutils understands them), so leave them,
22426 # especially as we might pass files found there to a mingw objdump,
22427 # which wouldn't understand a cygwinified path. Ahh.
22428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22429 else
22430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22431 fi
22432 ;;
22433 pw32*)
22434 # pw32 DLLs use 'pw' prefix rather than 'lib'
22435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22436 ;;
22437 esac
22438 ;;
22439
22440 *)
22441 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22442 ;;
22443 esac
22444 dynamic_linker='Win32 ld.exe'
22445 # FIXME: first we should search . and the directory the executable is in
22446 shlibpath_var=PATH
22447 ;;
22448
22449darwin* | rhapsody*)
22450 dynamic_linker="$host_os dyld"
22451 version_type=darwin
22452 need_lib_prefix=no
22453 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022454 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022455 soname_spec='${libname}${release}${major}$shared_ext'
22456 shlibpath_overrides_runpath=yes
22457 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022458 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022459 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022460 if test "$GCC" = yes; then
22461 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"`
22462 else
22463 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022464 fi
22465 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22466 ;;
22467
22468dgux*)
22469 version_type=linux
22470 need_lib_prefix=no
22471 need_version=no
22472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22473 soname_spec='${libname}${release}${shared_ext}$major'
22474 shlibpath_var=LD_LIBRARY_PATH
22475 ;;
22476
22477freebsd1*)
22478 dynamic_linker=no
22479 ;;
22480
Reid Spencer2706f8c2004-09-19 23:53:36 +000022481kfreebsd*-gnu)
22482 version_type=linux
22483 need_lib_prefix=no
22484 need_version=no
22485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22486 soname_spec='${libname}${release}${shared_ext}$major'
22487 shlibpath_var=LD_LIBRARY_PATH
22488 shlibpath_overrides_runpath=no
22489 hardcode_into_libs=yes
22490 dynamic_linker='GNU ld.so'
22491 ;;
22492
John Criswell47fdd832003-07-14 16:52:07 +000022493freebsd*)
22494 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22495 version_type=freebsd-$objformat
22496 case $version_type in
22497 freebsd-elf*)
22498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22499 need_version=no
22500 need_lib_prefix=no
22501 ;;
22502 freebsd-*)
22503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22504 need_version=yes
22505 ;;
22506 esac
22507 shlibpath_var=LD_LIBRARY_PATH
22508 case $host_os in
22509 freebsd2*)
22510 shlibpath_overrides_runpath=yes
22511 ;;
22512 freebsd3.01* | freebsdelf3.01*)
22513 shlibpath_overrides_runpath=yes
22514 hardcode_into_libs=yes
22515 ;;
22516 *) # from 3.2 on
22517 shlibpath_overrides_runpath=no
22518 hardcode_into_libs=yes
22519 ;;
22520 esac
22521 ;;
22522
22523gnu*)
22524 version_type=linux
22525 need_lib_prefix=no
22526 need_version=no
22527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22528 soname_spec='${libname}${release}${shared_ext}$major'
22529 shlibpath_var=LD_LIBRARY_PATH
22530 hardcode_into_libs=yes
22531 ;;
22532
22533hpux9* | hpux10* | hpux11*)
22534 # Give a soname corresponding to the major version so that dld.sl refuses to
22535 # link against other versions.
22536 version_type=sunos
22537 need_lib_prefix=no
22538 need_version=no
22539 case "$host_cpu" in
22540 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022541 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022542 hardcode_into_libs=yes
22543 dynamic_linker="$host_os dld.so"
22544 shlibpath_var=LD_LIBRARY_PATH
22545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22547 soname_spec='${libname}${release}${shared_ext}$major'
22548 if test "X$HPUX_IA64_MODE" = X32; then
22549 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22550 else
22551 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22552 fi
22553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22554 ;;
22555 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022556 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022557 hardcode_into_libs=yes
22558 dynamic_linker="$host_os dld.sl"
22559 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22562 soname_spec='${libname}${release}${shared_ext}$major'
22563 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22565 ;;
22566 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022567 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022568 dynamic_linker="$host_os dld.sl"
22569 shlibpath_var=SHLIB_PATH
22570 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22572 soname_spec='${libname}${release}${shared_ext}$major'
22573 ;;
22574 esac
22575 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22576 postinstall_cmds='chmod 555 $lib'
22577 ;;
22578
22579irix5* | irix6* | nonstopux*)
22580 case $host_os in
22581 nonstopux*) version_type=nonstopux ;;
22582 *)
22583 if test "$lt_cv_prog_gnu_ld" = yes; then
22584 version_type=linux
22585 else
22586 version_type=irix
22587 fi ;;
22588 esac
22589 need_lib_prefix=no
22590 need_version=no
22591 soname_spec='${libname}${release}${shared_ext}$major'
22592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22593 case $host_os in
22594 irix5* | nonstopux*)
22595 libsuff= shlibsuff=
22596 ;;
22597 *)
22598 case $LD in # libtool.m4 will add one of these switches to LD
22599 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22600 libsuff= shlibsuff= libmagic=32-bit;;
22601 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22602 libsuff=32 shlibsuff=N32 libmagic=N32;;
22603 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22604 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22605 *) libsuff= shlibsuff= libmagic=never-match;;
22606 esac
22607 ;;
22608 esac
22609 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22610 shlibpath_overrides_runpath=no
22611 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22612 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22613 hardcode_into_libs=yes
22614 ;;
22615
22616# No shared lib support for Linux oldld, aout, or coff.
22617linux*oldld* | linux*aout* | linux*coff*)
22618 dynamic_linker=no
22619 ;;
22620
22621# This must be Linux ELF.
22622linux*)
22623 version_type=linux
22624 need_lib_prefix=no
22625 need_version=no
22626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22627 soname_spec='${libname}${release}${shared_ext}$major'
22628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22629 shlibpath_var=LD_LIBRARY_PATH
22630 shlibpath_overrides_runpath=no
22631 # This implies no fast_install, which is unacceptable.
22632 # Some rework will be needed to allow for fast_install
22633 # before this can be enabled.
22634 hardcode_into_libs=yes
22635
Reid Spencer2706f8c2004-09-19 23:53:36 +000022636 # Append ld.so.conf contents to the search path
22637 if test -f /etc/ld.so.conf; then
22638 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22639 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22640 fi
22641
John Criswell47fdd832003-07-14 16:52:07 +000022642 # We used to test for /lib/ld.so.1 and disable shared libraries on
22643 # powerpc, because MkLinux only supported shared libraries with the
22644 # GNU dynamic linker. Since this was broken with cross compilers,
22645 # most powerpc-linux boxes support dynamic linking these days and
22646 # people can always --disable-shared, the test was removed, and we
22647 # assume the GNU/Linux dynamic linker is in use.
22648 dynamic_linker='GNU/Linux ld.so'
22649 ;;
22650
Reid Spencer2706f8c2004-09-19 23:53:36 +000022651knetbsd*-gnu)
22652 version_type=linux
22653 need_lib_prefix=no
22654 need_version=no
22655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22656 soname_spec='${libname}${release}${shared_ext}$major'
22657 shlibpath_var=LD_LIBRARY_PATH
22658 shlibpath_overrides_runpath=no
22659 hardcode_into_libs=yes
22660 dynamic_linker='GNU ld.so'
22661 ;;
22662
John Criswell47fdd832003-07-14 16:52:07 +000022663netbsd*)
22664 version_type=sunos
22665 need_lib_prefix=no
22666 need_version=no
22667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22670 dynamic_linker='NetBSD (a.out) ld.so'
22671 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022673 soname_spec='${libname}${release}${shared_ext}$major'
22674 dynamic_linker='NetBSD ld.elf_so'
22675 fi
22676 shlibpath_var=LD_LIBRARY_PATH
22677 shlibpath_overrides_runpath=yes
22678 hardcode_into_libs=yes
22679 ;;
22680
22681newsos6)
22682 version_type=linux
22683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22684 shlibpath_var=LD_LIBRARY_PATH
22685 shlibpath_overrides_runpath=yes
22686 ;;
22687
Reid Spencer2706f8c2004-09-19 23:53:36 +000022688nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022689 version_type=linux
22690 need_lib_prefix=no
22691 need_version=no
22692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22693 soname_spec='${libname}${release}${shared_ext}$major'
22694 shlibpath_var=LD_LIBRARY_PATH
22695 shlibpath_overrides_runpath=yes
22696 ;;
22697
22698openbsd*)
22699 version_type=sunos
22700 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022701 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22704 shlibpath_var=LD_LIBRARY_PATH
22705 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22706 case $host_os in
22707 openbsd2.[89] | openbsd2.[89].*)
22708 shlibpath_overrides_runpath=no
22709 ;;
22710 *)
22711 shlibpath_overrides_runpath=yes
22712 ;;
22713 esac
22714 else
22715 shlibpath_overrides_runpath=yes
22716 fi
22717 ;;
22718
22719os2*)
22720 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022721 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022722 need_lib_prefix=no
22723 library_names_spec='$libname${shared_ext} $libname.a'
22724 dynamic_linker='OS/2 ld.exe'
22725 shlibpath_var=LIBPATH
22726 ;;
22727
22728osf3* | osf4* | osf5*)
22729 version_type=osf
22730 need_lib_prefix=no
22731 need_version=no
22732 soname_spec='${libname}${release}${shared_ext}$major'
22733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22734 shlibpath_var=LD_LIBRARY_PATH
22735 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22736 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22737 ;;
22738
22739sco3.2v5*)
22740 version_type=osf
22741 soname_spec='${libname}${release}${shared_ext}$major'
22742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22743 shlibpath_var=LD_LIBRARY_PATH
22744 ;;
22745
22746solaris*)
22747 version_type=linux
22748 need_lib_prefix=no
22749 need_version=no
22750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22751 soname_spec='${libname}${release}${shared_ext}$major'
22752 shlibpath_var=LD_LIBRARY_PATH
22753 shlibpath_overrides_runpath=yes
22754 hardcode_into_libs=yes
22755 # ldd complains unless libraries are executable
22756 postinstall_cmds='chmod +x $lib'
22757 ;;
22758
22759sunos4*)
22760 version_type=sunos
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22763 shlibpath_var=LD_LIBRARY_PATH
22764 shlibpath_overrides_runpath=yes
22765 if test "$with_gnu_ld" = yes; then
22766 need_lib_prefix=no
22767 fi
22768 need_version=yes
22769 ;;
22770
22771sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22772 version_type=linux
22773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22774 soname_spec='${libname}${release}${shared_ext}$major'
22775 shlibpath_var=LD_LIBRARY_PATH
22776 case $host_vendor in
22777 sni)
22778 shlibpath_overrides_runpath=no
22779 need_lib_prefix=no
22780 export_dynamic_flag_spec='${wl}-Blargedynsym'
22781 runpath_var=LD_RUN_PATH
22782 ;;
22783 siemens)
22784 need_lib_prefix=no
22785 ;;
22786 motorola)
22787 need_lib_prefix=no
22788 need_version=no
22789 shlibpath_overrides_runpath=no
22790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22791 ;;
22792 esac
22793 ;;
22794
22795sysv4*MP*)
22796 if test -d /usr/nec ;then
22797 version_type=linux
22798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22799 soname_spec='$libname${shared_ext}.$major'
22800 shlibpath_var=LD_LIBRARY_PATH
22801 fi
22802 ;;
22803
22804uts4*)
22805 version_type=linux
22806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22807 soname_spec='${libname}${release}${shared_ext}$major'
22808 shlibpath_var=LD_LIBRARY_PATH
22809 ;;
22810
22811*)
22812 dynamic_linker=no
22813 ;;
22814esac
22815echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22816echo "${ECHO_T}$dynamic_linker" >&6
22817test "$dynamic_linker" = no && can_build_shared=no
22818
Reid Spencer2706f8c2004-09-19 23:53:36 +000022819echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22820echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22821hardcode_action_GCJ=
22822if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22823 test -n "$runpath_var_GCJ" || \
22824 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22825
22826 # We can hardcode non-existant directories.
22827 if test "$hardcode_direct_GCJ" != no &&
22828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22829 # have to relink, otherwise we might link with an installed library
22830 # when we should be linking with a yet-to-be-installed one
22831 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22832 test "$hardcode_minus_L_GCJ" != no; then
22833 # Linking always hardcodes the temporary library directory.
22834 hardcode_action_GCJ=relink
22835 else
22836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22837 hardcode_action_GCJ=immediate
22838 fi
22839else
22840 # We cannot hardcode anything, or else we can only hardcode existing
22841 # directories.
22842 hardcode_action_GCJ=unsupported
22843fi
22844echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22845echo "${ECHO_T}$hardcode_action_GCJ" >&6
22846
22847if test "$hardcode_action_GCJ" = relink; then
22848 # Fast installation is not supported
22849 enable_fast_install=no
22850elif test "$shlibpath_overrides_runpath" = yes ||
22851 test "$enable_shared" = no; then
22852 # Fast installation is not necessary
22853 enable_fast_install=needless
22854fi
22855
22856striplib=
22857old_striplib=
22858echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22859echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22860if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22861 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22862 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22863 echo "$as_me:$LINENO: result: yes" >&5
22864echo "${ECHO_T}yes" >&6
22865else
22866# FIXME - insert some real tests, host_os isn't really good enough
22867 case $host_os in
22868 darwin*)
22869 if test -n "$STRIP" ; then
22870 striplib="$STRIP -x"
22871 echo "$as_me:$LINENO: result: yes" >&5
22872echo "${ECHO_T}yes" >&6
22873 else
22874 echo "$as_me:$LINENO: result: no" >&5
22875echo "${ECHO_T}no" >&6
22876fi
22877 ;;
22878 *)
22879 echo "$as_me:$LINENO: result: no" >&5
22880echo "${ECHO_T}no" >&6
22881 ;;
22882 esac
22883fi
22884
John Criswell47fdd832003-07-14 16:52:07 +000022885if test "x$enable_dlopen" != xyes; then
22886 enable_dlopen=unknown
22887 enable_dlopen_self=unknown
22888 enable_dlopen_self_static=unknown
22889else
22890 lt_cv_dlopen=no
22891 lt_cv_dlopen_libs=
22892
22893 case $host_os in
22894 beos*)
22895 lt_cv_dlopen="load_add_on"
22896 lt_cv_dlopen_libs=
22897 lt_cv_dlopen_self=yes
22898 ;;
22899
22900 mingw* | pw32*)
22901 lt_cv_dlopen="LoadLibrary"
22902 lt_cv_dlopen_libs=
22903 ;;
22904
22905 cygwin*)
22906 lt_cv_dlopen="dlopen"
22907 lt_cv_dlopen_libs=
22908 ;;
22909
22910 darwin*)
22911 # if libdl is installed we need to link against it
22912 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22913echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22914if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22915 echo $ECHO_N "(cached) $ECHO_C" >&6
22916else
22917 ac_check_lib_save_LIBS=$LIBS
22918LIBS="-ldl $LIBS"
22919cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022920/* confdefs.h. */
22921_ACEOF
22922cat confdefs.h >>conftest.$ac_ext
22923cat >>conftest.$ac_ext <<_ACEOF
22924/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022925
22926/* Override any gcc2 internal prototype to avoid an error. */
22927#ifdef __cplusplus
22928extern "C"
22929#endif
22930/* We use char because int might match the return type of a gcc2
22931 builtin and then its argument prototype would still apply. */
22932char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022933int
22934main ()
22935{
22936dlopen ();
22937 ;
22938 return 0;
22939}
22940_ACEOF
22941rm -f conftest.$ac_objext conftest$ac_exeext
22942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022943 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022944 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022945 grep -v '^ *+' conftest.er1 >conftest.err
22946 rm -f conftest.er1
22947 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022950 { ac_try='test -z "$ac_c_werror_flag"
22951 || test ! -s conftest.err'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22954 ac_status=$?
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; } &&
22957 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22959 (eval $ac_try) 2>&5
22960 ac_status=$?
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); }; }; then
22963 ac_cv_lib_dl_dlopen=yes
22964else
22965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022966sed 's/^/| /' conftest.$ac_ext >&5
22967
John Criswell47fdd832003-07-14 16:52:07 +000022968ac_cv_lib_dl_dlopen=no
22969fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022970rm -f conftest.err conftest.$ac_objext \
22971 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022972LIBS=$ac_check_lib_save_LIBS
22973fi
22974echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22975echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22976if test $ac_cv_lib_dl_dlopen = yes; then
22977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22978else
22979
22980 lt_cv_dlopen="dyld"
22981 lt_cv_dlopen_libs=
22982 lt_cv_dlopen_self=yes
22983
22984fi
22985
22986 ;;
22987
22988 *)
22989 echo "$as_me:$LINENO: checking for shl_load" >&5
22990echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22991if test "${ac_cv_func_shl_load+set}" = set; then
22992 echo $ECHO_N "(cached) $ECHO_C" >&6
22993else
22994 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022995/* confdefs.h. */
22996_ACEOF
22997cat confdefs.h >>conftest.$ac_ext
22998cat >>conftest.$ac_ext <<_ACEOF
22999/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023000/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23002#define shl_load innocuous_shl_load
23003
John Criswell47fdd832003-07-14 16:52:07 +000023004/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023005 which can conflict with char shl_load (); below.
23006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23007 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023008
John Criswell0c38eaf2003-09-10 15:17:25 +000023009#ifdef __STDC__
23010# include <limits.h>
23011#else
23012# include <assert.h>
23013#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023014
23015#undef shl_load
23016
John Criswell47fdd832003-07-14 16:52:07 +000023017/* Override any gcc2 internal prototype to avoid an error. */
23018#ifdef __cplusplus
23019extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023020{
John Criswell47fdd832003-07-14 16:52:07 +000023021#endif
23022/* We use char because int might match the return type of a gcc2
23023 builtin and then its argument prototype would still apply. */
23024char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023025/* The GNU C library defines this for functions which it implements
23026 to always fail with ENOSYS. Some functions are actually named
23027 something starting with __ and the normal name is an alias. */
23028#if defined (__stub_shl_load) || defined (__stub___shl_load)
23029choke me
23030#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023031char (*f) () = shl_load;
23032#endif
23033#ifdef __cplusplus
23034}
John Criswell47fdd832003-07-14 16:52:07 +000023035#endif
23036
John Criswell0c38eaf2003-09-10 15:17:25 +000023037int
23038main ()
23039{
23040return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023041 ;
23042 return 0;
23043}
23044_ACEOF
23045rm -f conftest.$ac_objext conftest$ac_exeext
23046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023047 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023048 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023049 grep -v '^ *+' conftest.er1 >conftest.err
23050 rm -f conftest.er1
23051 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023054 { ac_try='test -z "$ac_c_werror_flag"
23055 || test ! -s conftest.err'
23056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057 (eval $ac_try) 2>&5
23058 ac_status=$?
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; } &&
23061 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063 (eval $ac_try) 2>&5
23064 ac_status=$?
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); }; }; then
23067 ac_cv_func_shl_load=yes
23068else
23069 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023070sed 's/^/| /' conftest.$ac_ext >&5
23071
John Criswell47fdd832003-07-14 16:52:07 +000023072ac_cv_func_shl_load=no
23073fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023074rm -f conftest.err conftest.$ac_objext \
23075 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023076fi
23077echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23078echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23079if test $ac_cv_func_shl_load = yes; then
23080 lt_cv_dlopen="shl_load"
23081else
23082 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23083echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23084if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23086else
23087 ac_check_lib_save_LIBS=$LIBS
23088LIBS="-ldld $LIBS"
23089cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023090/* confdefs.h. */
23091_ACEOF
23092cat confdefs.h >>conftest.$ac_ext
23093cat >>conftest.$ac_ext <<_ACEOF
23094/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023095
23096/* Override any gcc2 internal prototype to avoid an error. */
23097#ifdef __cplusplus
23098extern "C"
23099#endif
23100/* We use char because int might match the return type of a gcc2
23101 builtin and then its argument prototype would still apply. */
23102char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023103int
23104main ()
23105{
23106shl_load ();
23107 ;
23108 return 0;
23109}
23110_ACEOF
23111rm -f conftest.$ac_objext conftest$ac_exeext
23112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023113 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023114 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023115 grep -v '^ *+' conftest.er1 >conftest.err
23116 rm -f conftest.er1
23117 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023120 { ac_try='test -z "$ac_c_werror_flag"
23121 || test ! -s conftest.err'
23122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23124 ac_status=$?
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; } &&
23127 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; }; then
23133 ac_cv_lib_dld_shl_load=yes
23134else
23135 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023136sed 's/^/| /' conftest.$ac_ext >&5
23137
John Criswell47fdd832003-07-14 16:52:07 +000023138ac_cv_lib_dld_shl_load=no
23139fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023140rm -f conftest.err conftest.$ac_objext \
23141 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023142LIBS=$ac_check_lib_save_LIBS
23143fi
23144echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23145echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23146if test $ac_cv_lib_dld_shl_load = yes; then
23147 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23148else
23149 echo "$as_me:$LINENO: checking for dlopen" >&5
23150echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23151if test "${ac_cv_func_dlopen+set}" = set; then
23152 echo $ECHO_N "(cached) $ECHO_C" >&6
23153else
23154 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023155/* confdefs.h. */
23156_ACEOF
23157cat confdefs.h >>conftest.$ac_ext
23158cat >>conftest.$ac_ext <<_ACEOF
23159/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023160/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23162#define dlopen innocuous_dlopen
23163
John Criswell47fdd832003-07-14 16:52:07 +000023164/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023165 which can conflict with char dlopen (); below.
23166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23167 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023168
John Criswell0c38eaf2003-09-10 15:17:25 +000023169#ifdef __STDC__
23170# include <limits.h>
23171#else
23172# include <assert.h>
23173#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023174
23175#undef dlopen
23176
John Criswell47fdd832003-07-14 16:52:07 +000023177/* Override any gcc2 internal prototype to avoid an error. */
23178#ifdef __cplusplus
23179extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023180{
John Criswell47fdd832003-07-14 16:52:07 +000023181#endif
23182/* We use char because int might match the return type of a gcc2
23183 builtin and then its argument prototype would still apply. */
23184char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023185/* The GNU C library defines this for functions which it implements
23186 to always fail with ENOSYS. Some functions are actually named
23187 something starting with __ and the normal name is an alias. */
23188#if defined (__stub_dlopen) || defined (__stub___dlopen)
23189choke me
23190#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023191char (*f) () = dlopen;
23192#endif
23193#ifdef __cplusplus
23194}
John Criswell47fdd832003-07-14 16:52:07 +000023195#endif
23196
John Criswell0c38eaf2003-09-10 15:17:25 +000023197int
23198main ()
23199{
23200return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023201 ;
23202 return 0;
23203}
23204_ACEOF
23205rm -f conftest.$ac_objext conftest$ac_exeext
23206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023207 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023208 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023209 grep -v '^ *+' conftest.er1 >conftest.err
23210 rm -f conftest.er1
23211 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023214 { ac_try='test -z "$ac_c_werror_flag"
23215 || test ! -s conftest.err'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23218 ac_status=$?
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; } &&
23221 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23223 (eval $ac_try) 2>&5
23224 ac_status=$?
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); }; }; then
23227 ac_cv_func_dlopen=yes
23228else
23229 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023230sed 's/^/| /' conftest.$ac_ext >&5
23231
John Criswell47fdd832003-07-14 16:52:07 +000023232ac_cv_func_dlopen=no
23233fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023234rm -f conftest.err conftest.$ac_objext \
23235 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023236fi
23237echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23238echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23239if test $ac_cv_func_dlopen = yes; then
23240 lt_cv_dlopen="dlopen"
23241else
23242 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23243echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23244if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23246else
23247 ac_check_lib_save_LIBS=$LIBS
23248LIBS="-ldl $LIBS"
23249cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023250/* confdefs.h. */
23251_ACEOF
23252cat confdefs.h >>conftest.$ac_ext
23253cat >>conftest.$ac_ext <<_ACEOF
23254/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023255
23256/* Override any gcc2 internal prototype to avoid an error. */
23257#ifdef __cplusplus
23258extern "C"
23259#endif
23260/* We use char because int might match the return type of a gcc2
23261 builtin and then its argument prototype would still apply. */
23262char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023263int
23264main ()
23265{
23266dlopen ();
23267 ;
23268 return 0;
23269}
23270_ACEOF
23271rm -f conftest.$ac_objext conftest$ac_exeext
23272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023273 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023274 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023275 grep -v '^ *+' conftest.er1 >conftest.err
23276 rm -f conftest.er1
23277 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023280 { ac_try='test -z "$ac_c_werror_flag"
23281 || test ! -s conftest.err'
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23284 ac_status=$?
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; } &&
23287 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289 (eval $ac_try) 2>&5
23290 ac_status=$?
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; }; then
23293 ac_cv_lib_dl_dlopen=yes
23294else
23295 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023296sed 's/^/| /' conftest.$ac_ext >&5
23297
John Criswell47fdd832003-07-14 16:52:07 +000023298ac_cv_lib_dl_dlopen=no
23299fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023300rm -f conftest.err conftest.$ac_objext \
23301 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023302LIBS=$ac_check_lib_save_LIBS
23303fi
23304echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23305echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23306if test $ac_cv_lib_dl_dlopen = yes; then
23307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23308else
23309 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23310echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23311if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
23313else
23314 ac_check_lib_save_LIBS=$LIBS
23315LIBS="-lsvld $LIBS"
23316cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023317/* confdefs.h. */
23318_ACEOF
23319cat confdefs.h >>conftest.$ac_ext
23320cat >>conftest.$ac_ext <<_ACEOF
23321/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023322
23323/* Override any gcc2 internal prototype to avoid an error. */
23324#ifdef __cplusplus
23325extern "C"
23326#endif
23327/* We use char because int might match the return type of a gcc2
23328 builtin and then its argument prototype would still apply. */
23329char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023330int
23331main ()
23332{
23333dlopen ();
23334 ;
23335 return 0;
23336}
23337_ACEOF
23338rm -f conftest.$ac_objext conftest$ac_exeext
23339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023340 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023341 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023342 grep -v '^ *+' conftest.er1 >conftest.err
23343 rm -f conftest.er1
23344 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023347 { ac_try='test -z "$ac_c_werror_flag"
23348 || test ! -s conftest.err'
23349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350 (eval $ac_try) 2>&5
23351 ac_status=$?
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); }; } &&
23354 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356 (eval $ac_try) 2>&5
23357 ac_status=$?
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); }; }; then
23360 ac_cv_lib_svld_dlopen=yes
23361else
23362 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023363sed 's/^/| /' conftest.$ac_ext >&5
23364
John Criswell47fdd832003-07-14 16:52:07 +000023365ac_cv_lib_svld_dlopen=no
23366fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023367rm -f conftest.err conftest.$ac_objext \
23368 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023369LIBS=$ac_check_lib_save_LIBS
23370fi
23371echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23372echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23373if test $ac_cv_lib_svld_dlopen = yes; then
23374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23375else
23376 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23377echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23378if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
23380else
23381 ac_check_lib_save_LIBS=$LIBS
23382LIBS="-ldld $LIBS"
23383cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023384/* confdefs.h. */
23385_ACEOF
23386cat confdefs.h >>conftest.$ac_ext
23387cat >>conftest.$ac_ext <<_ACEOF
23388/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023389
23390/* Override any gcc2 internal prototype to avoid an error. */
23391#ifdef __cplusplus
23392extern "C"
23393#endif
23394/* We use char because int might match the return type of a gcc2
23395 builtin and then its argument prototype would still apply. */
23396char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023397int
23398main ()
23399{
23400dld_link ();
23401 ;
23402 return 0;
23403}
23404_ACEOF
23405rm -f conftest.$ac_objext conftest$ac_exeext
23406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023407 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023408 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023409 grep -v '^ *+' conftest.er1 >conftest.err
23410 rm -f conftest.er1
23411 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023414 { ac_try='test -z "$ac_c_werror_flag"
23415 || test ! -s conftest.err'
23416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417 (eval $ac_try) 2>&5
23418 ac_status=$?
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); }; } &&
23421 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423 (eval $ac_try) 2>&5
23424 ac_status=$?
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); }; }; then
23427 ac_cv_lib_dld_dld_link=yes
23428else
23429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023430sed 's/^/| /' conftest.$ac_ext >&5
23431
John Criswell47fdd832003-07-14 16:52:07 +000023432ac_cv_lib_dld_dld_link=no
23433fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023434rm -f conftest.err conftest.$ac_objext \
23435 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023436LIBS=$ac_check_lib_save_LIBS
23437fi
23438echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23439echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23440if test $ac_cv_lib_dld_dld_link = yes; then
23441 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23442fi
23443
23444
23445fi
23446
23447
23448fi
23449
23450
23451fi
23452
23453
23454fi
23455
23456
23457fi
23458
23459 ;;
23460 esac
23461
23462 if test "x$lt_cv_dlopen" != xno; then
23463 enable_dlopen=yes
23464 else
23465 enable_dlopen=no
23466 fi
23467
23468 case $lt_cv_dlopen in
23469 dlopen)
23470 save_CPPFLAGS="$CPPFLAGS"
23471 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23472
23473 save_LDFLAGS="$LDFLAGS"
23474 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23475
23476 save_LIBS="$LIBS"
23477 LIBS="$lt_cv_dlopen_libs $LIBS"
23478
23479 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23480echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23481if test "${lt_cv_dlopen_self+set}" = set; then
23482 echo $ECHO_N "(cached) $ECHO_C" >&6
23483else
23484 if test "$cross_compiling" = yes; then :
23485 lt_cv_dlopen_self=cross
23486else
23487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23488 lt_status=$lt_dlunknown
23489 cat > conftest.$ac_ext <<EOF
Misha Brukman19098e52005-05-12 22:15:34 +000023490#line 23490 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023491#include "confdefs.h"
23492
23493#if HAVE_DLFCN_H
23494#include <dlfcn.h>
23495#endif
23496
23497#include <stdio.h>
23498
23499#ifdef RTLD_GLOBAL
23500# define LT_DLGLOBAL RTLD_GLOBAL
23501#else
23502# ifdef DL_GLOBAL
23503# define LT_DLGLOBAL DL_GLOBAL
23504# else
23505# define LT_DLGLOBAL 0
23506# endif
23507#endif
23508
23509/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23510 find out it does not work in some platform. */
23511#ifndef LT_DLLAZY_OR_NOW
23512# ifdef RTLD_LAZY
23513# define LT_DLLAZY_OR_NOW RTLD_LAZY
23514# else
23515# ifdef DL_LAZY
23516# define LT_DLLAZY_OR_NOW DL_LAZY
23517# else
23518# ifdef RTLD_NOW
23519# define LT_DLLAZY_OR_NOW RTLD_NOW
23520# else
23521# ifdef DL_NOW
23522# define LT_DLLAZY_OR_NOW DL_NOW
23523# else
23524# define LT_DLLAZY_OR_NOW 0
23525# endif
23526# endif
23527# endif
23528# endif
23529#endif
23530
23531#ifdef __cplusplus
23532extern "C" void exit (int);
23533#endif
23534
23535void fnord() { int i=42;}
23536int main ()
23537{
23538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23539 int status = $lt_dlunknown;
23540
23541 if (self)
23542 {
23543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23544 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23545 /* dlclose (self); */
23546 }
23547
23548 exit (status);
23549}
23550EOF
23551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552 (eval $ac_link) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23556 (./conftest; exit; ) 2>/dev/null
23557 lt_status=$?
23558 case x$lt_status in
23559 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23560 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23561 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23562 esac
23563 else :
23564 # compilation failed
23565 lt_cv_dlopen_self=no
23566 fi
23567fi
23568rm -fr conftest*
23569
23570
23571fi
23572echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23573echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23574
23575 if test "x$lt_cv_dlopen_self" = xyes; then
23576 LDFLAGS="$LDFLAGS $link_static_flag"
23577 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23578echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23579if test "${lt_cv_dlopen_self_static+set}" = set; then
23580 echo $ECHO_N "(cached) $ECHO_C" >&6
23581else
23582 if test "$cross_compiling" = yes; then :
23583 lt_cv_dlopen_self_static=cross
23584else
23585 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23586 lt_status=$lt_dlunknown
23587 cat > conftest.$ac_ext <<EOF
Misha Brukman19098e52005-05-12 22:15:34 +000023588#line 23588 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023589#include "confdefs.h"
23590
23591#if HAVE_DLFCN_H
23592#include <dlfcn.h>
23593#endif
23594
23595#include <stdio.h>
23596
23597#ifdef RTLD_GLOBAL
23598# define LT_DLGLOBAL RTLD_GLOBAL
23599#else
23600# ifdef DL_GLOBAL
23601# define LT_DLGLOBAL DL_GLOBAL
23602# else
23603# define LT_DLGLOBAL 0
23604# endif
23605#endif
23606
23607/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23608 find out it does not work in some platform. */
23609#ifndef LT_DLLAZY_OR_NOW
23610# ifdef RTLD_LAZY
23611# define LT_DLLAZY_OR_NOW RTLD_LAZY
23612# else
23613# ifdef DL_LAZY
23614# define LT_DLLAZY_OR_NOW DL_LAZY
23615# else
23616# ifdef RTLD_NOW
23617# define LT_DLLAZY_OR_NOW RTLD_NOW
23618# else
23619# ifdef DL_NOW
23620# define LT_DLLAZY_OR_NOW DL_NOW
23621# else
23622# define LT_DLLAZY_OR_NOW 0
23623# endif
23624# endif
23625# endif
23626# endif
23627#endif
23628
23629#ifdef __cplusplus
23630extern "C" void exit (int);
23631#endif
23632
23633void fnord() { int i=42;}
23634int main ()
23635{
23636 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23637 int status = $lt_dlunknown;
23638
23639 if (self)
23640 {
23641 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23642 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23643 /* dlclose (self); */
23644 }
23645
23646 exit (status);
23647}
23648EOF
23649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23650 (eval $ac_link) 2>&5
23651 ac_status=$?
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23654 (./conftest; exit; ) 2>/dev/null
23655 lt_status=$?
23656 case x$lt_status in
23657 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23658 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23659 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23660 esac
23661 else :
23662 # compilation failed
23663 lt_cv_dlopen_self_static=no
23664 fi
23665fi
23666rm -fr conftest*
23667
23668
23669fi
23670echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23671echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23672 fi
23673
23674 CPPFLAGS="$save_CPPFLAGS"
23675 LDFLAGS="$save_LDFLAGS"
23676 LIBS="$save_LIBS"
23677 ;;
23678 esac
23679
23680 case $lt_cv_dlopen_self in
23681 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23682 *) enable_dlopen_self=unknown ;;
23683 esac
23684
23685 case $lt_cv_dlopen_self_static in
23686 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23687 *) enable_dlopen_self_static=unknown ;;
23688 esac
23689fi
23690
23691
23692# The else clause should only fire when bootstrapping the
23693# libtool distribution, otherwise you forgot to ship ltmain.sh
23694# with your package, and you will get complaints that there are
23695# no rules to generate ltmain.sh.
23696if test -f "$ltmain"; then
23697 # See if we are running on zsh, and set the options which allow our commands through
23698 # without removal of \ escapes.
23699 if test -n "${ZSH_VERSION+set}" ; then
23700 setopt NO_GLOB_SUBST
23701 fi
23702 # Now quote all the things that may contain metacharacters while being
23703 # careful not to overquote the AC_SUBSTed values. We take copies of the
23704 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023705 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23706 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023707 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23708 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23709 deplibs_check_method reload_flag reload_cmds need_locks \
23710 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23711 lt_cv_sys_global_symbol_to_c_name_address \
23712 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23713 old_postinstall_cmds old_postuninstall_cmds \
23714 compiler_GCJ \
23715 CC_GCJ \
23716 LD_GCJ \
23717 lt_prog_compiler_wl_GCJ \
23718 lt_prog_compiler_pic_GCJ \
23719 lt_prog_compiler_static_GCJ \
23720 lt_prog_compiler_no_builtin_flag_GCJ \
23721 export_dynamic_flag_spec_GCJ \
23722 thread_safe_flag_spec_GCJ \
23723 whole_archive_flag_spec_GCJ \
23724 enable_shared_with_static_runtimes_GCJ \
23725 old_archive_cmds_GCJ \
23726 old_archive_from_new_cmds_GCJ \
23727 predep_objects_GCJ \
23728 postdep_objects_GCJ \
23729 predeps_GCJ \
23730 postdeps_GCJ \
23731 compiler_lib_search_path_GCJ \
23732 archive_cmds_GCJ \
23733 archive_expsym_cmds_GCJ \
23734 postinstall_cmds_GCJ \
23735 postuninstall_cmds_GCJ \
23736 old_archive_from_expsyms_cmds_GCJ \
23737 allow_undefined_flag_GCJ \
23738 no_undefined_flag_GCJ \
23739 export_symbols_cmds_GCJ \
23740 hardcode_libdir_flag_spec_GCJ \
23741 hardcode_libdir_flag_spec_ld_GCJ \
23742 hardcode_libdir_separator_GCJ \
23743 hardcode_automatic_GCJ \
23744 module_cmds_GCJ \
23745 module_expsym_cmds_GCJ \
23746 lt_cv_prog_compiler_c_o_GCJ \
23747 exclude_expsyms_GCJ \
23748 include_expsyms_GCJ; do
23749
23750 case $var in
23751 old_archive_cmds_GCJ | \
23752 old_archive_from_new_cmds_GCJ | \
23753 archive_cmds_GCJ | \
23754 archive_expsym_cmds_GCJ | \
23755 module_cmds_GCJ | \
23756 module_expsym_cmds_GCJ | \
23757 old_archive_from_expsyms_cmds_GCJ | \
23758 export_symbols_cmds_GCJ | \
23759 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23760 postinstall_cmds | postuninstall_cmds | \
23761 old_postinstall_cmds | old_postuninstall_cmds | \
23762 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23763 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023764 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 +000023765 ;;
23766 *)
23767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23768 ;;
23769 esac
23770 done
23771
23772 case $lt_echo in
23773 *'\$0 --fallback-echo"')
23774 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23775 ;;
23776 esac
23777
23778cfgfile="$ofile"
23779
23780 cat <<__EOF__ >> "$cfgfile"
23781# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23782
23783# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23784
23785# Shell to use when invoking shell scripts.
23786SHELL=$lt_SHELL
23787
23788# Whether or not to build shared libraries.
23789build_libtool_libs=$enable_shared
23790
23791# Whether or not to build static libraries.
23792build_old_libs=$enable_static
23793
23794# Whether or not to add -lc for building shared libraries.
23795build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23796
23797# Whether or not to disallow shared libs when runtime libs are static
23798allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23799
23800# Whether or not to optimize for fast installation.
23801fast_install=$enable_fast_install
23802
23803# The host system.
23804host_alias=$host_alias
23805host=$host
23806
23807# An echo program that does not interpret backslashes.
23808echo=$lt_echo
23809
23810# The archiver.
23811AR=$lt_AR
23812AR_FLAGS=$lt_AR_FLAGS
23813
23814# A C compiler.
23815LTCC=$lt_LTCC
23816
23817# A language-specific compiler.
23818CC=$lt_compiler_GCJ
23819
23820# Is the compiler the GNU C compiler?
23821with_gcc=$GCC_GCJ
23822
23823# An ERE matcher.
23824EGREP=$lt_EGREP
23825
23826# The linker used to build libraries.
23827LD=$lt_LD_GCJ
23828
23829# Whether we need hard or soft links.
23830LN_S=$lt_LN_S
23831
23832# A BSD-compatible nm program.
23833NM=$lt_NM
23834
23835# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023836STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023837
23838# Used to examine libraries when file_magic_cmd begins "file"
23839MAGIC_CMD=$MAGIC_CMD
23840
23841# Used on cygwin: DLL creation program.
23842DLLTOOL="$DLLTOOL"
23843
23844# Used on cygwin: object dumper.
23845OBJDUMP="$OBJDUMP"
23846
23847# Used on cygwin: assembler.
23848AS="$AS"
23849
23850# The name of the directory that contains temporary libtool files.
23851objdir=$objdir
23852
23853# How to create reloadable object files.
23854reload_flag=$lt_reload_flag
23855reload_cmds=$lt_reload_cmds
23856
23857# How to pass a linker flag through the compiler.
23858wl=$lt_lt_prog_compiler_wl_GCJ
23859
23860# Object file suffix (normally "o").
23861objext="$ac_objext"
23862
23863# Old archive suffix (normally "a").
23864libext="$libext"
23865
23866# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023867shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023868
23869# Executable file suffix (normally "").
23870exeext="$exeext"
23871
23872# Additional compiler flags for building library objects.
23873pic_flag=$lt_lt_prog_compiler_pic_GCJ
23874pic_mode=$pic_mode
23875
23876# What is the maximum length of a command?
23877max_cmd_len=$lt_cv_sys_max_cmd_len
23878
23879# Does compiler simultaneously support -c and -o options?
23880compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23881
23882# Must we lock files when doing compilation ?
23883need_locks=$lt_need_locks
23884
23885# Do we need the lib prefix for modules?
23886need_lib_prefix=$need_lib_prefix
23887
23888# Do we need a version for libraries?
23889need_version=$need_version
23890
23891# Whether dlopen is supported.
23892dlopen_support=$enable_dlopen
23893
23894# Whether dlopen of programs is supported.
23895dlopen_self=$enable_dlopen_self
23896
23897# Whether dlopen of statically linked programs is supported.
23898dlopen_self_static=$enable_dlopen_self_static
23899
23900# Compiler flag to prevent dynamic linking.
23901link_static_flag=$lt_lt_prog_compiler_static_GCJ
23902
23903# Compiler flag to turn off builtin functions.
23904no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23905
23906# Compiler flag to allow reflexive dlopens.
23907export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23908
23909# Compiler flag to generate shared objects directly from archives.
23910whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23911
23912# Compiler flag to generate thread-safe objects.
23913thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23914
23915# Library versioning type.
23916version_type=$version_type
23917
23918# Format of library name prefix.
23919libname_spec=$lt_libname_spec
23920
23921# List of archive names. First name is the real one, the rest are links.
23922# The last name is the one that the linker finds with -lNAME.
23923library_names_spec=$lt_library_names_spec
23924
23925# The coded name of the library, if different from the real name.
23926soname_spec=$lt_soname_spec
23927
23928# Commands used to build and install an old-style archive.
23929RANLIB=$lt_RANLIB
23930old_archive_cmds=$lt_old_archive_cmds_GCJ
23931old_postinstall_cmds=$lt_old_postinstall_cmds
23932old_postuninstall_cmds=$lt_old_postuninstall_cmds
23933
23934# Create an old-style archive from a shared archive.
23935old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23936
23937# Create a temporary old-style archive to link instead of a shared archive.
23938old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23939
23940# Commands used to build and install a shared archive.
23941archive_cmds=$lt_archive_cmds_GCJ
23942archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23943postinstall_cmds=$lt_postinstall_cmds
23944postuninstall_cmds=$lt_postuninstall_cmds
23945
23946# Commands used to build a loadable module (assumed same as above if empty)
23947module_cmds=$lt_module_cmds_GCJ
23948module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23949
23950# Commands to strip libraries.
23951old_striplib=$lt_old_striplib
23952striplib=$lt_striplib
23953
23954# Dependencies to place before the objects being linked to create a
23955# shared library.
23956predep_objects=$lt_predep_objects_GCJ
23957
23958# Dependencies to place after the objects being linked to create a
23959# shared library.
23960postdep_objects=$lt_postdep_objects_GCJ
23961
23962# Dependencies to place before the objects being linked to create a
23963# shared library.
23964predeps=$lt_predeps_GCJ
23965
23966# Dependencies to place after the objects being linked to create a
23967# shared library.
23968postdeps=$lt_postdeps_GCJ
23969
23970# The library search path used internally by the compiler when linking
23971# a shared library.
23972compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23973
23974# Method to check whether dependent libraries are shared objects.
23975deplibs_check_method=$lt_deplibs_check_method
23976
23977# Command to use when deplibs_check_method == file_magic.
23978file_magic_cmd=$lt_file_magic_cmd
23979
23980# Flag that allows shared libraries with undefined symbols to be built.
23981allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23982
23983# Flag that forces no undefined symbols.
23984no_undefined_flag=$lt_no_undefined_flag_GCJ
23985
23986# Commands used to finish a libtool library installation in a directory.
23987finish_cmds=$lt_finish_cmds
23988
23989# Same as above, but a single script fragment to be evaled but not shown.
23990finish_eval=$lt_finish_eval
23991
23992# Take the output of nm and produce a listing of raw symbols and C names.
23993global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23994
23995# Transform the output of nm in a proper C declaration
23996global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23997
23998# Transform the output of nm in a C name address pair
23999global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24000
24001# This is the shared library runtime path variable.
24002runpath_var=$runpath_var
24003
24004# This is the shared library path variable.
24005shlibpath_var=$shlibpath_var
24006
24007# Is shlibpath searched before the hard-coded library search path?
24008shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24009
24010# How to hardcode a shared library path into an executable.
24011hardcode_action=$hardcode_action_GCJ
24012
24013# Whether we should hardcode library paths into libraries.
24014hardcode_into_libs=$hardcode_into_libs
24015
24016# Flag to hardcode \$libdir into a binary during linking.
24017# This must work even if \$libdir does not exist.
24018hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24019
24020# If ld is used when linking, flag to hardcode \$libdir into
24021# a binary during linking. This must work even if \$libdir does
24022# not exist.
24023hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24024
24025# Whether we need a single -rpath flag with a separated argument.
24026hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24027
24028# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24029# resulting binary.
24030hardcode_direct=$hardcode_direct_GCJ
24031
24032# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24033# resulting binary.
24034hardcode_minus_L=$hardcode_minus_L_GCJ
24035
24036# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24037# the resulting binary.
24038hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24039
24040# Set to yes if building a shared library automatically hardcodes DIR into the library
24041# and all subsequent libraries and executables linked against it.
24042hardcode_automatic=$hardcode_automatic_GCJ
24043
24044# Variables whose values should be saved in libtool wrapper scripts and
24045# restored at relink time.
24046variables_saved_for_relink="$variables_saved_for_relink"
24047
24048# Whether libtool must link a program against all its dependency libraries.
24049link_all_deplibs=$link_all_deplibs_GCJ
24050
24051# Compile-time system search path for libraries
24052sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24053
24054# Run-time system search path for libraries
24055sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24056
24057# Fix the shell variable \$srcfile for the compiler.
24058fix_srcfile_path="$fix_srcfile_path_GCJ"
24059
24060# Set to yes if exported symbols are required.
24061always_export_symbols=$always_export_symbols_GCJ
24062
24063# The commands to list exported symbols.
24064export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24065
24066# The commands to extract the exported symbol list from a shared archive.
24067extract_expsyms_cmds=$lt_extract_expsyms_cmds
24068
24069# Symbols that should not be listed in the preloaded symbols.
24070exclude_expsyms=$lt_exclude_expsyms_GCJ
24071
24072# Symbols that must always be exported.
24073include_expsyms=$lt_include_expsyms_GCJ
24074
24075# ### END LIBTOOL TAG CONFIG: $tagname
24076
24077__EOF__
24078
24079
24080else
24081 # If there is no Makefile yet, we rely on a make rule to execute
24082 # `config.status --recheck' to rerun these tests and create the
24083 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024084 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24085 if test -f "$ltmain_in"; then
24086 test -f Makefile && make "$ltmain"
24087 fi
John Criswell47fdd832003-07-14 16:52:07 +000024088fi
24089
24090
24091ac_ext=c
24092ac_cpp='$CPP $CPPFLAGS'
24093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24095ac_compiler_gnu=$ac_cv_c_compiler_gnu
24096
24097CC="$lt_save_CC"
24098
24099 else
24100 tagname=""
24101 fi
24102 ;;
24103
24104 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024105 ac_ext=c
24106ac_cpp='$CPP $CPPFLAGS'
24107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24109ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024110
24111
24112# Source file extension for RC test sources.
24113ac_ext=rc
24114
24115# Object file extension for compiled RC test sources.
24116objext=o
24117objext_RC=$objext
24118
24119# Code to be used in simple compile tests
24120lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24121
24122# Code to be used in simple link tests
24123lt_simple_link_test_code="$lt_simple_compile_test_code"
24124
24125# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24126
24127# If no C compiler was specified, use CC.
24128LTCC=${LTCC-"$CC"}
24129
24130# Allow CC to be a program name with arguments.
24131compiler=$CC
24132
24133
24134# Allow CC to be a program name with arguments.
24135lt_save_CC="$CC"
24136CC=${RC-"windres"}
24137compiler=$CC
24138compiler_RC=$CC
24139lt_cv_prog_compiler_c_o_RC=yes
24140
24141# The else clause should only fire when bootstrapping the
24142# libtool distribution, otherwise you forgot to ship ltmain.sh
24143# with your package, and you will get complaints that there are
24144# no rules to generate ltmain.sh.
24145if test -f "$ltmain"; then
24146 # See if we are running on zsh, and set the options which allow our commands through
24147 # without removal of \ escapes.
24148 if test -n "${ZSH_VERSION+set}" ; then
24149 setopt NO_GLOB_SUBST
24150 fi
24151 # Now quote all the things that may contain metacharacters while being
24152 # careful not to overquote the AC_SUBSTed values. We take copies of the
24153 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024154 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24155 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024156 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24157 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24158 deplibs_check_method reload_flag reload_cmds need_locks \
24159 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24160 lt_cv_sys_global_symbol_to_c_name_address \
24161 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24162 old_postinstall_cmds old_postuninstall_cmds \
24163 compiler_RC \
24164 CC_RC \
24165 LD_RC \
24166 lt_prog_compiler_wl_RC \
24167 lt_prog_compiler_pic_RC \
24168 lt_prog_compiler_static_RC \
24169 lt_prog_compiler_no_builtin_flag_RC \
24170 export_dynamic_flag_spec_RC \
24171 thread_safe_flag_spec_RC \
24172 whole_archive_flag_spec_RC \
24173 enable_shared_with_static_runtimes_RC \
24174 old_archive_cmds_RC \
24175 old_archive_from_new_cmds_RC \
24176 predep_objects_RC \
24177 postdep_objects_RC \
24178 predeps_RC \
24179 postdeps_RC \
24180 compiler_lib_search_path_RC \
24181 archive_cmds_RC \
24182 archive_expsym_cmds_RC \
24183 postinstall_cmds_RC \
24184 postuninstall_cmds_RC \
24185 old_archive_from_expsyms_cmds_RC \
24186 allow_undefined_flag_RC \
24187 no_undefined_flag_RC \
24188 export_symbols_cmds_RC \
24189 hardcode_libdir_flag_spec_RC \
24190 hardcode_libdir_flag_spec_ld_RC \
24191 hardcode_libdir_separator_RC \
24192 hardcode_automatic_RC \
24193 module_cmds_RC \
24194 module_expsym_cmds_RC \
24195 lt_cv_prog_compiler_c_o_RC \
24196 exclude_expsyms_RC \
24197 include_expsyms_RC; do
24198
24199 case $var in
24200 old_archive_cmds_RC | \
24201 old_archive_from_new_cmds_RC | \
24202 archive_cmds_RC | \
24203 archive_expsym_cmds_RC | \
24204 module_cmds_RC | \
24205 module_expsym_cmds_RC | \
24206 old_archive_from_expsyms_cmds_RC | \
24207 export_symbols_cmds_RC | \
24208 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24209 postinstall_cmds | postuninstall_cmds | \
24210 old_postinstall_cmds | old_postuninstall_cmds | \
24211 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24212 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024213 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 +000024214 ;;
24215 *)
24216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24217 ;;
24218 esac
24219 done
24220
24221 case $lt_echo in
24222 *'\$0 --fallback-echo"')
24223 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24224 ;;
24225 esac
24226
24227cfgfile="$ofile"
24228
24229 cat <<__EOF__ >> "$cfgfile"
24230# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24231
24232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24233
24234# Shell to use when invoking shell scripts.
24235SHELL=$lt_SHELL
24236
24237# Whether or not to build shared libraries.
24238build_libtool_libs=$enable_shared
24239
24240# Whether or not to build static libraries.
24241build_old_libs=$enable_static
24242
24243# Whether or not to add -lc for building shared libraries.
24244build_libtool_need_lc=$archive_cmds_need_lc_RC
24245
24246# Whether or not to disallow shared libs when runtime libs are static
24247allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24248
24249# Whether or not to optimize for fast installation.
24250fast_install=$enable_fast_install
24251
24252# The host system.
24253host_alias=$host_alias
24254host=$host
24255
24256# An echo program that does not interpret backslashes.
24257echo=$lt_echo
24258
24259# The archiver.
24260AR=$lt_AR
24261AR_FLAGS=$lt_AR_FLAGS
24262
24263# A C compiler.
24264LTCC=$lt_LTCC
24265
24266# A language-specific compiler.
24267CC=$lt_compiler_RC
24268
24269# Is the compiler the GNU C compiler?
24270with_gcc=$GCC_RC
24271
24272# An ERE matcher.
24273EGREP=$lt_EGREP
24274
24275# The linker used to build libraries.
24276LD=$lt_LD_RC
24277
24278# Whether we need hard or soft links.
24279LN_S=$lt_LN_S
24280
24281# A BSD-compatible nm program.
24282NM=$lt_NM
24283
24284# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024285STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024286
24287# Used to examine libraries when file_magic_cmd begins "file"
24288MAGIC_CMD=$MAGIC_CMD
24289
24290# Used on cygwin: DLL creation program.
24291DLLTOOL="$DLLTOOL"
24292
24293# Used on cygwin: object dumper.
24294OBJDUMP="$OBJDUMP"
24295
24296# Used on cygwin: assembler.
24297AS="$AS"
24298
24299# The name of the directory that contains temporary libtool files.
24300objdir=$objdir
24301
24302# How to create reloadable object files.
24303reload_flag=$lt_reload_flag
24304reload_cmds=$lt_reload_cmds
24305
24306# How to pass a linker flag through the compiler.
24307wl=$lt_lt_prog_compiler_wl_RC
24308
24309# Object file suffix (normally "o").
24310objext="$ac_objext"
24311
24312# Old archive suffix (normally "a").
24313libext="$libext"
24314
24315# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024316shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024317
24318# Executable file suffix (normally "").
24319exeext="$exeext"
24320
24321# Additional compiler flags for building library objects.
24322pic_flag=$lt_lt_prog_compiler_pic_RC
24323pic_mode=$pic_mode
24324
24325# What is the maximum length of a command?
24326max_cmd_len=$lt_cv_sys_max_cmd_len
24327
24328# Does compiler simultaneously support -c and -o options?
24329compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24330
24331# Must we lock files when doing compilation ?
24332need_locks=$lt_need_locks
24333
24334# Do we need the lib prefix for modules?
24335need_lib_prefix=$need_lib_prefix
24336
24337# Do we need a version for libraries?
24338need_version=$need_version
24339
24340# Whether dlopen is supported.
24341dlopen_support=$enable_dlopen
24342
24343# Whether dlopen of programs is supported.
24344dlopen_self=$enable_dlopen_self
24345
24346# Whether dlopen of statically linked programs is supported.
24347dlopen_self_static=$enable_dlopen_self_static
24348
24349# Compiler flag to prevent dynamic linking.
24350link_static_flag=$lt_lt_prog_compiler_static_RC
24351
24352# Compiler flag to turn off builtin functions.
24353no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24354
24355# Compiler flag to allow reflexive dlopens.
24356export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24357
24358# Compiler flag to generate shared objects directly from archives.
24359whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24360
24361# Compiler flag to generate thread-safe objects.
24362thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24363
24364# Library versioning type.
24365version_type=$version_type
24366
24367# Format of library name prefix.
24368libname_spec=$lt_libname_spec
24369
24370# List of archive names. First name is the real one, the rest are links.
24371# The last name is the one that the linker finds with -lNAME.
24372library_names_spec=$lt_library_names_spec
24373
24374# The coded name of the library, if different from the real name.
24375soname_spec=$lt_soname_spec
24376
24377# Commands used to build and install an old-style archive.
24378RANLIB=$lt_RANLIB
24379old_archive_cmds=$lt_old_archive_cmds_RC
24380old_postinstall_cmds=$lt_old_postinstall_cmds
24381old_postuninstall_cmds=$lt_old_postuninstall_cmds
24382
24383# Create an old-style archive from a shared archive.
24384old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24385
24386# Create a temporary old-style archive to link instead of a shared archive.
24387old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24388
24389# Commands used to build and install a shared archive.
24390archive_cmds=$lt_archive_cmds_RC
24391archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24392postinstall_cmds=$lt_postinstall_cmds
24393postuninstall_cmds=$lt_postuninstall_cmds
24394
24395# Commands used to build a loadable module (assumed same as above if empty)
24396module_cmds=$lt_module_cmds_RC
24397module_expsym_cmds=$lt_module_expsym_cmds_RC
24398
24399# Commands to strip libraries.
24400old_striplib=$lt_old_striplib
24401striplib=$lt_striplib
24402
24403# Dependencies to place before the objects being linked to create a
24404# shared library.
24405predep_objects=$lt_predep_objects_RC
24406
24407# Dependencies to place after the objects being linked to create a
24408# shared library.
24409postdep_objects=$lt_postdep_objects_RC
24410
24411# Dependencies to place before the objects being linked to create a
24412# shared library.
24413predeps=$lt_predeps_RC
24414
24415# Dependencies to place after the objects being linked to create a
24416# shared library.
24417postdeps=$lt_postdeps_RC
24418
24419# The library search path used internally by the compiler when linking
24420# a shared library.
24421compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24422
24423# Method to check whether dependent libraries are shared objects.
24424deplibs_check_method=$lt_deplibs_check_method
24425
24426# Command to use when deplibs_check_method == file_magic.
24427file_magic_cmd=$lt_file_magic_cmd
24428
24429# Flag that allows shared libraries with undefined symbols to be built.
24430allow_undefined_flag=$lt_allow_undefined_flag_RC
24431
24432# Flag that forces no undefined symbols.
24433no_undefined_flag=$lt_no_undefined_flag_RC
24434
24435# Commands used to finish a libtool library installation in a directory.
24436finish_cmds=$lt_finish_cmds
24437
24438# Same as above, but a single script fragment to be evaled but not shown.
24439finish_eval=$lt_finish_eval
24440
24441# Take the output of nm and produce a listing of raw symbols and C names.
24442global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24443
24444# Transform the output of nm in a proper C declaration
24445global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24446
24447# Transform the output of nm in a C name address pair
24448global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24449
24450# This is the shared library runtime path variable.
24451runpath_var=$runpath_var
24452
24453# This is the shared library path variable.
24454shlibpath_var=$shlibpath_var
24455
24456# Is shlibpath searched before the hard-coded library search path?
24457shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24458
24459# How to hardcode a shared library path into an executable.
24460hardcode_action=$hardcode_action_RC
24461
24462# Whether we should hardcode library paths into libraries.
24463hardcode_into_libs=$hardcode_into_libs
24464
24465# Flag to hardcode \$libdir into a binary during linking.
24466# This must work even if \$libdir does not exist.
24467hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24468
24469# If ld is used when linking, flag to hardcode \$libdir into
24470# a binary during linking. This must work even if \$libdir does
24471# not exist.
24472hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24473
24474# Whether we need a single -rpath flag with a separated argument.
24475hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24476
24477# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24478# resulting binary.
24479hardcode_direct=$hardcode_direct_RC
24480
24481# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24482# resulting binary.
24483hardcode_minus_L=$hardcode_minus_L_RC
24484
24485# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24486# the resulting binary.
24487hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24488
24489# Set to yes if building a shared library automatically hardcodes DIR into the library
24490# and all subsequent libraries and executables linked against it.
24491hardcode_automatic=$hardcode_automatic_RC
24492
24493# Variables whose values should be saved in libtool wrapper scripts and
24494# restored at relink time.
24495variables_saved_for_relink="$variables_saved_for_relink"
24496
24497# Whether libtool must link a program against all its dependency libraries.
24498link_all_deplibs=$link_all_deplibs_RC
24499
24500# Compile-time system search path for libraries
24501sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24502
24503# Run-time system search path for libraries
24504sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24505
24506# Fix the shell variable \$srcfile for the compiler.
24507fix_srcfile_path="$fix_srcfile_path_RC"
24508
24509# Set to yes if exported symbols are required.
24510always_export_symbols=$always_export_symbols_RC
24511
24512# The commands to list exported symbols.
24513export_symbols_cmds=$lt_export_symbols_cmds_RC
24514
24515# The commands to extract the exported symbol list from a shared archive.
24516extract_expsyms_cmds=$lt_extract_expsyms_cmds
24517
24518# Symbols that should not be listed in the preloaded symbols.
24519exclude_expsyms=$lt_exclude_expsyms_RC
24520
24521# Symbols that must always be exported.
24522include_expsyms=$lt_include_expsyms_RC
24523
24524# ### END LIBTOOL TAG CONFIG: $tagname
24525
24526__EOF__
24527
24528
24529else
24530 # If there is no Makefile yet, we rely on a make rule to execute
24531 # `config.status --recheck' to rerun these tests and create the
24532 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024533 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24534 if test -f "$ltmain_in"; then
24535 test -f Makefile && make "$ltmain"
24536 fi
John Criswell47fdd832003-07-14 16:52:07 +000024537fi
24538
24539
24540ac_ext=c
24541ac_cpp='$CPP $CPPFLAGS'
24542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24544ac_compiler_gnu=$ac_cv_c_compiler_gnu
24545
24546CC="$lt_save_CC"
24547
24548 ;;
24549
24550 *)
24551 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24552echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24553 { (exit 1); exit 1; }; }
24554 ;;
24555 esac
24556
24557 # Append the new tag name to the list of available tags.
24558 if test -n "$tagname" ; then
24559 available_tags="$available_tags $tagname"
24560 fi
24561 fi
24562 done
24563 IFS="$lt_save_ifs"
24564
24565 # Now substitute the updated list of available tags.
24566 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24567 mv "${ofile}T" "$ofile"
24568 chmod +x "$ofile"
24569 else
24570 rm -f "${ofile}T"
24571 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24572echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24573 { (exit 1); exit 1; }; }
24574 fi
24575fi
John Criswell7a73b802003-06-30 21:59:07 +000024576
24577
24578
24579# This can be used to rebuild libtool when needed
24580LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24581
24582# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024583LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024584
24585# Prevent multiple expansion
24586
24587
24588
John Criswell47fdd832003-07-14 16:52:07 +000024589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024606
Reid Spencer582a23c2004-12-29 07:07:57 +000024607if test "$lt_cv_dlopen_self" = "yes" ; then
24608
24609cat >>confdefs.h <<\_ACEOF
24610#define CAN_DLOPEN_SELF 1
24611_ACEOF
24612
24613fi
24614
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024615etags_version=`$ETAGS --version 2>&1`
24616case "$etags_version" in
24617 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24618 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24619 *) ETAGSFLAGS="" ;;
24620esac
24621ETAGSFLAGS=$ETAGSFLAGS
24622
24623
Reid Spencer7931a782004-12-27 06:15:02 +000024624if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencer59473af2004-12-25 07:31:29 +000024625 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24626set dummy llvm-gcc; ac_word=$2
24627echo "$as_me:$LINENO: checking for $ac_word" >&5
24628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24629if test "${ac_cv_path_LLVMGCC+set}" = set; then
24630 echo $ECHO_N "(cached) $ECHO_C" >&6
24631else
24632 case $LLVMGCC in
24633 [\\/]* | ?:[\\/]*)
24634 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24635 ;;
24636 *)
24637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24638for as_dir in $PATH
24639do
24640 IFS=$as_save_IFS
24641 test -z "$as_dir" && as_dir=.
24642 for ac_exec_ext in '' $ac_executable_extensions; do
24643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24644 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24646 break 2
24647 fi
24648done
24649done
24650
Reid Spencer59473af2004-12-25 07:31:29 +000024651 ;;
24652esac
24653fi
24654LLVMGCC=$ac_cv_path_LLVMGCC
24655
24656if test -n "$LLVMGCC"; then
24657 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24658echo "${ECHO_T}$LLVMGCC" >&6
24659else
24660 echo "$as_me:$LINENO: result: no" >&5
24661echo "${ECHO_T}no" >&6
24662fi
24663
24664 # Extract the first word of "llvm-g++", so it can be a program name with args.
24665set dummy llvm-g++; ac_word=$2
24666echo "$as_me:$LINENO: checking for $ac_word" >&5
24667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24668if test "${ac_cv_path_LLVMGXX+set}" = set; then
24669 echo $ECHO_N "(cached) $ECHO_C" >&6
24670else
24671 case $LLVMGXX in
24672 [\\/]* | ?:[\\/]*)
24673 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24674 ;;
24675 *)
24676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24677for as_dir in $PATH
24678do
24679 IFS=$as_save_IFS
24680 test -z "$as_dir" && as_dir=.
24681 for ac_exec_ext in '' $ac_executable_extensions; do
24682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24683 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24685 break 2
24686 fi
24687done
24688done
24689
Reid Spencer59473af2004-12-25 07:31:29 +000024690 ;;
24691esac
24692fi
24693LLVMGXX=$ac_cv_path_LLVMGXX
24694
24695if test -n "$LLVMGXX"; then
24696 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24697echo "${ECHO_T}$LLVMGXX" >&6
24698else
24699 echo "$as_me:$LINENO: result: no" >&5
24700echo "${ECHO_T}no" >&6
24701fi
24702
24703else
24704 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24705 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24706 LLVMGCC=$LLVMGCC
24707
24708 LLVMGXX=$LLVMGXX
24709
24710fi
24711
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024712echo "$as_me:$LINENO: checking tool compatibility" >&5
24713echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24714
Reid Spencer86901802004-12-08 23:07:27 +000024715ICC=no
24716IXX=no
24717case $CC in
24718 icc*|icpc*)
24719 ICC=yes
24720 IXX=yes
24721 ;;
24722 *)
24723 ;;
24724esac
24725
24726if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024727then
Reid Spencer86901802004-12-08 23:07:27 +000024728 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24729echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024730 { (exit 1); exit 1; }; }
24731fi
24732
Reid Spencer86901802004-12-08 23:07:27 +000024733if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024734then
Reid Spencer86901802004-12-08 23:07:27 +000024735 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24736echo "$as_me: error: g++|icc required but not found" >&2;}
24737 { (exit 1); exit 1; }; }
24738fi
24739
24740if test "$GCC" = "yes"
24741then
24742 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24743 if test "$gccmajor" -lt "3"
24744 then
24745 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024746echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24747 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024748 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024749fi
24750
24751if test -z "$llvm_cv_gnu_make_command"
24752then
24753 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24754echo "$as_me: error: GNU Make required but not found" >&2;}
24755 { (exit 1); exit 1; }; }
24756fi
24757
24758echo "$as_me:$LINENO: result: ok" >&5
24759echo "${ECHO_T}ok" >&6
24760
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024761
John Criswell7a73b802003-06-30 21:59:07 +000024762
John Criswell7a73b802003-06-30 21:59:07 +000024763echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24764echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24765if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24767else
24768 ac_check_lib_save_LIBS=$LIBS
24769LIBS="-lelf $LIBS"
24770cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024771/* confdefs.h. */
24772_ACEOF
24773cat confdefs.h >>conftest.$ac_ext
24774cat >>conftest.$ac_ext <<_ACEOF
24775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024776
24777/* Override any gcc2 internal prototype to avoid an error. */
24778#ifdef __cplusplus
24779extern "C"
24780#endif
24781/* We use char because int might match the return type of a gcc2
24782 builtin and then its argument prototype would still apply. */
24783char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024784int
24785main ()
24786{
24787elf_begin ();
24788 ;
24789 return 0;
24790}
24791_ACEOF
24792rm -f conftest.$ac_objext conftest$ac_exeext
24793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024794 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024795 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024796 grep -v '^ *+' conftest.er1 >conftest.err
24797 rm -f conftest.er1
24798 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024801 { ac_try='test -z "$ac_c_werror_flag"
24802 || test ! -s conftest.err'
24803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24804 (eval $ac_try) 2>&5
24805 ac_status=$?
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); }; } &&
24808 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810 (eval $ac_try) 2>&5
24811 ac_status=$?
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); }; }; then
24814 ac_cv_lib_elf_elf_begin=yes
24815else
24816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024817sed 's/^/| /' conftest.$ac_ext >&5
24818
John Criswell7a73b802003-06-30 21:59:07 +000024819ac_cv_lib_elf_elf_begin=no
24820fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024821rm -f conftest.err conftest.$ac_objext \
24822 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024823LIBS=$ac_check_lib_save_LIBS
24824fi
24825echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24826echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24827if test $ac_cv_lib_elf_elf_begin = yes; then
24828 cat >>confdefs.h <<_ACEOF
24829#define HAVE_LIBELF 1
24830_ACEOF
24831
24832 LIBS="-lelf $LIBS"
24833
24834fi
24835
24836
Reid Spencer17795972004-11-18 09:47:37 +000024837echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24838echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24839if test "${ac_cv_search_lt_dlopen+set}" = set; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24841else
24842 ac_func_search_save_LIBS=$LIBS
24843ac_cv_search_lt_dlopen=no
24844cat >conftest.$ac_ext <<_ACEOF
24845/* confdefs.h. */
24846_ACEOF
24847cat confdefs.h >>conftest.$ac_ext
24848cat >>conftest.$ac_ext <<_ACEOF
24849/* end confdefs.h. */
24850
24851/* Override any gcc2 internal prototype to avoid an error. */
24852#ifdef __cplusplus
24853extern "C"
24854#endif
24855/* We use char because int might match the return type of a gcc2
24856 builtin and then its argument prototype would still apply. */
24857char lt_dlopen ();
24858int
24859main ()
24860{
24861lt_dlopen ();
24862 ;
24863 return 0;
24864}
24865_ACEOF
24866rm -f conftest.$ac_objext conftest$ac_exeext
24867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24868 (eval $ac_link) 2>conftest.er1
24869 ac_status=$?
24870 grep -v '^ *+' conftest.er1 >conftest.err
24871 rm -f conftest.er1
24872 cat conftest.err >&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } &&
24875 { ac_try='test -z "$ac_c_werror_flag"
24876 || test ! -s conftest.err'
24877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878 (eval $ac_try) 2>&5
24879 ac_status=$?
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); }; } &&
24882 { ac_try='test -s conftest$ac_exeext'
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24885 ac_status=$?
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; }; then
24888 ac_cv_search_lt_dlopen="none required"
24889else
24890 echo "$as_me: failed program was:" >&5
24891sed 's/^/| /' conftest.$ac_ext >&5
24892
24893fi
24894rm -f conftest.err conftest.$ac_objext \
24895 conftest$ac_exeext conftest.$ac_ext
24896if test "$ac_cv_search_lt_dlopen" = no; then
24897 for ac_lib in ltdl; do
24898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24899 cat >conftest.$ac_ext <<_ACEOF
24900/* confdefs.h. */
24901_ACEOF
24902cat confdefs.h >>conftest.$ac_ext
24903cat >>conftest.$ac_ext <<_ACEOF
24904/* end confdefs.h. */
24905
24906/* Override any gcc2 internal prototype to avoid an error. */
24907#ifdef __cplusplus
24908extern "C"
24909#endif
24910/* We use char because int might match the return type of a gcc2
24911 builtin and then its argument prototype would still apply. */
24912char lt_dlopen ();
24913int
24914main ()
24915{
24916lt_dlopen ();
24917 ;
24918 return 0;
24919}
24920_ACEOF
24921rm -f conftest.$ac_objext conftest$ac_exeext
24922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24923 (eval $ac_link) 2>conftest.er1
24924 ac_status=$?
24925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag"
24931 || test ! -s conftest.err'
24932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24933 (eval $ac_try) 2>&5
24934 ac_status=$?
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); }; } &&
24937 { ac_try='test -s conftest$ac_exeext'
24938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939 (eval $ac_try) 2>&5
24940 ac_status=$?
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); }; }; then
24943 ac_cv_search_lt_dlopen="-l$ac_lib"
24944break
24945else
24946 echo "$as_me: failed program was:" >&5
24947sed 's/^/| /' conftest.$ac_ext >&5
24948
24949fi
24950rm -f conftest.err conftest.$ac_objext \
24951 conftest$ac_exeext conftest.$ac_ext
24952 done
24953fi
24954LIBS=$ac_func_search_save_LIBS
24955fi
24956echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24957echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24958if test "$ac_cv_search_lt_dlopen" != no; then
24959 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24960
24961cat >>confdefs.h <<\_ACEOF
24962#define HAVE_LT_DLOPEN 1
24963_ACEOF
24964
24965else
24966 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24967 not be available" >&5
24968echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24969 not be available" >&2;}
24970fi
24971
24972
John Criswell7a73b802003-06-30 21:59:07 +000024973echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24974echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24975if test "${ac_cv_search_dlopen+set}" = set; then
24976 echo $ECHO_N "(cached) $ECHO_C" >&6
24977else
24978 ac_func_search_save_LIBS=$LIBS
24979ac_cv_search_dlopen=no
24980cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024981/* confdefs.h. */
24982_ACEOF
24983cat confdefs.h >>conftest.$ac_ext
24984cat >>conftest.$ac_ext <<_ACEOF
24985/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024986
24987/* Override any gcc2 internal prototype to avoid an error. */
24988#ifdef __cplusplus
24989extern "C"
24990#endif
24991/* We use char because int might match the return type of a gcc2
24992 builtin and then its argument prototype would still apply. */
24993char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024994int
24995main ()
24996{
24997dlopen ();
24998 ;
24999 return 0;
25000}
25001_ACEOF
25002rm -f conftest.$ac_objext conftest$ac_exeext
25003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025004 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025005 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025006 grep -v '^ *+' conftest.er1 >conftest.err
25007 rm -f conftest.er1
25008 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025011 { ac_try='test -z "$ac_c_werror_flag"
25012 || test ! -s conftest.err'
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; } &&
25018 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; }; then
25024 ac_cv_search_dlopen="none required"
25025else
25026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025027sed 's/^/| /' conftest.$ac_ext >&5
25028
John Criswell7a73b802003-06-30 21:59:07 +000025029fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025030rm -f conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025032if test "$ac_cv_search_dlopen" = no; then
25033 for ac_lib in dl; do
25034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25035 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025036/* confdefs.h. */
25037_ACEOF
25038cat confdefs.h >>conftest.$ac_ext
25039cat >>conftest.$ac_ext <<_ACEOF
25040/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025041
25042/* Override any gcc2 internal prototype to avoid an error. */
25043#ifdef __cplusplus
25044extern "C"
25045#endif
25046/* We use char because int might match the return type of a gcc2
25047 builtin and then its argument prototype would still apply. */
25048char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025049int
25050main ()
25051{
25052dlopen ();
25053 ;
25054 return 0;
25055}
25056_ACEOF
25057rm -f conftest.$ac_objext conftest$ac_exeext
25058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025059 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025060 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025061 grep -v '^ *+' conftest.er1 >conftest.err
25062 rm -f conftest.er1
25063 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025066 { ac_try='test -z "$ac_c_werror_flag"
25067 || test ! -s conftest.err'
25068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069 (eval $ac_try) 2>&5
25070 ac_status=$?
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); }; } &&
25073 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
25079 ac_cv_search_dlopen="-l$ac_lib"
25080break
25081else
25082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025083sed 's/^/| /' conftest.$ac_ext >&5
25084
John Criswell7a73b802003-06-30 21:59:07 +000025085fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025086rm -f conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025088 done
25089fi
25090LIBS=$ac_func_search_save_LIBS
25091fi
25092echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25093echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25094if test "$ac_cv_search_dlopen" != no; then
25095 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025096
25097cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025098#define HAVE_DLOPEN 1
25099_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025100
25101else
Brian Gaekec45be042003-10-07 06:01:34 +000025102 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25103echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025104fi
25105
25106
25107echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25108echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25109if test "${ac_cv_search_mallinfo+set}" = set; then
25110 echo $ECHO_N "(cached) $ECHO_C" >&6
25111else
25112 ac_func_search_save_LIBS=$LIBS
25113ac_cv_search_mallinfo=no
25114cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025115/* confdefs.h. */
25116_ACEOF
25117cat confdefs.h >>conftest.$ac_ext
25118cat >>conftest.$ac_ext <<_ACEOF
25119/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025120
25121/* Override any gcc2 internal prototype to avoid an error. */
25122#ifdef __cplusplus
25123extern "C"
25124#endif
25125/* We use char because int might match the return type of a gcc2
25126 builtin and then its argument prototype would still apply. */
25127char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025128int
25129main ()
25130{
25131mallinfo ();
25132 ;
25133 return 0;
25134}
25135_ACEOF
25136rm -f conftest.$ac_objext conftest$ac_exeext
25137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025138 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025139 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025140 grep -v '^ *+' conftest.er1 >conftest.err
25141 rm -f conftest.er1
25142 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025145 { ac_try='test -z "$ac_c_werror_flag"
25146 || test ! -s conftest.err'
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; } &&
25152 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154 (eval $ac_try) 2>&5
25155 ac_status=$?
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); }; }; then
25158 ac_cv_search_mallinfo="none required"
25159else
25160 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025161sed 's/^/| /' conftest.$ac_ext >&5
25162
John Criswell7a73b802003-06-30 21:59:07 +000025163fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025164rm -f conftest.err conftest.$ac_objext \
25165 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025166if test "$ac_cv_search_mallinfo" = no; then
25167 for ac_lib in malloc; do
25168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25169 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025170/* confdefs.h. */
25171_ACEOF
25172cat confdefs.h >>conftest.$ac_ext
25173cat >>conftest.$ac_ext <<_ACEOF
25174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025175
25176/* Override any gcc2 internal prototype to avoid an error. */
25177#ifdef __cplusplus
25178extern "C"
25179#endif
25180/* We use char because int might match the return type of a gcc2
25181 builtin and then its argument prototype would still apply. */
25182char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025183int
25184main ()
25185{
25186mallinfo ();
25187 ;
25188 return 0;
25189}
25190_ACEOF
25191rm -f conftest.$ac_objext conftest$ac_exeext
25192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025193 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025194 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025195 grep -v '^ *+' conftest.er1 >conftest.err
25196 rm -f conftest.er1
25197 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025200 { ac_try='test -z "$ac_c_werror_flag"
25201 || test ! -s conftest.err'
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25204 ac_status=$?
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; } &&
25207 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; }; then
25213 ac_cv_search_mallinfo="-l$ac_lib"
25214break
25215else
25216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025217sed 's/^/| /' conftest.$ac_ext >&5
25218
John Criswell7a73b802003-06-30 21:59:07 +000025219fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025220rm -f conftest.err conftest.$ac_objext \
25221 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025222 done
25223fi
25224LIBS=$ac_func_search_save_LIBS
25225fi
25226echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25227echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25228if test "$ac_cv_search_mallinfo" != no; then
25229 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025230
25231cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025232#define HAVE_MALLINFO 1
25233_ACEOF
25234
25235fi
25236
25237
Brian Gaeke5f268f72003-12-05 19:29:01 +000025238echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25239echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25240if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25241 echo $ECHO_N "(cached) $ECHO_C" >&6
25242else
25243 ac_func_search_save_LIBS=$LIBS
25244ac_cv_search_pthread_mutex_lock=no
25245cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025246/* confdefs.h. */
25247_ACEOF
25248cat confdefs.h >>conftest.$ac_ext
25249cat >>conftest.$ac_ext <<_ACEOF
25250/* end confdefs.h. */
25251
25252/* Override any gcc2 internal prototype to avoid an error. */
25253#ifdef __cplusplus
25254extern "C"
25255#endif
25256/* We use char because int might match the return type of a gcc2
25257 builtin and then its argument prototype would still apply. */
25258char pthread_mutex_lock ();
25259int
25260main ()
25261{
25262pthread_mutex_lock ();
25263 ;
25264 return 0;
25265}
25266_ACEOF
25267rm -f conftest.$ac_objext conftest$ac_exeext
25268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025269 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025270 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025271 grep -v '^ *+' conftest.er1 >conftest.err
25272 rm -f conftest.er1
25273 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025276 { ac_try='test -z "$ac_c_werror_flag"
25277 || test ! -s conftest.err'
25278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25279 (eval $ac_try) 2>&5
25280 ac_status=$?
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); }; } &&
25283 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285 (eval $ac_try) 2>&5
25286 ac_status=$?
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); }; }; then
25289 ac_cv_search_pthread_mutex_lock="none required"
25290else
25291 echo "$as_me: failed program was:" >&5
25292sed 's/^/| /' conftest.$ac_ext >&5
25293
25294fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025295rm -f conftest.err conftest.$ac_objext \
25296 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025297if test "$ac_cv_search_pthread_mutex_lock" = no; then
25298 for ac_lib in pthread; do
25299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25300 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025301/* confdefs.h. */
25302_ACEOF
25303cat confdefs.h >>conftest.$ac_ext
25304cat >>conftest.$ac_ext <<_ACEOF
25305/* end confdefs.h. */
25306
25307/* Override any gcc2 internal prototype to avoid an error. */
25308#ifdef __cplusplus
25309extern "C"
25310#endif
25311/* We use char because int might match the return type of a gcc2
25312 builtin and then its argument prototype would still apply. */
25313char pthread_mutex_lock ();
25314int
25315main ()
25316{
25317pthread_mutex_lock ();
25318 ;
25319 return 0;
25320}
25321_ACEOF
25322rm -f conftest.$ac_objext conftest$ac_exeext
25323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025324 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025325 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025326 grep -v '^ *+' conftest.er1 >conftest.err
25327 rm -f conftest.er1
25328 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025331 { ac_try='test -z "$ac_c_werror_flag"
25332 || test ! -s conftest.err'
25333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334 (eval $ac_try) 2>&5
25335 ac_status=$?
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); }; } &&
25338 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25341 ac_status=$?
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; }; then
25344 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25345break
25346else
25347 echo "$as_me: failed program was:" >&5
25348sed 's/^/| /' conftest.$ac_ext >&5
25349
25350fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025351rm -f conftest.err conftest.$ac_objext \
25352 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025353 done
25354fi
25355LIBS=$ac_func_search_save_LIBS
25356fi
25357echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25358echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25359if test "$ac_cv_search_pthread_mutex_lock" != no; then
25360 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025361
John Criswell40468462004-09-24 21:19:06 +000025362cat >>confdefs.h <<\_ACEOF
25363#define HAVE_PTHREAD_MUTEX_LOCK 1
25364_ACEOF
25365
25366fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025367
Brian Gaekec9a410c2004-02-23 21:30:37 +000025368
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025369
Reid Spencer59473af2004-12-25 07:31:29 +000025370
25371
25372
25373
25374
25375ac_header_dirent=no
25376for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25377 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25378echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25379echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25380if eval "test \"\${$as_ac_Header+set}\" = set"; then
25381 echo $ECHO_N "(cached) $ECHO_C" >&6
25382else
25383 cat >conftest.$ac_ext <<_ACEOF
25384/* confdefs.h. */
25385_ACEOF
25386cat confdefs.h >>conftest.$ac_ext
25387cat >>conftest.$ac_ext <<_ACEOF
25388/* end confdefs.h. */
25389#include <sys/types.h>
25390#include <$ac_hdr>
25391
25392int
25393main ()
25394{
25395if ((DIR *) 0)
25396return 0;
25397 ;
25398 return 0;
25399}
25400_ACEOF
25401rm -f conftest.$ac_objext
25402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25403 (eval $ac_compile) 2>conftest.er1
25404 ac_status=$?
25405 grep -v '^ *+' conftest.er1 >conftest.err
25406 rm -f conftest.er1
25407 cat conftest.err >&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } &&
25410 { ac_try='test -z "$ac_c_werror_flag"
25411 || test ! -s conftest.err'
25412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413 (eval $ac_try) 2>&5
25414 ac_status=$?
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); }; } &&
25417 { ac_try='test -s conftest.$ac_objext'
25418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419 (eval $ac_try) 2>&5
25420 ac_status=$?
25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); }; }; then
25423 eval "$as_ac_Header=yes"
25424else
25425 echo "$as_me: failed program was:" >&5
25426sed 's/^/| /' conftest.$ac_ext >&5
25427
25428eval "$as_ac_Header=no"
25429fi
25430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25431fi
25432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25434if test `eval echo '${'$as_ac_Header'}'` = yes; then
25435 cat >>confdefs.h <<_ACEOF
25436#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25437_ACEOF
25438
25439ac_header_dirent=$ac_hdr; break
25440fi
25441
25442done
25443# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25444if test $ac_header_dirent = dirent.h; then
25445 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25446echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25447if test "${ac_cv_search_opendir+set}" = set; then
25448 echo $ECHO_N "(cached) $ECHO_C" >&6
25449else
25450 ac_func_search_save_LIBS=$LIBS
25451ac_cv_search_opendir=no
25452cat >conftest.$ac_ext <<_ACEOF
25453/* confdefs.h. */
25454_ACEOF
25455cat confdefs.h >>conftest.$ac_ext
25456cat >>conftest.$ac_ext <<_ACEOF
25457/* end confdefs.h. */
25458
25459/* Override any gcc2 internal prototype to avoid an error. */
25460#ifdef __cplusplus
25461extern "C"
25462#endif
25463/* We use char because int might match the return type of a gcc2
25464 builtin and then its argument prototype would still apply. */
25465char opendir ();
25466int
25467main ()
25468{
25469opendir ();
25470 ;
25471 return 0;
25472}
25473_ACEOF
25474rm -f conftest.$ac_objext conftest$ac_exeext
25475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25476 (eval $ac_link) 2>conftest.er1
25477 ac_status=$?
25478 grep -v '^ *+' conftest.er1 >conftest.err
25479 rm -f conftest.er1
25480 cat conftest.err >&5
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); } &&
25483 { ac_try='test -z "$ac_c_werror_flag"
25484 || test ! -s conftest.err'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25487 ac_status=$?
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; } &&
25490 { ac_try='test -s conftest$ac_exeext'
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25493 ac_status=$?
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; }; then
25496 ac_cv_search_opendir="none required"
25497else
25498 echo "$as_me: failed program was:" >&5
25499sed 's/^/| /' conftest.$ac_ext >&5
25500
25501fi
25502rm -f conftest.err conftest.$ac_objext \
25503 conftest$ac_exeext conftest.$ac_ext
25504if test "$ac_cv_search_opendir" = no; then
25505 for ac_lib in dir; do
25506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25507 cat >conftest.$ac_ext <<_ACEOF
25508/* confdefs.h. */
25509_ACEOF
25510cat confdefs.h >>conftest.$ac_ext
25511cat >>conftest.$ac_ext <<_ACEOF
25512/* end confdefs.h. */
25513
25514/* Override any gcc2 internal prototype to avoid an error. */
25515#ifdef __cplusplus
25516extern "C"
25517#endif
25518/* We use char because int might match the return type of a gcc2
25519 builtin and then its argument prototype would still apply. */
25520char opendir ();
25521int
25522main ()
25523{
25524opendir ();
25525 ;
25526 return 0;
25527}
25528_ACEOF
25529rm -f conftest.$ac_objext conftest$ac_exeext
25530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25531 (eval $ac_link) 2>conftest.er1
25532 ac_status=$?
25533 grep -v '^ *+' conftest.er1 >conftest.err
25534 rm -f conftest.er1
25535 cat conftest.err >&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } &&
25538 { ac_try='test -z "$ac_c_werror_flag"
25539 || test ! -s conftest.err'
25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541 (eval $ac_try) 2>&5
25542 ac_status=$?
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); }; } &&
25545 { ac_try='test -s conftest$ac_exeext'
25546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25547 (eval $ac_try) 2>&5
25548 ac_status=$?
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); }; }; then
25551 ac_cv_search_opendir="-l$ac_lib"
25552break
25553else
25554 echo "$as_me: failed program was:" >&5
25555sed 's/^/| /' conftest.$ac_ext >&5
25556
25557fi
25558rm -f conftest.err conftest.$ac_objext \
25559 conftest$ac_exeext conftest.$ac_ext
25560 done
25561fi
25562LIBS=$ac_func_search_save_LIBS
25563fi
25564echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25565echo "${ECHO_T}$ac_cv_search_opendir" >&6
25566if test "$ac_cv_search_opendir" != no; then
25567 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25568
25569fi
25570
25571else
25572 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25573echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25574if test "${ac_cv_search_opendir+set}" = set; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25576else
25577 ac_func_search_save_LIBS=$LIBS
25578ac_cv_search_opendir=no
25579cat >conftest.$ac_ext <<_ACEOF
25580/* confdefs.h. */
25581_ACEOF
25582cat confdefs.h >>conftest.$ac_ext
25583cat >>conftest.$ac_ext <<_ACEOF
25584/* end confdefs.h. */
25585
25586/* Override any gcc2 internal prototype to avoid an error. */
25587#ifdef __cplusplus
25588extern "C"
25589#endif
25590/* We use char because int might match the return type of a gcc2
25591 builtin and then its argument prototype would still apply. */
25592char opendir ();
25593int
25594main ()
25595{
25596opendir ();
25597 ;
25598 return 0;
25599}
25600_ACEOF
25601rm -f conftest.$ac_objext conftest$ac_exeext
25602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25603 (eval $ac_link) 2>conftest.er1
25604 ac_status=$?
25605 grep -v '^ *+' conftest.er1 >conftest.err
25606 rm -f conftest.er1
25607 cat conftest.err >&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); } &&
25610 { ac_try='test -z "$ac_c_werror_flag"
25611 || test ! -s conftest.err'
25612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25613 (eval $ac_try) 2>&5
25614 ac_status=$?
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }; } &&
25617 { ac_try='test -s conftest$ac_exeext'
25618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }; }; then
25623 ac_cv_search_opendir="none required"
25624else
25625 echo "$as_me: failed program was:" >&5
25626sed 's/^/| /' conftest.$ac_ext >&5
25627
25628fi
25629rm -f conftest.err conftest.$ac_objext \
25630 conftest$ac_exeext conftest.$ac_ext
25631if test "$ac_cv_search_opendir" = no; then
25632 for ac_lib in x; do
25633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25634 cat >conftest.$ac_ext <<_ACEOF
25635/* confdefs.h. */
25636_ACEOF
25637cat confdefs.h >>conftest.$ac_ext
25638cat >>conftest.$ac_ext <<_ACEOF
25639/* end confdefs.h. */
25640
25641/* Override any gcc2 internal prototype to avoid an error. */
25642#ifdef __cplusplus
25643extern "C"
25644#endif
25645/* We use char because int might match the return type of a gcc2
25646 builtin and then its argument prototype would still apply. */
25647char opendir ();
25648int
25649main ()
25650{
25651opendir ();
25652 ;
25653 return 0;
25654}
25655_ACEOF
25656rm -f conftest.$ac_objext conftest$ac_exeext
25657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25658 (eval $ac_link) 2>conftest.er1
25659 ac_status=$?
25660 grep -v '^ *+' conftest.er1 >conftest.err
25661 rm -f conftest.er1
25662 cat conftest.err >&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); } &&
25665 { ac_try='test -z "$ac_c_werror_flag"
25666 || test ! -s conftest.err'
25667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668 (eval $ac_try) 2>&5
25669 ac_status=$?
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); }; } &&
25672 { ac_try='test -s conftest$ac_exeext'
25673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674 (eval $ac_try) 2>&5
25675 ac_status=$?
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); }; }; then
25678 ac_cv_search_opendir="-l$ac_lib"
25679break
25680else
25681 echo "$as_me: failed program was:" >&5
25682sed 's/^/| /' conftest.$ac_ext >&5
25683
25684fi
25685rm -f conftest.err conftest.$ac_objext \
25686 conftest$ac_exeext conftest.$ac_ext
25687 done
25688fi
25689LIBS=$ac_func_search_save_LIBS
25690fi
25691echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25692echo "${ECHO_T}$ac_cv_search_opendir" >&6
25693if test "$ac_cv_search_opendir" != no; then
25694 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25695
25696fi
25697
25698fi
25699
25700echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25701echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25702if test "${ac_cv_header_mmap_anon+set}" = set; then
25703 echo $ECHO_N "(cached) $ECHO_C" >&6
25704else
25705 ac_ext=c
25706ac_cpp='$CPP $CPPFLAGS'
25707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25709ac_compiler_gnu=$ac_cv_c_compiler_gnu
25710
25711 cat >conftest.$ac_ext <<_ACEOF
25712/* confdefs.h. */
25713_ACEOF
25714cat confdefs.h >>conftest.$ac_ext
25715cat >>conftest.$ac_ext <<_ACEOF
25716/* end confdefs.h. */
25717#include <sys/mman.h>
25718#include <unistd.h>
25719#include <fcntl.h>
25720int
25721main ()
25722{
25723mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25724 ;
25725 return 0;
25726}
25727_ACEOF
25728rm -f conftest.$ac_objext
25729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25730 (eval $ac_compile) 2>conftest.er1
25731 ac_status=$?
25732 grep -v '^ *+' conftest.er1 >conftest.err
25733 rm -f conftest.er1
25734 cat conftest.err >&5
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } &&
25737 { ac_try='test -z "$ac_c_werror_flag"
25738 || test ! -s conftest.err'
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25741 ac_status=$?
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; } &&
25744 { ac_try='test -s conftest.$ac_objext'
25745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746 (eval $ac_try) 2>&5
25747 ac_status=$?
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); }; }; then
25750 ac_cv_header_mmap_anon=yes
25751else
25752 echo "$as_me: failed program was:" >&5
25753sed 's/^/| /' conftest.$ac_ext >&5
25754
25755ac_cv_header_mmap_anon=no
25756fi
25757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25758 ac_ext=c
25759ac_cpp='$CPP $CPPFLAGS'
25760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25762ac_compiler_gnu=$ac_cv_c_compiler_gnu
25763
25764
25765fi
25766echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25767echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25768if test "$ac_cv_header_mmap_anon" = yes; then
25769
25770cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000025771#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000025772_ACEOF
25773
25774fi
25775
25776echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25777echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25778if test "${ac_cv_header_stat_broken+set}" = set; then
25779 echo $ECHO_N "(cached) $ECHO_C" >&6
25780else
25781 cat >conftest.$ac_ext <<_ACEOF
25782/* confdefs.h. */
25783_ACEOF
25784cat confdefs.h >>conftest.$ac_ext
25785cat >>conftest.$ac_ext <<_ACEOF
25786/* end confdefs.h. */
25787#include <sys/types.h>
25788#include <sys/stat.h>
25789
25790#if defined(S_ISBLK) && defined(S_IFDIR)
25791# if S_ISBLK (S_IFDIR)
25792You lose.
25793# endif
25794#endif
25795
25796#if defined(S_ISBLK) && defined(S_IFCHR)
25797# if S_ISBLK (S_IFCHR)
25798You lose.
25799# endif
25800#endif
25801
25802#if defined(S_ISLNK) && defined(S_IFREG)
25803# if S_ISLNK (S_IFREG)
25804You lose.
25805# endif
25806#endif
25807
25808#if defined(S_ISSOCK) && defined(S_IFREG)
25809# if S_ISSOCK (S_IFREG)
25810You lose.
25811# endif
25812#endif
25813
25814_ACEOF
25815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25816 $EGREP "You lose" >/dev/null 2>&1; then
25817 ac_cv_header_stat_broken=yes
25818else
25819 ac_cv_header_stat_broken=no
25820fi
25821rm -f conftest*
25822
25823fi
25824echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25825echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25826if test $ac_cv_header_stat_broken = yes; then
25827
25828cat >>confdefs.h <<\_ACEOF
25829#define STAT_MACROS_BROKEN 1
25830_ACEOF
25831
25832fi
25833
John Criswell7a73b802003-06-30 21:59:07 +000025834echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25835echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25836if test "${ac_cv_header_stdc+set}" = set; then
25837 echo $ECHO_N "(cached) $ECHO_C" >&6
25838else
25839 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025840/* confdefs.h. */
25841_ACEOF
25842cat confdefs.h >>conftest.$ac_ext
25843cat >>conftest.$ac_ext <<_ACEOF
25844/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025845#include <stdlib.h>
25846#include <stdarg.h>
25847#include <string.h>
25848#include <float.h>
25849
John Criswell0c38eaf2003-09-10 15:17:25 +000025850int
25851main ()
25852{
25853
25854 ;
25855 return 0;
25856}
John Criswell7a73b802003-06-30 21:59:07 +000025857_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025858rm -f conftest.$ac_objext
25859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025860 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025861 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025862 grep -v '^ *+' conftest.er1 >conftest.err
25863 rm -f conftest.er1
25864 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025866 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025867 { ac_try='test -z "$ac_c_werror_flag"
25868 || test ! -s conftest.err'
25869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870 (eval $ac_try) 2>&5
25871 ac_status=$?
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); }; } &&
25874 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25877 ac_status=$?
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025880 ac_cv_header_stdc=yes
25881else
25882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025883sed 's/^/| /' conftest.$ac_ext >&5
25884
25885ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025886fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025888
25889if test $ac_cv_header_stdc = yes; then
25890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25891 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025892/* confdefs.h. */
25893_ACEOF
25894cat confdefs.h >>conftest.$ac_ext
25895cat >>conftest.$ac_ext <<_ACEOF
25896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025897#include <string.h>
25898
25899_ACEOF
25900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025901 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025902 :
25903else
25904 ac_cv_header_stdc=no
25905fi
25906rm -f conftest*
25907
25908fi
25909
25910if test $ac_cv_header_stdc = yes; then
25911 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25912 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025913/* confdefs.h. */
25914_ACEOF
25915cat confdefs.h >>conftest.$ac_ext
25916cat >>conftest.$ac_ext <<_ACEOF
25917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025918#include <stdlib.h>
25919
25920_ACEOF
25921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025922 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025923 :
25924else
25925 ac_cv_header_stdc=no
25926fi
25927rm -f conftest*
25928
25929fi
25930
25931if test $ac_cv_header_stdc = yes; then
25932 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25933 if test "$cross_compiling" = yes; then
25934 :
25935else
25936 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025937/* confdefs.h. */
25938_ACEOF
25939cat confdefs.h >>conftest.$ac_ext
25940cat >>conftest.$ac_ext <<_ACEOF
25941/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025942#include <ctype.h>
25943#if ((' ' & 0x0FF) == 0x020)
25944# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25945# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25946#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025947# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025948 (('a' <= (c) && (c) <= 'i') \
25949 || ('j' <= (c) && (c) <= 'r') \
25950 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025951# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25952#endif
25953
25954#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25955int
25956main ()
25957{
25958 int i;
25959 for (i = 0; i < 256; i++)
25960 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025961 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025962 exit(2);
25963 exit (0);
25964}
25965_ACEOF
25966rm -f conftest$ac_exeext
25967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25968 (eval $ac_link) 2>&5
25969 ac_status=$?
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25974 ac_status=$?
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
25977 :
25978else
25979 echo "$as_me: program exited with status $ac_status" >&5
25980echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025981sed 's/^/| /' conftest.$ac_ext >&5
25982
John Criswell7a73b802003-06-30 21:59:07 +000025983( exit $ac_status )
25984ac_cv_header_stdc=no
25985fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025986rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025987fi
25988fi
25989fi
25990echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25991echo "${ECHO_T}$ac_cv_header_stdc" >&6
25992if test $ac_cv_header_stdc = yes; then
25993
25994cat >>confdefs.h <<\_ACEOF
25995#define STDC_HEADERS 1
25996_ACEOF
25997
25998fi
25999
26000echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26001echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26002if test "${ac_cv_header_sys_wait_h+set}" = set; then
26003 echo $ECHO_N "(cached) $ECHO_C" >&6
26004else
26005 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026006/* confdefs.h. */
26007_ACEOF
26008cat confdefs.h >>conftest.$ac_ext
26009cat >>conftest.$ac_ext <<_ACEOF
26010/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026011#include <sys/types.h>
26012#include <sys/wait.h>
26013#ifndef WEXITSTATUS
26014# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26015#endif
26016#ifndef WIFEXITED
26017# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26018#endif
26019
John Criswell7a73b802003-06-30 21:59:07 +000026020int
26021main ()
26022{
26023 int s;
26024 wait (&s);
26025 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26026 ;
26027 return 0;
26028}
26029_ACEOF
26030rm -f conftest.$ac_objext
26031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026032 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026033 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026034 grep -v '^ *+' conftest.er1 >conftest.err
26035 rm -f conftest.er1
26036 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026039 { ac_try='test -z "$ac_c_werror_flag"
26040 || test ! -s conftest.err'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26043 ac_status=$?
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; } &&
26046 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048 (eval $ac_try) 2>&5
26049 ac_status=$?
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; }; then
26052 ac_cv_header_sys_wait_h=yes
26053else
26054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026055sed 's/^/| /' conftest.$ac_ext >&5
26056
John Criswell7a73b802003-06-30 21:59:07 +000026057ac_cv_header_sys_wait_h=no
26058fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026060fi
26061echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26062echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26063if test $ac_cv_header_sys_wait_h = yes; then
26064
26065cat >>confdefs.h <<\_ACEOF
26066#define HAVE_SYS_WAIT_H 1
26067_ACEOF
26068
26069fi
26070
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026071echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26072echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26073if test "${ac_cv_header_time+set}" = set; then
26074 echo $ECHO_N "(cached) $ECHO_C" >&6
26075else
26076 cat >conftest.$ac_ext <<_ACEOF
26077/* confdefs.h. */
26078_ACEOF
26079cat confdefs.h >>conftest.$ac_ext
26080cat >>conftest.$ac_ext <<_ACEOF
26081/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026082#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026083#include <sys/time.h>
26084#include <time.h>
26085
26086int
26087main ()
26088{
26089if ((struct tm *) 0)
26090return 0;
26091 ;
26092 return 0;
26093}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026094_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026095rm -f conftest.$ac_objext
26096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26097 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026098 ac_status=$?
26099 grep -v '^ *+' conftest.er1 >conftest.err
26100 rm -f conftest.er1
26101 cat conftest.err >&5
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026103 (exit $ac_status); } &&
26104 { ac_try='test -z "$ac_c_werror_flag"
26105 || test ! -s conftest.err'
26106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26107 (eval $ac_try) 2>&5
26108 ac_status=$?
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); }; } &&
26111 { ac_try='test -s conftest.$ac_objext'
26112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113 (eval $ac_try) 2>&5
26114 ac_status=$?
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); }; }; then
26117 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026118else
26119 echo "$as_me: failed program was:" >&5
26120sed 's/^/| /' conftest.$ac_ext >&5
26121
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026122ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026123fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26125fi
26126echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26127echo "${ECHO_T}$ac_cv_header_time" >&6
26128if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026129
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026130cat >>confdefs.h <<\_ACEOF
26131#define TIME_WITH_SYS_TIME 1
26132_ACEOF
26133
26134fi
26135
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026136
Reid Spencer59473af2004-12-25 07:31:29 +000026137
26138
26139
26140
26141
26142
26143for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26144do
26145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26146if eval "test \"\${$as_ac_Header+set}\" = set"; then
26147 echo "$as_me:$LINENO: checking for $ac_header" >&5
26148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26149if eval "test \"\${$as_ac_Header+set}\" = set"; then
26150 echo $ECHO_N "(cached) $ECHO_C" >&6
26151fi
26152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26154else
26155 # Is the header compilable?
26156echo "$as_me:$LINENO: checking $ac_header usability" >&5
26157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26158cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026159/* confdefs.h. */
26160_ACEOF
26161cat confdefs.h >>conftest.$ac_ext
26162cat >>conftest.$ac_ext <<_ACEOF
26163/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026164$ac_includes_default
26165#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026166_ACEOF
26167rm -f conftest.$ac_objext
26168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26169 (eval $ac_compile) 2>conftest.er1
26170 ac_status=$?
26171 grep -v '^ *+' conftest.er1 >conftest.err
26172 rm -f conftest.er1
26173 cat conftest.err >&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } &&
26176 { ac_try='test -z "$ac_c_werror_flag"
26177 || test ! -s conftest.err'
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26180 ac_status=$?
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; } &&
26183 { ac_try='test -s conftest.$ac_objext'
26184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185 (eval $ac_try) 2>&5
26186 ac_status=$?
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026189 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026190else
26191 echo "$as_me: failed program was:" >&5
26192sed 's/^/| /' conftest.$ac_ext >&5
26193
Reid Spencer59473af2004-12-25 07:31:29 +000026194ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026195fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26198echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026199
Reid Spencer59473af2004-12-25 07:31:29 +000026200# Is the header present?
26201echo "$as_me:$LINENO: checking $ac_header presence" >&5
26202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26203cat >conftest.$ac_ext <<_ACEOF
26204/* confdefs.h. */
26205_ACEOF
26206cat confdefs.h >>conftest.$ac_ext
26207cat >>conftest.$ac_ext <<_ACEOF
26208/* end confdefs.h. */
26209#include <$ac_header>
26210_ACEOF
26211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26213 ac_status=$?
26214 grep -v '^ *+' conftest.er1 >conftest.err
26215 rm -f conftest.er1
26216 cat conftest.err >&5
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); } >/dev/null; then
26219 if test -s conftest.err; then
26220 ac_cpp_err=$ac_c_preproc_warn_flag
26221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26222 else
26223 ac_cpp_err=
26224 fi
26225else
26226 ac_cpp_err=yes
26227fi
26228if test -z "$ac_cpp_err"; then
26229 ac_header_preproc=yes
26230else
26231 echo "$as_me: failed program was:" >&5
26232sed 's/^/| /' conftest.$ac_ext >&5
26233
26234 ac_header_preproc=no
26235fi
26236rm -f conftest.err conftest.$ac_ext
26237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26238echo "${ECHO_T}$ac_header_preproc" >&6
26239
26240# So? What about this header?
26241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26242 yes:no: )
26243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26247 ac_header_preproc=yes
26248 ;;
26249 no:yes:* )
26250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26257echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26262 (
26263 cat <<\_ASBOX
26264## ----------------------------------- ##
26265## Report this to llvmbugs@cs.uiuc.edu ##
26266## ----------------------------------- ##
26267_ASBOX
26268 ) |
26269 sed "s/^/$as_me: WARNING: /" >&2
26270 ;;
26271esac
26272echo "$as_me:$LINENO: checking for $ac_header" >&5
26273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26274if eval "test \"\${$as_ac_Header+set}\" = set"; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26276else
26277 eval "$as_ac_Header=\$ac_header_preproc"
26278fi
26279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026281
26282fi
Reid Spencer59473af2004-12-25 07:31:29 +000026283if test `eval echo '${'$as_ac_Header'}'` = yes; then
26284 cat >>confdefs.h <<_ACEOF
26285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026286_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026287
26288fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026289
Reid Spencer59473af2004-12-25 07:31:29 +000026290done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026291
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026292
26293
Reid Spencer59473af2004-12-25 07:31:29 +000026294
26295
26296
26297
26298for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26299do
26300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26301if eval "test \"\${$as_ac_Header+set}\" = set"; then
26302 echo "$as_me:$LINENO: checking for $ac_header" >&5
26303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26304if eval "test \"\${$as_ac_Header+set}\" = set"; then
26305 echo $ECHO_N "(cached) $ECHO_C" >&6
26306fi
26307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26309else
26310 # Is the header compilable?
26311echo "$as_me:$LINENO: checking $ac_header usability" >&5
26312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26313cat >conftest.$ac_ext <<_ACEOF
26314/* confdefs.h. */
26315_ACEOF
26316cat confdefs.h >>conftest.$ac_ext
26317cat >>conftest.$ac_ext <<_ACEOF
26318/* end confdefs.h. */
26319$ac_includes_default
26320#include <$ac_header>
26321_ACEOF
26322rm -f conftest.$ac_objext
26323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26324 (eval $ac_compile) 2>conftest.er1
26325 ac_status=$?
26326 grep -v '^ *+' conftest.er1 >conftest.err
26327 rm -f conftest.er1
26328 cat conftest.err >&5
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); } &&
26331 { ac_try='test -z "$ac_c_werror_flag"
26332 || test ! -s conftest.err'
26333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334 (eval $ac_try) 2>&5
26335 ac_status=$?
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); }; } &&
26338 { ac_try='test -s conftest.$ac_objext'
26339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26340 (eval $ac_try) 2>&5
26341 ac_status=$?
26342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); }; }; then
26344 ac_header_compiler=yes
26345else
26346 echo "$as_me: failed program was:" >&5
26347sed 's/^/| /' conftest.$ac_ext >&5
26348
26349ac_header_compiler=no
26350fi
26351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26353echo "${ECHO_T}$ac_header_compiler" >&6
26354
26355# Is the header present?
26356echo "$as_me:$LINENO: checking $ac_header presence" >&5
26357echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26358cat >conftest.$ac_ext <<_ACEOF
26359/* confdefs.h. */
26360_ACEOF
26361cat confdefs.h >>conftest.$ac_ext
26362cat >>conftest.$ac_ext <<_ACEOF
26363/* end confdefs.h. */
26364#include <$ac_header>
26365_ACEOF
26366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26368 ac_status=$?
26369 grep -v '^ *+' conftest.er1 >conftest.err
26370 rm -f conftest.er1
26371 cat conftest.err >&5
26372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373 (exit $ac_status); } >/dev/null; then
26374 if test -s conftest.err; then
26375 ac_cpp_err=$ac_c_preproc_warn_flag
26376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26377 else
26378 ac_cpp_err=
26379 fi
26380else
26381 ac_cpp_err=yes
26382fi
26383if test -z "$ac_cpp_err"; then
26384 ac_header_preproc=yes
26385else
26386 echo "$as_me: failed program was:" >&5
26387sed 's/^/| /' conftest.$ac_ext >&5
26388
26389 ac_header_preproc=no
26390fi
26391rm -f conftest.err conftest.$ac_ext
26392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26393echo "${ECHO_T}$ac_header_preproc" >&6
26394
26395# So? What about this header?
26396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26397 yes:no: )
26398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26399echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26401echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26402 ac_header_preproc=yes
26403 ;;
26404 no:yes:* )
26405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26406echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26408echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26410echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26412echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26416echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26417 (
26418 cat <<\_ASBOX
26419## ----------------------------------- ##
26420## Report this to llvmbugs@cs.uiuc.edu ##
26421## ----------------------------------- ##
26422_ASBOX
26423 ) |
26424 sed "s/^/$as_me: WARNING: /" >&2
26425 ;;
26426esac
26427echo "$as_me:$LINENO: checking for $ac_header" >&5
26428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26429if eval "test \"\${$as_ac_Header+set}\" = set"; then
26430 echo $ECHO_N "(cached) $ECHO_C" >&6
26431else
26432 eval "$as_ac_Header=\$ac_header_preproc"
26433fi
26434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26436
26437fi
26438if test `eval echo '${'$as_ac_Header'}'` = yes; then
26439 cat >>confdefs.h <<_ACEOF
26440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26441_ACEOF
26442
26443fi
26444
26445done
26446
26447
26448
26449
26450
26451
26452for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026453do
26454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26455if eval "test \"\${$as_ac_Header+set}\" = set"; then
26456 echo "$as_me:$LINENO: checking for $ac_header" >&5
26457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26458if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026459 echo $ECHO_N "(cached) $ECHO_C" >&6
26460fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026463else
26464 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026465echo "$as_me:$LINENO: checking $ac_header usability" >&5
26466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026467cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026468/* confdefs.h. */
26469_ACEOF
26470cat confdefs.h >>conftest.$ac_ext
26471cat >>conftest.$ac_ext <<_ACEOF
26472/* end confdefs.h. */
26473$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026474#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026475_ACEOF
26476rm -f conftest.$ac_objext
26477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026478 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026479 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026480 grep -v '^ *+' conftest.er1 >conftest.err
26481 rm -f conftest.er1
26482 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026485 { ac_try='test -z "$ac_c_werror_flag"
26486 || test ! -s conftest.err'
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26489 ac_status=$?
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; } &&
26492 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; }; then
26498 ac_header_compiler=yes
26499else
26500 echo "$as_me: failed program was:" >&5
26501sed 's/^/| /' conftest.$ac_ext >&5
26502
26503ac_header_compiler=no
26504fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026506echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26507echo "${ECHO_T}$ac_header_compiler" >&6
26508
26509# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026510echo "$as_me:$LINENO: checking $ac_header presence" >&5
26511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026512cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026513/* confdefs.h. */
26514_ACEOF
26515cat confdefs.h >>conftest.$ac_ext
26516cat >>conftest.$ac_ext <<_ACEOF
26517/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026518#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026519_ACEOF
26520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26522 ac_status=$?
26523 grep -v '^ *+' conftest.er1 >conftest.err
26524 rm -f conftest.er1
26525 cat conftest.err >&5
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } >/dev/null; then
26528 if test -s conftest.err; then
26529 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026531 else
26532 ac_cpp_err=
26533 fi
26534else
26535 ac_cpp_err=yes
26536fi
26537if test -z "$ac_cpp_err"; then
26538 ac_header_preproc=yes
26539else
26540 echo "$as_me: failed program was:" >&5
26541sed 's/^/| /' conftest.$ac_ext >&5
26542
26543 ac_header_preproc=no
26544fi
26545rm -f conftest.err conftest.$ac_ext
26546echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26547echo "${ECHO_T}$ac_header_preproc" >&6
26548
26549# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26551 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26555echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026556 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026557 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026558 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26560echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26562echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26564echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26566echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26570echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026571 (
26572 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026573## ----------------------------------- ##
26574## Report this to llvmbugs@cs.uiuc.edu ##
26575## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026576_ASBOX
26577 ) |
26578 sed "s/^/$as_me: WARNING: /" >&2
26579 ;;
26580esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026581echo "$as_me:$LINENO: checking for $ac_header" >&5
26582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26583if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026584 echo $ECHO_N "(cached) $ECHO_C" >&6
26585else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026586 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026587fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026590
26591fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026592if test `eval echo '${'$as_ac_Header'}'` = yes; then
26593 cat >>confdefs.h <<_ACEOF
26594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026595_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026596
26597fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026598
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026599done
26600
John Criswell7ed43ad2004-07-19 16:12:29 +000026601
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026602
Reid Spencer8085cff2005-01-16 02:58:39 +000026603for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26604do
26605as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26606if eval "test \"\${$as_ac_Header+set}\" = set"; then
26607 echo "$as_me:$LINENO: checking for $ac_header" >&5
26608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26609if eval "test \"\${$as_ac_Header+set}\" = set"; then
26610 echo $ECHO_N "(cached) $ECHO_C" >&6
26611fi
26612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26614else
26615 # Is the header compilable?
26616echo "$as_me:$LINENO: checking $ac_header usability" >&5
26617echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26618cat >conftest.$ac_ext <<_ACEOF
26619/* confdefs.h. */
26620_ACEOF
26621cat confdefs.h >>conftest.$ac_ext
26622cat >>conftest.$ac_ext <<_ACEOF
26623/* end confdefs.h. */
26624$ac_includes_default
26625#include <$ac_header>
26626_ACEOF
26627rm -f conftest.$ac_objext
26628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26629 (eval $ac_compile) 2>conftest.er1
26630 ac_status=$?
26631 grep -v '^ *+' conftest.er1 >conftest.err
26632 rm -f conftest.er1
26633 cat conftest.err >&5
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); } &&
26636 { ac_try='test -z "$ac_c_werror_flag"
26637 || test ! -s conftest.err'
26638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26639 (eval $ac_try) 2>&5
26640 ac_status=$?
26641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); }; } &&
26643 { ac_try='test -s conftest.$ac_objext'
26644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26645 (eval $ac_try) 2>&5
26646 ac_status=$?
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); }; }; then
26649 ac_header_compiler=yes
26650else
26651 echo "$as_me: failed program was:" >&5
26652sed 's/^/| /' conftest.$ac_ext >&5
26653
26654ac_header_compiler=no
26655fi
26656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26657echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26658echo "${ECHO_T}$ac_header_compiler" >&6
26659
26660# Is the header present?
26661echo "$as_me:$LINENO: checking $ac_header presence" >&5
26662echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26663cat >conftest.$ac_ext <<_ACEOF
26664/* confdefs.h. */
26665_ACEOF
26666cat confdefs.h >>conftest.$ac_ext
26667cat >>conftest.$ac_ext <<_ACEOF
26668/* end confdefs.h. */
26669#include <$ac_header>
26670_ACEOF
26671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26673 ac_status=$?
26674 grep -v '^ *+' conftest.er1 >conftest.err
26675 rm -f conftest.er1
26676 cat conftest.err >&5
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); } >/dev/null; then
26679 if test -s conftest.err; then
26680 ac_cpp_err=$ac_c_preproc_warn_flag
26681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26682 else
26683 ac_cpp_err=
26684 fi
26685else
26686 ac_cpp_err=yes
26687fi
26688if test -z "$ac_cpp_err"; then
26689 ac_header_preproc=yes
26690else
26691 echo "$as_me: failed program was:" >&5
26692sed 's/^/| /' conftest.$ac_ext >&5
26693
26694 ac_header_preproc=no
26695fi
26696rm -f conftest.err conftest.$ac_ext
26697echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26698echo "${ECHO_T}$ac_header_preproc" >&6
26699
26700# So? What about this header?
26701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26702 yes:no: )
26703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26706echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26707 ac_header_preproc=yes
26708 ;;
26709 no:yes:* )
26710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26713echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26715echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26717echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26721echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26722 (
26723 cat <<\_ASBOX
26724## ----------------------------------- ##
26725## Report this to llvmbugs@cs.uiuc.edu ##
26726## ----------------------------------- ##
26727_ASBOX
26728 ) |
26729 sed "s/^/$as_me: WARNING: /" >&2
26730 ;;
26731esac
26732echo "$as_me:$LINENO: checking for $ac_header" >&5
26733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26734if eval "test \"\${$as_ac_Header+set}\" = set"; then
26735 echo $ECHO_N "(cached) $ECHO_C" >&6
26736else
26737 eval "$as_ac_Header=\$ac_header_preproc"
26738fi
26739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26741
26742fi
26743if test `eval echo '${'$as_ac_Header'}'` = yes; then
26744 cat >>confdefs.h <<_ACEOF
26745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26746_ACEOF
26747
26748fi
26749
26750done
26751
26752
26753
John Criswell7a73b802003-06-30 21:59:07 +000026754echo "$as_me:$LINENO: checking for pid_t" >&5
26755echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26756if test "${ac_cv_type_pid_t+set}" = set; then
26757 echo $ECHO_N "(cached) $ECHO_C" >&6
26758else
26759 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026760/* confdefs.h. */
26761_ACEOF
26762cat confdefs.h >>conftest.$ac_ext
26763cat >>conftest.$ac_ext <<_ACEOF
26764/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026765$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026766int
26767main ()
26768{
26769if ((pid_t *) 0)
26770 return 0;
26771if (sizeof (pid_t))
26772 return 0;
26773 ;
26774 return 0;
26775}
26776_ACEOF
26777rm -f conftest.$ac_objext
26778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026779 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026780 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026781 grep -v '^ *+' conftest.er1 >conftest.err
26782 rm -f conftest.er1
26783 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026786 { ac_try='test -z "$ac_c_werror_flag"
26787 || test ! -s conftest.err'
26788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26789 (eval $ac_try) 2>&5
26790 ac_status=$?
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); }; } &&
26793 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795 (eval $ac_try) 2>&5
26796 ac_status=$?
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; }; then
26799 ac_cv_type_pid_t=yes
26800else
26801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026802sed 's/^/| /' conftest.$ac_ext >&5
26803
John Criswell7a73b802003-06-30 21:59:07 +000026804ac_cv_type_pid_t=no
26805fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026807fi
26808echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26809echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26810if test $ac_cv_type_pid_t = yes; then
26811 :
26812else
26813
26814cat >>confdefs.h <<_ACEOF
26815#define pid_t int
26816_ACEOF
26817
26818fi
26819
26820echo "$as_me:$LINENO: checking for size_t" >&5
26821echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26822if test "${ac_cv_type_size_t+set}" = set; then
26823 echo $ECHO_N "(cached) $ECHO_C" >&6
26824else
26825 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026826/* confdefs.h. */
26827_ACEOF
26828cat confdefs.h >>conftest.$ac_ext
26829cat >>conftest.$ac_ext <<_ACEOF
26830/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026831$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026832int
26833main ()
26834{
26835if ((size_t *) 0)
26836 return 0;
26837if (sizeof (size_t))
26838 return 0;
26839 ;
26840 return 0;
26841}
26842_ACEOF
26843rm -f conftest.$ac_objext
26844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026845 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026846 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026847 grep -v '^ *+' conftest.er1 >conftest.err
26848 rm -f conftest.er1
26849 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026852 { ac_try='test -z "$ac_c_werror_flag"
26853 || test ! -s conftest.err'
26854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855 (eval $ac_try) 2>&5
26856 ac_status=$?
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); }; } &&
26859 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26861 (eval $ac_try) 2>&5
26862 ac_status=$?
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); }; }; then
26865 ac_cv_type_size_t=yes
26866else
26867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026868sed 's/^/| /' conftest.$ac_ext >&5
26869
John Criswell7a73b802003-06-30 21:59:07 +000026870ac_cv_type_size_t=no
26871fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026873fi
26874echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26875echo "${ECHO_T}$ac_cv_type_size_t" >&6
26876if test $ac_cv_type_size_t = yes; then
26877 :
26878else
26879
26880cat >>confdefs.h <<_ACEOF
26881#define size_t unsigned
26882_ACEOF
26883
26884fi
26885
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026886echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26887echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26888if test "${ac_cv_type_signal+set}" = set; then
26889 echo $ECHO_N "(cached) $ECHO_C" >&6
26890else
26891 cat >conftest.$ac_ext <<_ACEOF
26892/* confdefs.h. */
26893_ACEOF
26894cat confdefs.h >>conftest.$ac_ext
26895cat >>conftest.$ac_ext <<_ACEOF
26896/* end confdefs.h. */
26897#include <sys/types.h>
26898#include <signal.h>
26899#ifdef signal
26900# undef signal
26901#endif
26902#ifdef __cplusplus
26903extern "C" void (*signal (int, void (*)(int)))(int);
26904#else
26905void (*signal ()) ();
26906#endif
26907
26908int
26909main ()
26910{
26911int i;
26912 ;
26913 return 0;
26914}
26915_ACEOF
26916rm -f conftest.$ac_objext
26917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26918 (eval $ac_compile) 2>conftest.er1
26919 ac_status=$?
26920 grep -v '^ *+' conftest.er1 >conftest.err
26921 rm -f conftest.er1
26922 cat conftest.err >&5
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); } &&
26925 { ac_try='test -z "$ac_c_werror_flag"
26926 || test ! -s conftest.err'
26927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26928 (eval $ac_try) 2>&5
26929 ac_status=$?
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; } &&
26932 { ac_try='test -s conftest.$ac_objext'
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; }; then
26938 ac_cv_type_signal=void
26939else
26940 echo "$as_me: failed program was:" >&5
26941sed 's/^/| /' conftest.$ac_ext >&5
26942
26943ac_cv_type_signal=int
26944fi
26945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26946fi
26947echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26948echo "${ECHO_T}$ac_cv_type_signal" >&6
26949
26950cat >>confdefs.h <<_ACEOF
26951#define RETSIGTYPE $ac_cv_type_signal
26952_ACEOF
26953
26954
26955echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26956echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26957if test "${ac_cv_struct_tm+set}" = set; then
26958 echo $ECHO_N "(cached) $ECHO_C" >&6
26959else
26960 cat >conftest.$ac_ext <<_ACEOF
26961/* confdefs.h. */
26962_ACEOF
26963cat confdefs.h >>conftest.$ac_ext
26964cat >>conftest.$ac_ext <<_ACEOF
26965/* end confdefs.h. */
26966#include <sys/types.h>
26967#include <time.h>
26968
26969int
26970main ()
26971{
26972struct tm *tp; tp->tm_sec;
26973 ;
26974 return 0;
26975}
26976_ACEOF
26977rm -f conftest.$ac_objext
26978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26979 (eval $ac_compile) 2>conftest.er1
26980 ac_status=$?
26981 grep -v '^ *+' conftest.er1 >conftest.err
26982 rm -f conftest.er1
26983 cat conftest.err >&5
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); } &&
26986 { ac_try='test -z "$ac_c_werror_flag"
26987 || test ! -s conftest.err'
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; } &&
26993 { ac_try='test -s conftest.$ac_objext'
26994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995 (eval $ac_try) 2>&5
26996 ac_status=$?
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); }; }; then
26999 ac_cv_struct_tm=time.h
27000else
27001 echo "$as_me: failed program was:" >&5
27002sed 's/^/| /' conftest.$ac_ext >&5
27003
27004ac_cv_struct_tm=sys/time.h
27005fi
27006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27007fi
27008echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27009echo "${ECHO_T}$ac_cv_struct_tm" >&6
27010if test $ac_cv_struct_tm = sys/time.h; then
27011
27012cat >>confdefs.h <<\_ACEOF
27013#define TM_IN_SYS_TIME 1
27014_ACEOF
27015
27016fi
27017
John Criswell7a73b802003-06-30 21:59:07 +000027018echo "$as_me:$LINENO: checking for int64_t" >&5
27019echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27020if test "${ac_cv_type_int64_t+set}" = set; then
27021 echo $ECHO_N "(cached) $ECHO_C" >&6
27022else
27023 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027024/* confdefs.h. */
27025_ACEOF
27026cat confdefs.h >>conftest.$ac_ext
27027cat >>conftest.$ac_ext <<_ACEOF
27028/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027029$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027030int
27031main ()
27032{
27033if ((int64_t *) 0)
27034 return 0;
27035if (sizeof (int64_t))
27036 return 0;
27037 ;
27038 return 0;
27039}
27040_ACEOF
27041rm -f conftest.$ac_objext
27042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027043 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027044 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027045 grep -v '^ *+' conftest.er1 >conftest.err
27046 rm -f conftest.er1
27047 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027050 { ac_try='test -z "$ac_c_werror_flag"
27051 || test ! -s conftest.err'
27052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27053 (eval $ac_try) 2>&5
27054 ac_status=$?
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); }; } &&
27057 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059 (eval $ac_try) 2>&5
27060 ac_status=$?
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; }; then
27063 ac_cv_type_int64_t=yes
27064else
27065 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027066sed 's/^/| /' conftest.$ac_ext >&5
27067
John Criswell7a73b802003-06-30 21:59:07 +000027068ac_cv_type_int64_t=no
27069fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027071fi
27072echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27073echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27074if test $ac_cv_type_int64_t = yes; then
27075
27076cat >>confdefs.h <<_ACEOF
27077#define HAVE_INT64_T 1
27078_ACEOF
27079
27080
27081else
27082 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27083echo "$as_me: error: Type int64_t required but not found" >&2;}
27084 { (exit 1); exit 1; }; }
27085fi
27086
27087echo "$as_me:$LINENO: checking for uint64_t" >&5
27088echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27089if test "${ac_cv_type_uint64_t+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27091else
27092 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027093/* confdefs.h. */
27094_ACEOF
27095cat confdefs.h >>conftest.$ac_ext
27096cat >>conftest.$ac_ext <<_ACEOF
27097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027098$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027099int
27100main ()
27101{
27102if ((uint64_t *) 0)
27103 return 0;
27104if (sizeof (uint64_t))
27105 return 0;
27106 ;
27107 return 0;
27108}
27109_ACEOF
27110rm -f conftest.$ac_objext
27111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027112 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027113 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027114 grep -v '^ *+' conftest.er1 >conftest.err
27115 rm -f conftest.er1
27116 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027119 { ac_try='test -z "$ac_c_werror_flag"
27120 || test ! -s conftest.err'
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27123 ac_status=$?
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; } &&
27126 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128 (eval $ac_try) 2>&5
27129 ac_status=$?
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); }; }; then
27132 ac_cv_type_uint64_t=yes
27133else
27134 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027135sed 's/^/| /' conftest.$ac_ext >&5
27136
John Criswell7a73b802003-06-30 21:59:07 +000027137ac_cv_type_uint64_t=no
27138fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027140fi
27141echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27142echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27143if test $ac_cv_type_uint64_t = yes; then
27144
27145cat >>confdefs.h <<_ACEOF
27146#define HAVE_UINT64_T 1
27147_ACEOF
27148
27149
27150else
Misha Brukmanceca9042004-09-02 23:02:30 +000027151 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027152echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27153if test "${ac_cv_type_u_int64_t+set}" = set; then
27154 echo $ECHO_N "(cached) $ECHO_C" >&6
27155else
27156 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027157/* confdefs.h. */
27158_ACEOF
27159cat confdefs.h >>conftest.$ac_ext
27160cat >>conftest.$ac_ext <<_ACEOF
27161/* end confdefs.h. */
27162$ac_includes_default
27163int
27164main ()
27165{
27166if ((u_int64_t *) 0)
27167 return 0;
27168if (sizeof (u_int64_t))
27169 return 0;
27170 ;
27171 return 0;
27172}
27173_ACEOF
27174rm -f conftest.$ac_objext
27175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027176 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027177 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027178 grep -v '^ *+' conftest.er1 >conftest.err
27179 rm -f conftest.er1
27180 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027183 { ac_try='test -z "$ac_c_werror_flag"
27184 || test ! -s conftest.err'
27185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186 (eval $ac_try) 2>&5
27187 ac_status=$?
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; } &&
27190 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27193 ac_status=$?
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; }; then
27196 ac_cv_type_u_int64_t=yes
27197else
27198 echo "$as_me: failed program was:" >&5
27199sed 's/^/| /' conftest.$ac_ext >&5
27200
27201ac_cv_type_u_int64_t=no
27202fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027204fi
27205echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27206echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27207if test $ac_cv_type_u_int64_t = yes; then
27208
27209cat >>confdefs.h <<_ACEOF
27210#define HAVE_U_INT64_T 1
27211_ACEOF
27212
27213
Misha Brukmanceca9042004-09-02 23:02:30 +000027214else
27215 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27216echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27217 { (exit 1); exit 1; }; }
27218fi
27219
John Criswell679ff312004-09-02 18:44:44 +000027220fi
27221
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027222
27223
27224
27225
27226
27227
27228
27229
Reid Spencerab5eaea2004-12-20 00:59:04 +000027230for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27231do
27232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27233echo "$as_me:$LINENO: checking for $ac_func" >&5
27234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27235if eval "test \"\${$as_ac_var+set}\" = set"; then
27236 echo $ECHO_N "(cached) $ECHO_C" >&6
27237else
27238 cat >conftest.$ac_ext <<_ACEOF
27239/* confdefs.h. */
27240_ACEOF
27241cat confdefs.h >>conftest.$ac_ext
27242cat >>conftest.$ac_ext <<_ACEOF
27243/* end confdefs.h. */
27244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27246#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027247
Reid Spencerab5eaea2004-12-20 00:59:04 +000027248/* System header to define __stub macros and hopefully few prototypes,
27249 which can conflict with char $ac_func (); below.
27250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27251 <limits.h> exists even on freestanding compilers. */
27252
27253#ifdef __STDC__
27254# include <limits.h>
27255#else
27256# include <assert.h>
27257#endif
27258
27259#undef $ac_func
27260
27261/* Override any gcc2 internal prototype to avoid an error. */
27262#ifdef __cplusplus
27263extern "C"
27264{
27265#endif
27266/* We use char because int might match the return type of a gcc2
27267 builtin and then its argument prototype would still apply. */
27268char $ac_func ();
27269/* The GNU C library defines this for functions which it implements
27270 to always fail with ENOSYS. Some functions are actually named
27271 something starting with __ and the normal name is an alias. */
27272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27273choke me
27274#else
27275char (*f) () = $ac_func;
27276#endif
27277#ifdef __cplusplus
27278}
27279#endif
27280
27281int
27282main ()
27283{
27284return f != $ac_func;
27285 ;
27286 return 0;
27287}
27288_ACEOF
27289rm -f conftest.$ac_objext conftest$ac_exeext
27290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27291 (eval $ac_link) 2>conftest.er1
27292 ac_status=$?
27293 grep -v '^ *+' conftest.er1 >conftest.err
27294 rm -f conftest.er1
27295 cat conftest.err >&5
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); } &&
27298 { ac_try='test -z "$ac_c_werror_flag"
27299 || test ! -s conftest.err'
27300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27301 (eval $ac_try) 2>&5
27302 ac_status=$?
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); }; } &&
27305 { ac_try='test -s conftest$ac_exeext'
27306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307 (eval $ac_try) 2>&5
27308 ac_status=$?
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); }; }; then
27311 eval "$as_ac_var=yes"
27312else
27313 echo "$as_me: failed program was:" >&5
27314sed 's/^/| /' conftest.$ac_ext >&5
27315
27316eval "$as_ac_var=no"
27317fi
27318rm -f conftest.err conftest.$ac_objext \
27319 conftest$ac_exeext conftest.$ac_ext
27320fi
27321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27323if test `eval echo '${'$as_ac_var'}'` = yes; then
27324 cat >>confdefs.h <<_ACEOF
27325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27326_ACEOF
27327
27328fi
27329done
27330
27331
27332
27333
27334for ac_func in mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027335do
27336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27337echo "$as_me:$LINENO: checking for $ac_func" >&5
27338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27339if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027340 echo $ECHO_N "(cached) $ECHO_C" >&6
27341else
27342 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027343/* confdefs.h. */
27344_ACEOF
27345cat confdefs.h >>conftest.$ac_ext
27346cat >>conftest.$ac_ext <<_ACEOF
27347/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27350#define $ac_func innocuous_$ac_func
27351
27352/* System header to define __stub macros and hopefully few prototypes,
27353 which can conflict with char $ac_func (); below.
27354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27355 <limits.h> exists even on freestanding compilers. */
27356
27357#ifdef __STDC__
27358# include <limits.h>
27359#else
27360# include <assert.h>
27361#endif
27362
27363#undef $ac_func
27364
27365/* Override any gcc2 internal prototype to avoid an error. */
27366#ifdef __cplusplus
27367extern "C"
27368{
27369#endif
27370/* We use char because int might match the return type of a gcc2
27371 builtin and then its argument prototype would still apply. */
27372char $ac_func ();
27373/* The GNU C library defines this for functions which it implements
27374 to always fail with ENOSYS. Some functions are actually named
27375 something starting with __ and the normal name is an alias. */
27376#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27377choke me
27378#else
27379char (*f) () = $ac_func;
27380#endif
27381#ifdef __cplusplus
27382}
27383#endif
John Criswell7a73b802003-06-30 21:59:07 +000027384
John Criswell7a73b802003-06-30 21:59:07 +000027385int
27386main ()
27387{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027388return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027389 ;
27390 return 0;
27391}
27392_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027393rm -f conftest.$ac_objext conftest$ac_exeext
27394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27395 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027397 grep -v '^ *+' conftest.er1 >conftest.err
27398 rm -f conftest.er1
27399 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027402 { ac_try='test -z "$ac_c_werror_flag"
27403 || test ! -s conftest.err'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027409 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027415 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027416else
27417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027418sed 's/^/| /' conftest.$ac_ext >&5
27419
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027420eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027421fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027422rm -f conftest.err conftest.$ac_objext \
27423 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027424fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27427if test `eval echo '${'$as_ac_var'}'` = yes; then
27428 cat >>confdefs.h <<_ACEOF
27429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027430_ACEOF
27431
27432fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027433done
John Criswell7a73b802003-06-30 21:59:07 +000027434
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027435
27436
27437
Reid Spencer6af3d262004-12-15 04:01:48 +000027438
27439
Reid Spencer59473af2004-12-25 07:31:29 +000027440
Reid Spencerba46ca32004-12-31 05:49:15 +000027441for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027442do
27443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27444echo "$as_me:$LINENO: checking for $ac_func" >&5
27445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27446if eval "test \"\${$as_ac_var+set}\" = set"; then
27447 echo $ECHO_N "(cached) $ECHO_C" >&6
27448else
27449 cat >conftest.$ac_ext <<_ACEOF
27450/* confdefs.h. */
27451_ACEOF
27452cat confdefs.h >>conftest.$ac_ext
27453cat >>conftest.$ac_ext <<_ACEOF
27454/* end confdefs.h. */
27455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27457#define $ac_func innocuous_$ac_func
27458
27459/* System header to define __stub macros and hopefully few prototypes,
27460 which can conflict with char $ac_func (); below.
27461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27462 <limits.h> exists even on freestanding compilers. */
27463
27464#ifdef __STDC__
27465# include <limits.h>
27466#else
27467# include <assert.h>
27468#endif
27469
27470#undef $ac_func
27471
27472/* Override any gcc2 internal prototype to avoid an error. */
27473#ifdef __cplusplus
27474extern "C"
27475{
27476#endif
27477/* We use char because int might match the return type of a gcc2
27478 builtin and then its argument prototype would still apply. */
27479char $ac_func ();
27480/* The GNU C library defines this for functions which it implements
27481 to always fail with ENOSYS. Some functions are actually named
27482 something starting with __ and the normal name is an alias. */
27483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27484choke me
27485#else
27486char (*f) () = $ac_func;
27487#endif
27488#ifdef __cplusplus
27489}
27490#endif
27491
27492int
27493main ()
27494{
27495return f != $ac_func;
27496 ;
27497 return 0;
27498}
27499_ACEOF
27500rm -f conftest.$ac_objext conftest$ac_exeext
27501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27502 (eval $ac_link) 2>conftest.er1
27503 ac_status=$?
27504 grep -v '^ *+' conftest.er1 >conftest.err
27505 rm -f conftest.er1
27506 cat conftest.err >&5
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); } &&
27509 { ac_try='test -z "$ac_c_werror_flag"
27510 || test ! -s conftest.err'
27511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27512 (eval $ac_try) 2>&5
27513 ac_status=$?
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); }; } &&
27516 { ac_try='test -s conftest$ac_exeext'
27517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27518 (eval $ac_try) 2>&5
27519 ac_status=$?
27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521 (exit $ac_status); }; }; then
27522 eval "$as_ac_var=yes"
27523else
27524 echo "$as_me: failed program was:" >&5
27525sed 's/^/| /' conftest.$ac_ext >&5
27526
27527eval "$as_ac_var=no"
27528fi
27529rm -f conftest.err conftest.$ac_objext \
27530 conftest$ac_exeext conftest.$ac_ext
27531fi
27532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27533echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27534if test `eval echo '${'$as_ac_var'}'` = yes; then
27535 cat >>confdefs.h <<_ACEOF
27536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27537_ACEOF
27538
27539fi
27540done
27541
27542
Reid Spencerba46ca32004-12-31 05:49:15 +000027543
27544
27545for ac_func in strtoll strtoq sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027546do
27547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27548echo "$as_me:$LINENO: checking for $ac_func" >&5
27549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27550if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027551 echo $ECHO_N "(cached) $ECHO_C" >&6
27552else
27553 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027554/* confdefs.h. */
27555_ACEOF
27556cat confdefs.h >>conftest.$ac_ext
27557cat >>conftest.$ac_ext <<_ACEOF
27558/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27561#define $ac_func innocuous_$ac_func
27562
27563/* System header to define __stub macros and hopefully few prototypes,
27564 which can conflict with char $ac_func (); below.
27565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27566 <limits.h> exists even on freestanding compilers. */
27567
27568#ifdef __STDC__
27569# include <limits.h>
27570#else
27571# include <assert.h>
27572#endif
27573
27574#undef $ac_func
27575
27576/* Override any gcc2 internal prototype to avoid an error. */
27577#ifdef __cplusplus
27578extern "C"
27579{
27580#endif
27581/* We use char because int might match the return type of a gcc2
27582 builtin and then its argument prototype would still apply. */
27583char $ac_func ();
27584/* The GNU C library defines this for functions which it implements
27585 to always fail with ENOSYS. Some functions are actually named
27586 something starting with __ and the normal name is an alias. */
27587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27588choke me
27589#else
27590char (*f) () = $ac_func;
27591#endif
27592#ifdef __cplusplus
27593}
27594#endif
John Criswell7a73b802003-06-30 21:59:07 +000027595
John Criswell7a73b802003-06-30 21:59:07 +000027596int
27597main ()
27598{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027599return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027600 ;
27601 return 0;
27602}
27603_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027604rm -f conftest.$ac_objext conftest$ac_exeext
27605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27606 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027607 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027608 grep -v '^ *+' conftest.er1 >conftest.err
27609 rm -f conftest.er1
27610 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027613 { ac_try='test -z "$ac_c_werror_flag"
27614 || test ! -s conftest.err'
27615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27616 (eval $ac_try) 2>&5
27617 ac_status=$?
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027620 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27622 (eval $ac_try) 2>&5
27623 ac_status=$?
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027626 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027627else
27628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027629sed 's/^/| /' conftest.$ac_ext >&5
27630
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027631eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027632fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027633rm -f conftest.err conftest.$ac_objext \
27634 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027635fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27638if test `eval echo '${'$as_ac_var'}'` = yes; then
27639 cat >>confdefs.h <<_ACEOF
27640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027641_ACEOF
27642
27643fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027644done
John Criswell7a73b802003-06-30 21:59:07 +000027645
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027646echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27647echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027648if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027649 echo $ECHO_N "(cached) $ECHO_C" >&6
27650else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027651 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027652ac_cpp='$CPP $CPPFLAGS'
27653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27655ac_compiler_gnu=$ac_cv_c_compiler_gnu
27656
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027657 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027658 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027659else
27660 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027661
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027662 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027663_ACEOF
27664cat confdefs.h >>conftest.$ac_ext
27665cat >>conftest.$ac_ext <<_ACEOF
27666/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027667
John Criswella0137d32003-10-13 16:22:01 +000027668#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027669#include <stdlib.h>
27670
John Criswella0137d32003-10-13 16:22:01 +000027671int
27672main ()
27673{
27674
Reid Spencer2706f8c2004-09-19 23:53:36 +000027675volatile double A, B;
27676char Buffer[100];
27677A = 1;
27678A /= 10.0;
27679sprintf(Buffer, "%a", A);
27680B = atof(Buffer);
27681if (A != B)
27682 return (1);
27683if (A != 0x1.999999999999ap-4)
27684 return (1);
27685return (0);
John Criswella0137d32003-10-13 16:22:01 +000027686 ;
27687 return 0;
27688}
27689_ACEOF
27690rm -f conftest$ac_exeext
27691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27692 (eval $ac_link) 2>&5
27693 ac_status=$?
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27697 (eval $ac_try) 2>&5
27698 ac_status=$?
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027701 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027702else
27703 echo "$as_me: program exited with status $ac_status" >&5
27704echo "$as_me: failed program was:" >&5
27705sed 's/^/| /' conftest.$ac_ext >&5
27706
27707( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027708llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027709fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027710rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027711fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027712 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027713ac_cpp='$CPP $CPPFLAGS'
27714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27716ac_compiler_gnu=$ac_cv_c_compiler_gnu
27717
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027718fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027719echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27720echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27721 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027722
27723cat >>confdefs.h <<\_ACEOF
27724#define HAVE_PRINTF_A 1
27725_ACEOF
27726
Reid Spencer2706f8c2004-09-19 23:53:36 +000027727 fi
John Criswella0137d32003-10-13 16:22:01 +000027728
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027729# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27730# for constant arguments. Useless!
27731echo "$as_me:$LINENO: checking for working alloca.h" >&5
27732echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27733if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027734 echo $ECHO_N "(cached) $ECHO_C" >&6
27735else
John Criswell0021c312004-02-13 21:57:29 +000027736 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027737/* confdefs.h. */
27738_ACEOF
27739cat confdefs.h >>conftest.$ac_ext
27740cat >>conftest.$ac_ext <<_ACEOF
27741/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027742#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027743int
27744main ()
27745{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027746char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027747 ;
27748 return 0;
27749}
27750_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027751rm -f conftest.$ac_objext conftest$ac_exeext
27752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27753 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027755 grep -v '^ *+' conftest.er1 >conftest.err
27756 rm -f conftest.er1
27757 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027760 { ac_try='test -z "$ac_c_werror_flag"
27761 || test ! -s conftest.err'
27762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27763 (eval $ac_try) 2>&5
27764 ac_status=$?
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027767 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27769 (eval $ac_try) 2>&5
27770 ac_status=$?
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027773 ac_cv_working_alloca_h=yes
27774else
27775 echo "$as_me: failed program was:" >&5
27776sed 's/^/| /' conftest.$ac_ext >&5
27777
27778ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027779fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027780rm -f conftest.err conftest.$ac_objext \
27781 conftest$ac_exeext conftest.$ac_ext
27782fi
27783echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27784echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27785if test $ac_cv_working_alloca_h = yes; then
27786
27787cat >>confdefs.h <<\_ACEOF
27788#define HAVE_ALLOCA_H 1
27789_ACEOF
27790
27791fi
27792
27793echo "$as_me:$LINENO: checking for alloca" >&5
27794echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27795if test "${ac_cv_func_alloca_works+set}" = set; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
27797else
27798 cat >conftest.$ac_ext <<_ACEOF
27799/* confdefs.h. */
27800_ACEOF
27801cat confdefs.h >>conftest.$ac_ext
27802cat >>conftest.$ac_ext <<_ACEOF
27803/* end confdefs.h. */
27804#ifdef __GNUC__
27805# define alloca __builtin_alloca
27806#else
27807# ifdef _MSC_VER
27808# include <malloc.h>
27809# define alloca _alloca
27810# else
27811# if HAVE_ALLOCA_H
27812# include <alloca.h>
27813# else
27814# ifdef _AIX
27815 #pragma alloca
27816# else
27817# ifndef alloca /* predefined by HP cc +Olibcalls */
27818char *alloca ();
27819# endif
27820# endif
27821# endif
27822# endif
27823#endif
27824
27825int
27826main ()
27827{
27828char *p = (char *) alloca (1);
27829 ;
27830 return 0;
27831}
27832_ACEOF
27833rm -f conftest.$ac_objext conftest$ac_exeext
27834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27835 (eval $ac_link) 2>conftest.er1
27836 ac_status=$?
27837 grep -v '^ *+' conftest.er1 >conftest.err
27838 rm -f conftest.er1
27839 cat conftest.err >&5
27840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); } &&
27842 { ac_try='test -z "$ac_c_werror_flag"
27843 || test ! -s conftest.err'
27844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27845 (eval $ac_try) 2>&5
27846 ac_status=$?
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); }; } &&
27849 { ac_try='test -s conftest$ac_exeext'
27850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27851 (eval $ac_try) 2>&5
27852 ac_status=$?
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; }; then
27855 ac_cv_func_alloca_works=yes
27856else
27857 echo "$as_me: failed program was:" >&5
27858sed 's/^/| /' conftest.$ac_ext >&5
27859
27860ac_cv_func_alloca_works=no
27861fi
27862rm -f conftest.err conftest.$ac_objext \
27863 conftest$ac_exeext conftest.$ac_ext
27864fi
27865echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27866echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27867
27868if test $ac_cv_func_alloca_works = yes; then
27869
27870cat >>confdefs.h <<\_ACEOF
27871#define HAVE_ALLOCA 1
27872_ACEOF
27873
27874else
27875 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27876# that cause trouble. Some versions do not even contain alloca or
27877# contain a buggy version. If you still want to use their alloca,
27878# use ar to extract alloca.o from them instead of compiling alloca.c.
27879
27880ALLOCA=alloca.$ac_objext
27881
27882cat >>confdefs.h <<\_ACEOF
27883#define C_ALLOCA 1
27884_ACEOF
27885
27886
27887echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27888echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27889if test "${ac_cv_os_cray+set}" = set; then
27890 echo $ECHO_N "(cached) $ECHO_C" >&6
27891else
27892 cat >conftest.$ac_ext <<_ACEOF
27893/* confdefs.h. */
27894_ACEOF
27895cat confdefs.h >>conftest.$ac_ext
27896cat >>conftest.$ac_ext <<_ACEOF
27897/* end confdefs.h. */
27898#if defined(CRAY) && ! defined(CRAY2)
27899webecray
27900#else
27901wenotbecray
27902#endif
27903
27904_ACEOF
27905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27906 $EGREP "webecray" >/dev/null 2>&1; then
27907 ac_cv_os_cray=yes
27908else
27909 ac_cv_os_cray=no
27910fi
27911rm -f conftest*
27912
27913fi
27914echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27915echo "${ECHO_T}$ac_cv_os_cray" >&6
27916if test $ac_cv_os_cray = yes; then
27917 for ac_func in _getb67 GETB67 getb67; do
27918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27919echo "$as_me:$LINENO: checking for $ac_func" >&5
27920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27921if eval "test \"\${$as_ac_var+set}\" = set"; then
27922 echo $ECHO_N "(cached) $ECHO_C" >&6
27923else
27924 cat >conftest.$ac_ext <<_ACEOF
27925/* confdefs.h. */
27926_ACEOF
27927cat confdefs.h >>conftest.$ac_ext
27928cat >>conftest.$ac_ext <<_ACEOF
27929/* end confdefs.h. */
27930/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27932#define $ac_func innocuous_$ac_func
27933
27934/* System header to define __stub macros and hopefully few prototypes,
27935 which can conflict with char $ac_func (); below.
27936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27937 <limits.h> exists even on freestanding compilers. */
27938
27939#ifdef __STDC__
27940# include <limits.h>
27941#else
27942# include <assert.h>
27943#endif
27944
27945#undef $ac_func
27946
27947/* Override any gcc2 internal prototype to avoid an error. */
27948#ifdef __cplusplus
27949extern "C"
27950{
27951#endif
27952/* We use char because int might match the return type of a gcc2
27953 builtin and then its argument prototype would still apply. */
27954char $ac_func ();
27955/* The GNU C library defines this for functions which it implements
27956 to always fail with ENOSYS. Some functions are actually named
27957 something starting with __ and the normal name is an alias. */
27958#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27959choke me
27960#else
27961char (*f) () = $ac_func;
27962#endif
27963#ifdef __cplusplus
27964}
27965#endif
27966
27967int
27968main ()
27969{
27970return f != $ac_func;
27971 ;
27972 return 0;
27973}
27974_ACEOF
27975rm -f conftest.$ac_objext conftest$ac_exeext
27976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27977 (eval $ac_link) 2>conftest.er1
27978 ac_status=$?
27979 grep -v '^ *+' conftest.er1 >conftest.err
27980 rm -f conftest.er1
27981 cat conftest.err >&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); } &&
27984 { ac_try='test -z "$ac_c_werror_flag"
27985 || test ! -s conftest.err'
27986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987 (eval $ac_try) 2>&5
27988 ac_status=$?
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; } &&
27991 { ac_try='test -s conftest$ac_exeext'
27992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993 (eval $ac_try) 2>&5
27994 ac_status=$?
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; }; then
27997 eval "$as_ac_var=yes"
27998else
27999 echo "$as_me: failed program was:" >&5
28000sed 's/^/| /' conftest.$ac_ext >&5
28001
28002eval "$as_ac_var=no"
28003fi
28004rm -f conftest.err conftest.$ac_objext \
28005 conftest$ac_exeext conftest.$ac_ext
28006fi
28007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28008echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28009if test `eval echo '${'$as_ac_var'}'` = yes; then
28010
28011cat >>confdefs.h <<_ACEOF
28012#define CRAY_STACKSEG_END $ac_func
28013_ACEOF
28014
28015 break
28016fi
28017
28018 done
28019fi
28020
28021echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28022echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28023if test "${ac_cv_c_stack_direction+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28025else
28026 if test "$cross_compiling" = yes; then
28027 ac_cv_c_stack_direction=0
28028else
28029 cat >conftest.$ac_ext <<_ACEOF
28030/* confdefs.h. */
28031_ACEOF
28032cat confdefs.h >>conftest.$ac_ext
28033cat >>conftest.$ac_ext <<_ACEOF
28034/* end confdefs.h. */
28035int
28036find_stack_direction ()
28037{
28038 static char *addr = 0;
28039 auto char dummy;
28040 if (addr == 0)
28041 {
28042 addr = &dummy;
28043 return find_stack_direction ();
28044 }
John Criswell0021c312004-02-13 21:57:29 +000028045 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028046 return (&dummy > addr) ? 1 : -1;
28047}
John Criswell0021c312004-02-13 21:57:29 +000028048
John Criswell0021c312004-02-13 21:57:29 +000028049int
28050main ()
28051{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028052 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028053}
28054_ACEOF
28055rm -f conftest$ac_exeext
28056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28057 (eval $ac_link) 2>&5
28058 ac_status=$?
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062 (eval $ac_try) 2>&5
28063 ac_status=$?
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028066 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028067else
28068 echo "$as_me: program exited with status $ac_status" >&5
28069echo "$as_me: failed program was:" >&5
28070sed 's/^/| /' conftest.$ac_ext >&5
28071
28072( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028073ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028074fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028075rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028076fi
28077fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028078echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28079echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28080
28081cat >>confdefs.h <<_ACEOF
28082#define STACK_DIRECTION $ac_cv_c_stack_direction
28083_ACEOF
28084
28085
John Criswell0021c312004-02-13 21:57:29 +000028086fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028087
28088
28089echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28090echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28091if test "${ac_cv_func_rand48+set}" = set; then
28092 echo $ECHO_N "(cached) $ECHO_C" >&6
28093else
28094 ac_ext=cc
28095ac_cpp='$CXXCPP $CPPFLAGS'
28096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28099
28100 cat >conftest.$ac_ext <<_ACEOF
28101/* confdefs.h. */
28102_ACEOF
28103cat confdefs.h >>conftest.$ac_ext
28104cat >>conftest.$ac_ext <<_ACEOF
28105/* end confdefs.h. */
28106#include <stdlib.h>
28107int
28108main ()
28109{
28110srand48(0);lrand48();drand48();
28111 ;
28112 return 0;
28113}
28114_ACEOF
28115rm -f conftest.$ac_objext
28116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28117 (eval $ac_compile) 2>conftest.er1
28118 ac_status=$?
28119 grep -v '^ *+' conftest.er1 >conftest.err
28120 rm -f conftest.er1
28121 cat conftest.err >&5
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } &&
28124 { ac_try='test -z "$ac_cxx_werror_flag"
28125 || test ! -s conftest.err'
28126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28127 (eval $ac_try) 2>&5
28128 ac_status=$?
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); }; } &&
28131 { ac_try='test -s conftest.$ac_objext'
28132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133 (eval $ac_try) 2>&5
28134 ac_status=$?
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; }; then
28137 ac_cv_func_rand48=yes
28138else
28139 echo "$as_me: failed program was:" >&5
28140sed 's/^/| /' conftest.$ac_ext >&5
28141
28142ac_cv_func_rand48=no
28143fi
28144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28145 ac_ext=c
28146ac_cpp='$CPP $CPPFLAGS'
28147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28149ac_compiler_gnu=$ac_cv_c_compiler_gnu
28150
28151fi
28152echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28153echo "${ECHO_T}$ac_cv_func_rand48" >&6
28154
28155if test "$ac_cv_func_rand48" = "yes" ; then
28156
28157cat >>confdefs.h <<\_ACEOF
28158#define HAVE_RAND48 1
28159_ACEOF
28160
28161fi
John Criswell0021c312004-02-13 21:57:29 +000028162
28163
John Criswell7a73b802003-06-30 21:59:07 +000028164echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28165echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28166if test "${ac_cv_cxx_namespaces+set}" = set; then
28167 echo $ECHO_N "(cached) $ECHO_C" >&6
28168else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028169 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028170ac_cpp='$CXXCPP $CPPFLAGS'
28171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28174
28175 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028176/* confdefs.h. */
28177_ACEOF
28178cat confdefs.h >>conftest.$ac_ext
28179cat >>conftest.$ac_ext <<_ACEOF
28180/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028181namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028182int
28183main ()
28184{
28185using namespace Outer::Inner; return i;
28186 ;
28187 return 0;
28188}
28189_ACEOF
28190rm -f conftest.$ac_objext
28191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028192 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028193 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028194 grep -v '^ *+' conftest.er1 >conftest.err
28195 rm -f conftest.er1
28196 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028199 { ac_try='test -z "$ac_cxx_werror_flag"
28200 || test ! -s conftest.err'
28201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28202 (eval $ac_try) 2>&5
28203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; } &&
28206 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208 (eval $ac_try) 2>&5
28209 ac_status=$?
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; }; then
28212 ac_cv_cxx_namespaces=yes
28213else
28214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028215sed 's/^/| /' conftest.$ac_ext >&5
28216
John Criswell7a73b802003-06-30 21:59:07 +000028217ac_cv_cxx_namespaces=no
28218fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028220 ac_ext=c
28221ac_cpp='$CPP $CPPFLAGS'
28222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28224ac_compiler_gnu=$ac_cv_c_compiler_gnu
28225
28226
28227fi
28228echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28229echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28230if test "$ac_cv_cxx_namespaces" = yes; then
28231
28232cat >>confdefs.h <<\_ACEOF
28233#define HAVE_NAMESPACES
28234_ACEOF
28235
28236fi
28237
Brian Gaeke90583492003-11-10 03:06:28 +000028238echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28239echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28240if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028241 echo $ECHO_N "(cached) $ECHO_C" >&6
28242else
28243
John Criswell7a73b802003-06-30 21:59:07 +000028244 ac_ext=cc
28245ac_cpp='$CXXCPP $CPPFLAGS'
28246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28249
28250 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028251/* confdefs.h. */
28252_ACEOF
28253cat confdefs.h >>conftest.$ac_ext
28254cat >>conftest.$ac_ext <<_ACEOF
28255/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028256#include <ext/hash_map>
28257#ifdef HAVE_NAMESPACES
28258using namespace std;
28259#endif
John Criswell7a73b802003-06-30 21:59:07 +000028260int
28261main ()
28262{
Brian Gaeke90583492003-11-10 03:06:28 +000028263hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028264 ;
28265 return 0;
28266}
28267_ACEOF
28268rm -f conftest.$ac_objext
28269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028270 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028271 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028272 grep -v '^ *+' conftest.er1 >conftest.err
28273 rm -f conftest.er1
28274 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028277 { ac_try='test -z "$ac_cxx_werror_flag"
28278 || test ! -s conftest.err'
28279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28280 (eval $ac_try) 2>&5
28281 ac_status=$?
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); }; } &&
28284 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286 (eval $ac_try) 2>&5
28287 ac_status=$?
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028290 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028291else
28292 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028293sed 's/^/| /' conftest.$ac_ext >&5
28294
Brian Gaeke90583492003-11-10 03:06:28 +000028295ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028296fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028298 ac_ext=c
28299ac_cpp='$CPP $CPPFLAGS'
28300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28302ac_compiler_gnu=$ac_cv_c_compiler_gnu
28303
John Criswell7a73b802003-06-30 21:59:07 +000028304fi
Brian Gaeke90583492003-11-10 03:06:28 +000028305echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28306echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028307 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28308 then
John Criswell9f011862004-09-24 18:28:00 +000028309
28310cat >>confdefs.h <<\_ACEOF
28311#define HAVE_STD_EXT_HASH_MAP 1
28312_ACEOF
28313
28314 else
28315
28316cat >>confdefs.h <<\_ACEOF
28317#define HAVE_STD_EXT_HASH_MAP 0
28318_ACEOF
28319
Brian Gaeke90583492003-11-10 03:06:28 +000028320 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028321
Brian Gaeke90583492003-11-10 03:06:28 +000028322 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28323echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28324if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28325 echo $ECHO_N "(cached) $ECHO_C" >&6
28326else
28327
Brian Gaeke90583492003-11-10 03:06:28 +000028328 ac_ext=cc
28329ac_cpp='$CXXCPP $CPPFLAGS'
28330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28333
28334 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028335/* confdefs.h. */
28336_ACEOF
28337cat confdefs.h >>conftest.$ac_ext
28338cat >>conftest.$ac_ext <<_ACEOF
28339/* end confdefs.h. */
28340#include <ext/hash_map>
28341#ifdef HAVE_NAMESPACES
28342using namespace __gnu_cxx;
28343#endif
28344int
28345main ()
28346{
28347hash_map<int,int> t;
28348 ;
28349 return 0;
28350}
28351_ACEOF
28352rm -f conftest.$ac_objext
28353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028354 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028355 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028356 grep -v '^ *+' conftest.er1 >conftest.err
28357 rm -f conftest.er1
28358 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028361 { ac_try='test -z "$ac_cxx_werror_flag"
28362 || test ! -s conftest.err'
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28371 ac_status=$?
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; }; then
28374 ac_cv_cxx_have_gnu_ext_hash_map=yes
28375else
28376 echo "$as_me: failed program was:" >&5
28377sed 's/^/| /' conftest.$ac_ext >&5
28378
28379ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028380fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028382 ac_ext=c
28383ac_cpp='$CPP $CPPFLAGS'
28384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386ac_compiler_gnu=$ac_cv_c_compiler_gnu
28387
28388fi
28389echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28390echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028391 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28392 then
John Criswell9f011862004-09-24 18:28:00 +000028393
28394cat >>confdefs.h <<\_ACEOF
28395#define HAVE_GNU_EXT_HASH_MAP 1
28396_ACEOF
28397
28398 else
28399
28400cat >>confdefs.h <<\_ACEOF
28401#define HAVE_GNU_EXT_HASH_MAP 0
28402_ACEOF
28403
Brian Gaeke90583492003-11-10 03:06:28 +000028404 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028405
Brian Gaeke90583492003-11-10 03:06:28 +000028406 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28407echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28408if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28409 echo $ECHO_N "(cached) $ECHO_C" >&6
28410else
John Criswell7a73b802003-06-30 21:59:07 +000028411
Brian Gaeke90583492003-11-10 03:06:28 +000028412 ac_ext=cc
28413ac_cpp='$CXXCPP $CPPFLAGS'
28414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28417
28418 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028419/* confdefs.h. */
28420_ACEOF
28421cat confdefs.h >>conftest.$ac_ext
28422cat >>conftest.$ac_ext <<_ACEOF
28423/* end confdefs.h. */
28424#include <hash_map>
28425int
28426main ()
28427{
28428hash_map<int,int> t;
28429 ;
28430 return 0;
28431}
28432_ACEOF
28433rm -f conftest.$ac_objext
28434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028435 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028436 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028437 grep -v '^ *+' conftest.er1 >conftest.err
28438 rm -f conftest.er1
28439 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028442 { ac_try='test -z "$ac_cxx_werror_flag"
28443 || test ! -s conftest.err'
28444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445 (eval $ac_try) 2>&5
28446 ac_status=$?
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); }; } &&
28449 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 (eval $ac_try) 2>&5
28452 ac_status=$?
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; }; then
28455 ac_cv_cxx_have_global_hash_map=yes
28456else
28457 echo "$as_me: failed program was:" >&5
28458sed 's/^/| /' conftest.$ac_ext >&5
28459
28460ac_cv_cxx_have_global_hash_map=no
28461fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028463 ac_ext=c
28464ac_cpp='$CPP $CPPFLAGS'
28465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28467ac_compiler_gnu=$ac_cv_c_compiler_gnu
28468
28469fi
28470echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28471echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028472 if test "$ac_cv_cxx_have_global_hash_map" = yes
28473 then
John Criswell9f011862004-09-24 18:28:00 +000028474
28475cat >>confdefs.h <<\_ACEOF
28476#define HAVE_GLOBAL_HASH_MAP 1
28477_ACEOF
28478
28479 else
28480
28481cat >>confdefs.h <<\_ACEOF
28482#define HAVE_GLOBAL_HASH_MAP 0
28483_ACEOF
28484
Brian Gaeke90583492003-11-10 03:06:28 +000028485 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028486
Brian Gaeke90583492003-11-10 03:06:28 +000028487echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28488echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28489if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028490 echo $ECHO_N "(cached) $ECHO_C" >&6
28491else
28492
John Criswell7a73b802003-06-30 21:59:07 +000028493 ac_ext=cc
28494ac_cpp='$CXXCPP $CPPFLAGS'
28495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28498
28499 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028500/* confdefs.h. */
28501_ACEOF
28502cat confdefs.h >>conftest.$ac_ext
28503cat >>conftest.$ac_ext <<_ACEOF
28504/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028505#include <ext/hash_set>
28506#ifdef HAVE_NAMESPACES
28507using namespace std;
28508#endif
John Criswell7a73b802003-06-30 21:59:07 +000028509int
28510main ()
28511{
Brian Gaeke90583492003-11-10 03:06:28 +000028512hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028513 ;
28514 return 0;
28515}
28516_ACEOF
28517rm -f conftest.$ac_objext
28518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028519 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028521 grep -v '^ *+' conftest.er1 >conftest.err
28522 rm -f conftest.er1
28523 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028526 { ac_try='test -z "$ac_cxx_werror_flag"
28527 || test ! -s conftest.err'
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; } &&
28533 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28536 ac_status=$?
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028539 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028540else
28541 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028542sed 's/^/| /' conftest.$ac_ext >&5
28543
Brian Gaeke90583492003-11-10 03:06:28 +000028544ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028545fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028547 ac_ext=c
28548ac_cpp='$CPP $CPPFLAGS'
28549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28551ac_compiler_gnu=$ac_cv_c_compiler_gnu
28552
28553fi
28554echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28555echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028556 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28557 then
John Criswell9f011862004-09-24 18:28:00 +000028558
28559cat >>confdefs.h <<\_ACEOF
28560#define HAVE_STD_EXT_HASH_SET 1
28561_ACEOF
28562
28563 else
28564
28565cat >>confdefs.h <<\_ACEOF
28566#define HAVE_STD_EXT_HASH_SET 0
28567_ACEOF
28568
Brian Gaeke90583492003-11-10 03:06:28 +000028569 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028570
Brian Gaeke90583492003-11-10 03:06:28 +000028571 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28572echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28573if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28574 echo $ECHO_N "(cached) $ECHO_C" >&6
28575else
28576
Brian Gaeke90583492003-11-10 03:06:28 +000028577 ac_ext=cc
28578ac_cpp='$CXXCPP $CPPFLAGS'
28579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28582
John Criswell7a73b802003-06-30 21:59:07 +000028583 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028584/* confdefs.h. */
28585_ACEOF
28586cat confdefs.h >>conftest.$ac_ext
28587cat >>conftest.$ac_ext <<_ACEOF
28588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028589#include <ext/hash_set>
28590#ifdef HAVE_NAMESPACES
28591using namespace __gnu_cxx;
28592#endif
John Criswell7a73b802003-06-30 21:59:07 +000028593int
28594main ()
28595{
Brian Gaeke90583492003-11-10 03:06:28 +000028596hash_set<int> t;
28597 ;
28598 return 0;
28599}
28600_ACEOF
28601rm -f conftest.$ac_objext
28602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028603 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028604 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028605 grep -v '^ *+' conftest.er1 >conftest.err
28606 rm -f conftest.er1
28607 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028610 { ac_try='test -z "$ac_cxx_werror_flag"
28611 || test ! -s conftest.err'
28612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28613 (eval $ac_try) 2>&5
28614 ac_status=$?
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); }; } &&
28617 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28619 (eval $ac_try) 2>&5
28620 ac_status=$?
28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); }; }; then
28623 ac_cv_cxx_have_gnu_ext_hash_set=yes
28624else
28625 echo "$as_me: failed program was:" >&5
28626sed 's/^/| /' conftest.$ac_ext >&5
28627
28628ac_cv_cxx_have_gnu_ext_hash_set=no
28629fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028631 ac_ext=c
28632ac_cpp='$CPP $CPPFLAGS'
28633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28635ac_compiler_gnu=$ac_cv_c_compiler_gnu
28636
28637fi
28638echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28639echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028640 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28641 then
John Criswell9f011862004-09-24 18:28:00 +000028642
28643cat >>confdefs.h <<\_ACEOF
28644#define HAVE_GNU_EXT_HASH_SET 1
28645_ACEOF
28646
28647 else
28648
28649cat >>confdefs.h <<\_ACEOF
28650#define HAVE_GNU_EXT_HASH_SET 0
28651_ACEOF
28652
Brian Gaeke90583492003-11-10 03:06:28 +000028653 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028654
Brian Gaeke90583492003-11-10 03:06:28 +000028655 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28656echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28657if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28659else
28660
Brian Gaeke90583492003-11-10 03:06:28 +000028661 ac_ext=cc
28662ac_cpp='$CXXCPP $CPPFLAGS'
28663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28666
28667 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028668/* confdefs.h. */
28669_ACEOF
28670cat confdefs.h >>conftest.$ac_ext
28671cat >>conftest.$ac_ext <<_ACEOF
28672/* end confdefs.h. */
28673#include <hash_set>
28674int
28675main ()
28676{
John Criswell7a73b802003-06-30 21:59:07 +000028677hash_set<int> t; return 0;
28678 ;
28679 return 0;
28680}
28681_ACEOF
28682rm -f conftest.$ac_objext
28683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028684 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028685 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028686 grep -v '^ *+' conftest.er1 >conftest.err
28687 rm -f conftest.er1
28688 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028691 { ac_try='test -z "$ac_cxx_werror_flag"
28692 || test ! -s conftest.err'
28693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694 (eval $ac_try) 2>&5
28695 ac_status=$?
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; } &&
28698 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28700 (eval $ac_try) 2>&5
28701 ac_status=$?
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028704 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028705else
28706 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028707sed 's/^/| /' conftest.$ac_ext >&5
28708
Brian Gaeke90583492003-11-10 03:06:28 +000028709ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028710fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028712 ac_ext=c
28713ac_cpp='$CPP $CPPFLAGS'
28714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28716ac_compiler_gnu=$ac_cv_c_compiler_gnu
28717
John Criswell7a73b802003-06-30 21:59:07 +000028718fi
Brian Gaeke90583492003-11-10 03:06:28 +000028719echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28720echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028721 if test "$ac_cv_cxx_have_global_hash_set" = yes
28722 then
John Criswell9f011862004-09-24 18:28:00 +000028723
28724cat >>confdefs.h <<\_ACEOF
28725#define HAVE_GLOBAL_HASH_SET 1
28726_ACEOF
28727
28728 else
28729
28730cat >>confdefs.h <<\_ACEOF
28731#define HAVE_GLOBAL_HASH_SET 0
28732_ACEOF
28733
Brian Gaeke90583492003-11-10 03:06:28 +000028734 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028735
John Criswell7a73b802003-06-30 21:59:07 +000028736echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28737echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28738if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28739 echo $ECHO_N "(cached) $ECHO_C" >&6
28740else
28741
John Criswell7a73b802003-06-30 21:59:07 +000028742 ac_ext=cc
28743ac_cpp='$CXXCPP $CPPFLAGS'
28744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28747
28748 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028749/* confdefs.h. */
28750_ACEOF
28751cat confdefs.h >>conftest.$ac_ext
28752cat >>conftest.$ac_ext <<_ACEOF
28753/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028754#include <iterator>
28755#ifdef HAVE_NAMESPACES
28756using namespace std;
28757#endif
John Criswell7a73b802003-06-30 21:59:07 +000028758int
28759main ()
28760{
28761iterator<int,int,int> t; return 0;
28762 ;
28763 return 0;
28764}
28765_ACEOF
28766rm -f conftest.$ac_objext
28767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028768 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028769 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028770 grep -v '^ *+' conftest.er1 >conftest.err
28771 rm -f conftest.er1
28772 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028775 { ac_try='test -z "$ac_cxx_werror_flag"
28776 || test ! -s conftest.err'
28777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778 (eval $ac_try) 2>&5
28779 ac_status=$?
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; } &&
28782 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28785 ac_status=$?
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; }; then
28788 ac_cv_cxx_have_std_iterator=yes
28789else
28790 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028791sed 's/^/| /' conftest.$ac_ext >&5
28792
John Criswell7a73b802003-06-30 21:59:07 +000028793ac_cv_cxx_have_std_iterator=no
28794fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028796 ac_ext=c
28797ac_cpp='$CPP $CPPFLAGS'
28798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28800ac_compiler_gnu=$ac_cv_c_compiler_gnu
28801
28802
28803fi
28804echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28805echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028806if test "$ac_cv_cxx_have_std_iterator" = yes
28807then
John Criswell40468462004-09-24 21:19:06 +000028808
28809cat >>confdefs.h <<\_ACEOF
28810#define HAVE_STD_ITERATOR 1
28811_ACEOF
28812
28813else
28814
28815cat >>confdefs.h <<\_ACEOF
28816#define HAVE_STD_ITERATOR 0
28817_ACEOF
28818
John Criswell7a73b802003-06-30 21:59:07 +000028819fi
28820
28821echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28822echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28823if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28824 echo $ECHO_N "(cached) $ECHO_C" >&6
28825else
28826
John Criswell7a73b802003-06-30 21:59:07 +000028827 ac_ext=cc
28828ac_cpp='$CXXCPP $CPPFLAGS'
28829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28832
28833 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028834/* confdefs.h. */
28835_ACEOF
28836cat confdefs.h >>conftest.$ac_ext
28837cat >>conftest.$ac_ext <<_ACEOF
28838/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028839#include <iterator>
28840#ifdef HAVE_NAMESPACES
28841using namespace std;
28842#endif
John Criswell7a73b802003-06-30 21:59:07 +000028843int
28844main ()
28845{
John Criswellc78022e2003-07-29 19:11:58 +000028846bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028847 ;
28848 return 0;
28849}
28850_ACEOF
28851rm -f conftest.$ac_objext
28852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028853 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028854 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028855 grep -v '^ *+' conftest.er1 >conftest.err
28856 rm -f conftest.er1
28857 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028860 { ac_try='test -z "$ac_cxx_werror_flag"
28861 || test ! -s conftest.err'
28862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863 (eval $ac_try) 2>&5
28864 ac_status=$?
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); }; } &&
28867 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28869 (eval $ac_try) 2>&5
28870 ac_status=$?
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); }; }; then
28873 ac_cv_cxx_have_bi_iterator=yes
28874else
28875 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028876sed 's/^/| /' conftest.$ac_ext >&5
28877
John Criswell7a73b802003-06-30 21:59:07 +000028878ac_cv_cxx_have_bi_iterator=no
28879fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028881 ac_ext=c
28882ac_cpp='$CPP $CPPFLAGS'
28883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28885ac_compiler_gnu=$ac_cv_c_compiler_gnu
28886
28887
28888fi
28889echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28890echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028891if test "$ac_cv_cxx_have_bi_iterator" = yes
28892then
John Criswell40468462004-09-24 21:19:06 +000028893
28894cat >>confdefs.h <<\_ACEOF
28895#define HAVE_BI_ITERATOR 1
28896_ACEOF
28897
28898else
28899
28900cat >>confdefs.h <<\_ACEOF
28901#define HAVE_BI_ITERATOR 0
28902_ACEOF
28903
John Criswell7a73b802003-06-30 21:59:07 +000028904fi
28905
28906echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28907echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28908if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28910else
28911
John Criswell7a73b802003-06-30 21:59:07 +000028912 ac_ext=cc
28913ac_cpp='$CXXCPP $CPPFLAGS'
28914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28917
28918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028919/* confdefs.h. */
28920_ACEOF
28921cat confdefs.h >>conftest.$ac_ext
28922cat >>conftest.$ac_ext <<_ACEOF
28923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028924#include <iterator>
28925#ifdef HAVE_NAMESPACES
28926using namespace std;
28927#endif
John Criswell7a73b802003-06-30 21:59:07 +000028928int
28929main ()
28930{
John Criswellc78022e2003-07-29 19:11:58 +000028931forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028932 ;
28933 return 0;
28934}
28935_ACEOF
28936rm -f conftest.$ac_objext
28937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028938 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028939 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028940 grep -v '^ *+' conftest.er1 >conftest.err
28941 rm -f conftest.er1
28942 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028945 { ac_try='test -z "$ac_cxx_werror_flag"
28946 || test ! -s conftest.err'
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; } &&
28952 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954 (eval $ac_try) 2>&5
28955 ac_status=$?
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); }; }; then
28958 ac_cv_cxx_have_fwd_iterator=yes
28959else
28960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028961sed 's/^/| /' conftest.$ac_ext >&5
28962
John Criswell7a73b802003-06-30 21:59:07 +000028963ac_cv_cxx_have_fwd_iterator=no
28964fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028966 ac_ext=c
28967ac_cpp='$CPP $CPPFLAGS'
28968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28970ac_compiler_gnu=$ac_cv_c_compiler_gnu
28971
28972
28973fi
28974echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28975echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028976if test "$ac_cv_cxx_have_fwd_iterator" = yes
28977then
John Criswell40468462004-09-24 21:19:06 +000028978
28979cat >>confdefs.h <<\_ACEOF
28980#define HAVE_FWD_ITERATOR 1
28981_ACEOF
28982
28983else
28984
28985cat >>confdefs.h <<\_ACEOF
28986#define HAVE_FWD_ITERATOR 0
28987_ACEOF
28988
John Criswell7a73b802003-06-30 21:59:07 +000028989fi
28990
28991
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028992echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28993echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28994if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28995 echo $ECHO_N "(cached) $ECHO_C" >&6
28996else
28997 ac_ext=cc
28998ac_cpp='$CXXCPP $CPPFLAGS'
28999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29002
Reid Spencerabec8f92004-10-27 23:03:44 +000029003 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029004/* confdefs.h. */
29005_ACEOF
29006cat confdefs.h >>conftest.$ac_ext
29007cat >>conftest.$ac_ext <<_ACEOF
29008/* end confdefs.h. */
29009#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029010int
29011main ()
29012{
29013float f; isnan(f);
29014 ;
29015 return 0;
29016}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029017_ACEOF
29018rm -f conftest.$ac_objext
29019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029020 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029021 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029022 grep -v '^ *+' conftest.er1 >conftest.err
29023 rm -f conftest.er1
29024 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029027 { ac_try='test -z "$ac_cxx_werror_flag"
29028 || test ! -s conftest.err'
29029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29030 (eval $ac_try) 2>&5
29031 ac_status=$?
29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); }; } &&
29034 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29036 (eval $ac_try) 2>&5
29037 ac_status=$?
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); }; }; then
29040 ac_cv_func_isnan_in_math_h=yes
29041else
29042 echo "$as_me: failed program was:" >&5
29043sed 's/^/| /' conftest.$ac_ext >&5
29044
29045ac_cv_func_isnan_in_math_h=no
29046fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029048 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029049ac_cpp='$CPP $CPPFLAGS'
29050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29052ac_compiler_gnu=$ac_cv_c_compiler_gnu
29053
29054fi
29055echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29056echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029057
29058
29059if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029060
29061cat >>confdefs.h <<\_ACEOF
29062#define HAVE_ISNAN_IN_MATH_H 1
29063_ACEOF
29064
Reid Spencerabec8f92004-10-27 23:03:44 +000029065fi
29066
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029067echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29068echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29069if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29070 echo $ECHO_N "(cached) $ECHO_C" >&6
29071else
29072 ac_ext=cc
29073ac_cpp='$CXXCPP $CPPFLAGS'
29074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29077
Reid Spencerabec8f92004-10-27 23:03:44 +000029078 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029079/* confdefs.h. */
29080_ACEOF
29081cat confdefs.h >>conftest.$ac_ext
29082cat >>conftest.$ac_ext <<_ACEOF
29083/* end confdefs.h. */
29084#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029085int
29086main ()
29087{
29088float f; isnan(f);
29089 ;
29090 return 0;
29091}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029092_ACEOF
29093rm -f conftest.$ac_objext
29094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029095 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029096 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029097 grep -v '^ *+' conftest.er1 >conftest.err
29098 rm -f conftest.er1
29099 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029102 { ac_try='test -z "$ac_cxx_werror_flag"
29103 || test ! -s conftest.err'
29104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105 (eval $ac_try) 2>&5
29106 ac_status=$?
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; } &&
29109 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111 (eval $ac_try) 2>&5
29112 ac_status=$?
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); }; }; then
29115 ac_cv_func_isnan_in_cmath=yes
29116else
29117 echo "$as_me: failed program was:" >&5
29118sed 's/^/| /' conftest.$ac_ext >&5
29119
29120ac_cv_func_isnan_in_cmath=no
29121fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029123 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029124ac_cpp='$CPP $CPPFLAGS'
29125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29127ac_compiler_gnu=$ac_cv_c_compiler_gnu
29128
29129fi
29130echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29131echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029132
29133if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029134
29135cat >>confdefs.h <<\_ACEOF
29136#define HAVE_ISNAN_IN_CMATH 1
29137_ACEOF
29138
Reid Spencerabec8f92004-10-27 23:03:44 +000029139fi
29140
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029141echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29142echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29143if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29144 echo $ECHO_N "(cached) $ECHO_C" >&6
29145else
29146 ac_ext=cc
29147ac_cpp='$CXXCPP $CPPFLAGS'
29148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29151
Reid Spencerabec8f92004-10-27 23:03:44 +000029152 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029153/* confdefs.h. */
29154_ACEOF
29155cat confdefs.h >>conftest.$ac_ext
29156cat >>conftest.$ac_ext <<_ACEOF
29157/* end confdefs.h. */
29158#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029159int
29160main ()
29161{
29162float f; std::isnan(f);
29163 ;
29164 return 0;
29165}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029166_ACEOF
29167rm -f conftest.$ac_objext
29168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029169 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029170 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029171 grep -v '^ *+' conftest.er1 >conftest.err
29172 rm -f conftest.er1
29173 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029176 { ac_try='test -z "$ac_cxx_werror_flag"
29177 || test ! -s conftest.err'
29178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29179 (eval $ac_try) 2>&5
29180 ac_status=$?
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); }; } &&
29183 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29185 (eval $ac_try) 2>&5
29186 ac_status=$?
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); }; }; then
29189 ac_cv_func_std_isnan_in_cmath=yes
29190else
29191 echo "$as_me: failed program was:" >&5
29192sed 's/^/| /' conftest.$ac_ext >&5
29193
29194ac_cv_func_std_isnan_in_cmath=no
29195fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029197 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029198ac_cpp='$CPP $CPPFLAGS'
29199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29201ac_compiler_gnu=$ac_cv_c_compiler_gnu
29202
29203fi
29204echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29205echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029206
29207if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029208
29209cat >>confdefs.h <<\_ACEOF
29210#define HAVE_STD_ISNAN_IN_CMATH 1
29211_ACEOF
29212
Reid Spencerabec8f92004-10-27 23:03:44 +000029213fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029214
29215
Brian Gaeke52a551d2004-07-21 03:14:12 +000029216echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29217echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29218if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29220else
29221 ac_ext=cc
29222ac_cpp='$CXXCPP $CPPFLAGS'
29223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29226
Reid Spencerabec8f92004-10-27 23:03:44 +000029227 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029228/* confdefs.h. */
29229_ACEOF
29230cat confdefs.h >>conftest.$ac_ext
29231cat >>conftest.$ac_ext <<_ACEOF
29232/* end confdefs.h. */
29233#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029234int
29235main ()
29236{
29237float f; isinf(f);
29238 ;
29239 return 0;
29240}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029241_ACEOF
29242rm -f conftest.$ac_objext
29243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029244 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029245 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029246 grep -v '^ *+' conftest.er1 >conftest.err
29247 rm -f conftest.er1
29248 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029251 { ac_try='test -z "$ac_cxx_werror_flag"
29252 || test ! -s conftest.err'
29253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29254 (eval $ac_try) 2>&5
29255 ac_status=$?
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; } &&
29258 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260 (eval $ac_try) 2>&5
29261 ac_status=$?
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); }; }; then
29264 ac_cv_func_isinf_in_math_h=yes
29265else
29266 echo "$as_me: failed program was:" >&5
29267sed 's/^/| /' conftest.$ac_ext >&5
29268
29269ac_cv_func_isinf_in_math_h=no
29270fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029272 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029273ac_cpp='$CPP $CPPFLAGS'
29274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29276ac_compiler_gnu=$ac_cv_c_compiler_gnu
29277
29278fi
29279echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29280echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029281
29282if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029283
29284cat >>confdefs.h <<\_ACEOF
29285#define HAVE_ISINF_IN_MATH_H 1
29286_ACEOF
29287
Reid Spencerabec8f92004-10-27 23:03:44 +000029288fi
29289
Brian Gaeke52a551d2004-07-21 03:14:12 +000029290echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29291echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29292if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29293 echo $ECHO_N "(cached) $ECHO_C" >&6
29294else
29295 ac_ext=cc
29296ac_cpp='$CXXCPP $CPPFLAGS'
29297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29300
Reid Spencerabec8f92004-10-27 23:03:44 +000029301 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029302/* confdefs.h. */
29303_ACEOF
29304cat confdefs.h >>conftest.$ac_ext
29305cat >>conftest.$ac_ext <<_ACEOF
29306/* end confdefs.h. */
29307#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029308int
29309main ()
29310{
29311float f; isinf(f);
29312 ;
29313 return 0;
29314}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029315_ACEOF
29316rm -f conftest.$ac_objext
29317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029318 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029319 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029320 grep -v '^ *+' conftest.er1 >conftest.err
29321 rm -f conftest.er1
29322 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029325 { ac_try='test -z "$ac_cxx_werror_flag"
29326 || test ! -s conftest.err'
29327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328 (eval $ac_try) 2>&5
29329 ac_status=$?
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; } &&
29332 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29334 (eval $ac_try) 2>&5
29335 ac_status=$?
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29337 (exit $ac_status); }; }; then
29338 ac_cv_func_isinf_in_cmath=yes
29339else
29340 echo "$as_me: failed program was:" >&5
29341sed 's/^/| /' conftest.$ac_ext >&5
29342
29343ac_cv_func_isinf_in_cmath=no
29344fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029346 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029347ac_cpp='$CPP $CPPFLAGS'
29348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29350ac_compiler_gnu=$ac_cv_c_compiler_gnu
29351
29352fi
29353echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29354echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029355
29356if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029357
29358cat >>confdefs.h <<\_ACEOF
29359#define HAVE_ISINF_IN_CMATH 1
29360_ACEOF
29361
Reid Spencerabec8f92004-10-27 23:03:44 +000029362fi
29363
Brian Gaeke52a551d2004-07-21 03:14:12 +000029364echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29365echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29366if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29368else
29369 ac_ext=cc
29370ac_cpp='$CXXCPP $CPPFLAGS'
29371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29374
Reid Spencerabec8f92004-10-27 23:03:44 +000029375 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029376/* confdefs.h. */
29377_ACEOF
29378cat confdefs.h >>conftest.$ac_ext
29379cat >>conftest.$ac_ext <<_ACEOF
29380/* end confdefs.h. */
29381#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029382int
29383main ()
29384{
29385float f; std::isinf(f)}
29386 ;
29387 return 0;
29388}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029389_ACEOF
29390rm -f conftest.$ac_objext
29391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029392 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029393 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029394 grep -v '^ *+' conftest.er1 >conftest.err
29395 rm -f conftest.er1
29396 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029399 { ac_try='test -z "$ac_cxx_werror_flag"
29400 || test ! -s conftest.err'
29401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402 (eval $ac_try) 2>&5
29403 ac_status=$?
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); }; } &&
29406 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408 (eval $ac_try) 2>&5
29409 ac_status=$?
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; }; then
29412 ac_cv_func_std_isinf_in_cmath=yes
29413else
29414 echo "$as_me: failed program was:" >&5
29415sed 's/^/| /' conftest.$ac_ext >&5
29416
29417ac_cv_func_std_isinf_in_cmath=no
29418fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029420 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029421ac_cpp='$CPP $CPPFLAGS'
29422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29424ac_compiler_gnu=$ac_cv_c_compiler_gnu
29425
29426fi
29427echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29428echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029429
29430if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029431
29432cat >>confdefs.h <<\_ACEOF
29433#define HAVE_STD_ISINF_IN_CMATH 1
29434_ACEOF
29435
Reid Spencerabec8f92004-10-27 23:03:44 +000029436fi
29437
Brian Gaeked59a6472004-07-21 03:33:58 +000029438echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29439echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29440if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29441 echo $ECHO_N "(cached) $ECHO_C" >&6
29442else
29443 ac_ext=cc
29444ac_cpp='$CXXCPP $CPPFLAGS'
29445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29448
Reid Spencerabec8f92004-10-27 23:03:44 +000029449 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029450/* confdefs.h. */
29451_ACEOF
29452cat confdefs.h >>conftest.$ac_ext
29453cat >>conftest.$ac_ext <<_ACEOF
29454/* end confdefs.h. */
29455#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029456int
29457main ()
29458{
29459float f; finite(f);
29460 ;
29461 return 0;
29462}
Brian Gaeked59a6472004-07-21 03:33:58 +000029463_ACEOF
29464rm -f conftest.$ac_objext
29465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029466 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029467 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029468 grep -v '^ *+' conftest.er1 >conftest.err
29469 rm -f conftest.er1
29470 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029473 { ac_try='test -z "$ac_cxx_werror_flag"
29474 || test ! -s conftest.err'
29475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29476 (eval $ac_try) 2>&5
29477 ac_status=$?
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); }; } &&
29480 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29482 (eval $ac_try) 2>&5
29483 ac_status=$?
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; }; then
29486 ac_cv_func_finite_in_ieeefp_h=yes
29487else
29488 echo "$as_me: failed program was:" >&5
29489sed 's/^/| /' conftest.$ac_ext >&5
29490
29491ac_cv_func_finite_in_ieeefp_h=no
29492fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029494 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029495ac_cpp='$CPP $CPPFLAGS'
29496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29498ac_compiler_gnu=$ac_cv_c_compiler_gnu
29499
29500fi
29501echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29502echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029503
Brian Gaeke6802b552004-10-28 05:06:45 +000029504if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029505
29506cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029507#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029508_ACEOF
29509
Reid Spencerabec8f92004-10-27 23:03:44 +000029510fi
29511
29512
29513
John Criswell7a73b802003-06-30 21:59:07 +000029514
29515
29516for ac_header in stdlib.h unistd.h
29517do
29518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29519if eval "test \"\${$as_ac_Header+set}\" = set"; then
29520 echo "$as_me:$LINENO: checking for $ac_header" >&5
29521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29522if eval "test \"\${$as_ac_Header+set}\" = set"; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29524fi
29525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29527else
29528 # Is the header compilable?
29529echo "$as_me:$LINENO: checking $ac_header usability" >&5
29530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29531cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029532/* confdefs.h. */
29533_ACEOF
29534cat confdefs.h >>conftest.$ac_ext
29535cat >>conftest.$ac_ext <<_ACEOF
29536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029537$ac_includes_default
29538#include <$ac_header>
29539_ACEOF
29540rm -f conftest.$ac_objext
29541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029542 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029543 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029544 grep -v '^ *+' conftest.er1 >conftest.err
29545 rm -f conftest.er1
29546 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029549 { ac_try='test -z "$ac_c_werror_flag"
29550 || test ! -s conftest.err'
29551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552 (eval $ac_try) 2>&5
29553 ac_status=$?
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; } &&
29556 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558 (eval $ac_try) 2>&5
29559 ac_status=$?
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); }; }; then
29562 ac_header_compiler=yes
29563else
29564 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029565sed 's/^/| /' conftest.$ac_ext >&5
29566
John Criswell7a73b802003-06-30 21:59:07 +000029567ac_header_compiler=no
29568fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29571echo "${ECHO_T}$ac_header_compiler" >&6
29572
29573# Is the header present?
29574echo "$as_me:$LINENO: checking $ac_header presence" >&5
29575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29576cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029577/* confdefs.h. */
29578_ACEOF
29579cat confdefs.h >>conftest.$ac_ext
29580cat >>conftest.$ac_ext <<_ACEOF
29581/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029582#include <$ac_header>
29583_ACEOF
29584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29586 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029587 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029588 rm -f conftest.er1
29589 cat conftest.err >&5
29590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591 (exit $ac_status); } >/dev/null; then
29592 if test -s conftest.err; then
29593 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029595 else
29596 ac_cpp_err=
29597 fi
29598else
29599 ac_cpp_err=yes
29600fi
29601if test -z "$ac_cpp_err"; then
29602 ac_header_preproc=yes
29603else
29604 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029605sed 's/^/| /' conftest.$ac_ext >&5
29606
John Criswell7a73b802003-06-30 21:59:07 +000029607 ac_header_preproc=no
29608fi
29609rm -f conftest.err conftest.$ac_ext
29610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29611echo "${ECHO_T}$ac_header_preproc" >&6
29612
29613# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29615 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29620 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029621 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029622 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029635 (
29636 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029637## ----------------------------------- ##
29638## Report this to llvmbugs@cs.uiuc.edu ##
29639## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029640_ASBOX
29641 ) |
29642 sed "s/^/$as_me: WARNING: /" >&2
29643 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029644esac
29645echo "$as_me:$LINENO: checking for $ac_header" >&5
29646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29647if eval "test \"\${$as_ac_Header+set}\" = set"; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29649else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029650 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029651fi
29652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29654
29655fi
29656if test `eval echo '${'$as_ac_Header'}'` = yes; then
29657 cat >>confdefs.h <<_ACEOF
29658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29659_ACEOF
29660
29661fi
29662
29663done
29664
29665
29666for ac_func in getpagesize
29667do
29668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29669echo "$as_me:$LINENO: checking for $ac_func" >&5
29670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29671if eval "test \"\${$as_ac_var+set}\" = set"; then
29672 echo $ECHO_N "(cached) $ECHO_C" >&6
29673else
29674 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029675/* confdefs.h. */
29676_ACEOF
29677cat confdefs.h >>conftest.$ac_ext
29678cat >>conftest.$ac_ext <<_ACEOF
29679/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29682#define $ac_func innocuous_$ac_func
29683
John Criswell7a73b802003-06-30 21:59:07 +000029684/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029685 which can conflict with char $ac_func (); below.
29686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29687 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029688
John Criswell0c38eaf2003-09-10 15:17:25 +000029689#ifdef __STDC__
29690# include <limits.h>
29691#else
29692# include <assert.h>
29693#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029694
29695#undef $ac_func
29696
John Criswell7a73b802003-06-30 21:59:07 +000029697/* Override any gcc2 internal prototype to avoid an error. */
29698#ifdef __cplusplus
29699extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029700{
John Criswell7a73b802003-06-30 21:59:07 +000029701#endif
29702/* We use char because int might match the return type of a gcc2
29703 builtin and then its argument prototype would still apply. */
29704char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029705/* The GNU C library defines this for functions which it implements
29706 to always fail with ENOSYS. Some functions are actually named
29707 something starting with __ and the normal name is an alias. */
29708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29709choke me
29710#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029711char (*f) () = $ac_func;
29712#endif
29713#ifdef __cplusplus
29714}
John Criswell7a73b802003-06-30 21:59:07 +000029715#endif
29716
John Criswell0c38eaf2003-09-10 15:17:25 +000029717int
29718main ()
29719{
29720return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029721 ;
29722 return 0;
29723}
29724_ACEOF
29725rm -f conftest.$ac_objext conftest$ac_exeext
29726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029727 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029728 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029729 grep -v '^ *+' conftest.er1 >conftest.err
29730 rm -f conftest.er1
29731 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029734 { ac_try='test -z "$ac_c_werror_flag"
29735 || test ! -s conftest.err'
29736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29737 (eval $ac_try) 2>&5
29738 ac_status=$?
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); }; } &&
29741 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29743 (eval $ac_try) 2>&5
29744 ac_status=$?
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); }; }; then
29747 eval "$as_ac_var=yes"
29748else
29749 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029750sed 's/^/| /' conftest.$ac_ext >&5
29751
John Criswell7a73b802003-06-30 21:59:07 +000029752eval "$as_ac_var=no"
29753fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029754rm -f conftest.err conftest.$ac_objext \
29755 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029756fi
29757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29759if test `eval echo '${'$as_ac_var'}'` = yes; then
29760 cat >>confdefs.h <<_ACEOF
29761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29762_ACEOF
29763
29764fi
29765done
29766
29767echo "$as_me:$LINENO: checking for working mmap" >&5
29768echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29769if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29770 echo $ECHO_N "(cached) $ECHO_C" >&6
29771else
29772 if test "$cross_compiling" = yes; then
29773 ac_cv_func_mmap_fixed_mapped=no
29774else
29775 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029776/* confdefs.h. */
29777_ACEOF
29778cat confdefs.h >>conftest.$ac_ext
29779cat >>conftest.$ac_ext <<_ACEOF
29780/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029781$ac_includes_default
29782/* malloc might have been renamed as rpl_malloc. */
29783#undef malloc
29784
29785/* Thanks to Mike Haertel and Jim Avera for this test.
29786 Here is a matrix of mmap possibilities:
29787 mmap private not fixed
29788 mmap private fixed at somewhere currently unmapped
29789 mmap private fixed at somewhere already mapped
29790 mmap shared not fixed
29791 mmap shared fixed at somewhere currently unmapped
29792 mmap shared fixed at somewhere already mapped
29793 For private mappings, we should verify that changes cannot be read()
29794 back from the file, nor mmap's back from the file at a different
29795 address. (There have been systems where private was not correctly
29796 implemented like the infamous i386 svr4.0, and systems where the
29797 VM page cache was not coherent with the file system buffer cache
29798 like early versions of FreeBSD and possibly contemporary NetBSD.)
29799 For shared mappings, we should conversely verify that changes get
29800 propagated back to all the places they're supposed to be.
29801
29802 Grep wants private fixed already mapped.
29803 The main things grep needs to know about mmap are:
29804 * does it exist and is it safe to write into the mmap'd area
29805 * how to use it (BSD variants) */
29806
29807#include <fcntl.h>
29808#include <sys/mman.h>
29809
29810#if !STDC_HEADERS && !HAVE_STDLIB_H
29811char *malloc ();
29812#endif
29813
29814/* This mess was copied from the GNU getpagesize.h. */
29815#if !HAVE_GETPAGESIZE
29816/* Assume that all systems that can run configure have sys/param.h. */
29817# if !HAVE_SYS_PARAM_H
29818# define HAVE_SYS_PARAM_H 1
29819# endif
29820
29821# ifdef _SC_PAGESIZE
29822# define getpagesize() sysconf(_SC_PAGESIZE)
29823# else /* no _SC_PAGESIZE */
29824# if HAVE_SYS_PARAM_H
29825# include <sys/param.h>
29826# ifdef EXEC_PAGESIZE
29827# define getpagesize() EXEC_PAGESIZE
29828# else /* no EXEC_PAGESIZE */
29829# ifdef NBPG
29830# define getpagesize() NBPG * CLSIZE
29831# ifndef CLSIZE
29832# define CLSIZE 1
29833# endif /* no CLSIZE */
29834# else /* no NBPG */
29835# ifdef NBPC
29836# define getpagesize() NBPC
29837# else /* no NBPC */
29838# ifdef PAGESIZE
29839# define getpagesize() PAGESIZE
29840# endif /* PAGESIZE */
29841# endif /* no NBPC */
29842# endif /* no NBPG */
29843# endif /* no EXEC_PAGESIZE */
29844# else /* no HAVE_SYS_PARAM_H */
29845# define getpagesize() 8192 /* punt totally */
29846# endif /* no HAVE_SYS_PARAM_H */
29847# endif /* no _SC_PAGESIZE */
29848
29849#endif /* no HAVE_GETPAGESIZE */
29850
29851int
29852main ()
29853{
29854 char *data, *data2, *data3;
29855 int i, pagesize;
29856 int fd;
29857
29858 pagesize = getpagesize ();
29859
29860 /* First, make a file with some known garbage in it. */
29861 data = (char *) malloc (pagesize);
29862 if (!data)
29863 exit (1);
29864 for (i = 0; i < pagesize; ++i)
29865 *(data + i) = rand ();
29866 umask (0);
29867 fd = creat ("conftest.mmap", 0600);
29868 if (fd < 0)
29869 exit (1);
29870 if (write (fd, data, pagesize) != pagesize)
29871 exit (1);
29872 close (fd);
29873
29874 /* Next, try to mmap the file at a fixed address which already has
29875 something else allocated at it. If we can, also make sure that
29876 we see the same garbage. */
29877 fd = open ("conftest.mmap", O_RDWR);
29878 if (fd < 0)
29879 exit (1);
29880 data2 = (char *) malloc (2 * pagesize);
29881 if (!data2)
29882 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029883 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029884 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029885 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029886 exit (1);
29887 for (i = 0; i < pagesize; ++i)
29888 if (*(data + i) != *(data2 + i))
29889 exit (1);
29890
29891 /* Finally, make sure that changes to the mapped area do not
29892 percolate back to the file as seen by read(). (This is a bug on
29893 some variants of i386 svr4.0.) */
29894 for (i = 0; i < pagesize; ++i)
29895 *(data2 + i) = *(data2 + i) + 1;
29896 data3 = (char *) malloc (pagesize);
29897 if (!data3)
29898 exit (1);
29899 if (read (fd, data3, pagesize) != pagesize)
29900 exit (1);
29901 for (i = 0; i < pagesize; ++i)
29902 if (*(data + i) != *(data3 + i))
29903 exit (1);
29904 close (fd);
29905 exit (0);
29906}
29907_ACEOF
29908rm -f conftest$ac_exeext
29909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29910 (eval $ac_link) 2>&5
29911 ac_status=$?
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29915 (eval $ac_try) 2>&5
29916 ac_status=$?
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; }; then
29919 ac_cv_func_mmap_fixed_mapped=yes
29920else
29921 echo "$as_me: program exited with status $ac_status" >&5
29922echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029923sed 's/^/| /' conftest.$ac_ext >&5
29924
John Criswell7a73b802003-06-30 21:59:07 +000029925( exit $ac_status )
29926ac_cv_func_mmap_fixed_mapped=no
29927fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029929fi
29930fi
29931echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29932echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29933if test $ac_cv_func_mmap_fixed_mapped = yes; then
29934
29935cat >>confdefs.h <<\_ACEOF
29936#define HAVE_MMAP 1
29937_ACEOF
29938
29939fi
29940rm -f conftest.mmap
29941
29942echo "$as_me:$LINENO: checking for mmap of files" >&5
29943echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29944if test "${ac_cv_func_mmap_file+set}" = set; then
29945 echo $ECHO_N "(cached) $ECHO_C" >&6
29946else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029947 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029948ac_cpp='$CPP $CPPFLAGS'
29949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29951ac_compiler_gnu=$ac_cv_c_compiler_gnu
29952
29953 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029954 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029955else
29956 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029957
Reid Spencer777ce172004-09-20 04:09:56 +000029958 /* confdefs.h. */
29959_ACEOF
29960cat confdefs.h >>conftest.$ac_ext
29961cat >>conftest.$ac_ext <<_ACEOF
29962/* end confdefs.h. */
29963
John Criswell7a73b802003-06-30 21:59:07 +000029964#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029965#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029966#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029967
29968int
29969main ()
29970{
John Criswell7a73b802003-06-30 21:59:07 +000029971
29972 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029973 fd = creat ("foo",0777);
29974 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29975 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029976 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029977 ;
29978 return 0;
29979}
John Criswell7a73b802003-06-30 21:59:07 +000029980_ACEOF
29981rm -f conftest$ac_exeext
29982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29983 (eval $ac_link) 2>&5
29984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29988 (eval $ac_try) 2>&5
29989 ac_status=$?
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; }; then
29992 ac_cv_func_mmap_file=yes
29993else
29994 echo "$as_me: program exited with status $ac_status" >&5
29995echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029996sed 's/^/| /' conftest.$ac_ext >&5
29997
John Criswell7a73b802003-06-30 21:59:07 +000029998( exit $ac_status )
29999ac_cv_func_mmap_file=no
30000fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030002fi
30003 ac_ext=c
30004ac_cpp='$CPP $CPPFLAGS'
30005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30007ac_compiler_gnu=$ac_cv_c_compiler_gnu
30008
30009
30010fi
30011echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30012echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30013if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030014
30015cat >>confdefs.h <<\_ACEOF
30016#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030017_ACEOF
30018
30019 MMAP_FILE=yes
30020
30021fi
30022
Reid Spencer7931a782004-12-27 06:15:02 +000030023echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30024echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30025if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30026 echo $ECHO_N "(cached) $ECHO_C" >&6
30027else
Reid Spencer582a23c2004-12-29 07:07:57 +000030028 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030029 ac_cv_need_dev_zero_for_mmap=yes
30030 else
30031 ac_cv_need_dev_zero_for_mmap=no
30032 fi
30033
30034fi
30035echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30036echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30037if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30038
30039cat >>confdefs.h <<\_ACEOF
30040#define NEED_DEV_ZERO_FOR_MMAP 1
30041_ACEOF
30042
30043fi
John Criswell7a73b802003-06-30 21:59:07 +000030044echo "$as_me:$LINENO: checking for mprotect" >&5
30045echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30046if test "${ac_cv_func_mprotect+set}" = set; then
30047 echo $ECHO_N "(cached) $ECHO_C" >&6
30048else
30049 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030050/* confdefs.h. */
30051_ACEOF
30052cat confdefs.h >>conftest.$ac_ext
30053cat >>conftest.$ac_ext <<_ACEOF
30054/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030055/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30057#define mprotect innocuous_mprotect
30058
John Criswell7a73b802003-06-30 21:59:07 +000030059/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030060 which can conflict with char mprotect (); below.
30061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30062 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030063
John Criswell0c38eaf2003-09-10 15:17:25 +000030064#ifdef __STDC__
30065# include <limits.h>
30066#else
30067# include <assert.h>
30068#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030069
30070#undef mprotect
30071
John Criswell7a73b802003-06-30 21:59:07 +000030072/* Override any gcc2 internal prototype to avoid an error. */
30073#ifdef __cplusplus
30074extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030075{
John Criswell7a73b802003-06-30 21:59:07 +000030076#endif
30077/* We use char because int might match the return type of a gcc2
30078 builtin and then its argument prototype would still apply. */
30079char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030080/* The GNU C library defines this for functions which it implements
30081 to always fail with ENOSYS. Some functions are actually named
30082 something starting with __ and the normal name is an alias. */
30083#if defined (__stub_mprotect) || defined (__stub___mprotect)
30084choke me
30085#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030086char (*f) () = mprotect;
30087#endif
30088#ifdef __cplusplus
30089}
John Criswell7a73b802003-06-30 21:59:07 +000030090#endif
30091
John Criswell0c38eaf2003-09-10 15:17:25 +000030092int
30093main ()
30094{
30095return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030096 ;
30097 return 0;
30098}
30099_ACEOF
30100rm -f conftest.$ac_objext conftest$ac_exeext
30101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030102 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030103 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030104 grep -v '^ *+' conftest.er1 >conftest.err
30105 rm -f conftest.er1
30106 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030109 { ac_try='test -z "$ac_c_werror_flag"
30110 || test ! -s conftest.err'
30111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112 (eval $ac_try) 2>&5
30113 ac_status=$?
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; } &&
30116 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30118 (eval $ac_try) 2>&5
30119 ac_status=$?
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; }; then
30122 ac_cv_func_mprotect=yes
30123else
30124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030125sed 's/^/| /' conftest.$ac_ext >&5
30126
John Criswell7a73b802003-06-30 21:59:07 +000030127ac_cv_func_mprotect=no
30128fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030129rm -f conftest.err conftest.$ac_objext \
30130 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030131fi
30132echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30133echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30134if test $ac_cv_func_mprotect = yes; then
30135 :
30136else
30137 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30138echo "$as_me: error: Function mprotect() required but not found" >&2;}
30139 { (exit 1); exit 1; }; }
30140fi
30141
30142
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030143if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030144then
Reid Spencer582a23c2004-12-29 07:07:57 +000030145 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30146echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030147fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030148if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030149then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030150 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30151echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030152fi
John Criswell7a73b802003-06-30 21:59:07 +000030153
30154
Brian Gaekef3b24102003-11-16 18:38:14 +000030155echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30156echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030157if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30158 echo $ECHO_N "(cached) $ECHO_C" >&6
30159else
30160 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030161if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030162 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000030163 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030164 if test $? -eq 0 ; then
30165 llvm_cv_llvmgcc_sanity="yes"
30166 fi
30167 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030168fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030169fi
30170echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30171echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30172
30173if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030174 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030175 LLVMCC1=$llvmcc1path
30176
Reid Spencer502935f2004-12-22 05:56:56 +000030177 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030178 LLVMCC1PLUS=$llvmcc1pluspath
30179
Reid Spencer502935f2004-12-22 05:56:56 +000030180 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30181 LLVMGCCDIR=$llvmgccdir
30182
Brian Gaekef3b24102003-11-16 18:38:14 +000030183fi
30184
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030185SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030186
30187
Reid Spencere9de0912004-08-20 09:03:57 +000030188# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030189# information into substitutions that will end up in Makefile.config.in
30190# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030191eval LLVM_PREFIX="${prefix}";
30192eval LLVM_BINDIR="${prefix}/bin";
30193eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030194eval LLVM_DATADIR="${prefix}/share/llvm";
30195eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30196eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030197eval LLVM_INCLUDEDIR="${prefix}/include";
30198eval LLVM_INFODIR="${prefix}/info";
30199eval LLVM_MANDIR="${prefix}/man";
30200LLVM_CONFIGTIME=`date`
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030212# Place the various directores into the config.h file as #defines so that we
30213# can know about the installation paths within LLVM.
30214
Reid Spencere9de0912004-08-20 09:03:57 +000030215cat >>confdefs.h <<_ACEOF
30216#define LLVM_PREFIX "$LLVM_PREFIX"
30217_ACEOF
30218
30219
30220cat >>confdefs.h <<_ACEOF
30221#define LLVM_BINDIR "$LLVM_BINDIR"
30222_ACEOF
30223
30224
30225cat >>confdefs.h <<_ACEOF
30226#define LLVM_LIBDIR "$LLVM_LIBDIR"
30227_ACEOF
30228
30229
30230cat >>confdefs.h <<_ACEOF
30231#define LLVM_DATADIR "$LLVM_DATADIR"
30232_ACEOF
30233
30234
30235cat >>confdefs.h <<_ACEOF
30236#define LLVM_DATADIR "$LLVM_DOCSDIR"
30237_ACEOF
30238
30239
30240cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030241#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030242_ACEOF
30243
30244
30245cat >>confdefs.h <<_ACEOF
30246#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30247_ACEOF
30248
30249
30250cat >>confdefs.h <<_ACEOF
30251#define LLVM_INFODIR "$LLVM_INFODIR"
30252_ACEOF
30253
30254
30255cat >>confdefs.h <<_ACEOF
30256#define LLVM_MANDIR "$LLVM_MANDIR"
30257_ACEOF
30258
30259
30260cat >>confdefs.h <<_ACEOF
30261#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30262_ACEOF
30263
30264
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030265
30266 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30267
30268
30269 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30270
30271 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30272
30273 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30274
30275 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30276
30277 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30278
30279
30280 ac_config_files="$ac_config_files Makefile.config"
30281
30282
30283 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30284
30285
Reid Spencer1f319422004-11-29 04:56:35 +000030286 ac_config_files="$ac_config_files docs/doxygen.cfg"
30287
30288
Reid Spencerc0682832005-02-24 19:05:19 +000030289 ac_config_commands="$ac_config_commands setup"
30290
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030291 ac_config_commands="$ac_config_commands Makefile"
30292
30293
30294 ac_config_commands="$ac_config_commands Makefile.common"
30295
30296
30297 ac_config_commands="$ac_config_commands examples/Makefile"
30298
30299
30300 ac_config_commands="$ac_config_commands lib/Makefile"
30301
30302
30303 ac_config_commands="$ac_config_commands runtime/Makefile"
30304
30305
30306 ac_config_commands="$ac_config_commands test/Makefile"
30307
30308
30309 ac_config_commands="$ac_config_commands test/Makefile.tests"
30310
30311
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030312 ac_config_commands="$ac_config_commands tools/Makefile"
30313
30314
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030315 ac_config_commands="$ac_config_commands utils/Makefile"
30316
30317
30318 ac_config_commands="$ac_config_commands projects/Makefile"
30319
30320
30321
John Criswell7a73b802003-06-30 21:59:07 +000030322cat >confcache <<\_ACEOF
30323# This file is a shell script that caches the results of configure
30324# tests run on this system so they can be shared between configure
30325# scripts and configure runs, see configure's option --config-cache.
30326# It is not useful on other systems. If it contains results you don't
30327# want to keep, you may remove or edit it.
30328#
30329# config.status only pays attention to the cache file if you give it
30330# the --recheck option to rerun configure.
30331#
John Criswell0c38eaf2003-09-10 15:17:25 +000030332# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030333# loading this file, other *unset* `ac_cv_foo' will be assigned the
30334# following values.
30335
30336_ACEOF
30337
30338# The following way of writing the cache mishandles newlines in values,
30339# but we know of no workaround that is simple, portable, and efficient.
30340# So, don't put newlines in cache variables' values.
30341# Ultrix sh set writes to stderr and can't be redirected directly,
30342# and sets the high bit in the cache file unless we assign to the vars.
30343{
30344 (set) 2>&1 |
30345 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30346 *ac_space=\ *)
30347 # `set' does not quote correctly, so add quotes (double-quote
30348 # substitution turns \\\\ into \\, and sed turns \\ into \).
30349 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030350 "s/'/'\\\\''/g;
30351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030352 ;;
30353 *)
30354 # `set' quotes correctly as required by POSIX, so do not add quotes.
30355 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030356 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030357 ;;
30358 esac;
30359} |
30360 sed '
30361 t clear
30362 : clear
30363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30364 t end
30365 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30366 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030367if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030368 if test -w $cache_file; then
30369 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30370 cat confcache >$cache_file
30371 else
30372 echo "not updating unwritable cache $cache_file"
30373 fi
30374fi
30375rm -f confcache
30376
30377test "x$prefix" = xNONE && prefix=$ac_default_prefix
30378# Let make expand exec_prefix.
30379test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30380
30381# VPATH may cause trouble with some makes, so we remove $(srcdir),
30382# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30383# trailing colons and then remove the whole line if VPATH becomes empty
30384# (actually we leave an empty line to preserve line numbers).
30385if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030386 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030387s/:*\$(srcdir):*/:/;
30388s/:*\${srcdir}:*/:/;
30389s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030390s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030391s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030392s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030393}'
30394fi
30395
30396DEFS=-DHAVE_CONFIG_H
30397
John Criswell0c38eaf2003-09-10 15:17:25 +000030398ac_libobjs=
30399ac_ltlibobjs=
30400for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30401 # 1. Remove the extension, and $U if already installed.
30402 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030403 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030404 # 2. Add them.
30405 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30406 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30407done
30408LIBOBJS=$ac_libobjs
30409
30410LTLIBOBJS=$ac_ltlibobjs
30411
30412
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030413if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30414 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30415Usually this means the macro was only invoked conditionally." >&5
30416echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30417Usually this means the macro was only invoked conditionally." >&2;}
30418 { (exit 1); exit 1; }; }
30419fi
30420if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30421 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30422Usually this means the macro was only invoked conditionally." >&5
30423echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30424Usually this means the macro was only invoked conditionally." >&2;}
30425 { (exit 1); exit 1; }; }
30426fi
John Criswell7a73b802003-06-30 21:59:07 +000030427
30428: ${CONFIG_STATUS=./config.status}
30429ac_clean_files_save=$ac_clean_files
30430ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30431{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30432echo "$as_me: creating $CONFIG_STATUS" >&6;}
30433cat >$CONFIG_STATUS <<_ACEOF
30434#! $SHELL
30435# Generated by $as_me.
30436# Run this file to recreate the current configuration.
30437# Compiler output produced by configure, useful for debugging
30438# configure, is in config.log if it exists.
30439
30440debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030441ac_cs_recheck=false
30442ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030443SHELL=\${CONFIG_SHELL-$SHELL}
30444_ACEOF
30445
30446cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030447## --------------------- ##
30448## M4sh Initialization. ##
30449## --------------------- ##
30450
30451# Be Bourne compatible
30452if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30453 emulate sh
30454 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030455 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30456 # is contrary to our usage. Disable this feature.
30457 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030458elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30459 set -o posix
30460fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030461DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030462
John Criswell7a73b802003-06-30 21:59:07 +000030463# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030464if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030465 as_unset=unset
30466else
30467 as_unset=false
30468fi
30469
John Criswell0c38eaf2003-09-10 15:17:25 +000030470
30471# Work around bugs in pre-3.0 UWIN ksh.
30472$as_unset ENV MAIL MAILPATH
30473PS1='$ '
30474PS2='> '
30475PS4='+ '
30476
30477# NLS nuisances.
30478for as_var in \
30479 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30480 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30481 LC_TELEPHONE LC_TIME
30482do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030483 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030484 eval $as_var=C; export $as_var
30485 else
30486 $as_unset $as_var
30487 fi
30488done
30489
30490# Required to use basename.
30491if expr a : '\(a\)' >/dev/null 2>&1; then
30492 as_expr=expr
30493else
30494 as_expr=false
30495fi
30496
30497if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30498 as_basename=basename
30499else
30500 as_basename=false
30501fi
John Criswell7a73b802003-06-30 21:59:07 +000030502
30503
30504# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030505as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030506$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30507 X"$0" : 'X\(//\)$' \| \
30508 X"$0" : 'X\(/\)$' \| \
30509 . : '\(.\)' 2>/dev/null ||
30510echo X/"$0" |
30511 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30512 /^X\/\(\/\/\)$/{ s//\1/; q; }
30513 /^X\/\(\/\).*/{ s//\1/; q; }
30514 s/.*/./; q'`
30515
John Criswell0c38eaf2003-09-10 15:17:25 +000030516
John Criswell7a73b802003-06-30 21:59:07 +000030517# PATH needs CR, and LINENO needs CR and PATH.
30518# Avoid depending upon Character Ranges.
30519as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30520as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30521as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30522as_cr_digits='0123456789'
30523as_cr_alnum=$as_cr_Letters$as_cr_digits
30524
30525# The user is always right.
30526if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030527 echo "#! /bin/sh" >conf$$.sh
30528 echo "exit 0" >>conf$$.sh
30529 chmod +x conf$$.sh
30530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030531 PATH_SEPARATOR=';'
30532 else
30533 PATH_SEPARATOR=:
30534 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030535 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030536fi
30537
30538
30539 as_lineno_1=$LINENO
30540 as_lineno_2=$LINENO
30541 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30542 test "x$as_lineno_1" != "x$as_lineno_2" &&
30543 test "x$as_lineno_3" = "x$as_lineno_2" || {
30544 # Find who we are. Look in the path if we contain no path at all
30545 # relative or not.
30546 case $0 in
30547 *[\\/]* ) as_myself=$0 ;;
30548 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30549for as_dir in $PATH
30550do
30551 IFS=$as_save_IFS
30552 test -z "$as_dir" && as_dir=.
30553 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30554done
30555
30556 ;;
30557 esac
30558 # We did not find ourselves, most probably we were run as `sh COMMAND'
30559 # in which case we are not to be found in the path.
30560 if test "x$as_myself" = x; then
30561 as_myself=$0
30562 fi
30563 if test ! -f "$as_myself"; then
30564 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30565echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30566 { (exit 1); exit 1; }; }
30567 fi
30568 case $CONFIG_SHELL in
30569 '')
30570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30571for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30572do
30573 IFS=$as_save_IFS
30574 test -z "$as_dir" && as_dir=.
30575 for as_base in sh bash ksh sh5; do
30576 case $as_dir in
30577 /*)
30578 if ("$as_dir/$as_base" -c '
30579 as_lineno_1=$LINENO
30580 as_lineno_2=$LINENO
30581 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30582 test "x$as_lineno_1" != "x$as_lineno_2" &&
30583 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030584 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30585 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030586 CONFIG_SHELL=$as_dir/$as_base
30587 export CONFIG_SHELL
30588 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30589 fi;;
30590 esac
30591 done
30592done
30593;;
30594 esac
30595
30596 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30597 # uniformly replaced by the line number. The first 'sed' inserts a
30598 # line-number line before each line; the second 'sed' does the real
30599 # work. The second script uses 'N' to pair each line-number line
30600 # with the numbered line, and appends trailing '-' during
30601 # substitution so that $LINENO is not a special case at line end.
30602 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30603 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30604 sed '=' <$as_myself |
30605 sed '
30606 N
30607 s,$,-,
30608 : loop
30609 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30610 t loop
30611 s,-$,,
30612 s,^['$as_cr_digits']*\n,,
30613 ' >$as_me.lineno &&
30614 chmod +x $as_me.lineno ||
30615 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30616echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30617 { (exit 1); exit 1; }; }
30618
30619 # Don't try to exec as it changes $[0], causing all sort of problems
30620 # (the dirname of $[0] is not the place where we might find the
30621 # original and so on. Autoconf is especially sensible to this).
30622 . ./$as_me.lineno
30623 # Exit status is that of the last command.
30624 exit
30625}
30626
30627
30628case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30629 *c*,-n*) ECHO_N= ECHO_C='
30630' ECHO_T=' ' ;;
30631 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30632 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30633esac
30634
30635if expr a : '\(a\)' >/dev/null 2>&1; then
30636 as_expr=expr
30637else
30638 as_expr=false
30639fi
30640
30641rm -f conf$$ conf$$.exe conf$$.file
30642echo >conf$$.file
30643if ln -s conf$$.file conf$$ 2>/dev/null; then
30644 # We could just check for DJGPP; but this test a) works b) is more generic
30645 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30646 if test -f conf$$.exe; then
30647 # Don't use ln at all; we don't have any links
30648 as_ln_s='cp -p'
30649 else
30650 as_ln_s='ln -s'
30651 fi
30652elif ln conf$$.file conf$$ 2>/dev/null; then
30653 as_ln_s=ln
30654else
30655 as_ln_s='cp -p'
30656fi
30657rm -f conf$$ conf$$.exe conf$$.file
30658
John Criswell0c38eaf2003-09-10 15:17:25 +000030659if mkdir -p . 2>/dev/null; then
30660 as_mkdir_p=:
30661else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030662 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030663 as_mkdir_p=false
30664fi
30665
John Criswell7a73b802003-06-30 21:59:07 +000030666as_executable_p="test -f"
30667
30668# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030669as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030670
30671# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030672as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030673
30674
30675# IFS
30676# We need space, tab and new line, in precisely that order.
30677as_nl='
30678'
30679IFS=" $as_nl"
30680
30681# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030682$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030683
30684exec 6>&1
30685
30686# Open the log real soon, to keep \$[0] and so on meaningful, and to
30687# report actual input values of CONFIG_FILES etc. instead of their
30688# values after options handling. Logging --version etc. is OK.
30689exec 5>>config.log
30690{
30691 echo
30692 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30693## Running $as_me. ##
30694_ASBOX
30695} >&5
30696cat >&5 <<_CSEOF
30697
Reid Spencer78ba11d2005-02-16 16:21:00 +000030698This file was extended by llvm $as_me 1.5cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030699generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030700
30701 CONFIG_FILES = $CONFIG_FILES
30702 CONFIG_HEADERS = $CONFIG_HEADERS
30703 CONFIG_LINKS = $CONFIG_LINKS
30704 CONFIG_COMMANDS = $CONFIG_COMMANDS
30705 $ $0 $@
30706
30707_CSEOF
30708echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30709echo >&5
30710_ACEOF
30711
30712# Files that config.status was made for.
30713if test -n "$ac_config_files"; then
30714 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30715fi
30716
30717if test -n "$ac_config_headers"; then
30718 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30719fi
30720
30721if test -n "$ac_config_links"; then
30722 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30723fi
30724
30725if test -n "$ac_config_commands"; then
30726 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30727fi
30728
30729cat >>$CONFIG_STATUS <<\_ACEOF
30730
30731ac_cs_usage="\
30732\`$as_me' instantiates files from templates according to the
30733current configuration.
30734
30735Usage: $0 [OPTIONS] [FILE]...
30736
30737 -h, --help print this help, then exit
30738 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030739 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030740 -d, --debug don't remove temporary files
30741 --recheck update $as_me by reconfiguring in the same conditions
30742 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030743 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030744 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030745 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030746
30747Configuration files:
30748$config_files
30749
30750Configuration headers:
30751$config_headers
30752
John Criswellc764fbc2003-09-06 15:17:13 +000030753Configuration commands:
30754$config_commands
30755
John Criswell7a73b802003-06-30 21:59:07 +000030756Report bugs to <bug-autoconf@gnu.org>."
30757_ACEOF
30758
30759cat >>$CONFIG_STATUS <<_ACEOF
30760ac_cs_version="\\
Reid Spencer78ba11d2005-02-16 16:21:00 +000030761llvm config.status 1.5cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000030762configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030763 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30764
Reid Spencer2706f8c2004-09-19 23:53:36 +000030765Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030766This config.status script is free software; the Free Software Foundation
30767gives unlimited permission to copy, distribute and modify it."
30768srcdir=$srcdir
30769INSTALL="$INSTALL"
30770_ACEOF
30771
30772cat >>$CONFIG_STATUS <<\_ACEOF
30773# If no file are specified by the user, then we need to provide default
30774# value. By we need to know if files were specified by the user.
30775ac_need_defaults=:
30776while test $# != 0
30777do
30778 case $1 in
30779 --*=*)
30780 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30781 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030782 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030783 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030784 -*)
30785 ac_option=$1
30786 ac_optarg=$2
30787 ac_shift=shift
30788 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030789 *) # This is not an option, so the user has probably given explicit
30790 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030791 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030792 ac_need_defaults=false;;
30793 esac
30794
John Criswell0c38eaf2003-09-10 15:17:25 +000030795 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030796 # Handling of the options.
30797_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030798cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30800 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030801 --version | --vers* | -V )
30802 echo "$ac_cs_version"; exit 0 ;;
30803 --he | --h)
30804 # Conflict between --help and --header
30805 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30806Try \`$0 --help' for more information." >&5
30807echo "$as_me: error: ambiguous option: $1
30808Try \`$0 --help' for more information." >&2;}
30809 { (exit 1); exit 1; }; };;
30810 --help | --hel | -h )
30811 echo "$ac_cs_usage"; exit 0 ;;
30812 --debug | --d* | -d )
30813 debug=: ;;
30814 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030815 $ac_shift
30816 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030817 ac_need_defaults=false;;
30818 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030819 $ac_shift
30820 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030821 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30823 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30824 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030825
30826 # This is an error.
30827 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30828Try \`$0 --help' for more information." >&5
30829echo "$as_me: error: unrecognized option: $1
30830Try \`$0 --help' for more information." >&2;}
30831 { (exit 1); exit 1; }; } ;;
30832
30833 *) ac_config_targets="$ac_config_targets $1" ;;
30834
30835 esac
30836 shift
30837done
30838
John Criswell0c38eaf2003-09-10 15:17:25 +000030839ac_configure_extra_args=
30840
30841if $ac_cs_silent; then
30842 exec 6>/dev/null
30843 ac_configure_extra_args="$ac_configure_extra_args --silent"
30844fi
30845
30846_ACEOF
30847cat >>$CONFIG_STATUS <<_ACEOF
30848if \$ac_cs_recheck; then
30849 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30850 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30851fi
30852
John Criswell7a73b802003-06-30 21:59:07 +000030853_ACEOF
30854
John Criswellc764fbc2003-09-06 15:17:13 +000030855cat >>$CONFIG_STATUS <<_ACEOF
30856#
30857# INIT-COMMANDS section.
30858#
John Criswell7a73b802003-06-30 21:59:07 +000030859
Reid Spencerc0682832005-02-24 19:05:19 +000030860llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000030861
30862_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030863
30864
30865
30866cat >>$CONFIG_STATUS <<\_ACEOF
30867for ac_config_target in $ac_config_targets
30868do
30869 case "$ac_config_target" in
30870 # Handling of arguments.
30871 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030872 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30873 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30874 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30875 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030876 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000030877 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030878 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30879 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030880 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030881 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030882 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030883 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30884 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030885 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030886 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030887 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030888 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030889 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030890 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30891 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030892 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30893 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030894 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30895echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30896 { (exit 1); exit 1; }; };;
30897 esac
30898done
30899
30900# If the user did not use the arguments to specify the items to instantiate,
30901# then the envvar interface is used. Set only those that are not.
30902# We use the long form for the default assignment because of an extremely
30903# bizarre bug on SunOS 4.1.3.
30904if $ac_need_defaults; then
30905 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30906 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000030907 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030908fi
30909
John Criswell0c38eaf2003-09-10 15:17:25 +000030910# Have a temporary directory for convenience. Make it in the build tree
30911# simply because there is no reason to put it here, and in addition,
30912# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030913# Create a temporary directory, and hook for its removal unless debugging.
30914$debug ||
30915{
30916 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30917 trap '{ (exit 1); exit 1; }' 1 2 13 15
30918}
30919
30920# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030921
John Criswell7a73b802003-06-30 21:59:07 +000030922{
John Criswell0c38eaf2003-09-10 15:17:25 +000030923 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030924 test -n "$tmp" && test -d "$tmp"
30925} ||
30926{
John Criswell0c38eaf2003-09-10 15:17:25 +000030927 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030928 (umask 077 && mkdir $tmp)
30929} ||
30930{
John Criswell0c38eaf2003-09-10 15:17:25 +000030931 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030932 { (exit 1); exit 1; }
30933}
30934
30935_ACEOF
30936
30937cat >>$CONFIG_STATUS <<_ACEOF
30938
30939#
30940# CONFIG_FILES section.
30941#
30942
30943# No need to generate the scripts if there are no CONFIG_FILES.
30944# This happens for instance when ./config.status config.h
30945if test -n "\$CONFIG_FILES"; then
30946 # Protect against being on the right side of a sed subst in config.status.
30947 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30948 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30949s,@SHELL@,$SHELL,;t t
30950s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30951s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30952s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30953s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30954s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30955s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30956s,@exec_prefix@,$exec_prefix,;t t
30957s,@prefix@,$prefix,;t t
30958s,@program_transform_name@,$program_transform_name,;t t
30959s,@bindir@,$bindir,;t t
30960s,@sbindir@,$sbindir,;t t
30961s,@libexecdir@,$libexecdir,;t t
30962s,@datadir@,$datadir,;t t
30963s,@sysconfdir@,$sysconfdir,;t t
30964s,@sharedstatedir@,$sharedstatedir,;t t
30965s,@localstatedir@,$localstatedir,;t t
30966s,@libdir@,$libdir,;t t
30967s,@includedir@,$includedir,;t t
30968s,@oldincludedir@,$oldincludedir,;t t
30969s,@infodir@,$infodir,;t t
30970s,@mandir@,$mandir,;t t
30971s,@build_alias@,$build_alias,;t t
30972s,@host_alias@,$host_alias,;t t
30973s,@target_alias@,$target_alias,;t t
30974s,@DEFS@,$DEFS,;t t
30975s,@ECHO_C@,$ECHO_C,;t t
30976s,@ECHO_N@,$ECHO_N,;t t
30977s,@ECHO_T@,$ECHO_T,;t t
30978s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030979s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030980s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030981s,@build@,$build,;t t
30982s,@build_cpu@,$build_cpu,;t t
30983s,@build_vendor@,$build_vendor,;t t
30984s,@build_os@,$build_os,;t t
30985s,@host@,$host,;t t
30986s,@host_cpu@,$host_cpu,;t t
30987s,@host_vendor@,$host_vendor,;t t
30988s,@host_os@,$host_os,;t t
30989s,@target@,$target,;t t
30990s,@target_cpu@,$target_cpu,;t t
30991s,@target_vendor@,$target_vendor,;t t
30992s,@target_os@,$target_os,;t t
30993s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000030994s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30995s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000030996s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030997s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030998s,@CC@,$CC,;t t
30999s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031000s,@LDFLAGS@,$LDFLAGS,;t t
31001s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031002s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031003s,@EXEEXT@,$EXEEXT,;t t
31004s,@OBJEXT@,$OBJEXT,;t t
31005s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31006s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031007s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031008s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031009s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031010s,@CXX@,$CXX,;t t
31011s,@CXXFLAGS@,$CXXFLAGS,;t t
31012s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031013s,@LEX@,$LEX,;t t
31014s,@LEXLIB@,$LEXLIB,;t t
31015s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031016s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031017s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031018s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031019s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031020s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031021s,@CMP@,$CMP,;t t
31022s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031023s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031024s,@FIND@,$FIND,;t t
31025s,@GREP@,$GREP,;t t
31026s,@MKDIR@,$MKDIR,;t t
31027s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031028s,@RANLIB@,$RANLIB,;t t
31029s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031030s,@RM@,$RM,;t t
31031s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031032s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031033s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31034s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31035s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031036s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031037s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031038s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031039s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031040s,@GROFF@,$GROFF,;t t
31041s,@GZIP@,$GZIP,;t t
31042s,@POD2HTML@,$POD2HTML,;t t
31043s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031044s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031045s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031046s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031047s,@EGREP@,$EGREP,;t t
31048s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31049s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31050s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31051s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31052s,@LIBADD_DL@,$LIBADD_DL,;t t
31053s,@ECHO@,$ECHO,;t t
31054s,@AR@,$AR,;t t
31055s,@ac_ct_AR@,$ac_ct_AR,;t t
31056s,@STRIP@,$STRIP,;t t
31057s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31058s,@CXXCPP@,$CXXCPP,;t t
31059s,@F77@,$F77,;t t
31060s,@FFLAGS@,$FFLAGS,;t t
31061s,@ac_ct_F77@,$ac_ct_F77,;t t
31062s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031063s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031064s,@LLVMGCC@,$LLVMGCC,;t t
31065s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031066s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031067s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031068s,@LLVMCC1@,$LLVMCC1,;t t
31069s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031070s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031071s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031072s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31073s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31074s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31075s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31076s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31077s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31078s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31079s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31080s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31081s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031082s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031083s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031084CEOF
31085
31086_ACEOF
31087
31088 cat >>$CONFIG_STATUS <<\_ACEOF
31089 # Split the substitutions into bite-sized pieces for seds with
31090 # small command number limits, like on Digital OSF/1 and HP-UX.
31091 ac_max_sed_lines=48
31092 ac_sed_frag=1 # Number of current file.
31093 ac_beg=1 # First line for current file.
31094 ac_end=$ac_max_sed_lines # Line after last line for current file.
31095 ac_more_lines=:
31096 ac_sed_cmds=
31097 while $ac_more_lines; do
31098 if test $ac_beg -gt 1; then
31099 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31100 else
31101 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31102 fi
31103 if test ! -s $tmp/subs.frag; then
31104 ac_more_lines=false
31105 else
31106 # The purpose of the label and of the branching condition is to
31107 # speed up the sed processing (if there are no `@' at all, there
31108 # is no need to browse any of the substitutions).
31109 # These are the two extra sed commands mentioned above.
31110 (echo ':t
31111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31112 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031113 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031114 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031115 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031116 fi
31117 ac_sed_frag=`expr $ac_sed_frag + 1`
31118 ac_beg=$ac_end
31119 ac_end=`expr $ac_end + $ac_max_sed_lines`
31120 fi
31121 done
31122 if test -z "$ac_sed_cmds"; then
31123 ac_sed_cmds=cat
31124 fi
31125fi # test -n "$CONFIG_FILES"
31126
31127_ACEOF
31128cat >>$CONFIG_STATUS <<\_ACEOF
31129for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31131 case $ac_file in
31132 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031133 cat >$tmp/stdin
31134 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31135 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031136 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031138 * ) ac_file_in=$ac_file.in ;;
31139 esac
31140
31141 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31142 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31143$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031144 X"$ac_file" : 'X\(//\)[^/]' \| \
31145 X"$ac_file" : 'X\(//\)$' \| \
31146 X"$ac_file" : 'X\(/\)' \| \
31147 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031148echo X"$ac_file" |
31149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31151 /^X\(\/\/\)$/{ s//\1/; q; }
31152 /^X\(\/\).*/{ s//\1/; q; }
31153 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031154 { if $as_mkdir_p; then
31155 mkdir -p "$ac_dir"
31156 else
31157 as_dir="$ac_dir"
31158 as_dirs=
31159 while test ! -d "$as_dir"; do
31160 as_dirs="$as_dir $as_dirs"
31161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031163 X"$as_dir" : 'X\(//\)[^/]' \| \
31164 X"$as_dir" : 'X\(//\)$' \| \
31165 X"$as_dir" : 'X\(/\)' \| \
31166 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031167echo X"$as_dir" |
31168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31170 /^X\(\/\/\)$/{ s//\1/; q; }
31171 /^X\(\/\).*/{ s//\1/; q; }
31172 s/.*/./; q'`
31173 done
31174 test ! -n "$as_dirs" || mkdir $as_dirs
31175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31176echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31177 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031178
31179 ac_builddir=.
31180
31181if test "$ac_dir" != .; then
31182 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31183 # A "../" for each directory in $ac_dir_suffix.
31184 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31185else
31186 ac_dir_suffix= ac_top_builddir=
31187fi
31188
31189case $srcdir in
31190 .) # No --srcdir option. We are building in place.
31191 ac_srcdir=.
31192 if test -z "$ac_top_builddir"; then
31193 ac_top_srcdir=.
31194 else
31195 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31196 fi ;;
31197 [\\/]* | ?:[\\/]* ) # Absolute path.
31198 ac_srcdir=$srcdir$ac_dir_suffix;
31199 ac_top_srcdir=$srcdir ;;
31200 *) # Relative path.
31201 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31202 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31203esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031204
31205# Do not use `cd foo && pwd` to compute absolute paths, because
31206# the directories may not exist.
31207case `pwd` in
31208.) ac_abs_builddir="$ac_dir";;
31209*)
31210 case "$ac_dir" in
31211 .) ac_abs_builddir=`pwd`;;
31212 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31213 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31214 esac;;
31215esac
31216case $ac_abs_builddir in
31217.) ac_abs_top_builddir=${ac_top_builddir}.;;
31218*)
31219 case ${ac_top_builddir}. in
31220 .) ac_abs_top_builddir=$ac_abs_builddir;;
31221 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31222 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31223 esac;;
31224esac
31225case $ac_abs_builddir in
31226.) ac_abs_srcdir=$ac_srcdir;;
31227*)
31228 case $ac_srcdir in
31229 .) ac_abs_srcdir=$ac_abs_builddir;;
31230 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31231 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31232 esac;;
31233esac
31234case $ac_abs_builddir in
31235.) ac_abs_top_srcdir=$ac_top_srcdir;;
31236*)
31237 case $ac_top_srcdir in
31238 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31239 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31240 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31241 esac;;
31242esac
John Criswell7a73b802003-06-30 21:59:07 +000031243
31244
31245 case $INSTALL in
31246 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31247 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31248 esac
31249
31250 if test x"$ac_file" != x-; then
31251 { echo "$as_me:$LINENO: creating $ac_file" >&5
31252echo "$as_me: creating $ac_file" >&6;}
31253 rm -f "$ac_file"
31254 fi
31255 # Let's still pretend it is `configure' which instantiates (i.e., don't
31256 # use $as_me), people would be surprised to read:
31257 # /* config.h. Generated by config.status. */
31258 if test x"$ac_file" = x-; then
31259 configure_input=
31260 else
31261 configure_input="$ac_file. "
31262 fi
31263 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031264 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031265
31266 # First look for the input files in the build tree, otherwise in the
31267 # src tree.
31268 ac_file_inputs=`IFS=:
31269 for f in $ac_file_in; do
31270 case $f in
31271 -) echo $tmp/stdin ;;
31272 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031273 # Absolute (can't be DOS-style, as IFS=:)
31274 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031275echo "$as_me: error: cannot find input file: $f" >&2;}
31276 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031277 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031278 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031279 if test -f "$f"; then
31280 # Build tree
31281 echo "$f"
31282 elif test -f "$srcdir/$f"; then
31283 # Source tree
31284 echo "$srcdir/$f"
31285 else
31286 # /dev/null tree
31287 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031288echo "$as_me: error: cannot find input file: $f" >&2;}
31289 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031290 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031291 esac
31292 done` || { (exit 1); exit 1; }
31293_ACEOF
31294cat >>$CONFIG_STATUS <<_ACEOF
31295 sed "$ac_vpsub
31296$extrasub
31297_ACEOF
31298cat >>$CONFIG_STATUS <<\_ACEOF
31299:t
31300/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31301s,@configure_input@,$configure_input,;t t
31302s,@srcdir@,$ac_srcdir,;t t
31303s,@abs_srcdir@,$ac_abs_srcdir,;t t
31304s,@top_srcdir@,$ac_top_srcdir,;t t
31305s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31306s,@builddir@,$ac_builddir,;t t
31307s,@abs_builddir@,$ac_abs_builddir,;t t
31308s,@top_builddir@,$ac_top_builddir,;t t
31309s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31310s,@INSTALL@,$ac_INSTALL,;t t
31311" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31312 rm -f $tmp/stdin
31313 if test x"$ac_file" != x-; then
31314 mv $tmp/out $ac_file
31315 else
31316 cat $tmp/out
31317 rm -f $tmp/out
31318 fi
31319
31320done
31321_ACEOF
31322cat >>$CONFIG_STATUS <<\_ACEOF
31323
31324#
31325# CONFIG_HEADER section.
31326#
31327
31328# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31329# NAME is the cpp macro being defined and VALUE is the value it is being given.
31330#
31331# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031332ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31333ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031334ac_dC=' '
31335ac_dD=',;t'
31336# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031337ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031338ac_uB='$,\1#\2define\3'
31339ac_uC=' '
31340ac_uD=',;t'
31341
31342for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31343 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31344 case $ac_file in
31345 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031346 cat >$tmp/stdin
31347 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31348 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031349 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031350 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031351 * ) ac_file_in=$ac_file.in ;;
31352 esac
31353
31354 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31355echo "$as_me: creating $ac_file" >&6;}
31356
31357 # First look for the input files in the build tree, otherwise in the
31358 # src tree.
31359 ac_file_inputs=`IFS=:
31360 for f in $ac_file_in; do
31361 case $f in
31362 -) echo $tmp/stdin ;;
31363 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031364 # Absolute (can't be DOS-style, as IFS=:)
31365 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031366echo "$as_me: error: cannot find input file: $f" >&2;}
31367 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031368 # Do quote $f, to prevent DOS paths from being IFS'd.
31369 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031370 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031371 if test -f "$f"; then
31372 # Build tree
31373 echo "$f"
31374 elif test -f "$srcdir/$f"; then
31375 # Source tree
31376 echo "$srcdir/$f"
31377 else
31378 # /dev/null tree
31379 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031380echo "$as_me: error: cannot find input file: $f" >&2;}
31381 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031382 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031383 esac
31384 done` || { (exit 1); exit 1; }
31385 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031386 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031387
31388_ACEOF
31389
31390# Transform confdefs.h into two sed scripts, `conftest.defines' and
31391# `conftest.undefs', that substitutes the proper values into
31392# config.h.in to produce config.h. The first handles `#define'
31393# templates, and the second `#undef' templates.
31394# And first: Protect against being on the right side of a sed subst in
31395# config.status. Protect against being in an unquoted here document
31396# in config.status.
31397rm -f conftest.defines conftest.undefs
31398# Using a here document instead of a string reduces the quoting nightmare.
31399# Putting comments in sed scripts is not portable.
31400#
31401# `end' is used to avoid that the second main sed command (meant for
31402# 0-ary CPP macros) applies to n-ary macro definitions.
31403# See the Autoconf documentation for `clear'.
31404cat >confdef2sed.sed <<\_ACEOF
31405s/[\\&,]/\\&/g
31406s,[\\$`],\\&,g
31407t clear
31408: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031409s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031410t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031411s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031412: end
31413_ACEOF
31414# If some macros were called several times there might be several times
31415# the same #defines, which is useless. Nevertheless, we may not want to
31416# sort them, since we want the *last* AC-DEFINE to be honored.
31417uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31418sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31419rm -f confdef2sed.sed
31420
31421# This sed command replaces #undef with comments. This is necessary, for
31422# example, in the case of _POSIX_SOURCE, which is predefined and required
31423# on some systems where configure will not decide to define it.
31424cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031425s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031426_ACEOF
31427
31428# Break up conftest.defines because some shells have a limit on the size
31429# of here documents, and old seds have small limits too (100 cmds).
31430echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031431echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031432echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31433echo ' :' >>$CONFIG_STATUS
31434rm -f conftest.tail
31435while grep . conftest.defines >/dev/null
31436do
31437 # Write a limited-size here document to $tmp/defines.sed.
31438 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31439 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031440 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031441 # Work around the forget-to-reset-the-flag bug.
31442 echo 't clr' >>$CONFIG_STATUS
31443 echo ': clr' >>$CONFIG_STATUS
31444 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31445 echo 'CEOF
31446 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31447 rm -f $tmp/in
31448 mv $tmp/out $tmp/in
31449' >>$CONFIG_STATUS
31450 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31451 rm -f conftest.defines
31452 mv conftest.tail conftest.defines
31453done
31454rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031455echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031456echo >>$CONFIG_STATUS
31457
31458# Break up conftest.undefs because some shells have a limit on the size
31459# of here documents, and old seds have small limits too (100 cmds).
31460echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31461rm -f conftest.tail
31462while grep . conftest.undefs >/dev/null
31463do
31464 # Write a limited-size here document to $tmp/undefs.sed.
31465 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31466 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031467 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031468 # Work around the forget-to-reset-the-flag bug.
31469 echo 't clr' >>$CONFIG_STATUS
31470 echo ': clr' >>$CONFIG_STATUS
31471 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31472 echo 'CEOF
31473 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31474 rm -f $tmp/in
31475 mv $tmp/out $tmp/in
31476' >>$CONFIG_STATUS
31477 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31478 rm -f conftest.undefs
31479 mv conftest.tail conftest.undefs
31480done
31481rm -f conftest.undefs
31482
31483cat >>$CONFIG_STATUS <<\_ACEOF
31484 # Let's still pretend it is `configure' which instantiates (i.e., don't
31485 # use $as_me), people would be surprised to read:
31486 # /* config.h. Generated by config.status. */
31487 if test x"$ac_file" = x-; then
31488 echo "/* Generated by configure. */" >$tmp/config.h
31489 else
31490 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31491 fi
31492 cat $tmp/in >>$tmp/config.h
31493 rm -f $tmp/in
31494 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031495 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031496 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31497echo "$as_me: $ac_file is unchanged" >&6;}
31498 else
31499 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31500$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031501 X"$ac_file" : 'X\(//\)[^/]' \| \
31502 X"$ac_file" : 'X\(//\)$' \| \
31503 X"$ac_file" : 'X\(/\)' \| \
31504 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031505echo X"$ac_file" |
31506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31508 /^X\(\/\/\)$/{ s//\1/; q; }
31509 /^X\(\/\).*/{ s//\1/; q; }
31510 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031511 { if $as_mkdir_p; then
31512 mkdir -p "$ac_dir"
31513 else
31514 as_dir="$ac_dir"
31515 as_dirs=
31516 while test ! -d "$as_dir"; do
31517 as_dirs="$as_dir $as_dirs"
31518 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31519$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031520 X"$as_dir" : 'X\(//\)[^/]' \| \
31521 X"$as_dir" : 'X\(//\)$' \| \
31522 X"$as_dir" : 'X\(/\)' \| \
31523 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031524echo X"$as_dir" |
31525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31527 /^X\(\/\/\)$/{ s//\1/; q; }
31528 /^X\(\/\).*/{ s//\1/; q; }
31529 s/.*/./; q'`
31530 done
31531 test ! -n "$as_dirs" || mkdir $as_dirs
31532 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31533echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31534 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031535
31536 rm -f $ac_file
31537 mv $tmp/config.h $ac_file
31538 fi
31539 else
31540 cat $tmp/config.h
31541 rm -f $tmp/config.h
31542 fi
31543done
31544_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031545cat >>$CONFIG_STATUS <<\_ACEOF
31546
31547#
31548# CONFIG_COMMANDS section.
31549#
31550for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31551 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31552 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31553 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31554$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031555 X"$ac_dest" : 'X\(//\)[^/]' \| \
31556 X"$ac_dest" : 'X\(//\)$' \| \
31557 X"$ac_dest" : 'X\(/\)' \| \
31558 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031559echo X"$ac_dest" |
31560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31561 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31562 /^X\(\/\/\)$/{ s//\1/; q; }
31563 /^X\(\/\).*/{ s//\1/; q; }
31564 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031565 { if $as_mkdir_p; then
31566 mkdir -p "$ac_dir"
31567 else
31568 as_dir="$ac_dir"
31569 as_dirs=
31570 while test ! -d "$as_dir"; do
31571 as_dirs="$as_dir $as_dirs"
31572 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31573$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31574 X"$as_dir" : 'X\(//\)[^/]' \| \
31575 X"$as_dir" : 'X\(//\)$' \| \
31576 X"$as_dir" : 'X\(/\)' \| \
31577 . : '\(.\)' 2>/dev/null ||
31578echo X"$as_dir" |
31579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31580 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31581 /^X\(\/\/\)$/{ s//\1/; q; }
31582 /^X\(\/\).*/{ s//\1/; q; }
31583 s/.*/./; q'`
31584 done
31585 test ! -n "$as_dirs" || mkdir $as_dirs
31586 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31587echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31588 { (exit 1); exit 1; }; }; }
31589
John Criswellc764fbc2003-09-06 15:17:13 +000031590 ac_builddir=.
31591
31592if test "$ac_dir" != .; then
31593 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31594 # A "../" for each directory in $ac_dir_suffix.
31595 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31596else
31597 ac_dir_suffix= ac_top_builddir=
31598fi
31599
31600case $srcdir in
31601 .) # No --srcdir option. We are building in place.
31602 ac_srcdir=.
31603 if test -z "$ac_top_builddir"; then
31604 ac_top_srcdir=.
31605 else
31606 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31607 fi ;;
31608 [\\/]* | ?:[\\/]* ) # Absolute path.
31609 ac_srcdir=$srcdir$ac_dir_suffix;
31610 ac_top_srcdir=$srcdir ;;
31611 *) # Relative path.
31612 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31613 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31614esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031615
31616# Do not use `cd foo && pwd` to compute absolute paths, because
31617# the directories may not exist.
31618case `pwd` in
31619.) ac_abs_builddir="$ac_dir";;
31620*)
31621 case "$ac_dir" in
31622 .) ac_abs_builddir=`pwd`;;
31623 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31624 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31625 esac;;
31626esac
31627case $ac_abs_builddir in
31628.) ac_abs_top_builddir=${ac_top_builddir}.;;
31629*)
31630 case ${ac_top_builddir}. in
31631 .) ac_abs_top_builddir=$ac_abs_builddir;;
31632 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31633 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31634 esac;;
31635esac
31636case $ac_abs_builddir in
31637.) ac_abs_srcdir=$ac_srcdir;;
31638*)
31639 case $ac_srcdir in
31640 .) ac_abs_srcdir=$ac_abs_builddir;;
31641 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31642 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31643 esac;;
31644esac
31645case $ac_abs_builddir in
31646.) ac_abs_top_srcdir=$ac_top_srcdir;;
31647*)
31648 case $ac_top_srcdir in
31649 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31650 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31651 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31652 esac;;
31653esac
John Criswellc764fbc2003-09-06 15:17:13 +000031654
31655
31656 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31657echo "$as_me: executing $ac_dest commands" >&6;}
31658 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000031659 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31660 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31661 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31662 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31663 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31664 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31665 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31666 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31667 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31668 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31669 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31670 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31671 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31672 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31673 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31674 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31675 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31676 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31677 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31678 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031679 esac
31680done
31681_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031682
31683cat >>$CONFIG_STATUS <<\_ACEOF
31684
31685{ (exit 0); exit 0; }
31686_ACEOF
31687chmod +x $CONFIG_STATUS
31688ac_clean_files=$ac_clean_files_save
31689
31690
31691# configure is writing to config.log, and then calls config.status.
31692# config.status does its own redirection, appending to config.log.
31693# Unfortunately, on DOS this fails, as config.log is still kept open
31694# by configure, so config.status won't be able to write to it; its
31695# output is simply discarded. So we exec the FD to /dev/null,
31696# effectively closing config.log, so it can be properly (re)opened and
31697# appended to by config.status. When coming back to configure, we
31698# need to make the FD available again.
31699if test "$no_create" != yes; then
31700 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031701 ac_config_status_args=
31702 test "$silent" = yes &&
31703 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031704 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031705 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031706 exec 5>>config.log
31707 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31708 # would make configure fail if this is the last instruction.
31709 $ac_cs_success || { (exit 1); exit 1; }
31710fi
31711
John Criswell12399a12003-09-30 15:55:44 +000031712#
31713# CONFIG_SUBDIRS section.
31714#
31715if test "$no_recursion" != yes; then
31716
31717 # Remove --cache-file and --srcdir arguments so they do not pile up.
31718 ac_sub_configure_args=
31719 ac_prev=
31720 for ac_arg in $ac_configure_args; do
31721 if test -n "$ac_prev"; then
31722 ac_prev=
31723 continue
31724 fi
31725 case $ac_arg in
31726 -cache-file | --cache-file | --cache-fil | --cache-fi \
31727 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31728 ac_prev=cache_file ;;
31729 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31730 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31731 | --c=*)
31732 ;;
31733 --config-cache | -C)
31734 ;;
31735 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31736 ac_prev=srcdir ;;
31737 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31738 ;;
31739 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31740 ac_prev=prefix ;;
31741 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31742 ;;
31743 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31744 esac
31745 done
31746
31747 # Always prepend --prefix to ensure using the same prefix
31748 # in subdir configurations.
31749 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31750
31751 ac_popdir=`pwd`
31752 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31753
31754 # Do not complain, so a configure script can configure whichever
31755 # parts of a large source tree are present.
31756 test -d $srcdir/$ac_dir || continue
31757
31758 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31759echo "$as_me: configuring in $ac_dir" >&6;}
31760 { if $as_mkdir_p; then
31761 mkdir -p "$ac_dir"
31762 else
31763 as_dir="$ac_dir"
31764 as_dirs=
31765 while test ! -d "$as_dir"; do
31766 as_dirs="$as_dir $as_dirs"
31767 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31768$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031769 X"$as_dir" : 'X\(//\)[^/]' \| \
31770 X"$as_dir" : 'X\(//\)$' \| \
31771 X"$as_dir" : 'X\(/\)' \| \
31772 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031773echo X"$as_dir" |
31774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31776 /^X\(\/\/\)$/{ s//\1/; q; }
31777 /^X\(\/\).*/{ s//\1/; q; }
31778 s/.*/./; q'`
31779 done
31780 test ! -n "$as_dirs" || mkdir $as_dirs
31781 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31782echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31783 { (exit 1); exit 1; }; }; }
31784
31785 ac_builddir=.
31786
31787if test "$ac_dir" != .; then
31788 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31789 # A "../" for each directory in $ac_dir_suffix.
31790 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31791else
31792 ac_dir_suffix= ac_top_builddir=
31793fi
31794
31795case $srcdir in
31796 .) # No --srcdir option. We are building in place.
31797 ac_srcdir=.
31798 if test -z "$ac_top_builddir"; then
31799 ac_top_srcdir=.
31800 else
31801 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31802 fi ;;
31803 [\\/]* | ?:[\\/]* ) # Absolute path.
31804 ac_srcdir=$srcdir$ac_dir_suffix;
31805 ac_top_srcdir=$srcdir ;;
31806 *) # Relative path.
31807 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31808 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31809esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031810
31811# Do not use `cd foo && pwd` to compute absolute paths, because
31812# the directories may not exist.
31813case `pwd` in
31814.) ac_abs_builddir="$ac_dir";;
31815*)
31816 case "$ac_dir" in
31817 .) ac_abs_builddir=`pwd`;;
31818 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31819 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31820 esac;;
31821esac
31822case $ac_abs_builddir in
31823.) ac_abs_top_builddir=${ac_top_builddir}.;;
31824*)
31825 case ${ac_top_builddir}. in
31826 .) ac_abs_top_builddir=$ac_abs_builddir;;
31827 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31828 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31829 esac;;
31830esac
31831case $ac_abs_builddir in
31832.) ac_abs_srcdir=$ac_srcdir;;
31833*)
31834 case $ac_srcdir in
31835 .) ac_abs_srcdir=$ac_abs_builddir;;
31836 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31837 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31838 esac;;
31839esac
31840case $ac_abs_builddir in
31841.) ac_abs_top_srcdir=$ac_top_srcdir;;
31842*)
31843 case $ac_top_srcdir in
31844 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31845 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31846 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31847 esac;;
31848esac
John Criswell12399a12003-09-30 15:55:44 +000031849
31850
31851 cd $ac_dir
31852
31853 # Check for guested configure; otherwise get Cygnus style configure.
31854 if test -f $ac_srcdir/configure.gnu; then
31855 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31856 elif test -f $ac_srcdir/configure; then
31857 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31858 elif test -f $ac_srcdir/configure.in; then
31859 ac_sub_configure=$ac_configure
31860 else
31861 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31862echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31863 ac_sub_configure=
31864 fi
31865
31866 # The recursion is here.
31867 if test -n "$ac_sub_configure"; then
31868 # Make the cache file name correct relative to the subdirectory.
31869 case $cache_file in
31870 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31871 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031872 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031873 esac
31874
31875 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31876echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31877 # The eval makes quoting arguments work.
31878 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031879 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31880 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031881echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31882 { (exit 1); exit 1; }; }
31883 fi
31884
31885 cd $ac_popdir
31886 done
31887fi
31888
Brian Gaekef3b24102003-11-16 18:38:14 +000031889
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031890if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000031891 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31892echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000031893 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31894echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31895 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31896echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31897 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31898echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31899 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31900echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031901fi